yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] bjks88:
Now I have a bootlop, after copy modded systemui.apk. What do you think, there is some problems with meta-inf and android manifest or I screw up something inside res folder?
[Android Software/Hacking General [Developers Only]] mjz2cool:
you could try copy the files (except for android manifest) from systemui/build/apk to the original apk
[Android Software/Hacking General [Developers Only]] bjks88:
Now everything works brilliant :) big thanks!
[Android Software/Hacking General [Developers Only]] mjz2cool:
no bother at all, glad to be able to help someone :)
[Android Software/Hacking General [Developers Only]] jrc2:
I get this problem when I try to install the framework-res.apk file from CM 10.2 for Samsung GT-P3110:

$ sudo apktool if framework-res.apk
Exception in thread "main" brut.androlib.AndrolibException: java.util.zip.ZipException: error in opening zip file
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:582)
at brut.androlib.Androlib.installFramework(Androlib.java:473)
at brut.apktool.Main.cmdInstallFramework(Main.java:250)
at brut.apktool.Main.main(Main.java:81)
Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:127)
at java.util.zip.ZipFile.<init>(ZipFile.java:143)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:552)
... 3 more

I do not have this problem when I use the framework-res.apk from CM 10.1 though. I am using apktool 1.5.2 on Linux Mint 15.
[Android Software/Hacking General [Developers Only]] tomi456:
Problem with Modded SystemUI

Hello,

I edit some 9.png files and recompiled the SystemUI.apk, When I push the modded APK to phone, I don't see the status-bar and wallpaper on start screen.

(EVEN when I edit only normal PNGs and compile with apktool I got the same.)

So, I'm using now 7zip to edit some PNGs, and everything goes fine, but I can't compile .9.pngs.

My SystemUI.apk have the right permissions (rw-r--r--), No errors when decompile and recompile.

Btw, what does 'zipalign -v 4' do?
[Android Software/Hacking General [Developers Only]] Tomislav Veličanstveni:
Hi, can someone do me a favour, I need two

SystemUI's, with 50% and 75% transparent

status bar..please, I'm without computer now

and next 20 days lol...here is my systemUI..again, you only need to change transparency :)
[Android Software/Hacking General [Developers Only]] starkilling:
I'm trying to mod a GoogleCamera.apk from the GS4 Google Play edition 4.4. The apk only allows VGA resolution for the front facing camera, when it could do 1080p on Jellybean.

Can someone give me a hand? What do I change? I've decompiled it but I don't know what to do beyond that. Terribly sorry if this is the wrong place to ask.
[Android Software/Hacking General [Developers Only]] -MightyMouse-:
so how do I do this on the htc one xl. have done what you said up to decompiling it. Is now showing an error. is there somthing else you need to do in apktool for it to work with the htc one xl
[Android Software/Hacking General [Developers Only]] powerpoint45:
No prob
[Android Software/Hacking General [Developers Only]] triptosyll:
I have a question. How do I go about making layout changes to the status bar drawdown? I know how to find files, I understand your guide, but I wanna know how to add things to my notification tray. Maybe a weather widget, some system widgets, etc. How do I add options like that. I don't think that part of the drawable folders. Is that more to do with editing xml's?

# and by the way, I just tried this out, and successfully changed my battery icon and the in/out data arrows in the service triangle. I hate the black on gray crap, and have been fighting trying to change it! Awesome tutorial bro! Thanks so much for this!!! :thumbup::thumbup:

Bacon in my coffee, please. You don't have any bacon?!?! unacceptable!!
[Android Software/Hacking General [Developers Only]] powerpoint45:
I suggest looking around in res/values and res/layout
[Android Software/Hacking General [Developers Only]] triptosyll:
Well the thing is, I found the files which I believe are for the notification tray, but I don't know what to do now to change the layout. I'm starting to think that what I'm gna have to do is edit some xml's if I wanna add toggles and weather. I just didn't know at first what I was needing to change to get that to happen, but I now think its the xmls

Bacon in my coffee, please. You don't have any bacon?!?! unacceptable!!
[Android Software/Hacking General [Developers Only]] triptosyll:
so, i can decompile just fine, but i get an error everytime i try to recompile. so after a few times of trying, i tried just decompiling, then recompiling without making any changes, and i still get the same error:

