yashsingh1/xdaforums huggingface dataset:
[Android General] chandarakk:
thanks alot bro for help me even am not edit anything i just decompile then rebuile do as instungtion after that i copy to replace setting.apk in phone

it still show like that other phone (m190s korian phone) after replace new setting.apk that i rebuil from apk tool it lost setiing icon from my phone am so confuse

the .xml that i want to edit (device_info_settings.xml ) in setting/res/xml

i edit from <Preference android:title="@string/build_number" android:key="build_number" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" /> to <Preference android:title="special thank to" android:key="build_number" android:summary="Xda forum" style="?android:preferenceInformationStyle" />

here my orginal file setting.apk and framw......

http://www.mediafire.com/download/0et0czjzg34kgn6/test_apk.rar

:crying:

here the screen shot i do

after i reaplace all done i sign setting.apk in (dist folder) then Zipalign as screen shot below

i do all step go well but still not work , and lost iconsetting so confuse
[Android General] ibanez7:
Hi, [MENTION=4523928]chandarakk[/MENTION], step you are doing is correct, but I'm not sure..whether xml file which you change that makes settings.apk become FC, or this apktool makes settings.apk FC..

okay... try this one apktool,

Download :

http://code.google.com/p/android-apktool/downloads/list

- apktool1.5.2.tar.bz2

- apktool-install-windows-r05-ibot.tar.bz2 (if you use Window)

Extract and replace to apktool on this thread :..

- apktool.jar

- apktool.bat

- aapt.exe

feedback again......;)
[Android General] AN0N1M4T3:
Nice guida for me
[Android General] hanu_blr:
[MENTION=4569900]ibanez7[/MENTION],

I tried what u suggested, but its always bootloops :(.

1. tried different apk tools 1.5.2, same issue

2 tried with Apktool JB 4.2.2_Signed_By Rizal Lovins Sundanesse.zip, same issue

3. tried APK-Multi-Tool-Stable-RELEASE, same issue.

steps iam doing: fix auto brightness / disable low battery warning

1. decompile framework-res.apk from 4.1.2 JB.

2. In the framework-res/res folder changing the xlm values of arrays(change brightness), integer xml for low battery warning.

3 compile framework-res folder.

4 copy the resource.arcs file from the compiled apk in step 3 to original framework-res.apk.

5. zipalign framework-res.apk

6. flash through cwm. zip

7. bootloops

8. restoring back the orginal framework-res.apk using cwm, still boot loops :(

anyhelp apperciated !

C:\Users\chirpy\Desktop\apktool_jb.4.2.2>apktool.bat d framework-res.apk

I: Loading resource table...

I: Loaded.

I: Decoding AndroidManifest.xml with resources...

I: Regular manifest package...

I: Decoding file-resources...

I: Decoding values */* XMLs...

I: Done.

I: Copying assets and libs...

apktool.bat b framework-res

zipalign.exe -f -v 4 <apk> <newapk>
[Android General] chandarakk:
thaks bro i do all as ur instruntion first post with ur new apktool 1.5.2 still same :crying:
[Android General] ibanez7:
maybe you edited the wrong ... but if this apktool its wrong.. you can try this method first:

- Install the framework (framework also 2 if needed)

- Decompile apk file you want to edit

- After decompile, don't edit anything.

- Recompile and push back into the system on your device...

and after that..you can see, FC or not...

Please mentioned what the name of your device, and what rom you use...
[Android General] hanu_blr:
Mine is a jiayuG3, mediatek chipset 6577, with JB 4.1.2 deodexed, in the framework dir, i see mediatek-res.apk too. Do i need to install this 1st and then framework-res.apk ?

looks like mediatek-res.apk is not needed, its not loaded while decompiling !

C:\Users\chirpy\Desktop\apktool_jb.4.2.2>apktool.bat if mediatek-res.apk

I: Framework installed to: C:\Users\chirpy\apktool\framework\2.apk

C:\Users\chirpy\Desktop\apktool_jb.4.2.2>apktool.bat d framework-res.org.apk

I: Loading resource table...

I: Loaded.

I: Decoding AndroidManifest.xml with resources...

I: Regular manifest package...

I: Decoding file-resources...

I: Decoding values */* XMLs...

I: Done.

I: Copying assets and libs...

C:\Users\chirpy\Desktop\apktool_jb.4.2.2>apktool.bat b -f -d framework-res.org

W: Could not find sources

I: Building resources...

Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.android.com/apk/res/android); us

ing existing value in manifest.

Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas.android.com/apk/res/android);

