Signing Structure and Contents - Hero CDMA General

Ok, I've been trying this for 2 hours now and have read a dozen tutorials, heres all I need to know and if someone could help that would rock. I need to get an update.zip with 2 apks in it com.htc.framework.apk and framework-res.apk
I've tried a dozen different ways one way it says its missing the update script but most it just plain doesnt work, it seems when I sign it it puts the folder inside the zip and throws it all out of wack. Do i just zip a plain folder with nothing but those two files and the update-script? or is there something else I have to put in there?
With some help and an asprin maybe my headache will go away. Thanks in advance.

PlagaDeRock said:
Ok, I've been trying this for 2 hours now and have read a dozen tutorials, heres all I need to know and if someone could help that would rock. I need to get an update.zip with 2 apks in it com.htc.framework.apk and framework-res.apk
I've tried a dozen different ways one way it says its missing the update script but most it just plain doesnt work, it seems when I sign it it puts the folder inside the zip and throws it all out of wack. Do i just zip a plain folder with nothing but those two files and the update-script? or is there something else I have to put in there?
With some help and an asprin maybe my headache will go away. Thanks in advance.
Click to expand...
Click to collapse
You need to put them in a folder called framework.then put that folder in a folder named system. Then zip the system folder with meta-inf folder. So you should endup with a zip that has two folders one the system folder with framework in it and the other folder should be the meta-inf.

beezy420 said:
You need to put them in a folder called framework.then put that folder in a folder named system. Then zip the system folder with meta-inf folder. So you should endup with a zip that has two folders one the system folder with framework in it and the other folder should be the meta-inf.
Click to expand...
Click to collapse
Thank you. Just figured it out after testing a bunch of different ways of doing it, now I got that done and when I unpack it everything seems to be in order. I used fresh-pre-kitchen signing tool and it makes an update-script for me. However somethings messed with it and I dont think its my signing, its just not booting for me.

PlagaDeRock said:
Thank you. Just figured it out after testing a bunch of different ways of doing it, now I got that done and when I unpack it everything seems to be in order. I used fresh-pre-kitchen signing tool and it makes an update-script for me. However somethings messed with it and I dont think its my signing, its just not booting for me.
Click to expand...
Click to collapse
If you want send me the files an ill zip them up for yeah.

ok i'll give it a try i flashed my zip and it freaked my phone out wouldnt let me install signed zips at all... so I'm nandroiding right now.

http://www.megaupload.com/?d=M1MTCM6F
http://www.megaupload.com/?d=LWP20KUQ

Related

ROM Color change?