trip@TheHooks:~/Desktop$ apktool b SystemUI ~/Desktop/almostdone.apk

I: Checking whether sources has changed...

I: Smaling...

I: Checking whether resources has changed...

I: Building resources...

Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL8611846063864597377.tmp, -I, /home/trip/apktool/framework/1.apk, -S, /home/trip/Desktop/SystemUI/res, -M, /home/trip/Desktop/SystemUI/AndroidManifest.xml]

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:251)

at brut.androlib.Androlib.buildResourcesFull(Androlib.java:324)

at brut.androlib.Androlib.buildResources(Androlib.java:269)

at brut.androlib.Androlib.build(Androlib.java:192)

at brut.androlib.Androlib.build(Androlib.java:174)

at brut.apktool.Main.cmdBuild(Main.java:185)

at brut.apktool.Main.main(Main.java:70)

Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL8611846063864597377.tmp, -I, /home/trip/apktool/framework/1.apk, -S, /home/trip/Desktop/SystemUI/res, -M, /home/trip/Desktop/SystemUI/AndroidManifest.xml]

at brut.util.OS.exec(OS.java:87)

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:249)

... 6 more

Caused by: java.io.IOException: Cannot run program "aapt": java.io.IOException: error=13, Permission denied

at java.lang.ProcessBuilder.start(ProcessBuilder.java:475)

at java.lang.Runtime.exec(Runtime.java:610)

at java.lang.Runtime.exec(Runtime.java:483)

at brut.util.OS.exec(OS.java:78)

... 7 more

Caused by: java.io.IOException: java.io.IOException: error=13, Permission denied

at java.lang.UNIXProcess.<init>(UNIXProcess.java:164)

at java.lang.ProcessImpl.start(ProcessImpl.java:81)

at java.lang.ProcessBuilder.start(ProcessBuilder.java:468)

... 10 more

any idea why i cant recompile?
[Android Software/Hacking General [Developers Only]] fishingfon:
Did u install the framework that was given in the first post?, what rom are you getting the apk from?

And did do u type" apktool if systemui.apk"???

Cheers

Corey
[Android Software/Hacking General [Developers Only]] triptosyll:
I used the framework and systemui from my phone as apktool if "".

No I didn't install the framework from the post as I'm on a mesmerize running sbrissen's aosp build. I didn't think u needed that framework on anything other that the nexus 7 or whatever. I themed sbrissen's aosp 4.1.1build 2 using this method. Worked like a charm. Since, I changed my ROM to the same one build 5 on my phone, and updated the tools in the apktool folder on my comp, and updated the tools in the /usr/local/bin folder on my comp too. I haven't chmod-ed any of those tools since updating them, could that be it? It worked with build 2, but not with build 5. I can't figure out why.

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android Software/Hacking General [Developers Only]] powerpoint45:
You need to install the framework manually. Shown on the first post...did you try that?
[Android Software/Hacking General [Developers Only]] triptosyll:
Yup. Just did. Same error. I can't figure this out. I just went thru everything I can think of, and I STILL can't recompile. U think it was the latest apktool update? I don't know anymore.

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!

---------- Post added at 04:18 AM ---------- Previous post was at 04:15 AM ----------

I'll upload the systemUI.apk as soon as I figure out how from my phone. I don't know if its the apk, or the versions of the tools that I'm using to re/compile said apk. Can I upload an apk to here from my phone?

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android Software/Hacking General [Developers Only]] powerpoint45:
Are you using apktool and aapt as shown in op
[Android Software/Hacking General [Developers Only]] triptosyll:
Yup. I followed ur op to a t. I can't figure out if it was me updating the apktool.jar or what. The linked thread had a new version of apktool, so I downloaded it and replaced the old one.

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!

---------- Post added at 04:29 AM ---------- Previous post was at 04:25 AM ----------