using existing value in manifest.

I: Building apk file...

C:\Users\chirpy\Desktop\apktool_jb.4.2.2>
[Android General] Dzepar:
need help.

Sir, can you tell me how can I change claear notification button from cetner to the right? i add screenshot.

thanks
[Android General] jimmyly86:
will this work for windows 8?
[Android General] ibanez7:
Sorry guys for my late reply.....

so how the results after decompile and recompile without editing?

it's about padding or margin on clear button in statusbar_expanded.xml.. change the number of padding or margin becomes larger.

please post the contents statusbar_expanded.xml here

try this guy.. and feedback if problem...
[Android General] Dzepar:
Edit

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:background="@drawable/notification_header_bg" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:id="@id/clock" android:clickable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:singleLine="true" />
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginRight="8.0dip" />
<LinearLayout android:id="@id/buttons_bar" android:layout_width="wrap_content" android:layout_height="wrap_content">
<com.android.systemui.statusbar.RotationToggle android:id="@id/rotation_lock_button" android:clickable="true" android:layout_width="32.0dip" android:layout_height="32.0dip" android:layout_margin="8.0dip" android:button="@drawable/ic_notify_rotation" android:contentDescription="@string/accessibility_rotation_lock_off" />
<ImageView android:id="@id/settings_button" android:layout_width="48.0dip" android:layout_height="48.0dip" android:src="@drawable/ic_notify_quicksettings" android:scaleType="center" android:contentDescription="@string/accessibility_settings_button" />
</LinearLayout>
<Space android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />
<ImageView android:id="@id/clear_all_button" android:layout_width="48.0dip" android:layout_height="48.0dip" android:src="@drawable/ic_notify_clear" android:scaleType="center" android:contentDescription="@string/accessibility_clear_all" />
</LinearLayout>

Thank you
[Android General] cevhyruz:
sign.apk problem

hi, i have a problem in signing, when i put the code it has an error saying " ERROR: unable to acces jarfile signapk.jar"

pls help, thanks and more power :)
[Android General] winzlim:
How to decompile and recompile framework-res.apk??

Need to install framework again?

In cmd : apktool if framework-res.apk? < needed?

or directly

apktool d framework-res.apk?

Thanks before :o Nice thread btw help a lot :good:
[Android General] ibanez7:
Okay, try to change this line :

<ImageView android:id="@id/clear_all_button" android:layout_width="48.0dip" android:layout_height="48.0dip" android:src="@drawable/ic_notify_clear" android:scaleType="center" android:contentDescription="@string/accessibility_clear_all" />

To :

<ImageView android:id="@id/clear_all_button" android:layout_width="48.0dip" android:layout_height="48.0dip" android:src="@drawable/ic_notify_clear" [COLOR="Red"]android:scaleType="right"[/COLOR] android:contentDescription="@string/accessibility_clear_all" />

if still same, just feedback..

make sure apktool etc on *.zip save or extract on :

Windows XP : C:\Document and Settings\folder your computer name\here (Without folder)

Windows 7 : C:\User\folder your computer name\here (Without folder)

not installed also had no effect, but I suggest install it...
[Android General] chandarakk:
sorry for late reply

confirm working smooth with ur new method without sign and Zialign

big thanks bro.....
[Android General] jirka607:
Can you please tell me what is wrong i decompile classes.dex withou any problem but when i try to compile it using smali it shows command line for a moment and nothing is done new-classes.dex is not there
[Android General] ibanez7:
you're welcome bro.....

