Need help..
Sent from my GT-N7000
========================
Rom:
Leaked JB 4.1.2
Kernel:
Philz 2.7
========================
look for a theme in the theme section and flash it.
easy peasy.
extract systemUI.apk from your phone to PC
extract the apk using 7z
go to res/drawable-xhdpi folder.
look for the Icon of that BAR.
edit the picture to your liking (whatever color or make a new one of the same dimension with no background)
now
open the systemUI.apk using 7z (just open donot extract this time)
navigate to res/drawable-xhdpi folder.
drag and drop the modified picture to replace the old one. (names should be same)
push back to the /system/app folder and restart system UI or reboot.
**** make sure you need to have backup of the stock systemUI on the phone incase you have FCs
azzledazzle said:
look for a theme in the theme section and flash it.
easy peasy.
Click to expand...
Click to collapse
I'm not that lazy..I'm trying to make mw own theme
Sent from my GT-N7000
========================
Rom:
Leaked JB 4.1.2
Kernel:
Philz 2.7
========================
nokiamodeln91 said:
extract systemUI.apk from your phone to PC
extract the apk using 7z
go to res/drawable-xhdpi folder.
look for the Icon of that BAR.
edit the picture to your liking (whatever color or make a new one of the same dimension with no background)
now
open the systemUI.apk using 7z (just open donot extract this time)
navigate to res/drawable-xhdpi folder.
drag and drop the modified picture to replace the old one. (names should be same)
push back to the /system/app folder and restart system UI or reboot.
**** make sure you need to have backup of the stock systemUI on the phone incase you have FCs
Click to expand...
Click to collapse
What name of the icon? I cant fine it
Sent from my GT-N7000
========================
Rom:
Leaked JB 4.1.2
Kernel:
Philz 2.7
========================
check in framework-res.apk.. not sure. it used to be in lidroid-res.apk for themed ones.
found a few in framework like
button_onoff_indicator_on
btn_toggle_on.9
the shape is a bit diff so not sure
Doesn't a png that set the color.
It's just a .xml file that it need to edit
If I remember correct you can find it at systemUI/res/layout/tw_quick_setting_button.xml
Just edit textcolor value as your choice
Ciao
that only has the background color not the color when its active like in this case its green. can that be changed to blue by editing xml? png definitely changes it
Are you sure?
Hmmm will try it out
hey , i have extracted the systemui.apk using 7zip , then when i tried opening xml files using notepad++ it showed those stuff , can you help me ? : ) even oriflax modifications , opening his xml files showed me that too
You can't edit xml file like this. You need to decompile it using apk tool then edit the xml and recomplile
nokiamodeln91 said:
You can't edit xml file like this. You need to decompile it using apk tool then edit the xml and recomplile
Click to expand...
Click to collapse
thank you , i decompiled it , edited it and then while recompiling it it gave me hundreds of invalid resource directory errors ... i had to pull out classes.dex earlier but put back in after editing ... any ideas ?
Don't get. Dex file when using apk tool. Don't mod the apk using 7z . starts fresh
Related
Hi,
i'am searching for a guide how to manipulate correctly the framework-res.apk.
All ways i have tested fails.
I would modify some symbols in Notification bar (battery 1%) but all Time the my Phone run into bootloop or all Application Crashes after Startup.
I've tryed Apk Manager 4.9 / and Manualy with apktool.
Help plz .....
what i did :
1-extract apk (i use 7zip/WinRAR)
2-edit/replace image file(s)
3-repack with zero compression level ('store' level)
4-sign the apk
5-replace file using apk or create flashable recovery zip.
regards.
signing the framework-res.apk will not work.. will make the device go into bootloop
what you need is extract the framework-res.apk using apktool and edit the things you want and then compile it again using apktool .... now open the original framework-res.apk and replace the file resources.arsc with the edited compiled one..
this way you will retain the signature of the original framework-res.apk
PapaDocta said:
signing the framework-res.apk will not work.. will make the device go into bootloop
what you need is extract the framework-res.apk using apktool and edit the things you want and then compile it again using apktool .... now open the original framework-res.apk and replace the file resources.arsc with the edited compiled one..
this way you will retain the signature of the original framework-res.apk
Click to expand...
Click to collapse
But when i add some new Files and Edit some XML the Sign will be Corrupted ?
no it won't...
You need to do two copies.. the original file and the moded one...
1. make a backup of the original file
2. extract the original file using apktool
3. edit and modify anything you like
4. compile the edited file
5. rename the compiled file to framework-res.zip and take the modified resources.arsc
6. using winrar or 7zip open (to view not extract) the backed up framework-res.apk
7. place the moded resources.arsc into the backed up framework-res.apk
by doing this you retain the original signature of the backed up file and not breaking it..
Thx, will test it ;-)
kowalski99 said:
But when i add some new Files and Edit some XML the Sign will be Corrupted ?
Click to expand...
Click to collapse
Android system, signs system apk's on boot, you shouldnt sign them
Sent from my Desire HD using Tapatalk
My signed apk just work well.
AFAIK, we only cant re-sign htc's apk.
PapaDocta said:
signing the framework-res.apk will not work.. will make the device go into bootloop
what you need is extract the framework-res.apk using apktool and edit the things you want and then compile it again using apktool .... now open the original framework-res.apk and replace the file resources.arsc with the edited compiled one..
this way you will retain the signature of the original framework-res.apk
Click to expand...
Click to collapse
The right approach always depends, what you want to change. There is no need to decompile, if you only change a few standard png. If you change xml in values folder like color, styles or arrays, you can certainly not delete resources.arsc - resources have nothing to do with the signature anyway. So if you want to play safe, you should insert the original Meta-Inf (signature) and Android Manifest after compile. It is also recommended to zipalign the final apk in order to reduce RAM usage.
thanks he_stheone64 for the clarification.. i reached that conclusion based on my own research on the net and yeah i used to change the XML files to add language support and that the only way that worked with me..
And be sure to have a working and up-to-date sdk before trying to use apktool...
First, using a old sdk release i got a partially working result (few graphics bugs and strange reboots), then with a badly updated sdk on top off the old i got apktool making many errors. Finally, re-installing the last sdk from start i got apktool and my resulting apk working correctly.
Hi all,
Trying to mod the framework for the first time.
I have no problem replacing the png. But when i try to modify the xml, i get bootloop.
I used the apk manager (4.9) to decompile the apk, then edit one xml before i recompile. I did notice that the recompiled apk is at least 2MB smaller than the original.
Am i missing a step here?
Sent from my GT-P1000 using XDA Premium App
Hi
yap ,,,the generated apk is unsigned...and no sign for system apk..so you have to copy by drag & drop the following files from the unsigned apk onto the original apk via WinRar and choosing ZIP archive format, NORMAL compression method.
- resources.arsc file
- res folder
- classes.dex file if exisit in the non-system apks
hope that help
good luck
Galaxyer said:
Hi
yap ,,,the generated apk is unsigned...and no sign for system apk..so you have to copy by drag & drop the following files from the unsigned apk onto the original apk via WinRar and choosing ZIP archive format, NORMAL compression method.
- resources.arsc file
- res folder
- classes.dex file if exisit in the non-system apks
hope that help
good luck
Click to expand...
Click to collapse
Ah,
I was thinking this as a possible workaround so it looks like it is thr solution?
Just a confirmation, if i change the battery_charging.xml, then i should compile, then extract out the battery_charging.xml from the recompiled framework-res.apk and insert into the original, signed framework-res.apk?
Sent from my GT-P1000 using XDA Premium App
I tried taking the compiled xml ( that defines the animation of battery charging icon on the status bar), put into the original framework-res.apk, and end up with non existent icon for the battery charging. Everything else remains working though.
What could have gone wrong?
Sent from my GT-P1000 using XDA Premium App
Hi guys,
im currently using netdrg`s sense theme http://forum.xda-developers.com/showthread.php?t=1048792
Now i changed all the green elements of the framework-res.apk to blue. Ive done everything so far, but i have no clue how to edit the color of the progress bar. (the bar when u change the volume, download something and so on...)
Ive heard that u have to edit an xml file, but as i have no clue about editing these files, i want to ask for a little favour.
Ive attached the xml file, and the color which i will use is 1761ab (hex).
So ill thank the guy who will do this for me a thousand times and i can share the theme with you afterwards!
lg l
In order to edit this xml file you need to decompile framework-res.apk. You can use apk_manager. Once the framework has been decompiled you can easily change the hex color for the progress bar (remember that the first 2 digit are for alpha channel). After that you need to recompile the framework. Actually there is another way to do that, but it‘s a bit triky as you need to modify the xmls file by using an hex editor..
If you want i can modify and compile the xml attached for you! Let me know m8
hey, thanks for your answer.
I put the framework-res.apk in the "place here for modding" folder, opened the script and hit 9 to decompile.
Then i edited all the values in the xml file in the "projects" folder and saved it.
Now i compile it, delete the file i edited in the "keep" folder and that other file mentioned.
Now i tried to apply the compiled framework_res.apk back to the system which results in a bootloop, what am i doin wrong?
soulcrash said:
hey, thanks for your answer.
I put the framework-res.apk in the "place here for modding" folder, opened the script and hit 9 to decompile.
Then i edited all the values in the xml file in the "projects" folder and saved it.
Now i compile it, delete the file i edited in the "keep" folder and that other file mentioned.
Now i tried to apply the compiled framework_res.apk back to the system which results in a bootloop, what am i doin wrong?
Click to expand...
Click to collapse
Ok, you are getting close to the solution
Once you got the unsignedframework.zip inside the place-apk-here-for-modding folder, you have to do a little trick in order to get it working...
Unzip all the content of the "unsignedframework-res.apk". You should have 5 objects (3 folders, 2 files).
Zip these files with Winrar/Winzip (whatever) but you must choose "No compression (store)" method to zip it.
Rename this zip into "framework-res.apk".
Put it into an update.zip and it should be OK to flash trough the recovery mode.
keep me updated
Hi, I am trying to make changes to an icon theme but keep getting "Wrong theme format" error in the Miui v4 theme manager.
I used the same process I did back on GB that worked... renamed the .mtz to .zip, extracted it, renamed icons to icons.zip, extracted it. Then I edited .png's in the icons folder, zipped all the .png's into a file called icons.zip and removed the .zip by renaming icons.zip to just icons. Then I zipped the files: description.xml, icons, and preview folder. I renamed this .zip to a .mtz, pushed it to my phone and tried to apply the theme but got the error. I've searched but haven't found any solutions.
Has the icon theme format changed for v4? Thanks for any help.
Just take a MIUI icons set (like Cain HD for ex)
- open the .mtz using 7zip (no need to rename or change extension)
- double click on "icon", drag and drop ur icons.
- then close everything, it will ask u if u want to update/refresh the file. say YES and that's it
Raulinho7 said:
Just take a MIUI icons set (like Cain HD for ex)
- open the .mtz using 7zip (no need to rename or change extension)
- double click on "icon", drag and drop ur icons.
- then close everything, it will ask u if u want to update/refresh the file. say YES and that's it
Click to expand...
Click to collapse
I would've tried this method but unfortunately I have a Mac and haven't been able to find a good 7zip equivalent :/ Any idea why it worked when I decompressed/compressed mtz's on GB but not ICS? The format all seems the same.
iamchrisc said:
I would've tried this method but unfortunately I have a Mac and haven't been able to find a good 7zip equivalent :/ Any idea why it worked when I decompressed/compressed mtz's on GB but not ICS? The format all seems the same.
Click to expand...
Click to collapse
My guess is that somehow you didn't package it correctly. Double check to see if that's the issue.
i did it this way
if i have an iconpack in wrong size, i first resize the icons
then i mark all icons and add them to an archive with 7zip
now i take the icons.zip and the description.xml add it to a new zip
inside the zipfile, i rename the icons.zip into icons and you are ready^^
Have you tried using the 'store' option - I.e. no compression?
Changing the extension while inside the theme zip will also help to avoid certain issues.
Well I was able to get it working by using StuffIt Archive Manager to replace icons without uncompressing/compressing the mtz. Still strange it doesn't work when I uncompress it. I'm positive I package it back in the same way, I've triple checked. Guess I'll just have to use the StuffIt Delux trial for now.
How To Theme TouchWiz Based ROM to look like AOSP!!
Ok guys I decided to share my theming method with you guys. This is mainly intended for all developers and or ROM developers!
If you have TouchWiz based ROM (Some devices below) you can theme it to have an AOSP feel to it.
Devices:
Galaxy SII
Galaxy SIII
Galaxy Note
Galaxy Note II (Tested by Me )
Some others as well...
Whats Needed:*APKTool DOWNLOAD HERE
*JAVA DOWNLAOD HERE
*7-ZIP DOWNLOAD HERE
*TouchWiz Base ROM
*SystemUI.apk (in system/app) **FROM TOUCHWIZ ROM**
*SystemUI.apk (in system/app) **FROM AOSP or CM10 ROM**
*Framework-res.apk and TWFramework-res.apk (in system/framework) **FROM TOUCHWIZ ROM**
*Zipalign tool
*Root Explorer App (Get from Google Play Store)
*Holo Launcher (Also get from Google Play Store)
Lets Get Started:Follow all of the steps below carefully and you should have an AOSP Themed TouchWiz ROM in no time
1. Download the Holo Launcher from the Google Play Store.
(When you run the launcher you will see that you will have an AOSP themed launcher and you will have AOSP system icons [messaging, phone, settings, ect..])
2. You need to install APKTool next. (If you already have this installed then skip this step)
*Download the APKtool files (link above)
*Put the files into your C drive. Make a folder in the root of your C drive called apktool.
*All of your files should go inside that folder (apktool)
*Go to CMD or Command Prompt and type in
Code:
cd C:\apktool
*That should redirect you to the apktool. If it worked then lets move on...
3. Get the framework-res.apk and TWFramework-res.apk (in system/framework) and place it in the apktool folder.
4. In the Command Prompt you will need to direct CMD to the APKtool folder. Then you must install the framework files by doing:
Code:
apktool if framework-res.apk
and
Code:
apktool if twframework-res.apk
Now your framework files are successfully installed. If you have an error in the CMD window then you must check your JAVA.
5. Now get your systemui.apk files from both AOSP (CM10) and TouchWiz ROM. Rename the AOSP systemui.apk to systemuiaosp.apk (so you dont get the touchwiz and aosp systemui's mixed up)
6. Make a backup of the TouchWiz systemui.apk in another folder called "Backup" ****YOU WILL NEED THIS LATER*****
7. Now you should have both systemuiaosp.apk and systemui.apk in the apktool folder. Now you must decompile both files by using these commands:
Code:
apktool d systemuiaosp.apk
and
Code:
aptkool d systemui.apk
You should have 2 more folders (systemuiaosp and systemui).
8. Here comes the actual theming of the systemui. Open both systemuiaosp and systemui folders side-by-side. And now you need to navigate to the drawable-xhdpi folder in both.
***FOLLOW THESE NEXT STEPS CAREFULLY OR YOU WILL HAVE AN ERROR***
9. Find the files you want to replace. They should all be PNG files. DO NOT JUST ADD PNG FILES FROM THE SYSTEMUIAOSP TO THE SYSTEMUI. YOU WILL GET ERRORS WHEN COMPILING THE FILE!! There are XML files (we will not edit in this tutorial) that use those PNG files with those extension names. So you can't just add files from one to another. For example:
If you have an icon you want to change but its only for that AOSP then it wont run on the TouchWiz. If you have a WiFi icon that has a name of AOSP_Wifi_1 and on the other systemui it says TOUCHWIZ_Wifi_1 you cant just delete the one that says TouchWIZ_WIFI_1 and replace it with the AOSP one. The XML files dont tell it to run the AOSP_WIFI_1. So you must ONLY REPLACE FILES WITH SAME EXTENSION NAME!!
10. You can go ahead and transfer files from the SystemuiAOSP to the systemui. Note what i said above!! If you have lets say 6 wifi icons for systemuiAOSP and 6 icons for systemui (touchwiz) you can rename the AOSP PNG files to match the TouchWiz ones so the XML files will know what to run.
I personally suggest only transferring Wifi Icons, Battery Icons, and Signal Icons. These are your most important ones to transfer! You can also transfer the Bluetooth and Airplane mode icons also.
11. After you have transfered the files over and you feel like you have done it correctly then you can go ahead and Compile the SystemUI folder by using this code:
Code:
apktool b systemui semidone.apk
12. If you did all the steps correctly above then apktool will build the apk file with no issues. If you have errors then you did not pay attention carefully. (You may want to try another CM10 ROM to get icons from).
13. Now here is where 7-Zip and your backup file comes into play. Open 7-Zip twice (2 windows). In the first window direct 7-zip to the semidone.apk file. And the second one to your backup file which should be SystemUI.apk (in the backup folder).
14. In the SystemUI.apk click on the RES folder and then find the Drawable-xhdpi folder. Delete the entire Drawable-xhdpi folder. Now in the other window (semidone.apk) go to RES and then transfer the entire Drawable-xhdpi folder into the SystemUI.apk window.
15. Now your SystemUI.apk in the Backup folder is your new modded one. But before you can use it you must zipalign it using any zipalign tools out there. I just use DSIxda's kitchen to do it since I make ROMs with it.
16. Now you can go ahead and transfer the SystemUI.apk onto your phone's SD card.
17. Download Root Explorer. Now go ahead and navigate to your SD card and click the SystemUI.apk file and then click copy or move. (whichever one you like).
18. Now navigate to your system/app folder and paste and overwrite the original one. (You will need to set root explorer to Read/Write). Now you can go ahead and reboot your device.
If you did everything correctly you should now have a themed launcher and a themed status bar with AOSP Icons!
I don't ask for donations so if this tutorial helped you then please hit that Thanks button!
MINE
Mine AGAIN
I was just looking for a thread like this... not sure if i have enough time and will to do it but i am very glad you post it!
thanks a lot!!!
ExcaliberX said:
I was just looking for a thread like this... not sure if i have enough time and will to do it but i am very glad you post it!
thanks a lot!!!
Click to expand...
Click to collapse
Your welcome. I hope it works for you!
So are there any screenshots showing exactly what changed? I'd like most of the UI to have an AOSP feel to it not just some parts. Does this theme all or just bits and pieces?
Shmi117 said:
So are there any screenshots showing exactly what changed? I'd like most of the UI to have an AOSP feel to it not just some parts. Does this theme all or just bits and pieces?
Click to expand...
Click to collapse
Well as said above it themes the launcher (holo) and the status bar icons are aosp.
thanks I was hoping to see where you find the blue background bars in the S2 in the settings menu SecSettings.apk or trframework or framework or systemUI I have looked everywhere and changed colors of .9pngs forever and it never phased them. obviously I never found the right one to change. would you happen to know and could you post here or pm me thanks. have a decent ROm that doesnt really need blue gray bars dominating the screen.