help needed modifying ROM pre-flash - Droid Eris Android Development

i attempted to replace most of the .apks in the system app folder with the same .apks from an ealier version of the rom (because i prefer black to blue/black). i replaced them in the .zip before i flashed it, hoping it would work.. but it didnt.. in the recovery menu it says:
....
verifying update package...
e:wrong digest:
system/app/browser.apk
e:verification failed
browser was one i replaced. how do i make this work? i dont want to use root explorer to manually replace each ****ing thing, and i have no patients for adb. i must need to sign the package or something? i never unpacked anything, just replaced some contents.. thought id be fine..
on a related note there may be more issues to come. unzipped the framework-res.apk to my computer, renamed it .zip, went inside and replaced the battery icons, renamed it back to .apk and replaced the modified file in the rom. who knows what chaos i might have caused there.. if you know what to expect and how to fix it please feel free to help!
if it matters at all, the rom im modifying and flashing is nonsensikal 9.5 black/blue, the system apps came from version 8.2 black, and battery icon .pngs came from 5.4 black.

Id try and resign the whole rom after you make your changes it should be just fine

you cannot simply replace the apks in the zip, then flash. after replacing, use one of the following methods:
if you use linux, use EasySign (http://android.grdlock.net/index.php?&direction=0&order=&directory=HTC Droid Eris/Extras) or the Android Kitchen (http://forum.xda-developers.com/showthread.php?t=633246).
if using Windows:
Use AutoSign (http://androidforums.com/developer-101/8665-how-signing-roms.html).

Thanks. I'll get on the computer and give it a shot.
Sent from my nonsensikal froyo using XDA App

if you've unzipped the framework-res.apk then none of this will work anyway. You need to pull the images out of the old framework-res.apk and drag and drop them back into the new framework-res.apk without unzipping it. You shouldn't even need to rename it to zip. Just open it with a program like 7zip without unzipping and drop the png's in the correct folders. Then you can put the .apk back in the rom and resign from the links directed above.

Oh it all worked fine. I never unzipped framework, just extracted it from the Rom and renamed it, then replaced files, renamed back to apk, and replaced in original .zip. it worked great.
To achieve full 9.5 black I have to copy all of the previous versions (black) framework .pngs to the new Rom though.
I think the file is like, drawable-mpdi or something. Not landscape or non. I don't really know.. not in right frame of mind
Sent from my nonsensikal froyo using XDA App

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] is this the right step to modify framework-res.apk ?

hi...
i want to change standard notification bar from my htc desire running sense froyo rom with mod battery percentage, animation icons for data, signal, etc.
what i did is :
1. pull framework-res.apk from /system/framework folder
2. extract framework-res.apk using apktool
3. extract & overwrite with icons colour pack v4 downloaded from http://forum.xda-developers.com/showthread.php?t=722993 into drawable & drawable-hdpi folder from extracted framework apk folder.
4. bundled modified framework-res.apk using apktool
5. sign framework-res.apk
6. in recovery mode, adb push framework-res.apk to /system/framework. before doing that, i mount /system first..
7. reboot
what i found, everytime i choose network setting or wireless setting it crashed with error message process.com.android.settings has stopped unexpectedly.
why this error occured ? any other step that i did is wrong ?
I just pull from adb, my PC has 7zip installed so can see drill into the compressed file, drag replace the altered images, back out of the compressed file to commit, push via adb, reboot.
Sent from my Nexus One using XDA App
Why not use the UOT kitchen?
Sent from my HTC Desire using XDA App
HTCinToronto said:
I just pull from adb, my PC has 7zip installed so can see drill into the compressed file, drag replace the altered images, back out of the compressed file to commit, push via adb, reboot.
Sent from my Nexus One using XDA App
Click to expand...
Click to collapse
This is what I do, basically. I make the battery mod with UOT, and when the flashable zip is ready I extract the framework-res to some folder and just replace couple of images, then I'll put the modified framework-res back to the UOT-file and flash it. Works every time.
EDIT: I don't extract the files within framework-res.zip, only the .zip itself so I can open it via WinRar and replace the files. It isn't probably even needed, you could probably replace the needed files when browsing the UOT file with winrar/whatever etc etc. Haven't tried.
Can this same method be applied to anything that can be found in the framework ?

[Q] framework-res issues

I am having issues with framework-res.apk.
I make some minor changes and add and replace these files into framework-res.apk using WinRar.
Then copy this into the update.zip file and
install from sdcard using clockworkmod.
But then my nookGL won't reboot, and I end up having to factory reset.
After the factory reset the changes I put in the framework-res are now showing up and working fine.
I then need to go through the process to root the nook etc.
This is a very long winded way for some minor changes.
Is there something I am doing wrong?
I am now very hesistant to try any more changes, even though I would love to, as I really don't want to have to go through the whole process again.
Any suggestions?
Framework.res has to be signed with the system signature.
You can copy over the original META-INF directory (most of the time) when you repack it.
Your problem could be one of three things:
1) You repacked it without the original signature.
2) You repacked it with a new (personal or debug) signature.
3) You repacked it with the original signature but you modified something important (like AndroidManifest.xml).
If you want to get heavily into mods you should resign your whole system with either the debug or your personal signature.
Yes! Thank You, Renata! That was it - problem solved!

