I have been trying all night to compile SystemUI.apk
Does anyone have a quick link to a guide that they used to de/compile SystemUI.apk so i can change some smali and some .xmls??
all the guides ive found have not solved my compiling issues.
Download apktool and set it up correctly make sure the latest java is installed along with the most recent jdk. You have to load the framework usually before you edit a system apk, and remember system.apk's don't need to be signed. Sometimes it is necessary to load a secondary framework-res most likely for tw roms/firmware
apktool if framework-res.apk
apktool d SystemUI.apk
Leave window open
apktool b SystemUI blahblahblah.apk
After it's done
Drag meta-inf and androidmanifest.xml from old apk to new one, zip align and rename blahblahblah.apk to specific apk and voila push to system/app set permissions rw-r-r or chmod 644 reboot wipe cache and dalkvik fix permissions and you're ready to rock and roll
There is a thread on xda by ibotpeaches concerning apktool I would take a long hard look at it before you get into this stuff. Wouldn't want you messing anything up getting your phone stuck in a boot loop.
USMC0341 said:
Download apktool and set it up correctly make sure the latest java is installed along with the most recent jdk. You have to load the framework usually before you edit a system apk, and remember system.apk's don't need to be signed. Sometimes it is necessary to load a secondary framework-res most likely for tw roms/firmware
apktool if framework-res.apk
apktool d SystemUI.apk
Leave window open
apktool b SystemUI blahblahblah.apk
After it's done
Drag meta-inf and androidmanifest.xml from old apk to new one, zip align and rename blahblahblah.apk to specific apk and voila push to system/app set permissions rw-r-r or chmod 644 reboot wipe cache and dalkvik fix permissions and you're ready to rock and roll
There is a thread on xda by ibotpeaches concerning apktool I would take a long hard look at it before you get into this stuff. Wouldn't want you messing anything up getting your phone stuck in a boot loop.
Click to expand...
Click to collapse
I already know about installing the framework, and i installed both twframework-res.apk and framework-res.apk. i also installed SystemUI.apk as per several posts. I already read through ibotpeaches' post, that is where i got apktool afterall = ). in still running into compiling errors however.
Any ideas?
As implied, I have decompiled no problem, its compiling im running into issues with.
Nv1dia said:
I have been trying all night to compile SystemUI.apk
Does anyone have a quick link to a guide that they used to de/compile SystemUI.apk so i can change some smali and some .xmls??
all the guides ive found have not solved my compiling issues.
Click to expand...
Click to collapse
Here you go man he tells you exactly how to do it its not that hardhttp://forum.xda-developers.com/showthread.php?t=2279024
Sent from my GT-I9505 using xda premium
jthrasher47 said:
Here you go man he tells you exactly how to do it its not that hardhttp://forum.xda-developers.com/showthread.php?t=2279024
Sent from my GT-I9505 using xda premium
Click to expand...
Click to collapse
I am afraid this is not the answer as my errors look nothing like that. I remember reading a while back when i themed for the GS3 that i needed to move files out of apk before decompiling, i can't seem to find this page again however..... in any case thank you both for the help, i will just have to continue looking.
Nv1dia said:
I am afraid this is not the answer as my errors look nothing like that. I remember reading a while back when i themed for the GS3 that i needed to move files out of apk before decompiling, i can't seem to find this page again however..... in any case thank you both for the help, i will just have to continue looking.
Click to expand...
Click to collapse
Why haven't you posted the log so the compile error can be seen. How can you expect help without giving all the vital information?
Sent from my SAMSUNG-SGH-I337 using Tapatalk 4 Beta
Nv1dia said:
I am afraid this is not the answer as my errors look nothing like that. I remember reading a while back when i themed for the GS3 that i needed to move files out of apk before decompiling, i can't seem to find this page again however..... in any case thank you both for the help, i will just have to continue looking.
Click to expand...
Click to collapse
That link is showing the framework-res.apk error. Your getting "style" errors correct? You need to modify 2 XMLs from the res/layout folder. And cause I'm a nice guy I'll link you to my DB that has the modified ones and originals. PM me and I'll share my DB folder with you. Its very easy. The aapt for apktool needs updating but we Ave to resort to workarounds for the time being. Same thing for framework-res.apk and others. We'll get ya straightened out!
Sent from my SPH-L720 using Tapatalk 2
reverepats said:
That link is showing the framework-res.apk error. Your getting "style" errors correct? You need to modify 2 XMLs from the res/layout folder. And cause I'm a nice guy I'll link you to my DB that has the modified ones and originals. PM me and I'll share my DB folder with you. Its very easy. The aapt for apktool needs updating but we Ave to resort to workarounds for the time being. Same thing for framework-res.apk and others. We'll get ya straightened out!
Sent from my SPH-L720 using Tapatalk 2
Click to expand...
Click to collapse
I have resolved the issue.. Thanks for the help though! Turns out a simple reboot of my computer was all i needed. I wasnt getting a styel error. It was a simple Java error is all. Thank you everyone for all your help!
Related
This is my attempt to get some more creativity, innovation, and roms here on xda. alot of people here have incredible skills but they cant be harnessed because they dont know what to do. if you are an artist we need you make icon packs. you have made 30 roms but you cant sign them. blah blah.
so no one abuse this but i attached a toolkit to do anything and everything with android on windows. im pushing this to be used for creating themes. hopefully it can help. but i thought it would be nice if everyone had this and the opensource community could start to grow even more.
i like this idea because it can help fellow Devs and even the watchers. everyone can get involved and give something to the community.
And now i present the Avabox
Any questions post them up.
OUTLINE------------------------------------------------------------
unyaffs-you have the ability to take system.img and data.img from you nandroids and get specific items from them.
Autosign- sign anything and everything. name your zip update.zip and follow the readme. roms themes, apps, anything.
Baksmali- put in apk in the folder. read readme. edit any icons wallpapers, anything. close it up and enjoy.
Perlscripts- this opens the boot.img for you.
Read the readme on all of these programs.
So this is going to be a quick tutorial Im gonna put up a video soon on how i got this to work on my computer
First things first download Avabox and unzip it in your C folder (same place you put androidsdk).
then get the java runtime from here not to be confused with the java development kit but since your there might as well grab it as well.
Install the java runtime then reboot
then open up avabox and click on autosign and place the zip you want signed in that folder and name it update.zip (dont add the .zip part it should already be a zip file).
then open up command prompt and type:cd\
cd Avabox/auto-sign
java -jar signapk.jar testkey.x509.pem testkey.pk8 update.zip update_signed.zip
After that last enter give it a second and look in your avabox/update file and you'll notice a new file called update_signed.zip
I know that this is almost word for word from the read me but a few differences can go along way expect a video shortly..... well around wednesday or whenever i can get someone to help with this
porting
im interested in learning how to port and combine different aspects of themes and other mods. will this do it or is there other software i need. I can do the work if shown the way. I read all the post everday with peopl;e asking for this and that and i do it myself. If shown I would help with requests as much as possible. HELP PLEASE
Thank you Avalaunch!!
so with this software, can i take a signed theme mod (like launcher or taskbar) and it will grab the images for me to edit, and then repack and sign to a flashable zip?
Everyone that knows how to use bak/smali, I have a question.
The modifications I made to the extracted pngs aren't getting transferred back to the original apk when I close it back up. Any Ideas? I'm getting really close to a breakthrough for 2.1. Any help would be appreciated
regaw_leinad said:
Everyone that knows how to use bak/smali, I have a question.
The modifications I made to the extracted pngs aren't getting transferred back to the original apk when I close it back up. Any Ideas? I'm getting really close to a breakthrough for 2.1. Any help would be appreciated
Click to expand...
Click to collapse
hm ill have to check into it. it should be making a new classes.dex too. i never really used it on edits.
Avalaunchmods said:
hm ill have to check into it. it should be making a new classes.dex too. i never really used it on edits.
Click to expand...
Click to collapse
It changes the classes.dex and resigns it it looks like, but doesn't copy the mods of the pngs to the apk.
regaw_leinad said:
Everyone that knows how to use bak/smali, I have a question.
The modifications I made to the extracted pngs aren't getting transferred back to the original apk when I close it back up. Any Ideas? I'm getting really close to a breakthrough for 2.1. Any help would be appreciated
Click to expand...
Click to collapse
What do you mean? Baksmali and Smali are for decompiling classes.dex and opening it up for the .smali files that are inside. Smali takes that output and recompiles it back into classes.dex for your .apk or .jar file.
You need to update the baksmali and smali .jar's. You have older versions and that will cause issues with certain .jar and .apk's when decompiling. baksmali-1.2.1.jar and smali-1.2.1.jar are the latest versions and will not require the BOOTCLASS PATH to be included...
Does the autosign work windows 7 (64 bit)? I've heard issues with other autosigns on 7. If it doesn't, no biggie I got xp in a VM... lol
obannvi said:
What do you mean? Baksmali and Smali are for decompiling classes.dex and opening it up for the .smali files that are inside. Smali takes that output and recompiles it back into classes.dex for your .apk or .jar file.
Click to expand...
Click to collapse
Yeah I get it now, after playing with it for a while.
Avalaunch, you should change the first post.
Baksmali- put in apk in the folder. read readme. edit any icons wallpapers, anything. close it up and enjoy.
Click to expand...
Click to collapse
that description is a little confusing to a person that NEVER used smali/baksmali before. It makes it seem like after you edit the unzipped files, you could just run smali and it will put al the changes in the new apk. I figured out that's not how it works lol I feel pretty stupid now looking back at my last question haha
regaw_leinad said:
Yeah I get it now, after playing with it for a while.
Avalaunch, you should change the first post.
that description is a little confusing to a person that NEVER used smali/baksmali before. It makes it seem like after you edit the unzipped files, you could just run smali and it will put al the changes in the new apk. I figured out that's not how it works lol I feel pretty stupid now looking back at my last question haha
Click to expand...
Click to collapse
What im trying to figure out is why would you even need to use baksmali/smali to edit .png's inside an .apk. All that needs to be done is opening of the .apk with 7zip, modify whats in /res/drawable etc then close...No need to sign .apks or anything. If anything, the script needs to contain something to extract /res/ * from the .apk to edit.
obannvi said:
What im trying to figure out is why would you even need to use baksmali/smali to edit .png's inside an .apk. All that needs to be done is opening of the .apk with 7zip, modify whats in /res/drawable etc then close...No need to sign .apks or anything. If anything, the script needs to contain something to extract /res/ * from the .apk to edit.
Click to expand...
Click to collapse
I'm actually doing more than that. I am changing the code to look for instead of <name of file>.jpg to <name of file>.png
While also putting the new png in the apk. Think that's possible? I changed all of the locations where that file comes up in the smali code.
regaw_leinad said:
I'm actually doing more than that. I am changing the code to look for instead of <name of file>.jpg to <name of file>.png
While also putting the new png in the apk. Think that's possible? I changed all of the locations where that file comes up in the smali code.
Click to expand...
Click to collapse
I gotcha. So you're looking in blah.smali for any reference to .jpgs and changing that reference to look for .png instead??
obannvi said:
I gotcha. So you're looking in blah.smali for any reference to .jpgs and changing that reference to look for .png instead??
Click to expand...
Click to collapse
yeah, not working too well atm, but working on it.
I think this is what I've been looking for. Downloading now.
Just noticed that ActivePerl was for 64bit. I am downloading 32bit as I have only have 32bit Vista Pro installed and not the 64bit.
regaw_leinad said:
Yeah I get it now, after playing with it for a while.
Avalaunch, you should change the first post.
that description is a little confusing to a person that NEVER used smali/baksmali before. It makes it seem like after you edit the unzipped files, you could just run smali and it will put al the changes in the new apk. I figured out that's not how it works lol I feel pretty stupid now looking back at my last question haha
Click to expand...
Click to collapse
i guess i need to explain more. i use baksmali to make apks easier to search through. for me at least. instead of changing the type and everything i just put it in the folder and baksmali then do changes and create a new archive. sign and change .apk. if you smali it back to apk then it wont save edits. sorry about that anyways has this helped people so far? i love showing that windows can be a dev platform
&RoidRage said:
I think this is what I've been looking for. Downloading now.
Just noticed that ActivePerl was for 64bit. I am downloading 32bit as I have only have 32bit Vista Pro installed and not the 64bit.
Click to expand...
Click to collapse
yes just google active perl i use win 7 64bit and when this toolbox was made, it was only made for certain people who had 64bit.
Sorry for the n00b question, but I have searched and haven't had much luck. Hopefully, this is the best place for this question. I just started editing .png's and updating some apk's files to customize some things on my phone for looks. However, I am really interested in modifying the taskbar and notification screen, but I have no clue where to start. Is there a guide somewhere I could follow to learn how to change them? What programs, if any additional ones will I need etc..?
Thanks for your help!
Figured it out on my own. framework.apk and resources.apk
I decompiled an apk and made some changes to the xml files in it but I'm having issues compiling it again. I've used apktool and apk manager to try to do it and I get what looks like an apk but I can't get it to show up when I push it to my emulator. Am I missing something here? Any help would be appreciated, I'm new to android programming.
You're pushing it to /system/app/ I assume?
illogic6 said:
You're pushing it to /system/app/ I assume?
Click to expand...
Click to collapse
You assume correctly. I just don't think the apk is being compiled correctly. I see it in the /system/app folder on the emulator but that's as close as it gets for me.
Don't make it harder than it has to be, forget signing the apk and using that method. Simply open the apk your editing with winrar highlight the res folder, press delete, then copy over the res folder with the edited xmls. Hit okay, and push to /system/app, that's what i do. The other method is just to complicated and time consuming.
Sent from my SPH-D700 using XDA App
bubby323 said:
Don't make it harder than it has to be, forget signing the apk and using that method. Simply open the apk your editing with winrar highlight the res folder, press delete, then copy over the res folder with the edited xmls. Hit okay, and push to /system/app, that's what i do. The other method is just to complicated and time consuming.
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
Ill give that a try when I get home. It has been time consuming... thanks bubby, I love your rom
Ok, I tried bubby's method, and it show up now in the emulator but I'm getting FC. I was wondering if not transferring the xml back to binary could be the cause? I've seen lots of articles on how to translate the binary xml to human-readable xml but I can't find anything on transferring it back to binary.
Hey guys I need a bit of help..... I was trying to edit the drawables on my gf 's Eris in the framework-res.apk and when I recompiled the Rom and tried to flash my changes recovery tells me that the update script couldn't be verified due to framework-res.apk and aborts the installation.... what am I doing wrong? Do I need to sign this apk or something to make it work correctly? I did this on my Droid incredible the other day with no problem. I know there was another thread on this further down in Dec but unfortunately it didn't give me the answers I need...
Sent from my ADR6300 using XDA App
elixir911911 said:
Hey guys I need a bit of help..... I was trying to edit the drawables on my gf 's Eris in the framework-res.apk and when I recompiled the Rom and tried to flash my changes recovery tells me that the update script couldn't be verified due to framework-res.apk and aborts the installation.... what am I doing wrong? Do I need to sign this apk or something to make it work correctly? I did this on my Droid incredible the other day with no problem. I know there was another thread on this further down in Dec but unfortunately it didn't give me the answers I need...
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
I assume from reading your post that you updated the framework png's inside a Rom Zip package... You don't need to sign the framework, but you do have to resign the Rom Zip file. Try re-signing the rom file, that should get it working...
Macrodroid said:
I assume from reading your post that you updated the framework png's inside a Rom Zip package... You don't need to sign the framework, but you do have to resign the Rom Zip file. Try re-signing the rom file, that should get it working...
Click to expand...
Click to collapse
Any input on how to sign Rom files? I've never signed anything before
elixir911911 said:
Any input on how to sign Rom files? I've never signed anything before
Click to expand...
Click to collapse
You can sign it using gnarlycs kitchen.
Edit: another thing you could have done is just pushed your modded frameworkres to its folder and rebooted the phone.
Sent from my Incredible using Tapatalk
elixir911911 said:
Any input on how to sign Rom files? I've never signed anything before
Click to expand...
Click to collapse
find zip signer i believe its called u can use that
tazzpatriot said:
find zip signer i believe its called u can use that
Click to expand...
Click to collapse
Sterricson Zip Signer, or get SignApkTool from the market and sign it on your phone... Just make sure you use the test-keys for the rom file...
I used zip signer from the market.... is there anyway I can use this to sign apk 's like HTC messaging and HTC IME so that I can edit drawables in those apps?
Sent from my ADR6300 using XDA App
elixir911911 said:
I used zip signer from the market.... is there anyway I can use this to sign apk 's like HTC messaging and HTC IME so that I can edit drawables in those apps?
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
Y don't u just download the kitchen so u can do it easier and do a bunch together...I think someone said this already I forget lol I need to look haha
Well I know how to sign sips I just want to know if I can sign apps like HTC messaging so they'll install on my device.... if I unzip and rezip afile it won't install on my device... will signing it fix this?
Sent from my ADR6300 using XDA App
i could never get that **** to recompile correctly. i gave up.
I use apk manager to decompile, compile, and sign apks. Unless I'm adding pngs I'm which case I use apktool. If your just editing or replacing what already exists apk manager is the easiest way in my opinion.
Sent from my ERIS using XDA App
elixir911911 said:
Well I know how to sign sips I just want to know if I can sign apps like HTC messaging so they'll install on my device.... if I unzip and rezip afile it won't install on my device... will signing it fix this?
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
Those won't install...you need to push them to system/app and reboot. No need to sign them unless you resign a whole rom.zip
Conap said:
Those won't install...you need to push them to system/app and reboot. No need to sign them unless you resign a whole rom.zip
Click to expand...
Click to collapse
That's right.. thanks for adding that Conap. Also I was re-reading and just wanted to add as well that you don't want to unzip an apk to modify it and then zip it.. Use one of the other tools mentioned.. apktool or apkmanager
CondemnedSoul said:
That's right.. thanks for adding that Conap. Also I was re-reading and just wanted to add as well that you don't want to unzip an apk to modify it and then zip it.. Use one of the other tools mentioned.. apktool or apkmanager
Click to expand...
Click to collapse
Also for pc 7zip works good also. Just right click the file 7zip open archive drop your png where you want it. Close the apk and push it to system/app or where ever it came from.
If your on ubuntu just click your apk and drop your pngs. You don't even need an apk tool.
dinc¦rockin' the stock root
wildstang83 said:
Also for pc 7zip works good also. Just right click the file 7zip open archive drop your png where you want it. Close the apk and push it to system/app or where ever it came from.
If your on ubuntu just click your apk and drop your pngs. You don't even need an apk tool.
dinc¦rockin' the stock root
Click to expand...
Click to collapse
That does work as well but doing it that way you will need to optimize the .9's if you change them also. xultimate works great for that.
CondemnedSoul said:
That does work as well but doing it that way you will need to optimize the .9's if you change them also. xultimate works great for that.
Click to expand...
Click to collapse
Oh cool. I never really optimized any of them. What does that do?
dinc¦rockin' the stock root
ok big time mess up...I downloaded apk manager....I used the command prompt to adb pull Browser.apk. I put this in the modding folder and used the script.bat file to extract the apk....I edited my files annd hit re zip apk and chose the option to retain signature for system apps. Then when I adb push back it seems to work fine but when I reboot browser doesnt show up in my app list!!!!! help please!!! where did I mess up? I even tried to zip align to see if that would fix it.....If I try to use coommand prompt to adb push the original browser.apk back into place it says error read only file system.....I'm locked out! ah!
elixir911911 said:
ok big time mess up...I downloaded apk manager....I used the command prompt to adb pull Browser.apk. I put this in the modding folder and used the script.bat file to extract the apk....I edited my files annd hit re zip apk and chose the option to retain signature for system apps. Then when I adb push back it seems to work fine but when I reboot browser doesnt show up in my app list!!!!! help please!!! where did I mess up? I even tried to zip align to see if that would fix it.....If I try to use coommand prompt to adb push the original browser.apk back into place it says error read only file system.....I'm locked out! ah!
Click to expand...
Click to collapse
To push the original browser, /system needs to be mounted as r/w which can be done with the command "adb remount"
As for the problem with the modded browser not showing up, try this:
Code:
adb shell chmod 644 /system/app/Browser.apk
adb shell chown 0:0 /system/app/Browser.apk
#now reboot into recovery, wipe cache and dalvik-cache, and reboot
the string you typed for the modded browser....i type that into a normal command prompt not into apk manager correct? I tried to put my normal browser back with adb remount and it still doesnt show in my app list but if i look with a file explorer the apk is in the right place....why wont it show up?
OK i actually pushed my old browser successfully and it wouldnt show in my app list....I then followed your instructions and did adb shell chmod and chown and reboot wipe dalvik and cache and it still wouldnt show up. I really dont wanna have to flash a recovery image....
edit: If it has any importance this is actually on a droid incredible i was testing for my gf's eris. So idk if it changes anything that this is actually an inc.
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!
Hi
I try to decompile SecSettings by apktool and i get this:
Code:
C:\apktool>apktool d secsettings.apk SecSettings23
I: Baksmaling...
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources:
spec=0x7f020052 drawable/avatar_default_6, config=-hdpi
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:65)
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:58)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:196)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:165
)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:130)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:10
5)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:82)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibRes
ources.java:315)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.jav
a:50)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.jav
a:43)
at brut.androlib.Androlib.getResTable(Androlib.java:44)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:148)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)
What to do ??
Thanks
Please any help?
Same issue here
osherdadon said:
Please any help?
Click to expand...
Click to collapse
Using a Note 3 from T-Mobile, I pulled the file with the adb command, with root explorer, and extracted it from the stock ROM file all giving me the same error. For some reason I also don't get any smali files out of my SystemUI.apk which has been driving me crazy. I can't seem to find any working answers yet... Fail...
Basically bumping this thread a half a year later...
SOMEONE HELP US
You have the relevant frameworks installed and java in your path?
Learned a lot in 24 hours
DSA said:
You have the relevant frameworks installed and java in your path?
Click to expand...
Click to collapse
Summary/Lessons Learned in the last 24 hours:
I must have been too tired, went to sleep got up again and went at it. I realized a few things, main thing was deodexing, I learned all about that. Converting the .odex file to a class.dex file inside the SystemUI.apk and SecSettings.apk so decompiling would work properly (I was originally missing the smali folder without deodexing my app). Second I needed to pull all the framework files from my device instead of just the two I had, then I used "apktool if framework-res.apk" then "apktool if twframework-res.apk" then "apktool d SystemUI.apk" then "apktool d SecSettings.apk". This time it actually worked, I proceeded to try and re-compile them just to test. The SystemUI.apk worked flawlessly but the the SecSettings.apk had errors then I realized I needed to copy the AndroidManifest.xml and resources.arsc from the original app to the decompiled folder and the SecSettings.apk compiled with no issues. I had to get the original file out of the stock ROM, it had gotten damaged somehow with zipping/raring/7zipping so quicktip no one should be zipping the files you're about to work on get it fresh from the ROM.
Current Issue:
Now that all that's done I'm onto what I was trying to get at when I started this whole project. I need to modify both of these apps which are now perfectly deodexed and on my stock device. Every time I try to modify these files I lose my status bar and my settings stop working, I'm obviously breaking it, this is the XDA guide I was following.
Any help or redirection on where to post would be greatly appreciated, thanks
Easiest thing - put your mod back in and get the status bar to disappear/fc whatever
Then, pull a log (catalog from appstore works fine)
Post that log at pastebin and link it here
We won't be able to solve your issue without knowing what it is, in the first place
Like this?
This was before I restarted: Log 1
Then I recorded for a little after I restarted probably pointless but that's where the error would have been: Log 2
DSA said:
Easiest thing - put your mod back in and get the status bar to disappear/fc whatever
Then, pull a log (catalog from appstore works fine)
Post that log at pastebin and link it here
We won't be able to solve your issue without knowing what it is, in the first place
Click to expand...
Click to collapse
Not sure exactly how to record it and send it to you, I pressed record but when the phone finished rebooting CatLog was closed so I reopened it and it keeps scrolling endlessly.
Research progressed a little
I came across a post here in the Flashlight Mod development thread which made me realize I'm not getting the ID's correct. They suggest compiling the modded SystemUI.apk to get the ID's into the apk file under the /res/values/public.xml file, then decompiling it to read the ID values. I'm missing a step or doing something wrong, I can't replicate it to find the ID values I need so I can add them to the .smali file and recompile a final time. I'm sure this is the only reason for the missing status bar and the force closes. I guess I need help understanding, a different set of instructions or just more detailed?
I can't post in that thread yet so I'm getting my posts up over here, I already posted in the Q&A thread but no one has responded yet, any help is greatly appreciated!
I get this when decompiling the modded apk: Modded SystemUI ApkTool Decompile
All these errors look like the file is broken now or something, I'm just lost at this point. I tried ApkTool 1.5.2 and 2.0 as well.
EDIT:
Additional info below for troubleshooting purposes since it seems my issue recompiling at the end to get the values for my public.xml
STEPS:
1. deodex (universal deodexer v5)
2. decompile (apktool 1.5.2 & 2.0 separate tests)
3. modify (add flashlight .png's and .smali file from 4.4kk flashlight mod files)
4. recompile (apktool)
5. decompile (apktool)
=
Errors <<<<< These errors solved in edit below
EDIT:
I forgot to use "apktool if SystemUI.apk" when loading "framework-res.apk" & "twframework-res.apk" now I get through decompiling and recompiling like I thought I should be and I even located the values int he public.xml, replaced them in the .smali and everything went peachy. Only problem is I never get the status bar after I reboot, not really getting any FC's but the status bar, if my goal were to get it to be invisible I would be so happy omg lol If you're curious I've also tested by signing and even another test with zipalign, nothing zip/zero/zilch...
EDIT... Again I know still no sleep, durp durp:
So my main issue was not using apktool v1.5.2 to decompile and v2.0 to compile EVERY SINGLE TIME, NO EXCEPTIONS. When I followed that simple rule I get it onto my device and she has no status bar... Hmmmmm..... And a logcat for anyone smart enough to help me
EDIT:
Maybe I'm in the right direction with an error I saw in the log at this post? I thought it was so I installed the DisableSignatureVerification Mod from the Xposed Modules and still nothing.
Calling All Developers
It's been like 2 weeks just curious if anyone has even looked at this, I haven't been able to make any progress so I started learning how to develop apps. I made two small apps basic flashlight and a counter app but I really want to know why I'm totally unable to mod a file on my phone. I can't get the ink effect to work with finger input either I've been really trying to get this flashlight mod and the ink effect for months. If I could get pointed in the direction of a developer that can actually help me I don't see why I couldn't donate like $10 or $20 to the one who helps me. I'm on android 4.4.2 (NK3) on my Note 3 from T-Mobile.