yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] jrod091:
Yeah, I used the one that was linked in the other thread

I did try installing the framework that is linked, didn't help. Haven't had it work yet, but I will try reinstalling the framework files again

Edit: Tried reinstalling the frameworks again, one at a time, and still no go... :(
[Android Software/Hacking General [Developers Only]] triptosyll:
K. Did u try using the framework-res.apk from your ROM as a framework file? Use that WITH the framework file that's generated from the systemui.apk. try that? I find I have better success when I use both...

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android Software/Hacking General [Developers Only]] jrod091:
yeah, I used both of them, and still no go
[Android Software/Hacking General [Developers Only]] triptosyll:
Did u get any change in the errors? Or were they the same errors each time?

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android Software/Hacking General [Developers Only]] jrod091:
yeah, same errors still
[Android Software/Hacking General [Developers Only]] powerpoint45:
Have you installed the custom framework files for apktool as shown in op step 3
[Android Software/Hacking General [Developers Only]] jrod091:
Yes, I installed those first
[Android Software/Hacking General [Developers Only]] powerpoint45:
Maybe u should send the systemui.apk to me and see if it works for me. One mor thing though, have you tried making no changes to ui and recompiling.
[Android Software/Hacking General [Developers Only]] jrod091:
Yeah, that's what I was trying to do to make sure it would recompile (first thing I always do)

http://db.tt/23gn9MTS

Has my systemui and framework-res, just in case
[Android Software/Hacking General [Developers Only]] triptosyll:
So, I downloaded ur zip, unzipped it, and placed the resulting folder inside a folder on my desktop named xdahelp. In terminal:

1. cd ~/Desktop/xdahelp/jb_apks

(Change above according to where your two apks are)

2. apktool if SystemUI.apk

3. apktool if framework-res.apk

(I tried once without step 3 and it was a no go)

4. Navigate to the directory in which the apk that u want to decompile is

5. apktool d -f SystemUI.apk SystemUI

6. Make changes

7. apktool b SystemUI ~/Desktop/almostdone.apk

8. PROFIT

The above mentioned steps, minus number 6, are the exact steps I went thru, and everything went perfect. I would suggest that u clear off all the apktools that are in ur ...../bin folder, and redownload them. Make sure you have the latest update of them, and try the procedure over. :thumbup:;)

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android Software/Hacking General [Developers Only]] jrod091:
I'll give it a try and report back!
[Android Software/Hacking General [Developers Only]] triptosyll:
Powerpoint45 were u able to complete the process with his files?

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android Software/Hacking General [Developers Only]] powerpoint45:
One sec. Lemme check.r u on linux?
[Android Software/Hacking General [Developers Only]] triptosyll:
Yes. Ubuntu precise

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android Software/Hacking General [Developers Only]] powerpoint45:
It compiled with no problems for me. I didn't test framework-res though.
[Android Software/Hacking General [Developers Only]] triptosyll:
Well than at least we have it down to it being something to do with his setup, and not a grumpy apk.

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android Software/Hacking General [Developers Only]] jrod091:
Did a chmod a+x to aapt and it worked :) noticed that one of my errors was a permissions denied, so I have that a try

---------- Post added at 10:46 AM ---------- Previous post was at 10:07 AM ----------

Thanks for all your help guys!
[Android Software/Hacking General [Developers Only]] powerpoint45:
Glad you got it working
[Android Software/Hacking General [Developers Only]] espaciosalter20:
WoWWWW!!! This totally worked for me!!! :D So many many thanks!!!
[Android Software/Hacking General [Developers Only]] DROCSID:
Thanks! Using it now :)
[Android Software/Hacking General [Developers Only]] Burn2Hell:
Nice Work Here.

I like this 100%

More customizing.
[Android Software/Hacking General [Developers Only]] J I M:
Hey, What should i do to get transparent status bar? Thanks even for hint what file to go to.
[Android Software/Hacking General [Developers Only]] powerpoint45:
I was never successfull in making it transparent but you can change the color in res/values/drawable.xml
[Android Software/Hacking General [Developers Only]] J I M:
Ok Big thanks to u still :)
[Android Software/Hacking General [Developers Only]] prerav31:
thanks for guide op
[Android Software/Hacking General [Developers Only]] Nordpolcamper:
Very well written guide^^ solved the problems I had been having. Can I simply use the framework-res.apk as well?
[Android Software/Hacking General [Developers Only]] 2012katas:
:pjust the thin wich i was lookn fer...........:good:
[Android Software/Hacking General [Developers Only]] zuberio:
Fantastic guide!

I used your guide to package these images

http://xdaforums.com/showthread.php?t=1436047

Onto my CM10-M1 GNex

