[q] need help decompling my apk's. - One (M8) Q&A, Help & Troubleshooting

Been trying this all day with no luck. read many guides and tried various apktools, no dice. i want to port the cm11/ liquidsmooth circle battery to my gpe rom.
I know the location of the battery is in : SystemUI/src/com/android/systemui/BatteryMeterView.java.
I also read its harder to decompile cm based apk's. can anybody help me out? or at least point me to a WORKING apktool i can use?
Ive attached a liquidsmooth systemui and my gpe systemui.

Don't think it's needed to decompile at all ! Are they "normal" PNG format files (no .9.png files) then just replace them in the existing apk file and push the file to the correct system dir.
Battery is normally projected as png picture files in the systemUI - res - drawable xxhdpi folder.

Mr Hofs said:
Don't think it's needed to decompile at all ! Are they "normal" PNG format files (no .9.png files) then just replace them in the existing apk file and push the file to the correct system dir.
Battery is normally projected as png picture files in the systemUI - res - drawable xxhdpi folder.
Click to expand...
Click to collapse
the cm11 battery circle is in a java format now. i did my research lol. no idea why they decided to do that.

Yeah just chipping in my 2 cents. Never done cm themes

Mr Hofs said:
Yeah just chipping in my 2 cents. Never done cm themes
Click to expand...
Click to collapse
appreciate it. im sort of a private themer. love that circle battery but its a pain to get to.

Can imagine now yeah ! Good luck

Related

[Q] Modding CM framework-res with new battery icons.