[GUIDE] Install custom fonts via flashable zip on AOSP 4.3 ROMs

I posted this in a ROM thread, but figured it might be useful to others who run 4.3 custom ROMs and want to change their stock system font (apparently users have been getting bootloops when trying to use an app to change the font).
Requirements:
1. Must be rooted.
2. Must have a custom recovery for flashing the zip (so, at this time, only devices with pre-MF3 firmware).
1. Download the font changer flashable zip template that I put together here: http://www.mediafire.com/?3xqzzuov9uhunr5
2. Get a hold of the font you want to change to, making sure it's in *.ttf format.
3. Rename the font to Roboto-Regular.ttf. If the font you downloaded has a Bold variant, download it rename it to Roboto-Bold.ttf.
4a. If you're on your computer, use 7Zip/WinRAR to drag and drop the fonts you just renamed to the "system/fonts" folder within my template. If you renamed them precisely as I specified above, they should overwrite the two existing files of the same name. If your font doesn't have a Bold variant, you don't need to worry about the existing Roboto-Bold.ttf file in the archive (it's the stock bold font from 4.3 ROMs).
4b. If you're doing this from your phone (like I always do), either use Zarchiver (Free app in the Play Store) to perform the same process as described in Step 4a, or just use Root Explorer or something similar to unzip the entire template zip, drop the new fonts in the respective folder, and re-zip the template.
5. Flash away!
I've been using this method (within a custom GAPPs package that I maintain for myself with other customizations like clear GAPPs, etc.) for awhile now, and it's always worked without fail.
In case you're curious, the "custom" font that I use is just the Roboto-Light.ttf that is already included in the stock 4.3 /fonts folder. It's just a bit thinner than the stock font, and just looks cleaner IMO. If you want to try this one out, just flash my template zip without making any changes
I tried this method but it just results in a bootloop. I have this RobotoCondensed4.3.zip that I downloaded from somewhere and it's worked on all the roms I've used but replacing the fonts inside the zip doesn't work for me. and if I flash it after using your method it fixes the bootloop. any ideas? I'm trying to flash the Droid Sans font
deadenz said:
I tried this method but it just results in a bootloop. I have this RobotoCondensed4.3.zip that I downloaded from somewhere and it's worked on all the roms I've used but replacing the fonts inside the zip doesn't work for me. and if I flash it after using your method it fixes the bootloop. any ideas? I'm trying to flash the Droid Sans font
Click to expand...
Click to collapse
Are you flashing this on a fresh ROM install before booting for the first time? That's what it was meant for (there are no permissions-fixing in the updater-script. Can you post that zip you're talking about? I should be able to figure out what exactly it is that is causing it to "fix" the bootloop after using my method.
CPA Poke said:
Are you flashing this on a fresh ROM install before booting for the first time? That's what it was meant for (there are no permissions-fixing in the updater-script. Can you post that zip you're talking about? I should be able to figure out what exactly it is that is causing it to "fix" the bootloop after using my method.
Click to expand...
Click to collapse
no, I don't think I've flashed it on a fresh install. I'll attach a link for the zip.. and if you can figure out how to add the font droid sans to this zip instead of roboto condensed that would be great. also what I like about this zip is that it will change every font on the phone, even the fonts in chrome which nothing else I've tried will do that.. I was using iFont but that didn't change fonts in chrome
RobotoCondensed_4.3.zip (502 KB)
https://mega.co.nz/#!HFti0aRJ!E4fZiWBKIC2zh92YRVOqzlwEOAVJDqgP-XnEO04BxCM
any luck?

Custom battery image

In the jelly beans thread Beanstown106 posted a link to batter image mods to change the picture has anybody got these to work and if so could you explain how I've tried moving systemui.apk and tried flashing them via safe strap and I get nothing
Sent from my SM-N900V using Tapatalk
I am having the same problem, but I did find a workaround. Here's what I did:
1. Copied the SystemUI.apk to my extSDCard/download folder, then to my PC from there (I reversed the process for putting it back)
2. Changed the .apk to .zip
3. Extracted the downloaded battery zip file
4. Dragged dropped the images from the downloaded file into the SystemUI.zip. (Making sure to NOT change anything else)
5. Renamed SystemUI.zip back to SystemUI.apk
6. Using Root Explorer, made a copy of the original SystemUI.apk to SystemUI.apk.bak.
7. Copied my modified SystemUI.apk back into it's original location, overwriting the original one.
8. Reboot
I can't say for sure that this will work for you, but I was able to successfully make the change on mine.
I'm still trying to figure out why flashing it through SS didn't work. When I did the install, it gave no errors (that I could see) and showed successful. When I booted back up, I still had the default icon.
Hope this is helpful

Categories

Resources