After replacing them, I 'chmod +x' the apktool.jar, and that's about all I've done

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android Software/Hacking General [Developers Only]] powerpoint45:
Strange...are you on linux or windows...do you want me to send you the apktools I'm using
[Android Software/Hacking General [Developers Only]] triptosyll:
Its OK yo. Thanks for getting back to me. I figured it was cuz of something I had done, and I was right. Someone had written a script to do the de/compile with right click, and so I downloaded it. Well, that had created an apktool folder, with the wrong tools in it, and put it in my path, so when using the command line, the computer was finding the wrong folder. Wasn't using the correct tools at all, and that's what it felt like the whole time, I just couldn't figure out why it wasn't when I had the correct tools on my comp. I really gotta try and understand this PATH crap on Linux. It confuses the **** out of me.

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android Software/Hacking General [Developers Only]] powerpoint45:
So you got it working? Congrats!!
[Android Software/Hacking General [Developers Only]] triptosyll:
I did. Thx again for ur guide!!

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android Software/Hacking General [Developers Only]] stealo:
thanks for this, worked a treat.:good::good:

i've been trying to get this to work for ages and stumbled upon this thread and bingo.
[Android Software/Hacking General [Developers Only]] fishingfon:
Love your signature :P (my last name is bacon)

Corey
[Android Software/Hacking General [Developers Only]] triptosyll:
I LOVE BACON!!! (Not Corey Bacon, just bacon) lol

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!

If I've helped u in any way, gimme some props and hit that thanks button!
[Android Software/Hacking General [Developers Only]] powerpoint45:
Your right...I will change OP a in a while.
[Android Software/Hacking General [Developers Only]] jrod091:
I too am getting problems recompiling with changes or right after decompling... but there is nothing in my $PATH about apktool, any ideas??
[Android Software/Hacking General [Developers Only]] KineichiNxt:
Big thanks for the guide :D

Send from my AMOI N828 using Xda Premium
[Android Software/Hacking General [Developers Only]] powerpoint45:
No probs
[Android Software/Hacking General [Developers Only]] mcgi5sr2:
Thanks for the guide, I have an issue of unknown origin, and was wondering if you could spot the mistake. I pull the frameworks fine from SystemUI and framework-res, then decompile SystemUI, build systemUI, add metainf and android manifest into dist/apk folder build again.

No recorded problems with the apktool but when I try and add it to the rom.zip and boot I get stuck on the rom loading screen. This is without making any changes to the .xml or images.

the files are tucked up in the rom here: http://xdaforums.com/showthread.php?t=2624492

thanks again for the guide
[Android Software/Hacking General [Developers Only]] fedevd:
[MENTION=4469251]powerpoint45[/MENTION] I want that status bar rite naoo!!!

Looks awesome!!!

Can you explain me how did you made it, please?
[Android Software/Hacking General [Developers Only]] usman farhat:
Hello, I'm a newbie. I came here from another thread because I need to install apktool before getting started for that thread. as far as I have understood, I should do these following steps. Please tell me wherever I am wrong.

1. Download apktool and aapt from here: http://xdaforums.com/showthread.php?t=1755243

1a. But the link to aapt sends me to a list, which one is aapt? I don't know what is meant by aapt. :-/

2. rename the apktool1.5.2.tar.bz2 to apktool.jar

3. move apktool.jar and ?aapt? to C:\Windows ?

4. Download ZIPALIGN.exe and move to WHICH FOLDER??

5. Download apktool-install-windows-r04-brut1.tar.bz2

6. Extract apktool.bat to C:\Windows ?

7. Follow STEP 3 of this thread

8. Follow the steps explained in the [GUIDE] Hide Status Bar..... thread.
[Android Software/Hacking General [Developers Only]] SXUsr:
If you've installed Java already, download this - Apktool_2.9.03.zip - and you're good to go. :)
[Android Software/Hacking General [Developers Only]] matt95:
I'm trying to decompile the HTC M7 SystemUI.apk but i get this error when i run the decompiler command

Error

I also tried to mount the framework manually but it's the same
[Android Software/Hacking General [Developers Only]] Vivek_Neel:
Do u guys have framework-res.apk?

Install all the framework files for htc..it must be ok.
[Android Software/Hacking General [Developers Only]] matt95:
How can I mount it? I don't think it needs to be put in the apktool/framework folder
[Android Software/Hacking General [Developers Only]] Vivek_Neel:
Before I decompile any apks of Samsung roms

I do this

apktool if framework-res.apk

apktool if tw_framework-res.apk

apktool d SystemUI.apk

I don't use to have any attr value error.