http://xdaforums.com/showpost.php?p=31607360&postcount=1535 (CWM flashable zip included)

and my CM10-EXP GTab :D

http://xdaforums.com/showpost.php?p=31607445&postcount=1569 (CWM flashable zip included)

THANKS!
[Android Software/Hacking General [Developers Only]] Nordpolcamper:
Ok I just tried it with my framework-res.apk and it went through without errors. The thing that is different is that I cant copy resources.arsc and classes.dex but instead just the resources.arsc, because the classes.dex isnt inside the built apk. Is that a problem?
[Android Software/Hacking General [Developers Only]] powerpoint45:
I think that should work. I haven't really done much with framework-res.apk
[Android Software/Hacking General [Developers Only]] jrod091:
I just pull the resources.arsc and classes.dex files from my original apk, regardless of which one I edit, mainly do edits to systemui and framework-res
[Android Software/Hacking General [Developers Only]] powerpoint45:
made guide less confusing using this meathod
[Android Software/Hacking General [Developers Only]] apristel:
Hello,

I'm running cm10 on a USCC s3. I'm looking to get a transparent statusbar... anyone know how I go about it?

I've tried flash after flash and am lost. Any help would be appreciated.
[Android Software/Hacking General [Developers Only]] powerpoint45:
I was never successful in making it transparent but you can change the color in res/values/drawable.xml
[Android Software/Hacking General [Developers Only]] fishingfon:
When I recompile the framework res apk, it gives me errors. If I decompile it, and then recompile it without making any changes it works fine, but if I edit any xml files, it always gives me errors. Has anyone managed to get framework-res.apk to work properly?
[Android Software/Hacking General [Developers Only]] jrod091:
Yeah, I make changes to framework-res all the time, what are the errors you get?
[Android Software/Hacking General [Developers Only]] cowsquad:
thank you for this guide
[Android Software/Hacking General [Developers Only]] cowsquad:
yeap, you are right. this instructions don't make sense lol

almostdone.apk is the output file. Once it is done building you need to open the backup apk you made at the beginning with File Roller /7zip. Also open almostdone.apk with File Roller/7zip. From inside the backup.apk drag meta-inf folder & androidmanifest.xml to allmostdone.apk. Now all you need to do is zipalign the apk. Lets say your backup apk is named backup.apk. Go into the terminal at the directory you are working

in and type

Code:

zipalign -v 4 backup.apk done.apk

This will optimize the apk. The output is done.apk.

---------- Post added at 10:15 PM ---------- Previous post was at 10:10 PM ----------

why is that every time I zipalign my modified apk on Miui rom, it wont install properly on my device. For example I pushed my apk to the system but when i restart my device the systemUi is gone. I dont see status bar, dock, system settings and all that. What am i doing wrong
[Android Software/Hacking General [Developers Only]] jrod091:
Did you set permissions?
[Android Software/Hacking General [Developers Only]] cowsquad:
Yes, I did. But for some reasons my nav and status bar are gone.

tapatalked² from cowsquadGnex®
[Android Software/Hacking General [Developers Only]] jrod091:
I had that happen once, didn't find the cause of it, I just started over with my edits
[Android Software/Hacking General [Developers Only]] vnguyen972:
I got every step done when I followed the instructions to mod the battery and when I replaced SystemUI.apk via RootExplorere and changed the permission to match the existing one... then rebooted... my SystemUI keeps crashing...

help!! What else should I check?
[Android Software/Hacking General [Developers Only]] Pete2506:
The terminal ist telling me, that the almost.apk ist build, but I am to blind to find this apk terminal is telling:

C:\>apktool b SystemUI almost.apk

I: Checking whether sources has changed...

I: Smaling...

I: Checking whether resources has changed...

I: Building resources...

I: Building apk file...

ERROR: 'C:\\almost.apk' exists (use '-f' to force overwrite)

I tried twice to build the apk, cause I did not find it the first time.

I only have a new folder called "build" in systemui folder, but there is no apk in it only the folders of an apk, did I miss something?
[Android Software/Hacking General [Developers Only]] cowsquad:
Lol :) you should have A folder call dist and inside there, you'll find your apk
[Android Software/Hacking General [Developers Only]] powerpoint45:
For me the built apk is in the current directory you are at unless you specify otherwise... but I'm on Linux.
[Android Software/Hacking General [Developers Only]] vnguyen972:
Yeah me too...its on my current directory and I'm on Windows....but I can't use the build apk... keep crashing and my status bar doesn't load.
[Android Software/Hacking General [Developers Only]] powerpoint45:
Thats happened to me a few times but when i started over it worked.
[Android Software/Hacking General [Developers Only]] vnguyen972:
I used the battery image set from the OP and I noticed the size of those icons are 38x38, while I have 2 drawable directories and one has 32x48 and 24x36 in size... do I need to make sure the images have the same size before replacing them in these drawable folders?

Thanks.
[Android Software/Hacking General [Developers Only]] powerpoint45:
No as long as you zipalign
[Android Software/Hacking General [Developers Only]] vnguyen972:
Bingo... well, it seems that I MUST.

I tried to use the icons from OP as is on both drawable folders, it never worked...even with zipalign... I tried a few times, SystemUI kept crashing... then I thought maybe I should resize them accordingly...

So I did, I resize the icons to match the "vertical" size (height) of the icons on my drawable folders... so from 38x38 to 36x36 and 48x48... redo the whole thing... flashed it and voila...

IT WORKED!!!!
[Android Software/Hacking General [Developers Only]] powerpoint45:
Ok sorry for mixing you up...different ROMs work different ways.
[Android Software/Hacking General [Developers Only]] triptosyll:
That's for sure man. U gotta try EVERYTHING sometimes, to get it to work. Every time I theme a new systemui, I grab the systemUI.apk and framework-res.apk from the rom, and the framework-res.apk that u provided. I never know what kind of combination of the three I will need for apktool if. Its always something a bit different each time. But that's what makes it fun, right? Otherwise we'd all b tools...

:D

___________________

Bacon in my coffee, please? You don't have any bacon?! Unacceptable!!
[Android Software/Hacking General [Developers Only]] maxiimida:
Here's is Froilson's latest 1.0_DLIB with looping wallpapers disabled
[Android Software/Hacking General [Developers Only]] anukilimanoor:
I cant able to compile the SystemUI after or without modification. I'm getting the following error
[Android Software/Hacking General [Developers Only]] wtgserpant:
I have the same problem

Can anyone help me too?:crying:

:confused:
[Android Software/Hacking General [Developers Only]] powerpoint45:
Try chmod 777 to aapt, apktool, and zipalign... i think that will fix it
[Android Software/Hacking General [Developers Only]] powerpoint45:
Are you using all the updated tools posted on OP
[Android Software/Hacking General [Developers Only]] wtgserpant:
updated, but ..........

I updated apktool to 1.5.0 from 1.4.9 but I still receive following errors:
[Android Software/Hacking General [Developers Only]] powerpoint45:
Are you using the custom aapt
[Android Software/Hacking General [Developers Only]] Nordpolcamper:
I seem to have a little problem. 7zip doesnt appear to be working for me. When I open both apks with it and want to copy things I always get an error.

The decompiling, modding or building of the apk works flawlessly

for some reason I cant copy anything into almostdone.apk it says that I am not allowed to.

What I dont get is, that I was able to get it to work a few weeks ago and now it suddenly wont work for me. I already set it up new with the tools on the op but still no luck
[Android Software/Hacking General [Developers Only]] wtgserpant:
it compiled!!!

Thanks alot for the help ....... its seeemd that the aapt was causing the problem, so replaced it and it compiledlike magic! Thanks for everything man, really appreciate it! :D
[Android Software/Hacking General [Developers Only]] triptosyll:
Are you on Windows? Or Linux?

___________________

Bacon in my coffee, please? You don't have any bacon?! Unacceptable!!
[Android Software/Hacking General [Developers Only]] wtgserpant:
Quick question

android sdk is used only for zipaligning the apk, right? The apk is decompiled using only apktool, right? Would appreciate all inputs! :D
[Android Software/Hacking General [Developers Only]] powerpoint45:
Yes
[Android Software/Hacking General [Developers Only]] Nordpolcamper:
I am on windows. I have a feeling, that maybe me startig the cmd in administrator mode causes issues, but if I dont do that when I build the apk I cannot see it
[Android Software/Hacking General [Developers Only]] triptosyll:
And there's no way for u to see hidden files? Or use the search. Search the exact name of the out file (I.e. almostdone.apk) and the search shouldn't take too long. I think it has to do with permissions. Try searching for a different .zip creator instead of 7zip. Its been so long since I've used windows, I'm lost on one anymore.

And post the exact error your receiving. It'll help us to help you. :)

___________________

Bacon in my coffee, please? You don't have any bacon?! Unacceptable!!
[Android Software/Hacking General [Developers Only]] jrod091:
Try IZarc, that's what I use on Windows
[Android Software/Hacking General [Developers Only]] triptosyll:
I had similar errors not too long ago, and it came down to making sure I was using the right combination of files for the 'apktool if..' part. U either need both framework-res.apk and systemui.apk from your rom, or framework-res.apk from this guide and the systemui.apk from your rom, for that step. Which it is, is up to u to find out. There's no way for me to tell u without having the files. Each rom is a lil different from the next, and, thus, may require a little tweaking for the de/compile process to work successfully. Hope it helps!

