Help needed - modding stock 5.0.2 LGSystemUI - G2 Q&A, Help & Troubleshooting

Hello! I'm trying to make something relatively simple, but i'm doing something wrong. What i want to achieve is to change the stock battery icon with a circle with % inside. I managed to decompile LGSystemUI.apk using the latest apktool. I changed the pngs and edited the battery stats and chatging animation xmls. I'm not touching the .odex file since i don't have anything to change there. I recompiled the apk again using the apktool and zipaligned it. And here comes the issue - once i push it to the phone and reboot i get only desktop without navbar, status bar and lock screen. I don't get a FC but the Systemui is not loading properly. I also tryed to sign the zipaligned apk which resulted in constant FC from LGSystemUI, something which i don't get is the apk is not signed. I lost a significant amount of time recompiling and trying different combinations but the result is always the same - either fc or no fc but ststemui is not loaded. Can you do please help me with some ideas what i might be doing wrong?
Sent from my LG-D802 using XDA Free mobile app

I use Advanced APK Tool , and have changed apktool.jar to 2.0.0 RC4.
DonĀ“t sign the file, that is wrong.
Have u tried only replace the new (recompiled) files in the original LGSystemUI.apk (the xml & png , ressources if u need)

i tried several tools and many combinations today - they're all either FC-ing or just giving the desktop without status bar, navbar and lock screen. i tried both odexed and deodexed version. i tried taking files from the original lgsystemui.apk, i also tried injecting already compiled xml and png-s to the original - nothing. i have the feeling i'm missing something. i'm installing both the framework-res.apk and the lge-res.apk to the tools i tried to work with. everything decompiles and recompiles without a single error. no matter what i try i get the same 2 types of errors, which i mentioned above. i also tried not signing, signing with the original signature and signing with a new signature. everything should be relatively simple, but the output never works. do i need to decompile/recompile (or deodex) the framework too?

show me your changed files, i will try for myself

I tried to do some changes too, I tried deodexing systemUI and odex and same result as you

Hi i see you have manged to make it work in your other thread. May i know which files and code i need to edit in order to make this work. I know how to compile and decompile ,sign, zipalign......etc. i have checked other tutorials to do this in the net but to no avail. Ty in advance.

Hello, yes I managed to make it work using the latest ApkTool 2.0.0 rc4. Also it's a good idea to use something like TickleMyAndroid tool or similar automated de/recompile script. You need to sign with the original signature in order to make it work. Also please keep an eye on the exact version of the ApkTool included in the tool, only rc4 is working fine with our stock Rom.
There's no need to deodex if you only want to make some cosmetic changes.
Sent from my LG-D802 using XDA Free mobile app

d_ave said:
Hello, yes I managed to make it work using the latest ApkTool 2.0.0 rc4. Also it's a good idea to use something like TickleMyAndroid tool or similar automated de/recompile script. You need to sign with the original signature in order to make it work. Also please keep an eye on the exact version of the ApkTool included in the tool, only rc4 is working fine with our stock Rom.
There's no need to deodex if you only want to make some cosmetic changes.
Sent from my LG-D802 using XDA Free mobile app
Click to expand...
Click to collapse
Cool ty, but which exact files and code i need to edit?. i know i am asking alot here but if you can answer me or refer me to a tutorial that helped you that will be great. i have already tried TickleMyAndroid to change the battery icon but it doesn't seem to work. So i prefer doing it the old way more easier to know what is going on. Thx

d_ave said:
Hello, yes I managed to make it work using the latest ApkTool 2.0.0 rc4. Also it's a good idea to use something like TickleMyAndroid tool or similar automated de/recompile script. You need to sign with the original signature in order to make it work. Also please keep an eye on the exact version of the ApkTool included in the tool, only rc4 is working fine with our stock Rom.
There's no need to deodex if you only want to make some cosmetic changes.
Sent from my LG-D802 using XDA Free mobile app
Click to expand...
Click to collapse
@d_ave
I wanted to only change color of the LGContacts but now on lolipop its shows FC,so i am using the latest apk tool.jar with Advanced apk tool,so how should i sign and is there need for zipaligning the apk?

Related

[Q] Circular Battery Indicator with % (no App)

