Modding SystemUI - Android Q&A, Help & Troubleshooting

I'm running LOS 14.1 on desire 816 and I tried modding my systemui.apk by decompiling it, replacing some xml files from the drawables folder. After recompiling it, I replace it with my stock apk, but when I started my phone it said systemui shows FC. I created one zip also which decompiles replaces and recompiles the apk via recovery also but the results were same. @STRYDER~007 and @Chetan Lodha can you guyz help me

rjcool1999 said:
I'm running LOS 14.1 on desire 816 and I tried modding my systemui.apk by decompiling it, replacing some xml files from the drawables folder. After recompiling it, I replace it with my stock apk, but when I started my phone it said systemui shows FC. I created one zip also which decompiles replaces and recompiles the apk via recovery also but the results were same. @STRYDER~007 and @Chetan Lodha can you guyz help me
Click to expand...
Click to collapse
did you sign it??

Chetan Lodha said:
did you sign it??
Click to expand...
Click to collapse
Yup.......I'm using BD Freak's advanced apktool so I signed it using that tool
Sent from my Htc Desire 816 dual sim using XDA Labs

rjcool1999 said:
Yup.......I'm using BD Freak's advanced apktool so I signed it using that tool
Click to expand...
Click to collapse
Try a tool that's been updated more recently or diy, and check the mods you made too, just because an apk builds with no errors doesn't mean you haven't made any that would break the apk.

XperienceD said:
Try a tool that's been updated more recently or diy, and check the mods you made too, just because an apk builds with no errors doesn't mean you haven't made any that would break the apk.
Click to expand...
Click to collapse
Oooo I didn't knew that, btw can you give me the link of the new tool and how do I figure out whats the error
Sent from my Htc Desire 816 dual sim using XDA Labs

rjcool1999 said:
Oooo I didn't knew that, btw can you give me the link of the new tool and how do I figure out whats the error
Click to expand...
Click to collapse
I only use the cmd prompt method, Tickle My Android is generally kept up to date if you prefer a program to do it for you. As for the error you need to check the xmls you've modified.

XperienceD said:
I only use the cmd prompt method, Tickle My Android is generally kept up to date if you prefer a program to do it for you. As for the error you need to check the xmls you've modified.
Click to expand...
Click to collapse
If I send u the original systemui.apk along with the modded one with the names of modded xml mentioned, will you be able to figure out the problem. As far as tickle my android is concerned, I'm unable to use it, I've it on my pc nd decompiling while using cmd gives me some error so I prefer using advanced apk tool
Sent from my Htc Desire 816 dual sim using XDA Labs

rjcool1999 said:
If I send u the original systemui.apk along with the modded one with the names of modded xml mentioned, will you be able to figure out the problem.
Click to expand...
Click to collapse
Just the xmls should do.
rjcool1999 said:
As far as tickle my android is concerned, I'm unable to use it, I've it on my pc nd decompiling while using cmd gives me some error so I prefer using advanced apk tool
Click to expand...
Click to collapse
I've just replaced the old apktool.jar with the latest in the 1-BDFreak folder and decompiled, recompiled and signed my framework-res with no issues so give that try too.

XperienceD said:
Just the xmls should do.
I've just replaced the old apktool.jar with the latest in the 1-BDFreak folder and decompiled, recompiled and signed my framework-res with no issues so give that try too.
Click to expand...
Click to collapse
Yep I downloaded the latest apktool yesterday only so will give it a shot nd I'll surely send u the original and modded xml files
Sent from my Htc Desire 816 dual sim using XDA Labs

@XperienceD this is the zip
Sent from my Htc Desire 816 dual sim using XDA Labs

rjcool1999 said:
@XperienceD this is the zip
Click to expand...
Click to collapse
That isn't a SystemUI.apk it's some kind of theme zip so wouldn't replace your SystemUI with it.

XperienceD said:
That isn't a SystemUI.apk it's some kind of theme zip so wouldn't replace your SystemUI with it.
Click to expand...
Click to collapse
Okkk so can you tell me how can I change the statusbar and qs icons of LOS 14.1, I dnt like the stock icons, and want to replace them with Xperia/Sense 8 icons. Any guide or help plz
Sent from my Htc Desire 816 dual sim using XDA Labs