maybe when editing in smali .. there are missing or incorrect, so automatically compile process has failed... may I know what you edit?
[Android General] esarve:
I am getting this thing :( what is this???
[Android General] SXUsr:
Type apktool d SystemUI.apk, you've done it wrong.

If it was a .9 then you've not edited it right?

Then try it before reporting it, saves anyone trying to help a lot of time.
[Android General] Raven_Yen:
No.

I don't wish to have a crashed UI (including options) eventually unable to change it back, therefore I'm here to confirm the condition of the 'error'.
[Android General] SXUsr:
You've been told it will be ok which you wont know unless you try, and to avoid issues put a stock file in a CWM.zip to flash if it doesn't. Don't be scared of the learning curve.
[Android General] bstyle bears:
I already kniw it, but thank you!!
[Android General] Raven_Yen:
He wasn't certain, and I just want to minimise the risk without rushing with time. And I don't want to blame people when their suggestion failed, therefore an absolute answer is preferred.
[Android General] fajriw:
i try to decompile framework-res.apk

apktool if framework-res.apk

apktool if SystemUI.apk

apktool d framework-res.apk

then i recompile it without changing anyting

apktool b framework-res

but it give me W:could not find sources

i try to rename framework-res.apk to testing.apk, it gives me same error message

the size of apk get more little than the original, why?
[Android General] Namoi:
It is just a warning. Probably missing translation strings.

Just ignore :D
[Android General] rival666:
awesome tutorial...

i much learn from this... :good:
[Android General] ibanez7:
hi... maybe you forgot partial tutorial that I wrote.

- After recompiling is complete... Drag & drop META-INF folder and android.manifest.xml (if you not edit android.manifest.xml), also lib folder if there in Original "your".apk to Modified "your".apk on dist folder.

Screenshot example for Drag & drop META-INF folder etc :

​
[Android General] ibanez7:
Update July 8, 2013

[Update]

Hi guys, if you have problems with this tool .. when you have to make sure to edit apk files, or jar files are correct but the error recompiling.

you can try this tool (Update v2), hope this helps.

Download :

http://d-h.st/3KU
[Android General] black_roses:
hey [MENTION=4569900]ibanez7[/MENTION]

how do i get the Greenrocks.apk?

i´m trying to decompile framework-res.apk

but when i do the "apktool d GreenRocks.apk" command

i get, "input file (GreenRocks.apk) was not found or was not readable.
[Android General] Namoi:
Well GreenRocks.apk isn't probably in your folder...

But if you want to decompile only framework, why decompiling GreenRocks ?
[Android General] black_roses:
then it´s just a missunderstanding from my side. in the guide there was 2 commands. one with framework and the other one with greenrocks and i belived it was supposed to be so. but when you questioned why i tried decompiling GreenRocks i tested with framework instead and then it worked.

it was a little blurry to know that in the guide. sorry for being my first attempt at decompiling :)
[Android General] Namoi:
So let me make it clear as glass for you ;):

The first command is :

apktool [COLOR=Red]if[/COLOR] framework-res.apk

Let understand what it means : it is not a decompile command. When you execute this, what you are doing is intsalling the framework (IF : Install Framework). Go to Username/Apktool/framework and you will see a 1.apk : it is your installed framework.

Why do you need to do it ? Because when you decompile let's say GreenWorks.apk (as in the OP example) using

apktool [COLOR=Red]d[/COLOR] GreenWorks.apk

the decompiler needs some informations from the framework (we call this dependencies). When you compile back, it is the same.

Is it better now :D?
[Android General] dhikunthea:
hai mate.. i have problem here..

when i try to recompiling apk ex : systemui.apk

i got this error

this how step by step i have doing

this is oke bro??

i haven't edit anything.. just try decompile and recompile..

i already read your instruction..

jdk? done

jre? done

sdk? yes i already have all requirement..

please.. could you help me "mastah" :D :D

oh yes my phone is based to MTK phones
[Android General] engloa:
What error are you talking about?:confused:

From your log file, aapt gives you a warning of no default translation string, then proceeds to build the apk file(look at the next line)

There should be a new folder called dist inside your systemui folder where the new systemui.apk will be
[Android General] binhdb:
good

thank you
[Android General] Namoi:
You didn't need to quote whole OP just for this. Thanks.
[Android General] dhikunthea:
Yes..

I know about that..

I already move androidmanifest.xml and meta-inf folder from original systemui.apk to modified systemui.apk..

But when i try push apk to system...and restart my phone

statusbar is gone..
[Android General] SXUsr:
And the resources.arsc?
[Android General] Namoi:
Don't want to interfer, but if some xml from values folder has been changed they are inside the new arsc file AFAIK.
[Android General] joelquerty:
---------- Post added at 03:57 PM ---------- Previous post was at 03:55 PM ----------

how about this
[Android General] ibanez7:
You are use Gingerbread ROM, so your problem on framework-res.apk

Decompile it, go to res\color\ and open primary text light disable only.xml and change the color code with #FFFFFF, save and recompile.

Btw... Don't quote OP post ;)
[Android General] mikehacker182:
sir good day