I ran into a DroidDoesPink ROM which was Sense-able just redone in pink. I was wondering if this can be done with any rom? If any of them could be changed the color you want. http://androidforums.com/all-things-root-eris/64009-droiddoespink-rom.html Here is the link to it. How could I go about changing the color to something i want? or is this not possible? Sorry if this a noob question lol
dyefalcon1 said:
I ran into a DroidDoesPink ROM which was Sense-able just redone in pink. I was wondering if this can be done with any rom? If any of them could be changed the color you want. http://androidforums.com/all-things-root-eris/64009-droiddoespink-rom.html Here is the link to it. How could I go about changing the color to something i want? or is this not possible? Sorry if this a noob question lol
Click to expand...
Click to collapse
all you have to do is change the corresponding png files in the framework-res.apk
its found under /system/frameworks
lets pretend i dont know how to do that...
unzip the rom
find the framework-res.apk under system/frameworks
change apk to zip
unzip
edit the png files for whatever suits your taste
zip the files back up
rename to framework-res.apk
push that to your phone and reboot
awesome thanks ill see what i can do
when i zip them back up what settings should i use i tried to flash and it said cant open
you dont flash it
adb remount
adb push *new framework-res.apk* /system/framework
Actually got it working thanks!
So, i've been trying this for a while. It's not working. Are there any special settings I need to use to zip it? When I reboot the phone it just hangs on the androids on skateboards.
make sure you do exactly what is said and you name the file framework-res.apk and it switches to an apk file. i had trouble here but one you get that right it works great
here's what I did.
1. unzipped the CELB2.4 rom
2. went to /system/framework and renamed the framework-res.apk to a .zip
3. extracted the .zip
4. modified the .png's
5. renamed the framework-res.zip back to a .apk
6. booted my phone into recovery and in a terminal ran
./adb shell mount /system
./adb push framework-res.apk /system/framework
I tried the remount command and it doesn't work while in recovery
*Edit: just looked at the framework-res.apk file again. Although it says it's a .apk, it still acts and looks like a .zip without the .zip extension. What's going on?*
hitman_dreams said:
here's what I did.
1. unzipped the CELB2.4 rom
2. went to /system/framework and renamed the framework-res.apk to a .zip
3. extracted the .zip
4. modified the .png's
5. renamed the framework-res.zip back to a .apk
6. booted my phone into recovery and in a terminal ran
./adb shell mount /system
./adb push framework-res.apk /system/framework
I tried the remount command and it doesn't work while in recovery
*Edit: just looked at the framework-res.apk file again. Although it says it's a .apk, it still acts and looks like a .zip without the .zip extension. What's going on?*
Click to expand...
Click to collapse
heres what i did...
create a new folder and put the framework-res.apk in there
archive it
open it up (dont extract)
you will see new folder open that
you will then see "framework-res.apk.zip"
take off the .zip extention and it will then become an apk file
extract it then push it to your phone
dyefalcon1 said:
I ran into a DroidDoesPink ROM which was Sense-able just redone in pink. I was wondering if this can be done with any rom? If any of them could be changed the color you want. http://androidforums.com/all-things-root-eris/64009-droiddoespink-rom.html Here is the link to it. How could I go about changing the color to something i want? or is this not possible? Sorry if this a noob question lol
Click to expand...
Click to collapse
I can make an update.zip of that pink theme, or if you send me the rom update.zip you want to integrate it into, I can do that. Always happy to help.
you don't need to change the .apk to .zip it will open just like a zip file. easiest way is to drag and drop the edited png's back into the framework-res.apk without extracting it. I made the droiddoespink rom way back when and to be honest its probably a little outdated. I did update it with overclock and apps2sd though I think but if you are trying to change the colors to something else I would reccomend you start with a stock rom. You don't want to make everything orange and then have a pink highlight pop up somewhere. Also in sense based roms there are some png's in the htcresources.apk too. And to theme the dialer htcdialer.apk and phone.apk.
Conap said:
you don't need to change the .apk to .zip it will open just like a zip file. easiest way is to drag and drop the edited png's back into the framework-res.apk without extracting it. I made the droiddoespink rom way back when and to be honest its probably a little outdated. I did update it with overclock and apps2sd though I think but if you are trying to change the colors to something else I would reccomend you start with a stock rom. You don't want to make everything orange and then have a pink highlight pop up somewhere. Also in sense based roms there are some png's in the htcresources.apk too. And to theme the dialer htcdialer.apk and phone.apk.
Click to expand...
Click to collapse
true.
the instructions i gave are how to do it on mac 10.4
I find that 7-zip http://www.7-zip.org/ is most helpful in this type work in that allows you to open the .apk "archive" files
Hope this helps
do i need to resize the png's because when i edit them and when i push the file to my phone it shows up that i edited it but its not one big edited picture its a whole bunch of small ones.. im thinking i need to resize the png's to the size of my phonne
ashertheplague said:
do i need to resize the png's because when i edit them and when i push the file to my phone it shows up that i edited it but its not one big edited picture its a whole bunch of small ones.. im thinking i need to resize the png's to the size of my phonne
Click to expand...
Click to collapse
try resizing the edited files to what the unedited files originally were
I'm using Ubuntu 9.10, Thanks Conap, you're the man! That did the trick for me. I had to not extract the .apk just open it with archive manager and drag and drop the files/folder. White and red here we come!
CPCookieMan said:
I can make an update.zip of that pink theme, or if you send me the rom update.zip you want to integrate it into, I can do that. Always happy to help.
Click to expand...
Click to collapse
I would like the new sense able rom http://forum.xda-developers.com/showthread.php?t=654315 here or evil eris here http://forum.xda-developers.com/showthread.php?t=650302 which ever is easier for you if you could integrate that to color #00aeff that would be awesome

[Q] deodex problem