I'm getting this error while trying to recompile with the original signature, compiles perfectly with a new signature
Sent from my Htc Desire 816 dual sim using XDA Labs

rjcool1999 said:
I'm getting this error while trying to recompile with the original signature, compiles perfectly with a new signature
Click to expand...
Click to collapse
u need to use original signature else systemui will fc.....just build apk and the copy meta-inf and Androidmanifest.xml from original apk

Chetan Lodha said:
u need to use original signature else systemui will fc.....just build apk and the copy meta-inf and Androidmanifest.xml from original apk
Click to expand...
Click to collapse
And paste them where?????
Sent from my Htc Desire 816 dual sim using XDA Labs

rjcool1999 said:
And paste them where?????
Click to expand...
Click to collapse
in newly built apk

Chetan Lodha said:
in newly built apk
Click to expand...
Click to collapse
Okkk tysm for the help. One question.....LOS 14.1 is already available for the d816 so is it possible to compile the systemui.apk for the d816 from XOSP source code??????????
Sent from my Htc Desire 816 dual sim using XDA Labs

rjcool1999 said:
Okkk tysm for the help. One question.....LOS 14.1 is already available for the d816 so is it possible to compile the systemui.apk for the d816 from XOSP source code??????????
Click to expand...
Click to collapse
it wont work....xosp is based on caf so you cannot directly use xosp systemui on los

Chetan Lodha said:
it wont work....xosp is based on caf so you cannot directly use xosp systemui on los
Click to expand...
Click to collapse
Aare yaar.......I dont have knowledge of building a rom and I'm totally a noobe in coding nd I'm bored of this **** stock ui:crying:
Sent from my Htc Desire 816 dual sim using XDA Labs

rjcool1999 said:
Aare yaar.......I dont have knowledge of building a rom and I'm totally a noobe in coding nd I'm bored of this **** stock ui:crying:
Click to expand...
Click to collapse
First learn how to modify an apk - [How To] use Apktool then read a few GUIDES.

Related

[Q] Can someone building apk from these?

Hy! I used apktool to decompile framework-res.apk... I edited, everythings ok, but i can't compile it It says errors...
I uploaded a zip file, inside:
original framework-res.apk
and the folder with the files from i want the apk.
Plese help me
http://www.multiupload.com/2F564KY7EX
Oh, and sorry for my eng
levus95 said:
Hy! I used apktool to decompile framework-res.apk... I edited, everythings ok, but i can't compile it It says errors...
Click to expand...
Click to collapse
if you can't compile it, then clearly something is not ok, lol.
levus95 said:
Hy! I used apktool to decompile framework-res.apk... I edited, everythings ok, but i can't compile it It says errors...
I uploaded a zip file, inside:
original framework-res.apk
and the folder with the files from i want the apk.
Plese help me
http://www.multiupload.com/2F564KY7EX
Oh, and sorry for my eng
Click to expand...
Click to collapse
haha you don't know how to compile it !!!!!
LOL, that means you are nothing
7zip
Sent from my X8 using XDA
Lol idiot That was at october 29... And the bug was my windows 7...
Never mind...
Sent from my X8 using xda premium

[How-To]Change Grey Status Bar Color to Black