I am trying to use percentage icons with CM nightly build. I tried to unzip it and replace icons and xml battery files but I don't get any battery icons to show up on my status bar. I was able to make my own theme by replacing icons and image files but I wan percentage battery icons. I tryied to change xml files in CM source code and recompiled it and then I gor random icons instead of my battery icons. I also tried to replace all images but then would tell me that images are missing something and will stop compile. Could somone point me the right direction on how to mod framework-res to include percentage icons
http://forum.xda-developers.com/showthread.php?t=724778
I tried it and does not work. The kitchen does wird stuff to my framework and makes the phone reboot
tritron777 said:
I am trying to use percentage icons with CM nightly build. I tried to unzip it and replace icons and xml battery files but I don't get any battery icons to show up on my status bar. I was able to make my own theme by replacing icons and image files but I wan percentage battery icons. I tryied to change xml files in CM source code and recompiled it and then I gor random icons instead of my battery icons. I also tried to replace all images but then would tell me that images are missing something and will stop compile. Could somone point me the right direction on how to mod framework-res to include percentage icons
Click to expand...
Click to collapse
In addition to changing the XML files in the /res/drawable folder, specifically:
stat_sys_battery_charge.xml
zzz_stat_sys_battery_1.xml
stat_sys_battery.xml
And adding the new png file to /res/drawable-hdpi
You MUST make sure you add resource IDs for each of your newly added png files to the /res/values/public.xml file. Otherwise, the XML has no way of referencing the new images by ID, and the likely reason why you were getting random imagines, rather than the new ones specified.
If you are manually editing and recompiling, you can then just grab the above referenced XML files and the 'resources.arsc' file from the newly built apk file and drop them in your original.
JsChiSurf said:
In addition to changing the XML files in the /res/drawable folder, specifically:
stat_sys_battery_charge.xml
zzz_stat_sys_battery_1.xml
stat_sys_battery.xml
And adding the new png file to /res/drawable-hdpi
You MUST make sure you add resource IDs for each of your newly added png files to the /res/values/public.xml file. Otherwise, the XML has no way of referencing the new images by ID, and the likely reason why you were getting random imagines, rather than the new ones specified.
If you are manually editing and recompiling, you can then just grab the above referenced XML files and the 'resources.arsc' file from the newly built apk file and drop them in your original.
Click to expand...
Click to collapse
What's the easiest way to get the resource ID's for the new images?
HeyItsLou said:
What's the easiest way to get the resource ID's for the new images?
Click to expand...
Click to collapse
Decompile an existing super battery framwork-res and pull the IDs from it's public.xml file.
You do not need to put in the ID's. You can just edit the xml files add the pics to your hdpi folder and recompile, apkmanager will make the ID's by itself.
rujelus22 said:
You do not need to put in the ID's. You can just edit the xml files add the pics to your hdpi folder and recompile, apkmanager will make the ID's by itself.
Click to expand...
Click to collapse
I don't use apk manager but I do use apktool which apk manager uses and I can verify this to work 100%
If you open say com.htc.resources.apk with an archive manager like 7zip for windows or archive manager if you're using linux and drop in your edited png's then use apktool to decompile the framework it should create all of the resource ID's in the public.xml file for you. At this point if you have any xml edits or smali edits to do complete those then recompile. Now just extract the "res" folder and the "resources" files from the compiled apk and using the same archive manager from above to open the original com.htc.resources.apk and replace the files you should be good to go.
IS there a way to autogenerate image ids?
tritron777 said:
IS there a way to autogenerate image ids?
Click to expand...
Click to collapse
Not that I'm aware of however I'm no pro themer. As far as I know you have to manually edit the xml's in the drawable directory by creating the strings that point to the drawable hdpi images you created or it won't work.
if you use http://circle.glx.nl/ you won't need to do the manual xml updating. i use this kitchen for my cm6 nightly ROM.
extract the framework.apk file from the cm6nightly that you are using (current nightly builds have had changes to the framework...thus if you flash tonight you may need to redo the process..perhaps you can just dump the updated framework and resign the zip..i just go back to the kitchen and recook) anyway..
after extract
go to kitchen
set ur desired options
upload the framework file
wait
download the UOTxxx.zip file
put on root of evo sdcard
reboot into recovery
flash the UOT zip file
enjoy
but then, that's the automated cheater way.
I suppose if you don't know what you're doing, kitchens are great. For non noobs who don't want / need to use (the whole point of the thread as the op had problems), doing it manually makes sure it is done right without making your framework all screwy.
Sent from my HTC Evo
JsChiSurf said:
I suppose if you don't know what you're doing, kitchens are great. For non noobs who don't want / need to use (the whole point of the thread as the op had problems), doing it manually makes sure it is done right without making your framework all screwy.
Sent from my HTC Evo
Click to expand...
Click to collapse
I completely agree. I rather learn how to do something the manual way it just empowers you for any future mods you may want to do. Not to mention if you rely on one resource and all of a sudden that resource such as a kitchen goes away you're out of luck.
HeyItsLou said:
I completely agree. I rather learn how to do something the manual way it just empowers you for any future mods you may want to do. Not to mention if you rely on one resource and all of a sudden that resource such as a kitchen goes away you're out of luck.
Click to expand...
Click to collapse
Completely agree, Learning how to do something is always better.

[Q] Theme errors in apkmanager compile/decompile