Works fine for any roms
[Android Software/Hacking General [Developers Only]] matt95:
My phone doesn't seem to have that tw_framework-res.apk, anyway i tried to mount the framerwork-res.apk and running the decompiler and i get the same errors as before
[Android Software/Hacking General [Developers Only]] Vivek_Neel:
tw_framework res.apk is for Touchwiz roms.. (Samsung)

U must have com.htc.resource.apk something like that.

Install that and see.

Or wait for any htc users..I don't know what are the framework files does htc roms have
[Android Software/Hacking General [Developers Only]] matt95:
Oh now i got it, let me check

Ok :) Working now
[Android Software/Hacking General [Developers Only]] usman farhat:
Thanks a million! This should have been on the first post so we don't have to go here and there :D
[Android Software/Hacking General [Developers Only]] dams161:
hello

I've error with recompil systemUI.apk

Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN

otExist: apktool.yml

at brut.androlib.Androlib.readMetaFile(Androlib.java:244)

at brut.androlib.Androlib.build(Androlib.java:268)

at brut.androlib.Androlib.build(Androlib.java:258)

at brut.apktool.Main.cmdBuild(Main.java:236)

at brut.apktool.Main.main(Main.java:88)

Caused by: brut.directory.PathNotExist: apktool.yml

at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:

103)

at brut.androlib.Androlib.readMetaFile(Androlib.java:240)

... 4 more

please help me

thank you
[Android Software/Hacking General [Developers Only]] Vivek_Neel:
post the full log
[Android Software/Hacking General [Developers Only]] powerpoint45:
right now
[Android Software/Hacking General [Developers Only]] waqas1412:
Nice
[Android Software/Hacking General [Developers Only]] mike the inkman:
For anyone having trouble with any of these steps, I have a pretty good linux kit that will help you out. Just need a current java install.

http://xdaforums.com/android/development/toolkit-apk-munky-rench-t3026757/post58747626#post58747626
[Android Software/Hacking General [Developers Only]] btiu:
Administrator cmd

Hi all! I was trying to decompile my systemUI.apk but it had errors like java.until.(exception/ name not found or something) and decoding manifest.XML:access is denied.

I then tried doing the decompiling on an administrator CMD and the decompiling succeeded! [MENTION=4469251]powerpoint45[/MENTION] maybe this could be added to OP for possible troubleshooting solutions? I dunno haha it worked for me! :) then again, maybe I got the errors because my files are in C:\Program Files in the first place haha.

Excellent thread!
[Android Software/Hacking General [Developers Only]] Rustamveer:
do u know how to get transparent BG in app drawer in JB like kitkat?
[MENTION=4469251]powerpoint45[/MENTION]
[Android Software/Hacking General [Developers Only]] linus2014:
C:\Program Files (x86)\Minimal ADB and Fastboot>apktool d SystemUI.apk

I: Using Apktool 2.0.3 on SystemUI.apk

I: Loading resource table...

I: Decoding Shared Library (androidhwext), pkgId: 2

Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x7f020244 drawable/stat_sys_data_connected_2g, config=-notround-xhdpi

at brut.androlib.res.data.ResType.addResource(ResType.java:66)

at brut.androlib.res.data.ResType.addResource(ResType.java:55)

at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:252)

at brut.androlib.res.decoder.ARSCDecoder.readTableType(ARSCDecoder.java:212)

at brut.androlib.res.decoder.ARSCDecoder.readTableTypeSpec(ARSCDecoder.java:154)

at brut.androlib.res.decoder.ARSCDecoder.readTablePackage(ARSCDecoder.java:116)

at brut.androlib.res.decoder.ARSCDecoder.readTableHeader(ARSCDecoder.java:78)

at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:47)

at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:544)

at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:63)

at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:55)

at brut.androlib.Androlib.getResTable(Androlib.java:66)

at brut.androlib.ApkDecoder.setTargetSdkVersion(ApkDecoder.java:198)

at brut.androlib.ApkDecoder.decode(ApkDecoder.java:96)

at brut.apktool.Main.cmdDecode(Main.java:165)

at brut.apktool.Main.main(Main.java:81)

why this error? my device is p8lite
[Android Software/Hacking General [Developers Only]] stealo:
When I decompile, all the xml's have huge gaps between the coding. Everything compiles and works on phone ok, but very messy xml's.