This Is Just a Small How To Change Status Bar Color To Black For Those Who Are Having Problems With Grey Status Bar :
Things Needed :
Code:
Basic Knowledge Of Compiling/decompiling
notepad ++ get it from [URL="http://notepad-plus-plus.org/"]Download[/URL]
First Decompile Your SystemUI.apk
Use Any Of The Preferred Methods
Code:
Then Browse To res > Values >drawables.xml
open the xml in notepad++ and search for
Code:
and search for
<item type="drawable" name="status_bar_background">
and change the codes you get with that to
Code:
[COLOR="Red"]#ff000000[/COLOR]
#FF000000 is your code for black
save it and recompile
Then Either Place It In Your System/app/
and change the permissions rw-r-r- or make a flashable zip and your good to go
If Someone wants to Make a request For The Black Status Bar Please Post Your :
SystemUI.apk
Framework-res.apk
twframework-res.apk​
PS: hit thanks if you think its not hard to hit it
Guys il Post The Grey Status Bar Fix Flashable Zip Here :
For XXDMA5 -- > Flashable Zip
For XXDLJ2 4.1.2 -- > Flashable Zip
For XXDLL4 4.1.2 -- > Flashable Zip​​
what are you using to recompile? apktool? i haven't done any compiling in a while. last i knew was apktool wouldn't work on JB.
na7q said:
what are you using to recompile? apktool? i haven't done any compiling in a while. last i knew was apktool wouldn't work on JB.
Click to expand...
Click to collapse
Apktool works....
Fired From My FireDevice.
na7q said:
what are you using to recompile? apktool? i haven't done any compiling in a while. last i knew was apktool wouldn't work on JB.
Click to expand...
Click to collapse
exactly like sahil said apktool works and if you still face any isdue just let me know
Awesome Post.thanks for share.
Warren87 said:
Awesome Post.thanks for share.
Click to expand...
Click to collapse
no problem my friend
Any chance for a flashable zip file? W
wmfreak said:
Any chance for a flashable zip file? W
Click to expand...
Click to collapse
+1 with many thanks
If someone who already done this could share the zip with us it would be awesome. Thanks..
Sent from my GT-N7100 using xda premium
guys just you guys wanted if you guys can post your version of Rom your using i can upload it for you
i can't get it to recompile. i've tried everything. recompiling works great. maybe it needs some updating or something? happen to have an entire linux or windows update of apktool that i can use?
na7q said:
i can't get it to recompile. i've tried everything. recompiling works great. maybe it needs some updating or something? happen to have an entire linux or windows update of apktool that i can use?
Click to expand...
Click to collapse
upload your systemUI.apk framework-res.apk and tw framework-res.apk
and also firmware version so that it can be helpful for other users as well
here you are my friend! thanks much for helping out!
i'm running the ALJC firmware on the USCC note 2 but running Sprints ALJC firmware.
i modified it to work on the USCC note 2 in case you were wondering.
USCC hasn't gotten any updates :/ so i've gone ahead and made my own you could say.
http://d-h.st/MyT
http://d-h.st/nDs
http://d-h.st/vn8
na7q said:
here you are my friend! thanks much for helping out!
i'm running the ALJC firmware on the USCC note 2 but running Sprints ALJC firmware.
i modified it to work on the USCC note 2 in case you were wondering.
USCC hasn't gotten any updates :/ so i've gone ahead and made my own you could say.
http://d-h.st/MyT
http://d-h.st/nDs
http://d-h.st/vn8
Click to expand...
Click to collapse
no problem my friend il just take a look at it
thanks again! i'm just a wittle bit sad i can't decompile/recompile it myself
who knew decompiling, editing and then recompiling classes.dex were easier than apk's
boggles my mind....
na7q said:
thanks again! i'm just a wittle bit sad i can't decompile/recompile it myself
who knew decompiling, editing and then recompiling classes.dex were easier than apk's
boggles my mind....
Click to expand...
Click to collapse
here mate try this
and report back
ALJA please
Here are my files. I'm on alj3 odex stock.
http://db.tt/USwdDmLv
I tried De compiling myself by failed miserably
Sent from my GT-N7100 using xda premium
MohJee said:
Here are my files. I'm on alj3 odex stock.
http://db.tt/USwdDmLv
I tried De compiling myself by failed miserably
Sent from my GT-N7100 using xda premium
Click to expand...
Click to collapse
try this mate and revert hope everything turns out well

[Q] how to modify status bar and status bar icons?