do you have a tutorial on how to create 9patch for mms.apk? im always having error T_T when decompiling :eek:
[Android General] J.E.abhishek kumar:
bro..iam getting error in recompiling apk what can be done to fix it:good:
[Android General] xnux:
looks like a problem with the apktool components, try downloading a different version
[Android General] joelquerty:
how about in cm7?
[Android General] ibanez7:
Make sure the editing xml or smali file is correctly... every editing on the apk file, I always use this method, and it was fine ;)

many who share about guide patch 9.png here.. you just look for it, This is for example :

http://xdaforums.com/showpost.php?p=28965325&postcount=2

what the base ROM? and what you edit?, i think is error of the smali file or problem with apktool? please tell me what do you change/edit?

yes guy, its work on CM7.. try it ;)
[Android General] vrx29:
HEY I WANT TO CHANGE THE COLOUR ON MY ICS device does it work with it plzzzz tell me
[Android General] ibanez7:
Just post you want to edit (screenshot), if i can help... I will answer... ;)
[Android General] AngSanley:
tengkiu bro...

thnx
[Android General] chandarakk:
please help me i try with apk of Lg 4.1.2 it show

from y

i alway suuces with Apk of samsung but LG .apk never succese please help
[Android General] ibanez7:
I see on your logcat, you use framework 1 and 2 from samsung for decompiling apk from LG, right?

If yes, don't use framework samsung on apk file from LG, but use framework 1, 2 from LG too guy...
[Android General] chandarakk:
same brother even i use Framwork of LG please help
[Android General] chandarakk:
need help brother from y i do wrong
[Android General] chandarakk:
sovle

now my problem sovle :D this apktool is still work smooth
[Android General] eChinz:
lockscreen wallpaper

sir, i need your help.

the default lockscreen background is "transparent black",

how to change it into a "wallpaper"? :confused:

im using Karbonn A9+ (Cherry Mobile Flare [Jelly Bean] )

link for my framework-res.apk

http://www.mediafire.com/download/2r9jjok8bbx139j/framework-res.apk

please.... thank you!!!!! :o
[Android General] nerotNS:
Hi.

First thanks for the great tool it really makes decompiling/recompiling easy. However I have a problem recompiling a deodexed Settings.apk. I can decompile ok, but even when I didn't make ANY edits to the app and i want to recompile it gives this

Any idea how to fix it? Thanks in advance :D
[Android General] ibanez7:
Next time i will try...

I think it problem with apktool version, Whether you've tried v1 and v2? Its work or not?
[Android General] nerotNS:
I did, I tried both versions, but alas no luck.

Update: It seems to be working now (God knows how) :D Thanks for your help

Update 2: An error again -.- this time it's different
[Android General] chandarakk:
try dont edit anything just only decompile then recompile it it ok or not ?:D
[Android General] nerotNS:
This is the non-edited one.
[Android General] chandarakk:
model phone? can u uoload ur ,apk(framwork......) i want test too
[Android General] error404:
Hey guys, i'm noob in this kind of s... and i'm having some problems.

When i try to install SecSettings.apk i have this error. So i decompile it succesfully and tried to recompile, but error again.

So i made the same thing with SystemUI.apk, it installed and decompile succesfully but i have the same error when recompile.

Someone can help please?

C:\Users\Yuri\Desktop\[Window XP_7_8][GB_ICS_JB] Apktool and baksmaling + Signer
v2 by ibanez7>apktool if SecSettings.apk
Exception in thread "main" brut.androlib.AndrolibException: Arsc file contains z
ero or multiple packages
at brut.androlib.res.decoder.ARSCDecoder$ARSCData.getOnePackage(ARSCDeco
der.java:431)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource
s.java:566)
at brut.androlib.Androlib.installFramework(Androlib.java:473)
at brut.apktool.Main.cmdInstallFramework(Main.java:250)
at brut.apktool.Main.main(Main.java:81)

C:\Users\Yuri\Desktop\[Window XP_7_8][GB_ICS_JB] Apktool and baksmaling + Signer
v2 by ibanez7>apktool b SystemUI.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:164)
at brut.androlib.Androlib.build(Androlib.java:183)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:
103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:160)
... 4 more
[Android General] bombaybadboy:
Try the basics, install your framework-res.apk

apktool if framework-res.apk

Then put your SecSettings.apk in your apktool folder

apktool d SecSettings.apk

After it decompiles then compile without any edits

apktool b SecSettings

See if you compile without errors
[Android General] pierre 1:
Hello! Not found the line const v7, -0x1

in smali / com / android / settings / fontSizeListAdapter.smali. How do?