Example I dl'd one it had 5 lines mine had 20 or so.

Coderworkx Cm10 4.1.1 files if that matters.
[Android Software/Hacking General [Developers Only]] triptosyll:
Tomorrow. Its midnight here. Meanwhile, round up the errors. Pastebin that shiz, and lets take a look. :thumbup:

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android Software/Hacking General [Developers Only]] stealo:
pastebin.com/X5zBG0pw
[Android Software/Hacking General [Developers Only]] triptosyll:
I'm fairly new to .xml's, so maybe someone else will b able to help you. I was quite...um....out of it last night, and didn't even notice yours said XML. I thought u and jrod both had de/compile errors. But, u got it up here for people to see, so I'm sure someone will b able to help.

Jrod091, can u show us whatever errors u got while recompiling?

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android Software/Hacking General [Developers Only]] jrod091:
Here's my output when trying to recompile:

I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL1706925066901323760.tmp, -I, /home/jrodrig2/apktool/framework/1.apk, -S, /home/jrodrig2/JB/SystemUI/res, -M, /home/jrodrig2/JB/SystemUI/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:251)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:324)
at brut.androlib.Androlib.buildResources(Androlib.java:269)
at brut.androlib.Androlib.build(Androlib.java:192)
at brut.androlib.Androlib.build(Androlib.java:174)
at brut.apktool.Main.cmdBuild(Main.java:185)
at brut.apktool.Main.main(Main.java:70)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL1706925066901323760.tmp, -I, /home/jrodrig2/apktool/framework/1.apk, -S, /home/jrodrig2/JB/SystemUI/res, -M, /home/jrodrig2/JB/SystemUI/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:87)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:249)
... 6 more
Caused by: java.io.IOException: Cannot run program "aapt": error=13, Permission denied
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at brut.util.OS.exec(OS.java:78)
... 7 more
Caused by: java.io.IOException: error=13, Permission denied
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 11 more
[Android Software/Hacking General [Developers Only]] triptosyll:
That looks to b the exact same error as what I was getting...u don't have any other versions of apktool on your machine?

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android Software/Hacking General [Developers Only]] jrod091:
no, I deleted the apktool files in /usr/local/bin and put the ones in these thread in their place, and I cleaned out my PATH
[Android Software/Hacking General [Developers Only]] triptosyll:
OK. Gimme just a bit to brainstorm, cuz I just smoked a j, so my brain is a little stormy. :D

The thing is, when I went thru the problem, I tried so many things to fix it in such a short amount of time, that when it did start working, I wasn't really sure which of the things I had done was the thing that had fixed it. I'm pretty sure it was removing the other apktools from my path, but that's not gna do it in ur case.

Have u had it working at all yet? Or have u just started trying it?

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!

---------- Post added at 09:29 PM ---------- Previous post was at 09:22 PM ----------

And another question. Did u install the framework that he linked? I know he said that only some people might need them, and particularly a certain phone, and seeing as I didn't have that phone, it mislead me to think I wouldn't need it, but there's a strong possibility that THAT is what fixed mine too.

So if u haven't already, download the frameworks link that was provided in the *recompile* section, and move the files into your .../apktool/frameworks folder. Try and recompile. If you still get the errors, go to the folder that contains the backup of your systemui.apk, and do the "apktool if systemui.apk" thing. That will change one of the files in your .../apktool/frameworks folder. Go thru the process of de/compile again. If it still fetches errors, go to the ROM that you got your systemui.apk from and find the framework-res.apk and copy it to your desktop. In terminal, navigate to the desktop and enter 'apktool if framework-res.apk' that will change the OTHER file in your .../apktool/frameworks folder. Now try to recompile again. But remember, every time you get an error recompiling, and you change one of the files in the .../apktool/frameworks folder, you should start with a fresh decompile of the systemui.apk. I do that to make sure that, no matter what changes I've made to the ..../apktool/frameworks folder, I'm always using the same tools to recompile that I used to decompile. Just so that I don't create another possibility for what causing the errors, if that makes sense.

Let me know if any of that was confusing :rolleyes:

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android Software/Hacking General [Developers Only]] powerpoint45:
Did you switch out aapt as well from the thread