edit:
the battery with % is working
but when i use the volume up/down button there is an strange animated image
and when i go in preferences on display i get an error with the process com.android.settings
also i get reboots sometimes
i used FrameworkUtility and the files i added to the post
plz help
Better Dont use it now
you can flash the file (framework-res.apk) with adb in the tools of android sdk
open cmd and type
cd (path like d:\android-sdk-windows\tools)
d: (when its on d
adb push framework-res.apk /system/framework/
adb shell reboot
you can try to make new folder in the root /system/framework and copy the file there, reboot and delete the files, but for me it doesnt worked
i use mdeejays froyo hd 4.3
may work with other builds, but you can try it change your framework with the files und framework utility
-----------------------------------------------------------------------------
Hello Guys,
i want to use a circular battery with %
so far i tried to use the graphics for a circullar battery which i copied into framework-res.apk with adb - this works
then i tried to add the %
i changed this files(tried it with files from diffrent threads) in framework-res.apk with adb
battery_charge_fill.xml
stat_sys_battery_charge.xml
zzz_stat_sys_battery_1.xml
stat_sys_battery.xml
but i then i have the problem that i have no battery indicator anymore or i get a boot loop.
i have read that the xml files are compiled so i decompiled the framework file with apk manager 4.9, packed the files in it but have some trouble to compile it again.i tried just to compress again but it doesnt work
so what is the problem?
compiling, the xml files,the graphics or are there more files i need?
or something else?
i know there is an app but if its possible i want to include this directly.
and i added the files i think are needed to get the full circular battery with % working
yes.. reemplacing framework of course works
but depende what kind of build are using.... for me, is easier to use and change in desire hd builds
Why dont you try replacing the framework-res.apk with one of these in this thread. It looks very similar to what you want and of course, you dont know until you try. I would not try the animated frameworks, just to be on the safe side. Of course, it would help if we knew which build you are using.
i use MDJ FroYo HD v.4.3
i dont want to replace the whole framework i want to know how i can change it on my framework
nokn956120 said:
Why dont you try replacing the framework-res.apk with one of these in this thread. It looks very similar to what you want and of course, you dont know until you try. I would not try the animated frameworks, just to be on the safe side. Of course, it would help if we knew which build you are using.
Click to expand...
Click to collapse
In MDJ Revolution 1.2 causes errors and force close.
have you tried the one from this post:
http://forum.xda-developers.com/showpost.php?p=9644930&postcount=1318
screen shot inc'
by xda member vlad48

Reflash a theme already installed

I was just wondering if there are a clever trick to reflash a theme already installed on the device.
In this particular situation I have changed some of the icons in the framwork-res.apk. I then copied them to the theme, wich is BrightSilence, and tried to flash it all over again. Result - bootloop.
So, is there any step you could do to circumvent this, or is the only option to reflash the ROM. and then the theme?
Thanks
Yes, just reflash a unmodified version of, in your case, BrightSilence or am i missing something?
Or revert to the nandroid you made before messing with the system partition.
The thing is that BrightSilence is already installed on the device, but now I want another set of icons. Flashing the theme again with the modified framework-res just result in a bootloop.
It seems there really is no shortcut, than to reflash ROM, then new theme.
Thanks anyway.
hallydamaster said:
The thing is that BrightSilence is already installed on the device, but now I want another set of icons. Flashing the theme again with the modified framework-res just result in a bootloop.
It seems there really is no shortcut, than to reflash ROM, then new theme.
Thanks anyway.
Click to expand...
Click to collapse
U are wrong.
Installing theme - means overwriting some files into new ones, not adding or removing some.
So if u changed framework file, flashed and got bootloop - u can flash theme again (overwrite bad file) and boot correctly.
Sent from my pocket using pen
mendozinas said:
U are wrong.
Installing theme - means overwriting some files into new ones, not adding or removing some.
So if u changed framework file, flashed and got bootloop - u can flash theme again (overwrite bad file) and boot correctly.
Sent from my pocket using pen
Click to expand...
Click to collapse
I do get that really. But what now if I want to apply a new framework-res? I know I can always nandroid my self out of a bootloop.
hallydamaster said:
I do get that really. But what now if I want to apply a new framework-res? I know I can always nandroid my self out of a bootloop.
Click to expand...
Click to collapse
U have to mod framework correctly and will not end in booloops.
Use Apk Manager to decompile, change, compile and sign framework-res.apk.
Do not push file via adb - use flashable zip.
Sent from my pocket using pen
mendozinas said:
U have to mod framework correctly and will not end in booloops.
Use Apk Manager to decompile, change, compile and sign framework-res.apk.
Do not push file via adb - use flashable zip.
Sent from my pocket using pen
Click to expand...
Click to collapse
But the framework-res is from the UOT, shouldn't that be packed/signed properly?
Well, I am going to try anyway, thanks!
EDIT: Tried to cook a new file, with the exact same framework-res I used earlier. Used UOT to cook, and worked perfectly. Thanks to mendozinas! ;-)