Hi all,
Someone can tell me which apk or framework i have to edit to modify status bat color , battery icon, Wi-Fi icon etc... ?
Thank you
SystemUI.apk and framework-res.apk
Sent from my awesome fridge
darxsen said:
Hi all,
Someone can tell me which apk or framework i have to edit to modify status bat color , battery icon, Wi-Fi icon etc... ?
Thank you
Click to expand...
Click to collapse
Can't remember exactly which one but you want to mod these apks - settings, framework, lidroid, system ui, & if I remember right from htc devices.... also the Rosie.apk too. You're know which one controls what when you start searching!
Hope this helps & if so.... Press that thanks button :thumbup:
sent from my super modded Samsung Galaxy S3
deanr1977 said:
Can't remember exactly which one but you want to mod these apks - settings, framework, lidroid, system ui, & if I remember right from htc devices.... also the Rosie.apk too. You're know which one controls what when you start searching!
Hope this helps & if so.... Press that thanks button :thumbup:
sent from my super modded Samsung Galaxy S3
Click to expand...
Click to collapse
Those aren't needed, just the one I posted above.
Sent from my awesome fridge
MaartenXDA said:
Those aren't needed, just the one I posted above.
Sent from my awesome fridge
Click to expand...
Click to collapse
Just pull the 1 zip or 2 zips from the rom, & explore for you're self, I think its the system ui but could be wrong, I'm not near my computer at the moment to check so I can't say exactly which one it is? If you're gonna mod the battery icons you're gonna look inside anyway & I takes like 10secs to extract & search the apk? If you don't wanna do that, there are various apps in the playstore you can download for free to look at the framework pics from inside the apks without opening them! Hope this helps.... press thanks if it did
sent from my super modded Samsung Galaxy S3
deanr1977 said:
Just pull the 1 zip or 2 zips from the rom, & explore for you're self, I think its the system ui but could be wrong, I'm not near my computer at the moment to check so I can't say exactly which one it is? If you're gonna mod the battery icons you're gonna look inside anyway & I takes like 10secs to extract & search the apk? If you don't wanna do that, there are various apps in the playstore you can download for free to look at the framework pics from inside the apks without opening them! Hope this helps.... press thanks if it did
sent from my super modded Samsung Galaxy S3
Click to expand...
Click to collapse
Is this post meant for me?
Sent from my awesome fridge
darxsen said:
Hi all,
Someone can tell me which apk or framework i have to edit to modify status bat color , battery icon, Wi-Fi icon etc... ?
Thank you
Click to expand...
Click to collapse
As Maarten already pointed out SystemUI.apk and framework-res.apk. And if you want to use them in apktool you'll also need com.htc.resources.apk.
Just out of curiosity: are you going to use UOT or apktool? Been trying to change status bar clock colour on half-sense and fulmix (see my post in his thread) with apktool but haven't succeeded yet.
What are your plans on theming?
Just pull the zips & open using winrar? Thts what I've been doing for around 4yrs now
sent from my super modded Samsung Galaxy S3
deanr1977 said:
Just pull the zips & open using winrar? Thts what I've been doing for around 4yrs now
sent from my super modded Samsung Galaxy S3
Click to expand...
Click to collapse
That's just image editing.
If you want to theme it even further, you need to decompile it and edit .xml's and .smali's.
Sent from my awesome fridge
I want to modify just some png , i would a complete BuuF theme on my desire X..
However i would use apktool, because i always used it, but i think i have to try something else, because when i try to debuild Rom's apk it says: "bad magic number" or something similar..
R: [Q] how to modify status bar and status bar icons?
darxsen said:
I want to modify just some png , i would a complete BuuF theme on my desire X..
However i would use apktool, because i always used it, but i think i have to try something else, because when i try to debuild Rom's apk it says: "bad magic number" or something similar..
Click to expand...
Click to collapse
It gives you this errors because there is classes.dex file on it. Delete it and than decompile.
Dex files are most of them added by phone's company; for us HTC.
Sent from my HTC Desire X using xda premium
fulmix said:
It gives you this errors because there is classes.dex file on it. Delete it and than decompile.
Dex files are most of them added by phone's company; for us HTC.
Click to expand...
Click to collapse
Ok, but if i delete dex files when i rebuild the package will it work ?
Is there any room that allow to edit it theme? With a simple apk?
I hate work on others apk, mostly if these apk are HTC's apk U.U
darxsen said:
Ok, but if i delete dex files when i rebuild the package will it work ?
Is there any room that allow to edit it theme? With a simple apk?
I hate work on others apk, mostly if these apk are HTC's apk U.U
Click to expand...
Click to collapse
Open with WinRAR or 7-Zip delete classes.dex and than decompile with apktool.
Note: you do not have to extract apk to delete classes.dex file.
fulmix said:
Open with WinRAR or 7-Zip delete classes.dex and than decompile with apktool.
Note: you do not have to extract apk to delete classes.dex file.
Click to expand...
Click to collapse
Why would there be a need of deleting classes.dex? I've decompiled lots of HTC apps and they all worked fine.
Sent from my awesome fridge
MaartenXDA said:
Why would there be a need of deleting classes.dex? I've decompiled lots of HTC apps and they all worked fine.
Sent from my awesome fridge
Click to expand...
Click to collapse
Bad Mugic Number error is usually for this file.
Samsung, HTC, etc. have different dex files.
fulmix said:
Bad Mugic Number error is usually for this file.
Samsung, HTC, etc. have different dex files.
Click to expand...
Click to collapse
have i to put back .dex files ? or not?
darxsen said:
have i to put back .dex files ? or not?
Click to expand...
Click to collapse
It's not necessary.
But deleting it avoid the Bad Magic Number errors.
People, cause my brother has my same account I have to create my new one, so your fulmix now is xpirt
Sent from my HTC Desire X using xda premium
fulmix said:
It's not necessary.
But deleting it avoid the Bad Magic Number errors.
Click to expand...
Click to collapse
Can you prove this ??
Make a SystemUI.apk without classes.dex and put that in you ROM and release to all users to test. If it works, I will resign from making ROMs.
---------- Post added at 04:27 PM ---------- Previous post was at 04:24 PM ----------
darxsen said:
I want to modify just some png , i would a complete BuuF theme on my desire X..
However i would use apktool, because i always used it, but i think i have to try something else, because when i try to debuild Rom's apk it says: "bad magic number" or something similar..
Click to expand...
Click to collapse
Use latest apktool, bad magic value errors fixed in new version.
Refer to this for more info : http://forum.xda-developers.com/showthread.php?t=1642224
BTW... if it just some icons png that you need to change, just replace the pngs, decompile/recompile is not needed.
---------- Post added at 04:28 PM ---------- Previous post was at 04:27 PM ----------
darxsen said:
have i to put back .dex files ? or not?
Click to expand...
Click to collapse
SystemUI must have classes.dex; there is where all the instructions (the smali files) come from for the apk to work. Like what to run for the EQS and many more.
As mentioned on the link given above
Code:
b) If you are using apkmanager, you can just export classes.dex, then delete classes inside the apk. Then decompile, edit, compile and add classes.dex back when ready.
MaartenXDA said:
That's just image editing.
If you want to theme it even further, you need to decompile it and edit .xml's and .smali's.
Sent from my awesome fridge
Click to expand...
Click to collapse
Yeah you're right you can edit the xmls & smalis, I have never got the hang of that yet? I just do it the other way
darxsen said:
I want to modify just some png , i would a complete BuuF theme on my desire X..
However i would use apktool, because i always used it, but i think i have to try something else, because when i try to debuild Rom's apk it says: "bad magic number" or something similar..
Click to expand...
Click to collapse
I have made wicked themed roms on the desire hd & now on the samsung galaxy s3! I just pull the res folder then mod the pngs with photoshop & then push back to the zip & flash.... ok its not perfect but I've made sum sweet looking ui & systems by doing it that way
sent from my super modded Samsung Galaxy S3