5. IMPORTANT: After you have run option 3, you MUST navigate to the xUltimate folder and find "origi_frame" folder, and delete "guava.odex". It's a bad file, and interferes with deodexing process.
Can someone tell me where I find this file, lol I just cant find it.
8. Go back into the xUltimate folder and copy "done_frame", and "done_app", and move them to the root of the sdcard.
I cant find these files either, I also did step 4 without deleting the guava.odex file, once I find out where the files are should I just start over or what. I know this is probably a stupid question but Im lost and I have searched for the answer everywhere before asking.
chris6551 said:
5. IMPORTANT: After you have run option 3, you MUST navigate to the xUltimate folder and find "origi_frame" folder, and delete "guava.odex". It's a bad file, and interferes with deodexing process.
Can someone tell me where I find this file, lol I just cant find it.
8. Go back into the xUltimate folder and copy "done_frame", and "done_app", and move them to the root of the sdcard.
I cant find these files either, I also did step 4 without deleting the guava.odex file, once I find out where the files are should I just start over or what. I know this is probably a stupid question but Im lost and I have searched for the answer everywhere before asking.
Click to expand...
Click to collapse
1. It's located in the same folder you ran the "Main" application from, once you finished option 3, locate "origi_frame" folder and navigate to "guava.odex" file to delete it, its right between framework-tests file and ime file.
2. The "done_app" & "done_frame" is located in the same location as the "Main" application.
dr154 said:
1. It's located in the same folder you ran the "Main" application from, once you finished option 3, locate "origi_frame" folder and navigate to "guava.odex" file to delete it, its right between framework-tests file and ime file.
2. The "done_app" & "done_frame" is located in the same location as the "Main" application.
Click to expand...
Click to collapse
These done_app and done_frame is simply not in the xultimate zip anywhere, I have been looking for them for like 6 hrs now can someone please please help me Im loosing my mind because everyone seems to find them without issue and they are just not in there. I have the 2.2.2 version too. so please please help me.
chris6551 said:
These done_app and done_frame is simply not in the xultimate zip anywhere, I have been looking for them for like 6 hrs now can someone please please help me Im loosing my mind because everyone seems to find them without issue and they are just not in there. I have the 2.2.2 version too. so please please help me.
Click to expand...
Click to collapse
They are not in the .zip... they are generated after some of the steps are done in the cmd and placed where ever the file was placed when you unzipped it and started with step 1. PM me and I will help you on gtalk
chris6551 said:
These done_app and done_frame is simply not in the xultimate zip anywhere, I have been looking for them for like 6 hrs now can someone please please help me Im loosing my mind because everyone seems to find them without issue and they are just not in there. I have the 2.2.2 version too. so please please help me.
Click to expand...
Click to collapse
sheelanagig said it best:
sheelanagig said:
In the directory/folder that you unzipped xUltimate to and where the "Main.exe" executable is that you are running (most likely called xUltimate-v2.2.2), it should have created the following sub-directories:
(after successfully pulled the original system files by selecting option 1 & 2 of "main.exe")
origi_app
origi_frame
(after deodex was successfully run in option 3 & 4 of "main.exe")
done_app
done_frame
Click to expand...
Click to collapse
if you truely having trouble just forget all that and come ova to my thread and get the files there... >>> Main Thread <<< or files post >>> "Done Files Post" <<<
problem solved
I got it thanks for all the help.

Unable to flash custom bootscreen