Transparent statusbar...!!! Guide needed!!!

I'm [12.Aug.2012] NexusHD2-ICS-4.0.4-CM9-HWA V2.6 (Kernel: tytung_HWA_r3.4) And tried hard for a mod to make its statusbar transparent...!!!:fingers-crossed::fingers-crossed::fingers-crossed:
Followed this guide but failed as it resulting no statusbar at the end.
Please can anybody guide us(noobs) with a proper tutorial for systemUI.apk mods for our leo???
Been looking for one as well, always end up stuffing mine up.
I'm not sure which guide you followed but you can try this one - http://forum.xda-developers.com/showpost.php?p=20654552&postcount=3
And if you are looking for different mods in general check out the SGN Themes&Apps section http://forum.xda-developers.com/forumdisplay.php?f=1340
It's way more active when it comes to mods&themes compared to the HD2 section (Which consists mostly of Questions and Disscusions anyway )
gogodu5sU said:
I'm not sure which guide you followed but you can try this one - http://forum.xda-developers.com/showpost.php?p=20654552&postcount=3
And if you are looking for different mods in general check out the SGN Themes&Apps section http://forum.xda-developers.com/forumdisplay.php?f=1340
It's way more active when it comes to mods&themes compared to the HD2 section (Which consists mostly of Questions and Disscusions anyway )
Click to expand...
Click to collapse
Sorry this is the guide I followed!!!!
http://forum.xda-developers.com/show....php?t=1523703
jhha said:
Sorry this is the guide I followed!!!!
http://forum.xda-developers.com/show....php?t=1523703
Click to expand...
Click to collapse
You were right, this guide - http://forum.xda-developers.com/showthread.php?t=1523703 works well.
I actually never sign SystemUI.apk nor framework-res.apk, never had a problem with that, so you can skip that part.
Try APK Multi-Tool - http://forum.xda-developers.com/showthread.php?t=1310151
and don't forget to drop framework-res.apk into Apk_Multi-Tool\other
next open Command prompt and navigate to that folder
type
Code:
apktool if framework-res.apk
and you should be ready to de- and recompile.
Attached is 100% transparent and 50% transparent. (have not tested 50% though)
Flash in recovery.
grumbles
im trying to figure this out for the rom in my sig which is a jb rom
but that guide did help me at all lol
none of the code matched up
Thanks those two mods worked, thanks.
Kameirus said:
grumbles
im trying to figure this out for the rom in my sig which is a jb rom
but that guide did help me at all lol
none of the code matched up
Click to expand...
Click to collapse
Probably because it's a different version of Android
Permissions???
gogodu5sU said:
You were right, this guide - http://forum.xda-developers.com/showthread.php?t=1523703 works well.
I actually never sign SystemUI.apk nor framework-res.apk, never had a problem with that, so you can skip that part.
Try APK Multi-Tool - http://forum.xda-developers.com/showthread.php?t=1310151
and don't forget to drop framework-res.apk into Apk_Multi-Tool\other
next open Command prompt and navigate to that folder
type
Code:
apktool if framework-res.apk
and you should be ready to de- and recompile.
Attached is 100% transparent and 50% transparent. (have not tested 50% though)
Flash in recovery.
Click to expand...
Click to collapse
Thanks man I'll definitely try with this & let you know & many thanks for the modded zips(till I learn how to manipulate SystemUI.apk successfully my leo can enjoy it!:highfive::highfive::highfive! Thanks again.!
I found this guide too...!!! :fingers-crossed::fingers-crossed::fingers-crossed:
http://rootzwiki.com/topic/31785-co...ng-and-recompiling-jb-systemuiapk-jelly-bean/
& managed to compile the SystemUI.apk but still it results in absent status bar in either way of following
1. Replacing the original SystemUI.apk in the ROM with the modded one & installing the ROM(Tried both signed & unsigned versions)
2. After installing the original ROM & later replace the SystemUI.apk with the modded one with root explorer (Tried signed version)
But when I Edit the permission(with root explorer) of the modded SystemUI.apk copied to the system folder (As in 2nd method), as for other system apps it worked. :cyclops::laugh::laugh::laugh:
I cant understand in which step I made things wrong! In which step we manage permissions of an app while decompiling, compiling or modding.!
It'd be nice if somebody can direct me right.! Love to learn from XDA...!!!
Kameirus said:
grumbles
im trying to figure this out for the rom in my sig which is a jb rom
but that guide did help me at all lol
none of the code matched up
Click to expand...
Click to collapse
Try above link...!!! Its originally for JB...!!!:laugh:
jhha said:
Thanks man I'll definitely try with this & let you know & many thanks for the modded zips(till I learn how to manipulate SystemUI.apk successfully my leo can enjoy it!:highfive::highfive::highfive! Thanks again.!
I found this guide too...!!! :fingers-crossed::fingers-crossed::fingers-crossed:
http://rootzwiki.com/topic/31785-co...ng-and-recompiling-jb-systemuiapk-jelly-bean/
& managed to compile the SystemUI.apk but still it results in absent status bar in either way of following
1. Replacing the original SystemUI.apk in the ROM with the modded one & installing the ROM(Tried both signed & unsigned versions)
2. After installing the original ROM & later replace the SystemUI.apk with the modded one with root explorer (Tried signed version)
But when I Edit the permission(with root explorer) of the modded SystemUI.apk copied to the system folder (As in 2nd method), as for other system apps it worked. :cyclops::laugh::laugh::laugh:
I cant understand in which step I made things wrong! In which step we manage permissions of an app while decompiling, compiling or modding.!
It'd be nice if somebody can direct me right.! Love to learn from XDA...!!!
Try above link...!!! Its originally for JB...!!!:laugh:
Click to expand...
Click to collapse
yes ive seen that thanks
found out last night that the status bar transparency on jb cant be done yet
pier10 said:
Unfortunately, there's still no hack on CM10 ...the .smali files (that need to modify) isn't exist in JB.
It's rather easy on CM9. Here's the guide http://forum.xda-developers.com/showthread.php?t=1523703
btw, the notification is transparent on this theme
Click to expand...
Click to collapse
im gonna try and figure out the notification pull down later today
jhha said:
Thanks man I'll definitely try with this & let you know & many thanks for the modded zips(till I learn how to manipulate SystemUI.apk successfully my leo can enjoy it!:highfive::highfive::highfive! Thanks again.!
I found this guide too...!!! :fingers-crossed::fingers-crossed::fingers-crossed:
http://rootzwiki.com/topic/31785-co...ng-and-recompiling-jb-systemuiapk-jelly-bean/
& managed to compile the SystemUI.apk but still it results in absent status bar in either way of following
1. Replacing the original SystemUI.apk in the ROM with the modded one & installing the ROM(Tried both signed & unsigned versions)
2. After installing the original ROM & later replace the SystemUI.apk with the modded one with root explorer (Tried signed version)
But when I Edit the permission(with root explorer) of the modded SystemUI.apk copied to the system folder (As in 2nd method), as for other system apps it worked. :cyclops::laugh::laugh::laugh:
I cant understand in which step I made things wrong! In which step we manage permissions of an app while decompiling, compiling or modding.!
It'd be nice if somebody can direct me right.! Love to learn from XDA...!!!
Try above link...!!! Its originally for JB...!!!:laugh:
Click to expand...
Click to collapse
Permissions are set in the AndroidManifest.xml. (in the root folder of the decompiled apk)
Sometimes, if an app is asking for "wierd" permissions which i/it doesn't need i just delete those lines from that file.
But in your case, i don't know what happend.
Kameirus said:
yes ive seen that thanks
found out last night that the status bar transparency on jb cant be done yet
im gonna try and figure out the notification pull down later today
Click to expand...
Click to collapse
Sorry Kameirus
but i can't help you with that either, i guess you would be better off downloading the jellybean source
and try to mod it that way or wait until somebody else does.
I don't think that those "smalis" don't exist, they are just named differently
and overall just different since it's a new android version.
My guess would be, if you want to add transparency you might want to look at:
SystemUI.apk\smali\com\android\systemui\statusbar\BaseStatusBar.smali
If you are going to learn a bit about smali, you could try Virtuous Ten Studio - http://forum.xda-developers.com/showthread.php?t=1619473
It makes smali's a bit easier on the eye and has a nice smali-guide within.
gogodu5sU said:
Permissions are set in the AndroidManifest.xml. (in the root folder of the decompiled apk)
Sometimes, if an app is asking for "wierd" permissions which i/it doesn't need i just delete those lines from that file.
But in your case, i don't know what happend.
Sorry Kameirus
but i can't help you with that either, i guess you would be better off downloading the jellybean source
and try to mod it that way or wait until somebody else does.
I don't think that those "smalis" don't exist, they are just named differently
and overall just different since it's a new android version.
My guess would be, if you want to add transparency you might want to look at:
SystemUI.apk\smali\com\android\systemui\statusbar\BaseStatusBar.smali
If you are going to learn a bit about smali, you could try Virtuous Ten Studio - http://forum.xda-developers.com/showthread.php?t=1619473
It makes smali's a bit easier on the eye and has a nice smali-guide within.
Click to expand...
Click to collapse
thanks
i saw that smali a little while ago when i was going thru the folders
ill look at it later after i get home
thanks for the tip
well no luck lol
but i did learn how to flash a backup blindfolded lmao
Ok I think I figured out whats the problem is with my compiling...!!!
When you run the compile it ask to replace every thing that not modified from the original. I chose "yes" earlier all the time! But when I select "no"
I could get a working SystemUI.apk even without zipaligning or signing.! :cyclops::cyclops::cyclops:
Learning something everyday!