I've just tried some of the themes available here against the apkmanager tool - decompiling and then compiling the framework-res.apk and twframework-res.apk and all of the custom themes give tons of errors (sometimes won;t even compile back) .. the only one that goes without troubles is the stock framework-res.apk and twframework-res.apk
I'm just wondering whether this is correct or not and where is the issue - is it apkmanager or the themes that are wrong ?
w83 said:
I've just tried some of the themes available here against the apkmanager tool - decompiling and then compiling the framework-res.apk and twframework-res.apk and all of the custom themes give tons of errors (sometimes won;t even compile back) .. the only one that goes without troubles is the stock framework-res.apk and twframework-res.apk
I'm just wondering whether this is correct or not and where is the issue - is it apkmanager or the themes that are wrong ?
Click to expand...
Click to collapse
I never had much luck with APKManager, that's why I use APKTool.
Try v1.3.1 if you can find it, 1.3.2 has problems.
Apk Manager uses apktool too.
@w83
Take a look at log.txt.
I guess it's due to corrupted .9.png.
Solution:
Replace all modded .9.png with original files, decompile, make your changes, compile.
Then you can put in your modded .9.pngs again...
scheichuwe said:
Apk Manager uses apktool too.
@w83
Take a look at log.txt.
I guess it's due to corrupted .9.png.
Solution:
Replace all modded .9.png with original files, decompile, make your changes, compile.
Then you can put in your modded .9.pngs again...
Click to expand...
Click to collapse
Is it really a solution ? .. cause it seems like all of the modded .9.pngs are basically broken
You're right, let's say workaround
For fixing your modded .9.png search for xUltimate draw 9 patcher. I don't know what it's called exactly.
But for editing framework-res.apk the workaround should be acceptable.
I can manage to decompile the theme (usually with some patched pngs messed up) but when I try to compile it (even without any changes) I end up with tons of errors in the form:
apktools/vagreen_frame/res/values/public.xml:3760: error: Public symbol drawable/zzzzz_tw_quickcontact_top_frame declared here is not defined.
(lots of these ones)
any idea what's wrong ?
w83 said:
I can manage to decompile the theme (usually with some patched pngs messed up) but when I try to compile it (even without any changes) I end up with tons of errors in the form:
apktools/vagreen_frame/res/values/public.xml:3760: error: Public symbol drawable/zzzzz_tw_quickcontact_top_frame declared here is not defined.
(lots of these ones)
any idea what's wrong ?
Click to expand...
Click to collapse
Once your 9.pngs are poorly done, errors such as the above would appear. There were only 6 9.png errors and the log generated a loh file size of 130+kb. But once solved, all errors were eliminated.
Sent from my GT-I9000 using XDA App
scheichuwe said:
You're right, let's say workaround
For fixing your modded .9.png search for xUltimate draw 9 patcher. I don't know what it's called exactly.
But for editing framework-res.apk the workaround should be acceptable.
Click to expand...
Click to collapse
I'm either using the android sdk draw9patch to generate the pngs or even GIMP to do it. Just make sure the first and last row/column must be either alpha or black. No other colours are allowed there.
Sent from my GT-I9000 using XDA App
g00ndu said:
I'm either using the android sdk draw9patch to generate the pngs or even GIMP to do it. Just make sure the first and last row/column must be either alpha or black. No other colours are allowed there.
Click to expand...
Click to collapse
Ok so ur saying that after I should correct the patch 9 pngs in the framework and it should compile correctly ? .. so two options: [1] decompile, replace the pngs with correct ones, compile ? .. or .. [2] correct pngs, compile in eclipse, replace in framework, decompile, compile ?
I am pretty sure that I've already tried correcting them using [1] and it didn't help at all .. I was still flooded with errors ..
I guess I'll try to modify things from the bottom up .. take the stock theme with extended menu and play around with it .. are there any significant changes in the .jars inside the /system/framework in most of current themes ?
but still it would be way nicer if I could decompile and compile one of current themes without errors .. I'm so curious how the theme gurus are doing it .. I envy their knowledge
w83 said:
...
but still it would be way nicer if I could decompile and compile one of current themes without errors .. I'm so curious how the theme gurus are doing it .. I envy their knowledge
Click to expand...
Click to collapse
Replace all modded .9.png with original files, decompile, make your changes, compile.
The person who made the theme did it lazily and incorrectly. The first couple versions of my ROM had this problem. Did some research into how .9 PNGs work.
If you want to fix them, I can tell you how. It's a bit tedious.
scheichuwe said:
Replace all modded .9.png with original files, decompile, make your changes, compile.
Click to expand...
Click to collapse
Yep that worked perfectly !! Thx mate for that
I'll try to mod something and see how it works
MikeyMike01 said:
The person who made the theme did it lazily and incorrectly. The first couple versions of my ROM had this problem. Did some research into how .9 PNGs work.
Click to expand...
Click to collapse
Most of the available themes can't be compiled and decompiled without errors
w83 said:
Most of the available themes can't be compiled and decompiled without errors
Click to expand...
Click to collapse
But mine can.
Spent a couple days fixing every .9 PNG one at a time. All you have to do is:
Decompile the unthemed .apk
Copy the broken PNG equivalents from the unthemed .apk
Decompile the themed .apk
Delete the broken .9 PNGs
APK Manager will rename the broken xxxxx.9.png to xxxxx.png
Open the non-broken PNGs in your favorite image editor
Delete everything but the 1 pixel border
Paste the edited PNG over it, without touching the 1 pixel border
Save
Recompile the themed.apk
MikeyMike01 said:
But mine can.
Spent a couple days fixing every .9 PNG one at a time. All you have to do is:
Decompile the unthemed .apk
Copy the broken PNG equivalents from the unthemed .apk
Decompile the themed .apk
Delete the broken .9 PNGs
APK Manager will rename the broken xxxxx.9.png to xxxxx.png
Open the non-broken PNGs in your favorite image editor
Delete everything but the 1 pixel border
Paste the edited PNG over it, without touching the 1 pixel border
Save
Recompile the themed.apk
Click to expand...
Click to collapse
Thank you so very much for sharing this info!!!
MikeyMike01 said:
But mine can.
Click to expand...
Click to collapse
Perfect
MikeyMike01 said:
Delete everything but the 1 pixel border
Paste the edited PNG over it, without touching the 1 pixel border
Click to expand...
Click to collapse
You can just edit the broken png in draw9patch (or gimp or whatever) but sticking to the patch 9 png rules
Thanks for sharing !
Could you briefly explain how the editing in draw9patch is done, please.
MikeyMike01 said:
But mine can.
Spent a couple days fixing every .9 PNG one at a time. All you have to do is:
Decompile the unthemed .apk
Copy the broken PNG equivalents from the unthemed .apk
Decompile the themed .apk
Delete the broken .9 PNGs
APK Manager will rename the broken xxxxx.9.png to xxxxx.png
Open the non-broken PNGs in your favorite image editor
Delete everything but the 1 pixel border
Paste the edited PNG over it, without touching the 1 pixel border
Save
Recompile the themed.apk
Click to expand...
Click to collapse
But lets say I want to change the default blue of 'statusbar_background.9.png' to full plain black. If I leave the 1 pixel border and fill the rest to black, wouldn't I have a blue border in the status bar?
brittosa said:
But lets say I want to change the default blue of 'statusbar_background.9.png' to full plain black. If I leave the 1 pixel border and fill the rest to black, wouldn't I have a blue border in the status bar?
Click to expand...
Click to collapse
No, there's a special one pixel border that has black and transparent pixels that tell the system how to stretch the image without making it look stretched.
That's why you'll note that .9 PNG files are buttons and other things that are used to make different sized objects.
Sent from my Captivate.