Hi I downloaded this android peeing on Apple logo bootscreen, it installed well so I got too excited and wanted to put tux hammering the Windows logo before android pee on the Apple, I made all 70 png's but did not touch anything either than creating the images. I then zipped them according to the original names but when I flash it I get ..... E: wrong digest, system/media/bootanimation.zip
I have tried several times but no luck, yet the original one would easy install. Help guys
Sent from my HTC Hero VillainRom 12, flykernel11 using XDA App
any idea someone
You probably need to sign the update zip, possibly change the install/flash location. Upload what you have in a zip and I'll make one for ya
Edit: and explain what I did
kyouko said:
You probably need to sign the update zip, possibly change the install/flash location. Upload what you have in a zip and I'll make one for ya
Edit: and explain what I did
Click to expand...
Click to collapse
Too bad everyone doesn't do that.
I have decided to change the part1 folder images with custom ones, I will upload the whole zip later so when you help me I won't have to re edit it again, thanx for your replies
Apologies as this is long overdue. Finally had some free time this weekend
Attached are both the working bootscreen AND the original for those who want to see what was changed between the two.
Edit: added the non-signed bootscreen.zip for reference as well. Never know who may want to look at it.
Setup
Extracted the zip (original_doesntflash.zip) into its own directory
Created the META-INF folder
Deleted the CERT.RSA, CERT.SF, and MANIFEST.MF files
Created the "com" folder inside META-INF
Inside the "com" folder I created another folder named "google"
Inside "google" create a folder named "android" <- forgot about this step
Inside there I placed the "update-script" (if you want to know how to make one of these by hand refer to my post HERE)
Added both folders (META-INF and system) to a zip - in this case named it "bootscreen.zip"
Signing The Zip
I'm running linux currently so I do it slightly different, but I'm assuming the majority of you guys and gals are windows users. If that's the case follow these directions:
Go HERE and download AvaboxV2
Extract the AvaboxV2.zip where you want it. Personally I'd made a separate AvaboxV2 folder in my AndroidSDK dir. But the desktop still will work
Copy the newly created zip (bootscreen.zip) into the "Auto-Sign" folder found in AvaboxV2
As per the README.txt:
Start a cmd prompt AS ADMINISTRATOR (not really needed if running Win7)
cd <to the directory of the Auto-Sign folder> [Example: cd C:\AndroidSDK\AvaboxV2\Auto-sign]
java -jar signapk.jar testkey.x509.pem testkey.pk8 bootscreen.zip bootscreen_signed.zip <- same command as used in linux, at least for me
Press enter...wait...wait...done
Congratulations you now have a working/flashable bootscreen zip
thanks mate I will download it today, thanks for the tutorial man its highly appreciative, thanks a lot
kyouko said:
Apologies as this is long overdue. Finally had some free time this weekend
Attached are both the working bootscreen AND the original for those who want to see what was changed between the two.
Edit: added the non-signed bootscreen.zip for reference as well. Never know who may want to look at it.
Setup
Extracted the zip (original_doesntflash.zip) into its own directory
Created the META-INF folder
Deleted the CERT.RSA, CERT.SF, and MANIFEST.MF files
Created the "com" folder inside META-INF
Inside the "com" folder I created another folder named "google"
Inside there I placed the "update-script" (if you want to know how to make one of these by hand refer to my post HERE)
Added both folders (META-INF and system) to a zip - in this case named it "bootscreen.zip"
Signing The Zip
I'm running linux currently so I do it slightly different, but I'm assuming the majority of you guys and gals are windows users. If that's the case follow these directions:
Go HERE and download AvaboxV2
Extract the AvaboxV2.zip where you want it. Personally I'd made a separate AvaboxV2 folder in my AndroidSDK dir. But the desktop still will work
Copy the newly created zip (bootscreen.zip) into the "Auto-Sign" folder found in AvaboxV2
As per the README.txt:
Start a cmd prompt AS ADMINISTRATOR (not really needed if running Win7)
cd <to the directory of the Auto-Sign folder> [Example: cd C:\AndroidSDK\AvaboxV2\Auto-sign]
java -jar signapk.jar testkey.x509.pem testkey.pk8 bootscreen.zip bootscreen_signed.zip <- same command as used in linux, at least for me
Press enter...wait...wait...done
Congratulations you now have a working/flashable bootscreen zip
Click to expand...
Click to collapse
I got an error when flashing the signed zip I got no update file found
elliotn said:
I got an error when flashing the signed zip I got no update file found
Click to expand...
Click to collapse
LOL uhh, I'll take a look at it and test it out... and edit my previous post with w/e I did wrong
Forgot to add the ''android'' folder in the zip. Fixed and should work now

[Q] Bootanimation replacement *.qmg vs *.zip