Building first ROM for G900V

Good day, all!
I've been working on [my first] ROM for Verizon S5 and everything seems to be going great! I've cleaned out as much Samsung/Verizon/Google trash as I can, applied some tweaks to build.prop, changed some default apps to (IMHO) better replacements, and anything that is left (functions correctly) has been moved to /data/app so they can be Uninstalled fully (not just Turned Off). Just a few quick questions:
1) How can I "bake-in" app data? I have replaced the normal, crap launcher with Holo Launcher and cannot seem to get correct permissions when the ROM is installed thru SS. I believe the issue is permissions for /data/data/ get screwed up or not set correctly. I have looked and looked and tried to determine the correct permissions, but still no joy. I've tried to fix /data/data permissions in the updater-script, but it seems like each subfolder/file has different permissions making me think I'll have to go thru them one-by-one.
I have a work-around in place using a OneTimeInit script that does work, but it seems like that's not really the best approach?
2) Kind of ties into question number 1, I patched the framework-res.apk in to allow WiFiHotspot, but without being able to install the system settings data properly, there is not a "Quick Shortcut". Again, I've resolved the problem using the OneTimeInit to update Sqlite DBs after the system is up.
3) How do I de-odex the stock ROM? Using Android Kitchen doesn't seem to do it right. It works mostly but I still seem to get various FCs. I tend to believe that some things just cannot (should not) be De-Odex'd?
I've also discontinued Zip-Aligning because it sometimes produces errors on my ROM. Is it not advised to use Android Kitchen to do these tasks or is there some trick to getting it to work just right?
Bonus Question) I was going to share my ROM on XDA but it says I'm not allowed to post in Development. I assume because of my low post count. Any way I can get an over-ride or should I just make a few more posts and then do it?
Thanks again guys!
I appreciate all the help as always!
Jake
jake5253 said:
Good day, all!
I've been working on [my first] ROM for Verizon S5 and everything seems to be going great! I've cleaned out as much Samsung/Verizon/Google trash as I can, applied some tweaks to build.prop, changed some default apps to (IMHO) better replacements, and anything that is left (functions correctly) has been moved to /data/app so they can be Uninstalled fully (not just Turned Off). Just a few quick questions:
1) How can I "bake-in" app data? I have replaced the normal, crap launcher with Holo Launcher and cannot seem to get correct permissions when the ROM is installed thru SS. I believe the issue is permissions for /data/data/ get screwed up or not set correctly. I have looked and looked and tried to determine the correct permissions, but still no joy. I've tried to fix /data/data permissions in the updater-script, but it seems like each subfolder/file has different permissions making me think I'll have to go thru them one-by-one.
I have a work-around in place using a OneTimeInit script that does work, but it seems like that's not really the best approach?
2) Kind of ties into question number 1, I patched the framework-res.apk in to allow WiFiHotspot, but without being able to install the system settings data properly, there is not a "Quick Shortcut". Again, I've resolved the problem using the OneTimeInit to update Sqlite DBs after the system is up.
3) How do I de-odex the stock ROM? Using Android Kitchen doesn't seem to do it right. It works mostly but I still seem to get various FCs. I tend to believe that some things just cannot (should not) be De-Odex'd?
I've also discontinued Zip-Aligning because it sometimes produces errors on my ROM. Is it not advised to use Android Kitchen to do these tasks or is there some trick to getting it to work just right?
Bonus Question) I was going to share my ROM on XDA but it says I'm not allowed to post in Development. I assume because of my low post count. Any way I can get an over-ride or should I just make a few more posts and then do it?
Thanks again guys!
I appreciate all the help as always!
Jake
Click to expand...
Click to collapse
1: All I had to do was place apk in /system/app or /system/priv-app and thats it. Make sure when you add your apks you dont unzip the archive. basically use kitchen and build your base rom then simply open the archive and make your edits. I also used the updater script from beans base build and only edited the ui print.. Messing with the updater script i wouldnt recommend as it could be causing some of your issues.
2: If using beans base theres no reason for you to edit anything as the hotspot is already baked in.. you must have borked it.. If you are not using beans base then maybe you should copy his files for the native hotspot as its already done properly. I wouldnt mess with framework or settings apks unless you know what your doing. Id work on gettin the fcs n other issues sorted first as you might b doin too much too fast.. work on learning how to make your apks work first before making edits to framework n settings apks.
3: The kitchen is best to deodex and zipalign.. also these two things should not cause fcs or errors if done properly. zipalign should help more than anything.. i just like workin with deodex bcuz its easier and only one set of files instead of .apk and .odex for just bout everything..
Again, if you are not using beans bases id recommend to do so.. his bases are already deodexed have hotspot zipaligned read/write to ext sd etc.. so you wouldnt have to do all from scratch and have so many issues..
Sent from my SM-G900V using XDA Premium HD app
elliwigy said:
1: All I had to do was place apk in /system/app or /system/priv-app and thats it. Make sure when you add your apks you dont unzip the archive. basically use kitchen and build your base rom then simply open the archive and make your edits. I also used the updater script from beans base build and only edited the ui print.. Messing with the updater script i wouldnt recommend as it could be causing some of your issues.
2: If using beans base theres no reason for you to edit anything as the hotspot is already baked in.. you must have borked it.. If you are not using beans base then maybe you should copy his files for the native hotspot as its already done properly. I wouldnt mess with framework or settings apks unless you know what your doing. Id work on gettin the fcs n other issues sorted first as you might b doin too much too fast.. work on learning how to make your apks work first before making edits to framework n settings apks.
3: The kitchen is best to deodex and zipalign.. also these two things should not cause fcs or errors if done properly. zipalign should help more than anything.. i just like workin with deodex bcuz its easier and only one set of files instead of .apk and .odex for just bout everything..
Again, if you are not using beans bases id recommend to do so.. his bases are already deodexed have hotspot zipaligned read/write to ext sd etc.. so you wouldnt have to do all from scratch and have so many issues..
Sent from my SM-G900V using XDA Premium HD app
Click to expand...
Click to collapse
Thank you for the response!
It seems perhaps I didn't quite make clear what I've done versus what I'm trying to accomplish.
Firstly, I wouldn't go so far as to say I'm "having so many issues". Everything in my ROM is in perfectly fine working order. I just have these few quirks that I would like to address both so I can learn, and to make this and future projects better.
While I appreciate the recommendation to use bean's base, I have taken a look at his and there seems to be nothing in his which copies data into /data/data/com.whatever.package (or at least there's nothing in his zip in the /data/data folder -- not sure if his ROM has the toggle activated?)
I have the Apps working correctly in my ROM -- they just go in /data/apps, /system/app or /system/priv-app, respectively.
What I need, is to get /data/data/com.whatever.package/ copied With Correct Permissions when the ROM is installed; I do not want a second zip to update things after install, especially for a toggle and a couple shortcuts, seems silly.
For instance, when you boot your phone up with the default [stock] samsung launcher, it has a list of default apps and widgets on the first screen you see such as phone, messages, a clock widget, etc, etc. Since I've replaced the stock launcher with Holo Launcher HD and some other default apps have also been replaced, there's very few shortcuts on the main launcher screen.
** Holo Launcher does have a list of default apps it adds to your main page, but many of those have been removed in my rom.
The solution I've come up with basically waits for the system to boot up to the point that Holo Launcher actually creates the default (mostly blank) /data/data/com.mobint.hololauncher.hd/databases/launcher.db and then my script uses sqlite3 to update the DBs with a list of different shortcuts -- ones to apps that actually exist.
The Hotspot Toggle is the same way as above.. Hotspot works fine in my rom if you go through settings!
I just cannot add the notification panel pull-down toggle to /data/data/com.android.providers.settings/database/settings.db until after the system boots up at least ONE time, and then update the DB to include WiFiHotspot in notification_panel_active_app_list and notification_panel_active_app_list_for_reset
As for the zipalign and deodexing, I will have to try those again now that I have a fairly stable rom.
****EDIT****
I think I figured it out. I can just use busybox to kill the systemui after I update the databases during the first boot. I also figured out how I can add the SetupWizard without it locking up on activation.
Thanks anyways, guys.
Look for my rom, coming soon!
=P
Please add support for more languages
I found a mod for Motorola latest 4.4 please port it
Sent from my SM-G900T using XDA Free mobile app