[Bugfix][Gingerbread-JV*] Oversized/Unaligned browser combobox in themes.

Hi! I noticed this bug in ock's theme originally and then when I was trying to make my own theme banged heads with it myself.
The issue is that in the browser the combobox button seems to spill over into the text and generally is stretched poorly.
Like this:
I tried at first simply creating a .9.png version and removing the originals and replacing with the .9s. This made the bar vanish completely.
Eventually I got it working with a bit of a work-around, by compiling the .apk twice and extracting the images.
Having to explain that process recently lead me to the real answer though.
combobox_disabled.png and combobox_nohighlight.png ARE .9.pngs even though they do not have the .9.png extension.
apkmanager won't decompile (or compile) them as .9's because they don't have the right extension (and the right extension 'breaks' the theme).
Attatched are my .9.png versions of both images. I added the guidelines from scratch, but they seem to be correct. If your theme has this issue and you need to fix it, just drop the 'compiled' versions into your res/drawable-hdpi and apk-manager should happily compile it and the issue should be resolved.
tried both versions to just replace the ones in my framework-res.apk (didn't decompile the file but just replaced the files) and both didn't solve the problem.
XlAfbk said:
tried both versions to just replace the ones in my framework-res.apk (didn't decompile the file but just replaced the files) and both didn't solve the problem.
Click to expand...
Click to collapse
That -may- not work. That was one of the first things I tried to do - replace with .pngs straight from stock without a decompile/recompile of the whole apk.
The format of the zip file might be slightly ambiguous.
9s - are the raw pngs with draw9patch guidelines.
compiled - are the compiled draw9patch pngs. If you use a draw9patch compiler on the files in the 9s directory you get these.
Even though the pngs are compiled you still need to go through the decompile/recompile procedure with apk manager. (using the 'compiled' pngs).
sargorn, I've tried several times to decompile and recompile the framework with no luck. The new framework is ok, except this damn combo box rendering.
I personally gave up trying :|.
Toss me the framework and I'll give it a shot.
here's mine, based on JVB. thx fo giving it a try
XlAfbk said:
here's mine, based on JVB. thx fo giving it a try
Click to expand...
Click to collapse
Hi,
I tried decompiling and then recompiling your framework and it does not recompile.
zzzzz_tw_quickcontact_slider_btn_pressed.9.png and zzzzz_tw_quickcontact_slider_btn_selected.9.png were both 0 bytes.
If you've just been replacing images this probably won't work
Here it is decompiled and recompiled with stock copies of those two files and the combo box 'fix'.
The filesize seems very 'off' so I'm not sure if it'll work or not.
ro_explorer said:
sargorn, I've tried several times to decompile and recompile the framework with no luck. The new framework is ok, except this damn combo box rendering.
I personally gave up trying :|.
Click to expand...
Click to collapse
I've just de/recompiled JVH's framework-res and the combobox fix still seems to work. (Although maybe it's not needed in JVH, didn't test it!).
I tried it again with JVH and failed again. What I did:
1. decompile framework-res.apk with apkmanager
(2. make some of my changes to some xml files)
3. place the 2 files from compiled in drawable-hdpi-v4
4. recompile the apk
Everything but the comboboxes works as expected.
I'm attaching the apk, maybe you could have a look at it. If you can make it work please tell me what I did wrong. Many thx
XlAfbk said:
I tried it again with JVH and failed again. What I did:
1. decompile framework-res.apk with apkmanager
(2. make some of my changes to some xml files)
3. place the 2 files from compiled in drawable-hdpi-v4
4. recompile the apk
Everything but the comboboxes works as expected.
I'm attaching the apk, maybe you could have a look at it. If you can make it work please tell me what I did wrong. Many thx
Click to expand...
Click to collapse
As im here looking for the fix for my dhd I thought I might be able to help
Looking at your framework I can clearly see that those images in there are not fixed.
Try simply dragging and dropping the fixed pngs straight into your framework
liamstears said:
Try simply dragging and dropping the fixed pngs straight into your framework
Click to expand...
Click to collapse
that won't work, was said before, needs to be compiled in
Try out the jvo rom - I think this issue may be resolved in that framework.
Sent from my GT-I9000 using XDA Premium App
I still have that issue with my JVO theme

[MOD] Villain Theme System ( VRtheme ) for XXLSJ/XWLS8

While preparing JB Style for XXLSJ I've seen that we needed a proper VRTheme templatefor the new partitions ( /preload ) in our new systems. This will probably change in the future as Samsung releases the final version... but meanwhile... you can use this template to build mods.
No need to replace the entire SystemUI for battery images. This is not my work, I just simply adapted the original template.
Source:
http://forum.xda-developers.com/showthread.php?t=1207017
http://www.villainrom.co.uk/forum/threads/about-villaintheme-system.4971/
Download:
http://depositfiles.com/files/6lj80t3aa
Crussader said:
While preparing JB Style for XXLSJ I've seen that we needed a proper VRTheme templatefor the new partitions ( /preload ) in our new systems. This will probably change in the future as Samsung releases the final version... but meanwhile... you can use this template to build mods.
No need to replace the entire SystemUI for battery images. This is not my work, I just simply adapted the original template.
Source:
http://forum.xda-developers.com/showthread.php?t=1207017
http://www.villainrom.co.uk/forum/threads/about-villaintheme-system.4971/
Download:
http://depositfiles.com/files/6lj80t3aa
Click to expand...
Click to collapse
Thanks for sharing this Mods for Create new things.
dark_zhero said:
Thanks for sharing this Mods for Create new things.
Click to expand...
Click to collapse
i tried using it but went into boot loop..
all system\app files including systemui.apk which were before in systems\apps will be now in preload\symlink\system\app ??
or will the systemui.apk reside somewhere else ??
and the folders with the modified pngs will be named like systemui.apk ?? with the the extension ??
Thanks
xinfinityoO said:
i tried using it but went into boot loop..
all system\app files including systemui.apk which were before in systems\apps will be now in preload\symlink\system\app ??
or will the systemui.apk reside somewhere else ??
Click to expand...
Click to collapse
exactly... in deodexed ROMs they're located in there ( preload\symlink\system\app ). If I recall correctly, in odexed ( stock fro sammobile source ) they're still on system/app.... check where they are before patching using a root file manager.
xinfinityoO said:
and the folders with the modified pngs will be named like systemui.apk ?? with the the extension ??
Thanks
Click to expand...
Click to collapse
you have to recreate the folder structure of the file you're trying to mod
SystemUI.apk / res / drawable-hdpi ( for example )
Check one of my mods to see what I mean
Crussader said:
exactly... in deodexed ROMs they're located in there ( preload\symlink\system\app ). If I recall correctly, in odexed ( stock fro sammobile source ) they're still on system/app.... check where they are before patching using a root file manager.
you have to recreate the folder structure of the file you're trying to mod
SystemUI.apk / res / drawable-hdpi ( for example )
Check one of my mods to see what I mean
Click to expand...
Click to collapse
i did as what you have said ..but boot loop ..will check the systemui.apk location and try again
thanks
xinfinityoO said:
i did as what you have said ..but boot loop ..will check the systemui.apk location and try again
thanks
Click to expand...
Click to collapse
are you using .9.png files? They must be compiled before so you can use them
Crussader said:
are you using .9.png files? They must be compiled before so you can use them
Click to expand...
Click to collapse
Is that so? I never knew that
So quick question... If I change the hue of. 9 image I can't drop straight into an apk? It has to be recompiled 1st? If that's the case, that explains a lot. Thanks for the heads up on this. Every time I did this previously the image got distorted so i gave up touching them and just changed normal pngs.

[HELP][TESTING] Theming Sense 5

SO...with the release of the new Sense 5 Roms for our beloved One X I'm not seeing any themes (I know it's early).
I've had a go at porting a few over by decompiling the systemui.apk, updating the images and recompling as you used to with the original sense 4+ roms but keep losing my status bar!
I'm just starting small at the moment, changing wifi icon, battery, signal etc etc but then I'm going to move onto app icons. The venom themes are epic and it would be awesome to see a few on the sense 5 ui!
Wondering if the geniuses here can shed some light, I haven't found any tutorials or help guides as of yet, hopefully this will start as a decent pool of information,
leegreenaway said:
SO...with the release of the new Sense 5 Roms for our beloved One X I'm not seeing any themes (I know it's early).
I've had a go at porting a few over by decompiling the systemui.apk, updating the images and recompling as you used to with the original sense 4+ roms but keep losing my status bar!
I'm just starting small at the moment, changing wifi icon, battery, signal etc etc but then I'm going to move onto app icons. The venom themes are epic and it would be awesome to see a few on the sense 5 ui!
Wondering if the geniuses here can shed some light, I haven't found any tutorials or help guides as of yet, hopefully this will start as a decent pool of information,
Click to expand...
Click to collapse
which tool are you using?
if you are using apktool, have you copied META-INF folder , from the original APK, inside the new one? ( Old signature)
after pushing it to the device, have you set permissions? (rw-r-r--)
Cache and Dalvik-cache wiped ?
xcesco89 said:
which tool are you using?
if you are using apktool, have you copied META-INF folder , from the original APK, inside the new one? ( Old signature)
after pushing it to the device, have you set permissions? (rw-r-r--)
Cache and Dalvik-cache wiped ?
Click to expand...
Click to collapse
ooooo didn't think about the META-INF...I'll give it a shot in the morning.
All the other steps i've done, multiple times. It's as if the systemui.apk doesn't apply during boot so maybe it is the meta file!
And I'm using apktool to decompile...recently found it better that going through the hassle of virtuous 10 suite
leegreenaway said:
ooooo didn't think about the META-INF...I'll give it a shot in the morning.
All the other steps i've done, multiple times. It's as if the systemui.apk doesn't apply during boot so maybe it is the meta file!
Click to expand...
Click to collapse
yep, apktool doesn't sign the apk, so you need to keep the old signature
Signing systemui.apk is not necessary. I tested many times.
To change pngs(especially patch9 pngs), just copy and paste to the apk with 7-zip if apktool get error or SystemUI FCs.
P.S. Please use the most original apk to modify if it's failed in previous build.
Sent from my HTC One X using xda app-developers app
Not bothering with patch9s I hate those things!
For some reason everytime I push a new
SystemUI.apk to my phone, reboot, wipe cache and dalvik (for good measure) it won't apply so I lose the status bar and background etc. Essentially no system ui applies!
It's a pickle, im on ARHD at the moment so will have a go at decompiling! And try again
Funny thing is, someone made a made mod on here already for 1% battery, and even installing that doesn't work!...I'll keep tinkering
Sent from my HTC One X using xda app-developers app
leegreenaway said:
Not bothering with patch9s I hate those things!
For some reason everytime I push a new
SystemUI.apk to my phone, reboot, wipe cache and dalvik (for good measure) it won't apply so I lose the status bar and background etc. Essentially no system ui applies!
It's a pickle, im on ARHD at the moment so will have a go at decompiling! And try again
Funny thing is, someone made a made mod on here already for 1% battery, and even installing that doesn't work!...I'll keep tinkering
Sent from my HTC One X using xda app-developers app
Click to expand...
Click to collapse
unfortunately for me is the same.
i'm trying to add a new item to settings.apk (SuperUser), i have edited all required xmls, added png, recompiled than signed, but no way to make it work.
i have also tried with zipsigner app using platform keys, but no result.. Settings won't show
Success (well a little)
Soooo....I've managed to mod the battery!
I'm going for a sort of Far Cry 3 Blood Dragon 80's style eventually, but this is the first step! Now for the wifi/signal etc. etc.
So this is what I did...
Got an existing circle battery mod with the same naming convention (since I can't be bothered to rename 100 files )
Recoloured them all in photoshop and increased the pixels size to 50 x 50
Deleted the battery icons in the existing SystemUI.apk via 7zip
Added the modified battery icons to the apk
Then pushed to the phone via adb
It automatically rebooted and viola! I may run 'fixed permissions' from recovery to be safe and wipe cache/dalvik to make sure but it's looking good!
View attachment 2201169
hey guys, if you are only changing icons, you don't need to decompile just swap the images by throwing the img in the .apk with ex(7zip) you only need to decompile with xml files and such and if you need a .9 img use the dot9 patcher in sdk then use this" https://dl.dropboxusercontent.com/u/74861217/draw9compiler.zip " to compile it before throwing it in the .apk. to use the compiler throw the .9 patched img into example1 then run the prog at main folder then look in done for compiled img
toolhas4degrees said:
hey guys, if you are only changing icons, you don't need to decompile just swap the images by throwing the img in the .apk with ex(7zip) you only need to decompile with xml files and such and if you need a .9 img use the dot9 patcher in sdk then use this" https://dl.dropboxusercontent.com/u/74861217/draw9compiler.zip " to compile it before throwing it in the .apk. to use the compiler throw the .9 patched img into example1 then run the prog at main folder then look in done for compiled img
Click to expand...
Click to collapse
Yep already doing this mate, it's way easier than decompiling and recompiling.
Thanks for the input though!
Little more progress...
Managed to get all the status bar icons themed! I consider that great progress at the moment!:laugh:
View attachment 2201536
Almost there...
I'm pretty much there with what I want to do now, status bar sorted (don't know about the clock color yet) also went ahead and did the nav bar icons or prism icon as they call it, and change the home nav bar background to transparent to declutter it a bit.
I'll upload my systemui and prism files once I'm finished so anyone can have a go.
When the Viper team decide to throw a sense 5 rom out the tweaks are going to make everything soooooo much simpler! :good:
View attachment 2201785
View attachment 2201786
A few lock screen touches...
Modded the lock screen ermm....lock and changed the 'answer' 'decline' buttons too a neon style.
Also changed the music controls on the lock screen but they aren't as pretty as I'd like!
View attachment 2201908

Categories

Resources