[Q][Help] Recompile/Decompile apk's

Hi guys !
I'm having a problem recompiling the systemui.apk, i'm modding some .xml files and everything goes fine, it recompiles ok but when i push it to my phone there's no change i decompile the modified apk and the xml files aren't change either it's like i didn't change anything from them.
Every single time a recompile an apk it goes back to normal
Does anyone else has that problem or is just me , and does someone knows how can i fix that problem?
INFO :
Windows 8 pro
Using : Apktool , Auto apktool and tickle my android (in all of them i get that same problem)
Thanks in advance, regards
Give the Command Prompt Editing section a read, might clear it up. - [Advice/Reference/Guide] The Definitive APK Modding & Theming Thread...
XperienceD said:
Give the Command Prompt Editing section a read, might clear it up. - [Advice/Reference/Guide] The Definitive APK Modding & Theming Thread...
Click to expand...
Click to collapse
Already read it and that's what i've been doing, and like i said the changes aren't saved. Every time i delete o put some codes in the xml file with notepad++ i save them but after i recompile the apk i decompile it again to check if everything's alright but the files look like the original ones.
monster30 said:
i decompile it again to check if everything's alright but the files look like the original ones.
Click to expand...
Click to collapse
Is this apk in the dist folder?
XperienceD said:
Is this apk in the dist folder?
Click to expand...
Click to collapse
Yep. I really don't know why i can't make it work a week ago i didn't have this problem. (i didn't change anything in my laptop etc)
Sent from my WT19i using xda premium
..
monster30 said:
Yep. I really don't know why i can't make it work a week ago i didn't have this problem. (i didn't change anything in my laptop etc)
Sent from my WT19i using xda premium
Click to expand...
Click to collapse
here, pls try this to de-/recompile using his TuT; BUT recompile TuT has a bug:
''apktool b -f -d semcmusic.apk ( can be whatever name you give to your apk )'' <-- justtype in without ''.apk'' --> will work
i use this mostly bcuz for me, it dont maked any problem's (like some other tools), also allways work
bejunk said:
here, pls try this to de-/recompile using his TuT; BUT recompile TuT has a bug:
''apktool b -f -d semcmusic.apk ( can be whatever name you give to your apk )'' <-- justtype in without ''.apk'' --> will work
i use this mostly bcuz for me, it dont maked any problem's (like some other tools), also allways work
Click to expand...
Click to collapse
i tried that one a couple of times and it didn't worked ,right now i try it again and the changes were saved but when i push it to my phone the status bar was gone (i did copy the META.INF folder to the new apk)
monster30 said:
i tried that one a couple of times and it didn't worked ,right now i try it again and the changes were saved but when i push it to my phone the status bar was gone (i did copy the META.INF folder to the new apk)
Click to expand...
Click to collapse
and this apktool says recopiling was fine??
also: which rom is this systemUI from; what for a mod u will do?? (will try it on my pc, maybe the problem is win8 ?)
bejunk said:
and this apktool says recopiling was fine??
also: which rom is this systemUI from; what for a mod u will do?? (will try it on my pc, maybe the problem is win8 ?)
Click to expand...
Click to collapse
Yep, the recompile goes ok. I wanna change the toggle icons and wanna move the icons in the status bar.
And actually ticklefish already help me with that and when i push it nothing happen either, so i don't think it's a prob with win8 cuz before i didn't had that problem, it started this week
The systemUi is from honami i1 rom from aneel, i already install the framework from the rom.
Sent from my WT19i using xda premium