I need to correct this error.

EDIT: I SOLVED : Victory:

I found this line: const / high v7, -0x100

I put this: const / v7, -0x1

After folder res / xml: acessibility_settings.xml and added color.

Recompiled. Now the correct white
[Android General] pierre 1:
I have another problem: the text was changed to white, the background has not changed over to the dark after work framework. This happens in semaphore.apk.

After decompiled, so he has the smali folder. How can I edit and edit files within which smali? : (

how to edit file smali to leave dark background? is how?

EDIT: SOLVED. :)
[Android General] pierre 1:
how to solve this? which xml files in contacts.apk decompiled res / layout, layout_ko_finger, layout_land, finger layout, layout-land-finger and layout-long-land-finger?
[Android General] TurKurT656:
hi guys. i can decompile the framework of some custom roms. but there is a rom that when i try to decompile the framework.jar file it cant do that

this is the code that cmd shows to me:

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\maysam>i:

I:\>cd vipers

I:\ViperS>apktool d framework.jar
I: Baksmaling...
Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78
0a 30 33 36 00
at org.jf.dexlib.DexFile.<init>(DexFile.java:377)
at org.jf.dexlib.DexFile.<init>(DexFile.java:274)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:48)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:33)
at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:68)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:85)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)

I:\ViperS>
[Android General] jatin3:
i am install jdk/jre all requirements but get error while decompiling systemui.apk

ner v2 by ibanez7>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\jatin Hingorani\apktool\framework\

1.apk

I: Loaded.

I: Regular manifest package...

I: Decoding file-resources...

S: Could not decode file, replacing by FALSE value: drawable-hdpi/stat_sys_r_sig

nal_0.png

S: Could not decode file, replacing by FALSE value: drawable-hdpi/stat_sys_r_sig

nal_3.png

S: Could not decode file, replacing by FALSE value: drawable-hdpi/stat_sys_r_sig

nal_5.png

S: Could not decode file, replacing by FALSE value: drawable-hdpi/stat_sys_signa

l_5.png

S: Could not decode file, replacing by FALSE value: drawable-mdpi/stat_sys_r_sig

nal_5_fully.png

S: Could not decode file, replacing by FALSE value: drawable-mdpi/stat_sys_r_sig

nal_2.png

S: Could not decode file, replacing by FALSE value: drawable-mdpi/stat_sys_signa

l_null.png

S: Could not decode file, replacing by FALSE value: drawable-hdpi/stat_sys_r_sig

nal_1.png

S: Could not decode file, replacing by FALSE value: drawable-hdpi/stat_sys_r_sig

nal_2.png

S: Could not decode file, replacing by FALSE value: drawable-mdpi/stat_sys_r_sig

nal_5.png

S: Could not decode file, replacing by FALSE value: drawable-mdpi/stat_sys_signa

l_flightmode.png

S: Could not decode file, replacing by FALSE value: drawable-hdpi/stat_sys_signa

l_5_fully.png

S: Could not decode file, replacing by FALSE value: drawable-hdpi/stat_sys_signa

l_flightmode.png

S: Could not decode file, replacing by FALSE value: drawable-hdpi/stat_sys_roami

ng_cdma_0.png

S: Could not decode file, replacing by FALSE value: drawable-mdpi/stat_sys_r_sig

nal_0.png

S: Could not decode file, replacing by FALSE value: drawable-hdpi/stat_sys_r_sig

nal_5_fully.png

S: Could not decode file, replacing by FALSE value: drawable-mdpi/stat_sys_r_sig

nal_3.png

S: Could not decode file, replacing by FALSE value: drawable-mdpi/stat_sys_r_sig

nal_1.png

I: Decoding values */* XMLs...

I: Done.

I: Copying assets and libs...

whats going wrong :crying::crying:
[Android General] ibanez7:
Got to my post.... maybe can help your priblem ;)

http://xdaforums.com/showpost.php?p=41624093&postcount=103

Hi, For decompiling *.jar file like framework,jar... please read carefully the guide on first page...

http://xdaforums.com/showpost.php?p=40732310&postcount=1

Hi, Maybe your SystemUI is error, could be a result of editing the apk without decompile/decompile via apktool, so the *.png file is no sign.

try to edit from original SystemUI deodexed without any previous edits...:)
[Android General] pierre 1:
2 had already solved! Now this lack. I have done everything and I can not! : Choro:
[Android General] pierre 1:
Edit: all solved !!!! : Victory: