I'm currently working on a Honeycomb theme for ICS. I really prefer HC's UI style but I still want the features of ICS. I'm running into some obstacles though.
I'm directly modifying SystemUI.apk and framework-res.apk. Is there a better way than this?
9-patch PNGs are giving me issues. I've figured out how to use draw9patch but I can't get the PNGs to compile properly. I need one for the notification clock panel but I can't figure out how the 9-patch should be because I can't decompile either.
I've searched for about 3 days but I can't find help on how to decomiple and then recompile ICS APKs with apktool. Does anyone have a good source?
Would anyone else be interested in this mod? I'll try to figure out how to make a CWM ZIP if there's demand.
armada786 said:
I'm currently working on a Honeycomb theme for ICS. I really prefer HC's UI style but I still want the features of ICS. I'm running into some obstacles though.
I'm directly modifying SystemUI.apk and framework-res.apk. Is there a better way than this?
9-patch PNGs are giving me issues. I've figured out how to use draw9patch but I can't get the PNGs to compile properly. I need one for the notification clock panel but I can't figure out how the 9-patch should be because I can't decompile either.
I've searched for about 3 days but I can't find help on how to decomiple and then recompile ICS APKs with apktool. Does anyone have a good source?
Would anyone else be interested in this mod? I'll try to figure out how to make a CWM ZIP if there's demand.
Click to expand...
Click to collapse
Pm me , I can give you my work shop that I setup for Ics.
And there is a better draw 9 patch tool , but it is not free.
But I gotta tell you now, I can help but I won't hold your hand with every step.
Don't have the time and the time I got goes to the theme building for flexreaper.
This thread picks up where "[MOD] [SYSTEMUI] Enable Wifi Toggle / Reconfigure and theme toggles [ICS Blue!]" leaves off. See post #174
Alright guys so here's the deal. The *proper* way to remove the location icon, battery full notification, and/or clock is through a smali edit. Smali files are contained in dex files and jar files. Our stock rom is an odexed rom meaning that the dex file is specifically optimized for our device; its also signed. So in order to change anything, the steps are:
1) Pull core.jar, ext.jar, framework.jar, android.policy.jar, services.jar, services.odex
2) Disassemble the services.odex file
3) Decompile smali files and compare decompiled source to smali code to find correct values
4) Make edits to smali
5) Recompile smali files
6) Repackage odex file
7) Pull signatures from original odex file
8) Use them to resign new odex file
9) Push back to phones
10) Repeat for each version of the statusbar mod
As you can see this takes a very long time and is rather tedious. Work is pretty significantly reduced by using a deodexed rom.
I would like feedback from people regarding whether beans-only support is suitable or if this project should be elevated to a full rom. I have a feeling that even if I do just these couple of edits there will be more that require deodexing the services.
More detailed POLL options
1) Continue work with Beans support only (immediate)
2) Elevate project to full ROM status and introduce a new rom to the scene (requires time and preferably a team)
3) Just do the battery full mod and the location mod and forget any other status bar icon mods. (including removing battery/clock)
4) Leave the statusbar icons alone until a source-built rom is made available
5) (forgot to include) "Hack" solutions such as removing the png files
Delete
#3
Sent from my Commodore 64..
READY.
load"*", 8,1
1
Edit: Definitely just support deodexed roms. Way too much work for odex and if people are into modding their phone they should be deodexed anyway Imo.
Sent from my SGS3
3
Sent through Mental Telepathy...or my TF201
I say just provide support for Deodexed roms (not specifically only Beans Rom though). No reason to put you through all that time and effort of working on a stock Odexed rom.
Thank you again for your work. It is certainly appreciated by us all!
Hypnosis4U2NV said:
#3
Sent from my Commodore 64..
READY.
load"*", 8,1
Click to expand...
Click to collapse
Off topic but I like that Sig was my first computer
Sent from my SCH-I535 using xda premium
1!!!
Sent from sexy a** Galaxy S III
i vote whatever is easier for you. i am sure i am with the many here who appreciate what you've done and will appreciate what you will do in the future
but i asked in another thread and just saw you mention it but i tried playing around with some xml files and wasn't able to remove clock from status bar so a how to would be greatly appreciated if you or another more qualified individual has the time. if not no worries
i say 1 LOL
We all at least most of us edit and play with apk's and jar files...so i found the past days a great and i mean GREAT way to edit those files..the app you can used called Virtuous Ten Studio and is developed by Diamondback this app is a great editor for apk's...i just play with it right now to just for curiocity add the navigation bars like the thread by Rittik said...i just open the framework-res.apk to this application it decompiled it i edit what i have with the easy of a explorer...compiled it without any problems by itself and poof...ready to use...great app you who edit apk's should really look at it...the link to the app is here
[IDE] Virtuous Ten Studio - The next level of reverse engineering apps | 2.2.11.8210
Run on Windows only :crying:
Totally perfect i am uaing aince release. Plus if on windows 7 you can reopn kernels and edit some stuffs like boot logo and some scripts without installing the long procedure of Dxdia+cygwin..so its a win win software pretty nice for begginers who are having a problem decompiling and recompiling apk
Just a notice. Please dont try recompiling SystemUI with this..it doesnt recompile the smali correctly which makes the apk corrupt so for that please use apktool
-Rik[Rittik]
Well i have been working with one of my Brother for making some CM10 themes. Well there are many Tutorials like Making a Cyanogen Mod environment to make a Theme
Or to use eclipse and sdk. All are very time consuming according to me. So i have made all these things easy!
CREDITS
SunnyLoveSalman--Thanks bro!
Click to expand...
Click to collapse
The things you need
•Java JRE(Update it please)
•Apktool and Aapt (preferrably 1.5.2 or newer versions)
•Notepad++ for editing xml
•A bit of time
Click to expand...
Click to collapse
Ok so now the guide--
•Download the apktool and appt and place it in C:/WINDOWS/(here)
• Now after copying all the files.
• Go to Run and Start Up Cmd.exe
•Now we need to install our CM10 framework i used franework of My ROM or you can use FrozenPika or Shendu preferrable any 4.1.2 framework should work.
For this we have to write this code in cmd
Code:
apktool if (framework directory path)
Example-- apktool if E:/Rittik/CM10-HuaweiU8800pro/framework/framework-res.apk
After its done.
• Now extract My Rar(Template) name it to something Suitable
•Now inside edit all PNG you want to change any xml files you want to change for changing name or putting new icons excectra do it now.
•After you feel your Theme is ready to test.
•Now in CMD(If you closed last session then input framework as shown above again to be sure)
Put these code for compiling your theme.
Code:
apktool b (folder name)
Example-- apktool b CM10
Now if you have done everything correct it should show "Done!"
• Now you will get your Apk inside build folder.
•Sign the apk and install and test it.
Click to expand...
Click to collapse
So thats it actually ...pretty simple no need for Environment no need for ubuntu no need for eclipse!
DOWNLOAD
Code:
CM10 Theme template-- [url= d-h.st/j9S]Press Me![/url]
Notes
i have added the ability to change lockscreen too which are usually overlooked in most of the CM10 themes out there.
Click to expand...
Click to collapse
Any qwestions? Please Ask it below.I will try to answer it ASAP.
-Rik[Rittik]
I Will try this
Thanks
HOW TO ......
Rittik said:
Well i have been working with one of my Brother for making some CM10 themes. Well there are many Tutorials like Making a Cyanogen Mod environment to make a Theme
Or to use eclipse and sdk. All are very time consuming according to me. So i have made all these things easy!
CREDITS
The things you need
Ok so now the guide--
So thats it actually ...pretty simple no need for Environment no need for ubuntu no need for eclipse!
DOWNLOAD
Code:
CM10 Theme template-- [url= d-h.st/j9S]Press Me![/url]
Notes
Any qwestions? Please Ask it below.I will try to answer it ASAP.
-Rik[Rittik]
Click to expand...
Click to collapse
RITIK how to download these applications......can i google it ???
You need a pc for running apktool and yea xda has these.
-Rik[Rittik]
Hello, I'm an owner of XPERIA Z1, using the latest Customized Lollipop firmware (.242), struggling very much to deodex his device. I've tried 2 different methods, which both lead to problems:
1.) Using a flashable zip provided by venkat kamesh, in this thread: link. After flashing, I don't face any prominent problems, like FCs on system apps e.t.c. But whenever I'm trying to launch any app requiring OpenGL ES 2 , I get an error message/toast notification, about that, saying that my device is incompatible. And Google Play refuses to even show these apps in the search results, listing them as incompatible.
2.) Modifying the flashable zip to use my own /app, /priv-app, /framework, and even /vendor/apps fully deodexed folders, leading to a bootloop, and refusing to show more than 2 seconds of the bootanimation before rebooting. I thought that some package may be incompatible with my firmware, but this theory can't be proved yet.
*I've tried fixing permisions using both terminaland adb using this method: link. No result either.
Is there any other solution? Thank you!
NFS_FM said:
Hello, I'm an owner of XPERIA Z1, using the latest Customized Lollipop firmware (.242), struggling very much to deodex his device. I've tried 2 different methods, which both lead to problems:
1.) Using a flashable zip provided by venkat kamesh, in this thread: link. After flashing, I don't face any prominent problems, like FCs on system apps e.t.c. But whenever I'm trying to launch any app requiring OpenGL ES 2 , I get an error message/toast notification, about that, saying that my device is incompatible. And Google Play refuses to even show these apps in the search results, listing them as incompatible.
2.) Modifying the flashable zip to use my own /app, /priv-app, /framework, and even /vendor/apps fully deodexed folders, leading to a bootloop, and refusing to show more than 2 seconds of the bootanimation before rebooting. I thought that some package may be incompatible with my firmware, but this theory can't be proved yet.
*I've tried fixing permisions using both terminaland adb using this method: link. No result either.
Is there any other solution? Thank you!
Click to expand...
Click to collapse
Are you deodexing every odexed file? I normally only deodex those files whose smali I'm going to mod. There's not much point deodexing anything else..
Ticklefish said:
Are you deodexing every odexed file? I normally only deodex those files whose smali I'm going to mod. There's not much point deodexing anything else..
Click to expand...
Click to collapse
Well yes, I just suppose that a fully odexed or deodexed system is more stable than a mix of those two.
Is there any red-line that I must not pass? Like a paricular .apk or .jar file, for example. Also on KitKat, we had to have fully deodexed system for some mods to work (like the 4K Mod by Chocolatetrain). This restriction doesn't exist on Lollipop, which utilises ARM?
NFS_FM said:
Well yes, I just suppose that a fully odexed or deodexed system is more stable than a mix of those two.
Is there any red-line that I must not pass? Like a paricular .apk or .jar file, for example. Also on KitKat, we had to have fully deodexed system for some mods to work (like the 4K Mod by Chocolatetrain). This restriction doesn't exist on Lollipop, which utilises ARM?
Click to expand...
Click to collapse
No. You can, in theory, deodex as many or as few APK and JAR files as you like.
The whole point of deodexing is to make it easy to change smali files. It doesn't affect stability or performance, it's solely for modding. I normally deodex SystemUI.apk, framework.jar and android.policy.jar then leave the rest of the odexed files alone.
(Well, technically a deodexed ROM takes longer to boot if the Dalvik cache has been wiped but that's about it.)
The only reason I ask is that, if you only need to deodex a few files, there are various tools available for deodexing individual files instead of whole ROM's. I could mention that Tickle My Android can do it but that'd be a bit cheeky.
Oh, looking at that 4K mod you mentioned, it doesn't actually need the whole ROM to be deodexed. But there are so many files that are being replaced that do need to be deodexed that it's probably just simpler to say the entire ROM needs to be.
Ticklefish said:
No. You can, in theory, deodex as many or as few APK and JAR files as you like.
The only reason I ask is that, if you only need to deodex a few files, there are various tools available for deodexing individual files instead of whole ROM's. I could mention that Tickle My Android can do it but that'd be a bit cheeky.
Click to expand...
Click to collapse
OK, thank you for the answer, I will try then deodexing just the essentials: SystemUI.apk, framework.jar, framework-res.apk and SemcGenericUxpRes.apk
Final question, as I see in your program's thread, Lollipop editing/deodexing is not supported yet, so do you recommend an automate tool for the deodexing process (like JoelDroidLollipopBatchDeodexe or any other), or the manual method?
NFS_FM said:
OK, thank you for the answer, I will try then deodexing just the essentials: SystemUI.apk, framework.jar, framework-res.apk and SemcGenericUxpRes.apk
Final question, as I see in your program's thread, Lollipop editing/deodexing is not supported yet, so do you recommend an automate tool for the deodexing process (like JoelDroidLollipopBatchDeodexe or any other), or the manual method?
Click to expand...
Click to collapse
TMA does support deodexing of Lollipop APK files...I just can't guarantee that it'll be able to deodex everything. Guess I need to reword the OP....lol
NFS_FM said:
OK, thank you for the answer, I will try then deodexing just the essentials: SystemUI.apk, framework.jar, framework-res.apk and SemcGenericUxpRes.apk
Final question, as I see in your program's thread, Lollipop editing/deodexing is not supported yet, so do you recommend an automate tool for the deodexing process (like JoelDroidLollipopBatchDeodexe or any other), or the manual method?
Click to expand...
Click to collapse
you also can use advance apktool (nice tool) , but you will have to update the apktool to the last one i think its the 2.0.0because is not updated.. cheers
juanpirulo said:
you also can use advance apktool (nice tool) , but you will have to update the apktool to the last one i think its the 2.0.0because is not updated.. cheers
Click to expand...
Click to collapse
Hm... I will try that too if my (already) deodexed apks won't work, thank you.
Please ask in the Q&A section for your device.
Cross device section is for development only
Thread closed