I've changed bootanimations before on other devices, but the file was always called "bootanimation.zip." Looking at the files in the SGS5, I see 3 different "boot*.qmg" files, but no "bootanimation.zip."
Since we don't have a custom recovery yet, I'm hesitant to rename the *.qmg files and drop in a "bootanimation.zip" I created for my SGS4 into the same folder. Is there some new way to replace bootanimations on an SGS5 due to the *.qmg file extension, or it's safe to just rename/delete the *.qmg files and drop in the "bootanimation.zip" file into the appropriate folder?
I'd hate to get stuck in a bootloop and have to odin back to stock only to be unable to fully "restore" my phone's settings afterwards (yes, I have TiBu & other apps that'll allow me to restore, but it's certainly not as easy or as complete as restoring a nandroid backup).
Icculus760 said:
I've changed bootanimations before on other devices, but the file was always called "bootanimation.zip." Looking at the files in the SGS5, I see 3 different "boot*.qmg" files, but no "bootanimation.zip."
Since we don't have a custom recovery yet, I'm hesitant to rename the *.qmg files and drop in a "bootanimation.zip" I created for my SGS4 into the same folder. Is there some new way to replace bootanimations on an SGS5 due to the *.qmg file extension, or it's safe to just rename/delete the *.qmg files and drop in the "bootanimation.zip" file into the appropriate folder?
I'd hate to get stuck in a bootloop and have to odin back to stock only to be unable to fully "restore" my phone's settings afterwards (yes, I have TiBu & other apps that'll allow me to restore, but it's certainly not as easy or as complete as restoring a nandroid backup).
Click to expand...
Click to collapse
Follow these instructions. Enjoy.
Misterxtc said:
Follow these instructions. Enjoy.
Click to expand...
Click to collapse
Thank you very much for the direction. While I'll give it a shot a later, that still won't allow me to replace the default bootanimation w/ the ones I've previously created. The bootanimation.zip files I want to use only contain *.png files (the *png's are in "part0" folder and there is a desc.txt file in the parent directory). There are no *.qmg files in those zip's to extract, so that process won't work for me & the bootanimations I'm trying to use.
Any other ideas, or is my only option to use something like the Samsung Theme Designer process? (http://forum.xda-developers.com/showthread.php?t=2696914)
Icculus760 said:
Thank you very much for the direction. While I'll give it a shot a later, that still won't allow me to replace the default bootanimation w/ the ones I've previously created. The bootanimation.zip files I want to use only contain *.png files (the *png's are in "part0" folder and there is a desc.txt file in the parent directory). There are no *.qmg files in those zip's to extract, so that process won't work for me & the bootanimations I'm trying to use.
Any other ideas, or is my only option to use something like the Samsung Theme Designer process? (http://forum.xda-developers.com/showthread.php?t=2696914)
Click to expand...
Click to collapse
Contact the maker of the OP of the thread with the boot animations, I'm pretty sure he/she can help you out converting the files. It's been done before in that thread.
Misterxtc said:
Contact the maker of the OP of the thread with the boot animations, I'm pretty sure he/she can help you out converting the files. It's been done before in that thread.
Click to expand...
Click to collapse
What the heck, man. Stop helping me so quickly! :laugh:
Thanks again!!

Fix for Sprint and 3rd party lollipop roms

I don't know the first thing about Android development, especially making flashable zips, but what I DO know is that I was just able to update my profile and prl on my n5 running the January 9th nighty of cm12. Here's how I did it:
1 extract the zip I'm adding here to your internal storage.
2 copy the extracted folder to your system/app/ folder. As a folder, not just the apk.
3 go through the subfolders until you get to the lib folder, then copy the two files inside to system/lib/
4 set the proper permission for all the files and folders involved.
Now let me be clear, I know this is overly complicated, my hope is that someone can respond to this this thread and post a flashable zip that would make this much much easier. Also I don't know if this will work with any other rom, just the one I have right now.
bray424 said:
I don't know the first thing about Android development, especially making flashable zips, but what I DO know is that I was just able to update my profile and prl on my n5 running the January 9th nighty of cm12. Here's how I did it:
1 extract the zip I'm adding here to your internal storage.
2 copy the extracted folder to your system/app/ folder. As a folder, not just the apk.
3 go through the subfolders until you get to the lib folder, then copy the two files inside to system/lib/
4 set the proper permission for all the files and folders involved.
Now let me be clear, I know this is overly complicated, my hope is that someone can respond to this this thread and post a flashable zip that would make this much much easier. Also I don't know if this will work with any other rom, just the one I have right now.
Click to expand...
Click to collapse
Pretty sure there was already a few "Sprint fix" zips around lol.
Well now I feel dumb. But happy too because either way I won't have to worry about it anymore.
Sent from my Nexus 5 using XDA Free mobile app

Categories

Resources