yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] mylitoazia:
I: Baksmaling...

I: Loading resource table...

I: Loaded.

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

I: Loaded.

I: Decoding file-resources...

I: Decoding values*/* XMLs...

I: Done.

I: Copying assets and libs...

Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml

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

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

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

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

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

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

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

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

... 4 more

keep getting this error message while trying to recompile....what am i doing wrong??
[Android Software/Hacking General [Developers Only]] Ichigo:
It seems the apktool.yml file is not inside the folder of the app you are trying to compile, so you get that error.

a.k.a. Urahara

The truth! I'm really a girl!
[Android Software/Hacking General [Developers Only]] Evewon:
I'm having problems with zipalign... well and SystemUI.apk. Following the op, I can decompile and recompile, I then replace meta-inf and android manifest.XML. I close all windows except cmd window, try to zipalign by typing zipalign -v 4 almost done.apk done.apk and then get message unable to open almost done.apk as zip archive. Please help! And thank you!
[Android Software/Hacking General [Developers Only]] powerpoint45:
You cannot have spaces in your file name... it should be like zipalign -v 4 almostdone.apk
[Android Software/Hacking General [Developers Only]] Evewon:
Sorry that was auto correct, I do not have any spaces in file name
[Android Software/Hacking General [Developers Only]] powerpoint45:
Honestly I have no idea... i have never had any problems with zipalign. May i see a picture or paste exactly what it is doing
[Android Software/Hacking General [Developers Only]] Evewon:
Thanks so much for the quick response. I have successfully used apkmulti tool to decompile theme and recompile framework-res.apk and lidroid-res.apk. I then decompiled and themed SystemUI.apk and recompiled, but like you mention in op, when I push to system even after fixing permissions, I get UI fc and no status bar.

So I then tried what you direct in the OP exactly, and get SystemUI.apk decompiled and themed and recomipled, move over meta-inf and the androidmaifest.xml using 7zip, then go to zipalign and get: unable to open as zip archive. I have attached a screen shot.

I am going to try and take the "_" out of my file name, and do it all over again. Man there sure is a learning curve to this theming.
[Android Software/Hacking General [Developers Only]] Deadly:
@evewon... its not mandatory to do zipalign.. so try without it..

Also, you can put that API in dsi kitchen and try zip align if you want.. that way you will know what's wrong.. either app or your setup environment..

____________________________________

UltimaTIME Clock Widgets, 200 clock widgets in one!!:eek:

Falling Doesn’t Make You a Failure, Staying Down Does
[Android Software/Hacking General [Developers Only]] Evewon:
I will try this thanks. I am pretty new to this I have used dsi kitchen, but not sure what api is or what you mean. Could you direct me to some more info?

Awesome I'll try this too! Thank you!

---------- Post added at 08:38 AM ---------- Previous post was at 08:36 AM ----------

Are you using 7zip to transfer these 3 files? Just these 3 files from edited apk?
[Android Software/Hacking General [Developers Only]] Deadly:
yes you can use 7zip or other software which handles zip file replacing..

About the API.. I meant the apk you are using... if its GB.. set it to 10 like that.. and put that app in kitchen working folder and try.. you may see my guide in sig for how to setup kitchen etc.. I wrote that guide to deodexing... but it will help you to certain extent to understand things... since you said you are new to this.. I mentioned it..

____________________________________

UltimaTIME Clock Widgets, 200 clock widgets in one!!:eek:

Falling Doesn’t Make You a Failure, Staying Down Does
[Android Software/Hacking General [Developers Only]] Evewon:
OK I tried this... I took the SysytemUI.apk, decompiled, recompiled, replaced the above mentioned files in the original apk, pushed to system, IT WORKED!!

So I went back to the decompiled SystemUI folder, tried to do all my xml edits, and.9.pngs edits, recompiled, moved the above mentioned files to original apk, pushed to system, UI FC errors again and no status bar... Ok pulling my hair out! I have being trying to theme for weeks now, got all done except for SystemUI.apk... damn damn...

Could a bad xml edit, cause this? The only edits I made besides just hex colors was to remove carrier id from drop down.

Thanks for trying to help! I am determined to kick this apks ass!
[Android Software/Hacking General [Developers Only]] c_shekhar:
great thread...
[Android Software/Hacking General [Developers Only]] ikjadoon:
And, just to confirm, editing the SystemUI.apk like this won't require patching of services.jar, right?
[Android Software/Hacking General [Developers Only]] Deadly:
If you use old signature of apk (that is meta-inf folder inside apk) then no.. patching of services.jar is just to ignore the signature checking.. I hope you asked about that patching itself..

____________________________________

UltimaTIME Clock Widgets, 200 clock widgets in one!!:eek:

Falling Doesn’t Make You a Failure, Staying Down Does
[Android Software/Hacking General [Developers Only]] ikjadoon:
Oh! OK, wow, all right, thank you! :)
[Android Software/Hacking General [Developers Only]] andr01d3:
Hi! I have similar problem.

I just want to translate some strings from lidroid-res.apk so I followed instructions in the OP but applied to lidroid-res.apk only (because the values/strings.xml I want to translate is in this apk and not SytemUI.apk).

I got the same error about the zipalign command over almostdone.apk, so I tried the copy over the original apk method suggested by Jessica (but only copy res folder and resources.arsc file, because there is not any classes.dex in the almostdone.apk).

But again like Evewon I got UI fc everytime I flashed it and no status bar :(

Any help would be very appreciated.
[Android Software/Hacking General [Developers Only]] ikjadoon:
Related question....it seems as if AndroidManifest.xml also carries part of the signature. Any light you can shed here? One would think only META-INF is required, but this guide (along with many others) show that, for system apps, one needs the original META-INF folder and AndroidManifest.xml...

~Ibrahim`
[Android Software/Hacking General [Developers Only]] andr01d3:
Well... Finally found myself how to modify lidroid-res.apk and flash it without problems. I leave it here just for the record cosidering that it's related to SystemUI.apk modding:

1. Downloaded this ApkManager from Wanam.

2. Updated aapt.exe and apktool.jar in the "others" directory using those files from this thread.

3. After decompiling lidroid-res.apk followed instructions from Wanam here (note: you need tw-framework.apk and framework-res.apk. extract them from your favorite ROM).

4. Make changes and compile it. Important: don't sign it!

5. Just copy/flash your compiled lidroid-res.apk as usual.

I think this will work for Evewon problem too. And maybe others ;)
[Android Software/Hacking General [Developers Only]] Evewon:
Did you move the meta-inf and the android manifest.XML from the original apk? Can't remember if you have to do that for lidroid-res. I didn't have any problems with lidroid-res.apk.

Thank you! Gonna give this a try tomorrow, as it is the only thing I have yet to try. I will report back.
[Android Software/Hacking General [Developers Only]] andr01d3:
I used my new compiled lidroid-res.apk :)

So dont need to do the trick of moving anything from original APK. Just used the one I created after doing the modifications in the source.
[Android Software/Hacking General [Developers Only]] Evewon:
Following the steps you suggest I get the lidroid-res.apk decompiled, edited, recompiled, but when I push to system still get fc ui. I am doing all the steps to a t and using everything you did. Where did you get the lidroid-res.apk you're modding? Are you using 23 toggles?
[Android Software/Hacking General [Developers Only]] fishingfon:
Hi,

Has anyone managed to successfully decompile and recompile the 4.2 systemui.apk, using the latest apk tool?.

The system ui crashes when I try,..

Cheers

Corey

Sent from my GT-N7100

If I helped you, please hit Thanks..
[Android Software/Hacking General [Developers Only]] andr01d3:
Yes. I used 23 toggles mod from Neat ROM thread for the I9100.
[Android Software/Hacking General [Developers Only]] fishingfon:
Anyone?, :p

Sent from my GT-N7100

If I helped you, please hit Thanks..
[Android Software/Hacking General [Developers Only]] powerpoint45:
This guy did
[Android Software/Hacking General [Developers Only]] Vybramo:
Any idea how to made transparent bars on http://www.mrmad.net/mrmaddon-jellywiz-edition-fur-galaxy-nexus-2208 launcher? :) im so sorry but in files modding im n00b
[Android Software/Hacking General [Developers Only]] and2:
+1. how did you change the color of the tablet-navbar? icould not find the right part. i like transparend navbar. i am running a Galaxy Note with tabletui. in phoneui is no problem for me but i can´t find it for tabletui.

---------- Post added at 02:06 PM ---------- Previous post was at 01:24 PM ----------

and i use your battery-blue. it works nice, but i miss the pics for charging. can you provide them? big big thanks.

edit: i´ve got the charging-png´s
[Android Software/Hacking General [Developers Only]] powerpoint45:
Now 2/12
[Android Software/Hacking General [Developers Only]] agritux:
i didnt modded systemui

didnt changed anything

only tried how to compile and decompile...

decompiling is success

but compiling gives error with original stock deodexed systemui

[arda@agritux ~]$ apktool b SystemUI arda.apk
I: Checking whether sources has changed...
I: Smaling...
[0,0] No enum constant org.jf.dexlib.AnnotationVisibility.RUNTİME
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: /home/arda/SystemUI/smali/com/android/systemui/statusbar/AnimatedImageView.smali
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:45)
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:33)
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:66)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:50)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:37)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:257)
at brut.androlib.Androlib.buildSources(Androlib.java:214)
at brut.androlib.Androlib.build(Androlib.java:205)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)

any idea?
[Android Software/Hacking General [Developers Only]] quantan:
Hi everyone,

I would like to mod systemui as MIUI status bar with toggle page. How can I do that? I just decompiled 2 systemui.apk to compare but don't know what need to be changed.

Thanks
[Android Software/Hacking General [Developers Only]] nobe1976:
You need to install java or need to use a updated apktool setup. Either way it needs to be done. What OS are you running?
[Android Software/Hacking General [Developers Only]] jrod091:
Looks like a version of Linux to me

But to the original poster, try updating to ibotpeaches newest apktool (1.5.2) with a modded aapt (same thread)
[Android Software/Hacking General [Developers Only]] bombaybadboy:
can anyone help plz, i have been working with jb firmware deodexed roms and been doing well for a noob but transparency on status bar or pulldown i have had no luck with. i have tried these methods with no luck

/SystemUI/res/layout/tw_super_status_bar.xml

<com.android.systemui.statusbar.phone.StatusBarWindowView android:background="#00000000" android:focusable="true" android:fitsSystemWindows="true" android:descendantFocusability="afterDescendants"

xmlns:android="http://schemas.android.com/apk/res/android"

xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">

/SystemUI/res/values/drawables.xml

<item type="drawable" name="status_bar_background">#00000000</item>

but didnt work for me yet

also tried

SystemUI/smali/com/android/systemui/statusbar/phone/PhoneStatusBar.smali this line two times:

invoke-virtual {v14, v15}, Landroid/view/View;->setAlpha(F)V

and change:

const/high16 v15, -0x100

to

const/high16 v15, 0x0

- In framework-res/values/drawables.xml

<item type="drawable" name="notification_item_background_color">#00000000</item>

also didnt work

can anyone give any advice plz
[Android Software/Hacking General [Developers Only]] anarchyhunter80:
deleted
[Android Software/Hacking General [Developers Only]] :
how can i make the lockscreen status bar transparent im on a samsung galaxy note 2 with a samsung rom and only the homescreen is fully transparent, the lockscreen is all black
[Android Software/Hacking General [Developers Only]] bombaybadboy:
On samsung rom on i9100 in systemUI.apk/res/layout/tw_status_bar.xml : there is a line

That directs to a png called status_bar_background in framework-res.apk res/drawable-hdpi. Im still working on transparency myself but maybe if edit png for alpha transpancy on a program like gimp or adobe firework. Thats all I have found so far sorry
[Android Software/Hacking General [Developers Only]] abhisheak.bansal:
i was having the same problem

so i replaced the framework with nexus as mentioned in the guide...and everything worked like a charm

ps: i am using xperia arc cm10

---------- Post added at 10:56 PM ---------- Previous post was at 10:33 PM ----------

check the file names

there is a error in file name

apktool b SystemUI almostdone.apk

zipalign -v 4 allmostdone.apk done.apk

as you can see it is almostdone.apk in first code and allmostdone.apk in second post,,,simple typing error

correct the typing error and it will work

@powerpoint45 : thank you for making this wonderful guide...

PS: the zipaligner in the first post is for linux only

zipalign for windows:- ZIPALIGN
[Android Software/Hacking General [Developers Only]] powerpoint45:
Thanks just added it to thread
[Android Software/Hacking General [Developers Only]] bombaybadboy:
If your having trouble with jar then you could just use 7zip to pull classes.dex then use this zip to decompile-edit-recompile

https://www.dropbox.com/s/963hoo1g7qe4hyl/SMALI EDITING.zip it was given to me and makes the work easy.
[Android Software/Hacking General [Developers Only]] schickel:
I've read the thread and did not find a solution for my problem in recompile.

First, what I have:

1. Ubuntu 12.10 quantal

2. apktool1.5.2 - apktool.jar copy to /usr/local/bin

3. apktool-install-linux-r05-ibot - aapt and apktool copy to /usr/local/bin

4. My /usr/local/bin:

root@schickel:~/SONY/compile# ls -l /usr/local/bin/

total 4348

-rwxrwxrwx 1 root root 1119899 Mar 27 08:40 aapt

-rwxrwxrwx 1 root root 2320 Mar 27 08:40 apktool

-rwxrwxrwx 1 root root 2655843 Mar 27 08:40 apktool.jar

(those 3 files I chmoded to 777 in my desperation ;))

5. I follow all install-steps from 1st post and make (framework-res.apk and SystemUI.apk from my ROM (CM10 FXP212 for LT26i)):

apktool if SystemUI.apk

apktool if framework-res.apk

apktool d SystemUI.apk

=> decompiling works

Without changes I try to recompile:

apktool b SystemUI SystemUI2.apk

I get followong error:

I don't know, what is wrong. Any suggestions?
[Android Software/Hacking General [Developers Only]] tdk55:
Ears to hear but don't hear

I just wanted to say, thanks for the cup.. Awesome video.
[Android Software/Hacking General [Developers Only]] powerpoint45:
Haha glad you watched it
[Android Software/Hacking General [Developers Only]] Ichigo:
Video? :confused: Cups? :confused: I wanna see the cup video!!! :o
[Android Software/Hacking General [Developers Only]] :


Your step 5 is wrong. Don't do:

apktool if SystemUI.apk

You are loading sysui like a framework. Just do:

apktool if framework-res.apk.

apktool d SystemUI.apk

---------- Post added at 09:28 AM ---------- Previous post was at 09:23 AM ----------

Two girls one cup? You don't want to see it. What has been seen cannot be unseen. =-O
[Android Software/Hacking General [Developers Only]] powerpoint45:
Its in my signature
[Android Software/Hacking General [Developers Only]] and2:
AW: [COMPLETE GUIDE] decompiling, theming, and recompiling JB SystemUI.apk [Jelly Bea

Sorry, i have to repeat my question: how can i change the color oft the sys-bar like yours in grey but i prefer transparent (and i hope it is not Smali)?
[Android Software/Hacking General [Developers Only]] :
If you are using CM, which it looks like you are, you need to decompile SystemUI and navigate to ~/res/values/drawables.xml. Change the hex value in line 5 to whatever color you want.

From:

<item type="drawable" name="status_bar_background">#ff000000</item>

To:

<item type="drawable" name="status_bar_background">#ff919191</item>

The above color is grey.
[Android Software/Hacking General [Developers Only]] androidnerd2:
@powerpoint45

So if I want to do this for Xperia J Jellybean where can I get the two framework apks ?
[Android Software/Hacking General [Developers Only]] :
/system/framework of your unzipped rom.
[Android Software/Hacking General [Developers Only]] and2:
big thanks. i have touchwize tabletUI. it is easy to change the nav-bar in phoneUI but the sys-bar in tabletUI :o
[Android Software/Hacking General [Developers Only]] :
Have you tried changing the hex code in drawables.xml to something else?

<item type="drawable" name="system_bar_background">#ff000000</item>
[Android Software/Hacking General [Developers Only]] and2:
yup, no goal
[Android Software/Hacking General [Developers Only]] androidnerd2:
Duh.

In the OP the framework given has two files namely 127 and 07 I guess and not framework-res.apk

That's why I asked which files to get ?
[Android Software/Hacking General [Developers Only]] :
Who knows what phone/rom those apks are for or even why the op posted them. The framework files you need are the ones from your rom. It is possible you only have one (simply framework-res.apk). You will have problems if you dont use the ones from the rom you intend to modify.
[Android Software/Hacking General [Developers Only]] cbucz24:
The other person is correct, you need the framework files from your rom. Not anyone else's.

While phones or tablets can be the same model, there is still a very good chance that the apk is changed from one rom to the next. .

The only reason I would use another framework is if I wanted to see what code was written to use that as a guide.

Following OP directions...install your framework and framework-res

That should be enough to get started and moving forward.

-Team Nocturnal

-Galaxy Note II Lab Rats Edition
[Android Software/Hacking General [Developers Only]] jdsingle76:
Great OP. There's just a couple things that confused me, that you may(or may not) want to clear up. I apologize if this has been pointed out throughout the thread, as I did not read every post, just the OP. Btw, everything worked fine, as I was able to figure it out, just something you may want to take a look at. Here's what you have written:

apktool b SystemUI almostdone.apk

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 allmostdone.apk done.apk

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

The bold indicates where you initially have the user name the compiled apk almostdone.apk, with one L, and then drag from the backup to aLLmostdone,apk. Additionally, you ask the user to enter into the terminal the double L'd name. Just thought I would address that, to hopefully clear up any confusion. Additionally. You write the sentence "Let's say your backup apk is named backup.apk. " I am not sure, but I think you may have meant to put that earlier in the OP, when you first mention the backup.apk file. Again, I may be wrong, just seemed to be out of place there, and a bit confusing. Please don't think I'm nitpicking, the overall OP is very well done, just got hung up there for quite awhile trying to figure it out, and wanted to try to help if I could. Thanks and have a great day!
[Android Software/Hacking General [Developers Only]] bigcletus:
I am having a hard time with smali files. I am trying to remove the am/pm from a touchwiz rom which should be easy enough. I recompile my systemui folder and the output .apk no longer contains the smali folder. My understanding is that this is part of the classes.dex? I tried moving this file to the original systemui.apk and it just crashes on the phone. Any help would be greatly appreciated. Thanks.
[Android Software/Hacking General [Developers Only]] Sybregunne:
The trick here should be this

you can unzip both apks and just copy paste the meta-inf folder and anroidmanifest.xml and then rezip it.
[Android Software/Hacking General [Developers Only]] nobe1976:
You should actually do this without unzipping the packages. Just open both in archive and drag and drop just the android manifest.xml from almostdone.apk to the original apk. You don't really need the meta-inf folder since the original signature of the apk file will work just fine.
[Android Software/Hacking General [Developers Only]] Sybregunne:
Based on what i experienced i get an fc if you dont include both file and folder. And i have always unzipped and rezipped with meta-inf and manifest file and it works. So it is an option for workflow purposes.

Spoiler content hidden.
[Android Software/Hacking General [Developers Only]] Outta:
keep getting "unfourtuntly systemui has stopped"