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 ?
Related
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
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
I am trying to create a custom theme, by modifying the framework-res.apk. I have been successful in porting some really cool .png files, but my problems start with the de-compiling & recompiling the .apk so I can modify the .xml & .9.png files. It seems every time I recompile my .apk it sends me in to a boot loop. I have used both APKTool and APK Manager with no luck. Here are my steps:
APK Manager:
1. Use a root explorer to copy the framework-res.apk.
2. Paste the file on my sd card.
3. Copy the file and paste it in the "place-apk-here-for-modding" folder.
4. Choose option 9 for compile.
5. Open the .xml file with Notepad++.
6. Recompile .apk using option 11.
7. Yes to "is this a system file?"
8. Yes to "keep original files & signatures"
9. Delete the files I modified from the "keep" folder and the resources.ascr file.
10. Finish the build of the .apk.
11. Copy & paste the modified .apk back to my sd card.
12. Rename the file from unsigned-framework-res.apk to framework-res.apk.
13. Use root explorer to cut & paste the modified to my /system/framework folder.
14. Reboot.
I now end up in a boot loop what am I doing wrong??
Rockstar52 said:
I am trying to create a custom theme, by modifying the framework-res.apk. I have been successful in porting some really cool .png files, but my problems start with the de-compiling & recompiling the .apk so I can modify the .xml & .9.png files. It seems every time I recompile my .apk it sends me in to a boot loop. I have used both APKTool and APK Manager with no luck. Here are my steps:
APK Manager:
1. Use a root explorer to copy the framework-res.apk.
2. Paste the file on my sd card.
3. Copy the file and paste it in the "place-apk-here-for-modding" folder.
4. Choose option 9 for compile.
5. Open the .xml file with Notepad++.
6. Recompile .apk using option 11.
7. Yes to "is this a system file?"
8. Yes to "keep original files & signatures"
9. Delete the files I modified from the "keep" folder and the resources.ascr file.
10. Finish the build of the .apk.
11. Copy & paste the modified .apk back to my sd card.
12. Rename the file from unsigned-framework-res.apk to framework-res.apk.
13. Use root explorer to cut & paste the modified to my /system/framework folder.
14. Reboot.
I now end up in a boot loop what am I doing wrong??
Click to expand...
Click to collapse
You have to sign it with 12
Lenn said:
You have to sign it with 12
Click to expand...
Click to collapse
Tried it, still boot loops at the Archos screen. I then have to do a complete format & wipe reinstalling the SDK, firmware, and the root files. I don't get it.
Lenn said:
You have to sign it with 12
Click to expand...
Click to collapse
Do not sign frameworks! How many time do I have to say this! System apps do not get signed...
Now, as far as the framework, there's two things to check. First, what XMLs have you edited? Second, instead of using root explorer to copy the framework, connect to a pc and use adb to perform these commands:
Code:
su
stop
cp /system/framework/framework-res.apk /system/framework/framework-res.old
cp /sdcard/framework-res.apk /system/framework/framework-res.apk
chmod 644 /system/framework/framework-res.apk
sync
start
If it continues boot-looping, you will still be connected through adb, so you just
Code:
stop
cp /system/framework/framework-res.old /system/framework/framework-res.apk
sync
start
and it will come back up without having to reformat or anything.
If it's bootlooping even when you use the adb method to copy, then your XMLs must be reencoding incorrectly. Post a list of all XMLs you have changed.
msticninja said:
Do not sign frameworks! How many time do I have to say this! System apps do not get signed...
Now, as far as the framework, there's two things to check. First, what XMLs have you edited? Second, instead of using root explorer to copy the framework, connect to a pc and use adb to perform these commands:
Code:
su
stop
cp /system/framework/framework-res.apk /system/framework/framework-res.old
cp /sdcard/framework-res.apk /system/framework/framework-res.apk
chmod 644 /system/framework/framework-res.apk
sync
start
If it continues boot-looping, you will still be connected through adb, so you just
Code:
stop
cp /system/framework/framework-res.old /system/framework/framework-res.apk
sync
start
and it will come back up without having to reformat or anything.
If it's bootlooping even when you use the adb method to copy, then your XMLs must be reencoding incorrectly. Post a list of all XMLs you have changed.
Click to expand...
Click to collapse
I do have my system set up for adb, but for some reason it don't read my A101, it works fine for my phone. The device manager shows my A101 listed as a Gen8 ADB Device, but it don't show up when i use the command: adb devices.
With your help I did manage to replace all of the stock .png's. I also found that I don't need to edit the .xml files to do what I want to. Thanks, for so much of your help! Although I would like to replace the .9.png's also and I understand that you must de-compile the .apk in order to do so. this way I could build a custom theme.
Rockstar52 said:
I do have my system set up for adb, but for some reason it don't read my A101, it works fine for my phone. The device manager shows my A101 listed as a Gen8 ADB Device, but it don't show up when i use the command: adb devices.
With your help I did manage to replace all of the stock .png's. I also found that I don't need to edit the .xml files to do what I want to. Thanks, for so much of your help! Although I would like to replace the .9.png's also and I understand that you must de-compile the .apk in order to do so. this way I could build a custom theme.
Click to expand...
Click to collapse
Have you done this yet(from the archos support site):
Windows: echo 0x0e79 >> "%USERPROFILE%\.android\adb_usb.ini"
Macos: echo "0x0e79" >> ~/.android/adb_usb.ini
Linux: echo "0x0e79" >> ~/.android/adb_usb.ini
And disabled/reenabled debugging on the tablet?
msticninja said:
Have you done this yet(from the archos support site):
Windows: echo 0x0e79 >> "%USERPROFILE%\.android\adb_usb.ini"
Macos: echo "0x0e79" >> ~/.android/adb_usb.ini
Linux: echo "0x0e79" >> ~/.android/adb_usb.ini
And disabled/reenabled debugging on the tablet?
Click to expand...
Click to collapse
No but I will give it a try and report back.
None of my changes are taking effect??!
Still not working, just a question. I am running Win7 64bit could this be the problem?? Do I need to be on a 32bit system to do the decompiling, compiling?
Tried on my wife's 32bit system still the same. For some reason it's not compiling the .apk right.
Rockstar52 said:
I am trying to create a custom theme, by modifying the framework-res.apk. I have been successful in porting some really cool .png files, but my problems start with the de-compiling & recompiling the .apk so I can modify the .xml & .9.png files. It seems every time I recompile my .apk it sends me in to a boot loop. I have used both APKTool and APK Manager with no luck. Here are my steps:
APK Manager:
1. Use a root explorer to copy the framework-res.apk.
2. Paste the file on my sd card.
3. Copy the file and paste it in the "place-apk-here-for-modding" folder.
4. Choose option 9 for compile.
5. Open the .xml file with Notepad++.
6. Recompile .apk using option 11.
7. Yes to "is this a system file?"
8. Yes to "keep original files & signatures"
9. Delete the files I modified from the "keep" folder and the resources.ascr file.
10. Finish the build of the .apk.
11. Copy & paste the modified .apk back to my sd card.
12. Rename the file from unsigned-framework-res.apk to framework-res.apk.
13. Use root explorer to cut & paste the modified to my /system/framework folder.
14. Reboot.
I now end up in a boot loop what am I doing wrong??
Click to expand...
Click to collapse
With ApkManager did you delete the 'public.xml' folder in ..\res\values ?
waterpolo said:
With ApkManager did you delete the 'public.xml' folder in ..\res\values ?
Click to expand...
Click to collapse
No, I did not. Was I supposed to?
EDIT: Ok I did some digging and what I have found is that the file size of the original framework-res.apk is 9.32mb. Once I rebuild it whether I modified anything or not the rebuilt .apk is only 7.34mb. Upon further inspection it seems to leave out all of the "value" named folders from the newly built .apk, and it does this whether I use APKTool or APK Manager(even though I say keep files). Has anyone else had this problem?
IM having the same problem,no solution though ! i edited bools.xml but after recompiling its not there ! Anyone solution ?
if there is an apk named browser.apk and an odex file named browser.odex
if i do is modify the zip and rename the .odex to classess.dex and placing it on .apk will this be eodexing?
if so would this work on my cherry mobile titan tv/karbonn a30 ics MTK6577?
No Deodexing is something else.... If you wanna deodex then
1.) Download XUltimate (google it)
2.) Switch on USB Debugging Mode and connect phone to pc! (Dont switch on USB Transfer)
3.) Now Select pull and deodex all folders! (if this option is not there then something similar to this will be there)
4.) After deodexing all apks the place where you installed xUltimate there will appear to folder done_app and done_framework.. (Something similar... This depends on the version of xUltimate)
5.) Rename the folders to app and framework and then copy to sdcard after activating usb mode
6.) Push the folders into system folder va Root Browser! (I hope you have rooted your mobile)
7.) Reboot! You are done
*NOTE: If you get an error while deodexing delete the .odex of which it is giving error and then select deodex both folder!
death_sinker said:
No Deodexing is something else.... If you wanna deodex then
1.) Download XUltimate (google it)
2.) Switch on USB Debugging Mode and connect phone to pc! (Dont switch on USB Transfer)
3.) Now Select pull and deodex all folders! (if this option is not there then something similar to this will be there)
4.) After deodexing all apks the place where you installed xUltimate there will appear to folder done_app and done_framework.. (Something similar... This depends on the version of xUltimate)
5.) Rename the folders to app and framework and then copy to sdcard after activating usb mode
6.) Push the folders into system folder va Root Browser! (I hope you have rooted your mobile)
7.) Reboot! You are done
*NOTE: If you get an error while deodexing delete the .odex of which it is giving error and then select deodex both folder!
Click to expand...
Click to collapse
I found one on xda but link is dead can u give me a copy and does xultimate work with ics?
Sent from my Titan TV S320 using xda premium
odex is a file which makes the system load apps faster,
so you cannot modify a system app without editing the odex file,
it's like a browser with cache,
deodexing would cause the system to load each time you access a system app,
How to change status bar icons on stock odex?
There is no bad choises. Only bad results.
deodex the rom first
then root phone
extract systemui.apk to your pc
change apk extention to .zip
use winrar to extract zip
goto res/drawable-ldpi
change any png not ending in .9 keeping all file names the same
rezip everything
change extention back to apk (you will have to enable show file extentions in folder options in control panel)
put in flashable zip
flash in cwm with system mounted
iv explained this a few times now so search next time
also this method is only for changing png images - do not use it to edit anything else like xml files - you will need to decompile with apktool for that