___________________

Bacon in my coffee, please? You don't have any bacon?! Unacceptable!!
[Android Software/Hacking General [Developers Only]] powerpoint45:
Also you should chmod aapt to 777 and apktool to 777
[Android Software/Hacking General [Developers Only]] Deadly:
Apktool.yml file does tells you dependency right? If im not wrong.. it will have -1 which means 1 dependancy.. and framework =true.. meaning framework-res.apk.. if it is -2 then u need 1 more apk which in samsung case tw-framework.res.apk.. just my exp with decompiling.. correct me please if im wrong..

hit thanks button! If above post helps you..

Sent from my GT-S6102
[Android Software/Hacking General [Developers Only]] Josehg:
Thanks a lot. I´ve looking for this for a long time and now, I´m able to compile without erros, great job.:good::good:

Just a questión, why must we drag AndroidManifest.xml? It already exists on almosdone.apk and looks like being the same file.

Thanks in advance

Jose
[Android Software/Hacking General [Developers Only]] powerpoint45:
Well honestly I have not tested without dragging the manifest. I just do it just in case.
[Android Software/Hacking General [Developers Only]] jrod091:
Can't explain it, but my apps fc if I don't replace the manifest
[Android Software/Hacking General [Developers Only]] powerpoint45:
I guess apktool changes it a bit. I bet if you do an md5 check that they would be different.
[Android Software/Hacking General [Developers Only]] Josehg:
Thanks for your answers, I´ll drag the file, "just in case" :).
[Android Software/Hacking General [Developers Only]] AiphNday:
Thanks for the guide..

It was great,very usefull..

:D
[Android Software/Hacking General [Developers Only]] powerpoint45:
No problem, thanks for taking the time to thank me :D
[Android Software/Hacking General [Developers Only]] powerpoint45:
To be honest. I don't know. Just make sure that anything you point to exists
[Android Software/Hacking General [Developers Only]] guap:
?

file exists, but seems to be ignored... where can be stored my navigation_bar layout instead of systemUI?
[Android Software/Hacking General [Developers Only]] powerpoint45:
Not exactly sure somewhere in res/layout
[Android Software/Hacking General [Developers Only]] hubris1:
HAAALP ! ! !

Hello,

i am a noob (I am so new to this I should say instead "I am a Newbie" )

i am following your guide and I am stuck at decompile systemUI.apk. I am getting following error:

I followed the procedure very closely (Downloaded the framework available at dropbox site)

Can you guide me? I'd well appreciate it.

Regards,

J

ERROR

======

C:\android-sdk-windows\tools\workspace>apktool d SystemUI.apk

I: Baksmaling...

I: Loading resource table...

I: Loaded.

I: Decoding AndroidManifest.xml with resources...

I: Loading resource table from file: C:\Users\kbp763\apktool\framework\1.apk

I: Loaded.

I: Decoding file-resources...

W: Could not decode attr value, using undecoded value instead: ns=android, name=

drawable, value=0x010806af

W: Could not decode attr value, using undecoded value instead: ns=android, name=

drawable, value=0x010806b0

W: Could not decode attr value, using undecoded value instead: ns=android, name=

drawable, value=0x010806af

I: Decoding values */* XMLs...

I: Done.

Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec:

0x010806af

at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)

at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:57)

at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:53)

at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferen

ceValue.java:62)

at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResRefe

renceValue.java:46)

at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResSca

larValue.java:44)

at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:4

0)

at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlRe

sourceParser.java:313)

at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValu

e(XmlPullParserDelegate.java:69)

at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartT

ag(StaticXmlSerializerWrapper.java:267)

at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(Stati

cXmlSerializerWrapper.java:211)

at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamD

ecoder.java:64)

at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDe

coder.java:98)

at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamD

ecoderContainer.java:34)

at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:1

02)

at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:8

6)

at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:169

)

at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:113)

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

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

at brut.apktool.Main.main(Main.java:68)
[Android Software/Hacking General [Developers Only]] powerpoint45:
Did you install the custom aapt and apktool as shown in op
[Android Software/Hacking General [Developers Only]] Josehg:
May be a problem with the framework, if you don´t have a Nexus 7, you should use the framework-res.apk and SystemUI.apk of your rom, not the nexus´s ones (at dropbox site).

Regards
[Android Software/Hacking General [Developers Only]] mankind_18:
I can't get this step done :(

STEP 5:

Like I said at the end of step 4, this step will be different than you have seen before. This is also the step where you will be using File Roller/7zip. To build the apk make sure you are in the terminal in the directory where SystemUI exists and type:
[Android Software/Hacking General [Developers Only]] triptosyll:
Why?

___________________

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