Settings Apk Recompiling error pls. help

I decompiled settings.apk of Micromax A110 using apktool.I installed framework-res.I did not even touch any file of the decompiled directory.i recompiled it.and it is showing the following error.I cannot even add my name in the ROM i created and it is my first rom .is it any problem with apktool or java.i can get the output apk and it donot get installed in the rom.There is no settings in the app drawer.You people are awesome rom developers .pls help me.i just want to add this. developer name sabeeh. . Thanks in advance.
sabeeh102 said:
I decompiled settings.apk of Micromax A110 using apktool.I installed framework-res.I did not even touch any file of the decompiled directory.i recompiled it.and it is showing the following error.I cannot even add my name in the ROM i created and it is my first rom .is it any problem with apktool or java.i can get the output apk and it donot get installed in the rom.There is no settings in the app drawer.You people are awesome rom developers .pls help me.i just want to add this. developer name sabeeh. . Thanks in advance.
Click to expand...
Click to collapse
have you installed proper deodexed framework and systemui apk?
I installed the frameworks for framework-res ,system ui,and even mediatek-res but no use. plss. help sir
sabeeh102 said:
I installed the frameworks for framework-res ,system ui,and even mediatek-res but no use. plss. help sir
Click to expand...
Click to collapse
These are just warnings the apk will compile fine...
Sent from my SCH-I605 using xda app-developers app
lacoursiere18 said:
These are just warnings the apk will compile fine...
Sent from my SCH-I605 using xda app-developers app
Click to expand...
Click to collapse
I would say the same thing, with a side note that while warnings are often dismissed because you can still compile and it MAY work, they are there for a reason. In this case, as far as I see, there are missing translations. It may or may not be pertinent, but it should be dismissed upon inspection, not upon realizing that "it compiles".

Categories

Resources