Need Help Trying to Modify and Recompile SystemUI APK [Android 7.1.1] [Stock]

Hey all.
I'm trying to modify my SystemUI.apk on stock Android 7.1.1 to remove the regular system clock and add the text clock, as well as hiding the VPN icon. On previous versions of Android, I simply used apktool to decompile the SystemUI.apk and framework-res.apk, made my necessary modifications to the res folder, and then recompiled with apktool.
However, I couldn't get that to work on Android 7.1.1, and I started following this guide: http://chromloop.com/2016/11/guide-how-to-port-pixel-navigation-bar-animation-to-your-phone/
Except I still can't get my modifications to work. When I follow the necessary steps and replace my SystemUI.apk, the statusbar and navigation bar are no longer rendered on my phone. And flashing back to stock SystemUI causes the phone to crash repeatedly with an error message of "SystemUI failed to start."
Can anyone kindly point me in the right direction?
Thanks!
SiliconMage said:
Hey all.
I'm trying to modify my SystemUI.apk on stock Android 7.1.1 to remove the regular system clock and add the text clock, as well as hiding the VPN icon. On previous versions of Android, I simply used apktool to decompile the SystemUI.apk and framework-res.apk, made my necessary modifications to the res folder, and then recompiled with apktool.
However, I couldn't get that to work on Android 7.1.1, and I started following this guide: http://chromloop.com/2016/11/guide-how-to-port-pixel-navigation-bar-animation-to-your-phone/
Except I still can't get my modifications to work. When I follow the necessary steps and replace my SystemUI.apk, the statusbar and navigation bar are no longer rendered on my phone. And flashing back to stock SystemUI causes the phone to crash repeatedly with an error message of "SystemUI failed to start."
Can anyone kindly point me in the right direction?
Thanks!
Click to expand...
Click to collapse
You'll need to flash stock img, nothing else i tried worked. I was farting around with both files and systemui stopped working for me after as well. I was just trying to change the framework-res colors. But using the recompiled apk crashed the UI even after replacing it.
StarRavier said:
You'll need to flash stock img, nothing else i tried worked. I was farting around with both files and systemui stopped working for me after as well. I was just trying to change the framework-res colors. But using the recompiled apk crashed the UI even after replacing it.
Click to expand...
Click to collapse
Cool, thanks. Did that get your colors working as well, or no?
SiliconMage said:
Cool, thanks. Did that get your colors working as well, or no?
Click to expand...
Click to collapse
I can change them with zips provided here. http://forum.xda-developers.com/nexus-6p/themes-apps/mod-theme-nmf26f-various-framework-res-t3515739
But I want to do it myself at least so i understand how to modify systemui instead of using user provided zips
Same here, man, same here. Thanks.
I received a response from sharkie405 and I was able to fix my issue by simply adding the -c command to the end of the apktool build command. The "-c" preserves the signing of the original jar, which is necessary for validating the recompiled jar file.
So after I made the necessary modifications to my xml files, I did: java -jar apktool b SystemUI -c

Categories

Resources