yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] sdeft:
Thanks for this mod but I need some help as I am on HTC device.

I have decompilied the apk and I want to delete a specific entry and add a new one in HtcEntryProxy.smali but I am stuck! Anyone know how to do it ?
[Android Apps and Games] psychEinside:
using command prompt?

it says Error: unable to access jarfile apktool.jar
[Android Apps and Games] Ticklefish:
Ah, that may just be becuase of my setup. Try:

apktool install-framework framework-res.apk
[Android Apps and Games] psychEinside:
okay thanks, i successfully installed framework-res.apk

but still, i can't decompile settings.apk. i also tried the ticklemyandroid in ur signature but i can't see where are the decompile files.
[Android Apps and Games] balamu96m:
Some tips: (for all)

--install original stock framework-res.apk including other frameworks like twframework, htc framework etc.

--First try decompiling and re-compiling the original stock settings.apk before decompiling & recompiling settings.apk of some other roms.

--when re-compiling after modding, if you get some error related to public.xml, try this:

##adding more soon.
[Android Apps and Games] Ticklefish:
You beat me to it! Lol

If it's a Samsung phone, it's got to be running Touchwiz, which means there'll be an extra framework file called twframework-res.apk

Install that one as well and that should allow the app to decompile properly.
[Android Apps and Games] :
Excellent Guide, helped me theme my SystemUI.apk. Pretty incredible what you can do when you decompile an apk's .xml files!
[Android Apps and Games] SpaceCaker:
for the toggles remove the both wifi and bluetooth lines

and add

<CheckBoxPreference android:persistent="false" android:title="@string/wifi_quick_toggle_title" settings:icon="@drawable/ic_settings_wireless" android:key="toggle_wifi" android:summary="@string/wifi_quick_toggle_summary" />

<CheckBoxPreference android:persistent="false" android:title="@string/bluetooth_quick_toggle_title" settings:icon="@drawable/ic_settings_bluetooth2" android:key="toggle_bluetooth" android:summary="@string/bluetooth_quick_toggle_summary" />
[Android Apps and Games] Cobmaster:
I‘ve done this.

http://www.4shared.com/zip/usLr96tA/Pre-scripted-update.html

Why it FC every time I go in sound or display option?
[Android Apps and Games] balamu96m:
tried that.......but that isn't working..........need to edit some smali.............
[Android Apps and Games] SpaceCaker:
Jup figured out that my wifi doesnt switch xd

Sorry

Buy atleast its added
[Android Apps and Games] Erhany:
good work ! thanks but Im freakin out ! it doesnt work for me!

I try my Xperia arc 2.3.4 original system files , apktool if framework-res.apk ... 1.apk OK! but what is 2.apk ? It says can't find framework resources for package of id: 2.

I dont have twframework-res on my system/framework on arc! i tried semcgenericuxpres.apk is it true ? need help ! I want to try to edit my GB settings.apk look like ICS.. :/
[Android Apps and Games] gummie:
Im stuck on Step 8 (Building) I always get error so I cant find the neccessary file to copy and make that Settings-New

C:\>apktool b C:\Settings
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
C:\Settings\res\xml\settings.xml:8: error: Error: No resource found that matches
the given name (at 'icon' with value '@drawable/ic_settings_bluetooth2').
C:\Settings\res\xml\settings.xml:11: error: Error: No resource found that matche
s the given name (at 'icon' with value '@drawable/ic_settings_more').
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\MARVIN~1\AppData\Local\Tem
p\APKTOOL4619853779678069497.tmp, -I, C:\Users\Marvin Bermudez\apktool\framework
\1.apk, -S, C:\Settings\res, -M, C:\Settings\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\MARVIN~1\AppData\Local\Temp\APKTOOL4619853779678069497.tmp, -I, C:\Users\Ma
rvin Bermudez\apktool\framework\1.apk, -S, C:\Settings\res, -M, C:\Settings\Andr
oidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more

This is always the Output when I finally building. Please help me Im Stuck.

Edit: Somehow I find my problem, its when I edit Wireless on Settins.xml and add this lines.

Is there something wrong on my Codes? Coz Im sure I copied the Target File correctly.
[Android Apps and Games] Jason-EX:
Thanks! Great tutorial :D
[Android Apps and Games] klin1344:
Thanks for the awesome guide! :D

btw, do you know how I would adjust the color of the settings.apk background? I can see in your screenshot it is kind of gray-ish, whereas mine, from a samsung rom, is completely black.
[Android Apps and Games] Avilove.Cullen:
If i am dev a rom then how to include all this? :o

Reall Contributors Dont BeG for Thanks ;))

Cheers :)
[Android Apps and Games] mohamedhassan002010:
work

:Dthaaaaaaaaaaaaaaaaaaaaaaanxxxxxxxxxxxxxxxxxxxxxx
[Android Apps and Games] balamu96m:
Wifi on/off almost over!!
[Android Apps and Games] SpaceCaker:
Ove or done ?
[Android Apps and Games] MicroLizard:
Need your help.

I want to try decompile settings.apk but always got error.:confused:

--------------------------------------------------------------------------
|Sun 07/01/2012 -- 16:03:02.06|
--------------------------------------------------------------------------
java version "1.6.0_27"
Java(TM) SE Runtime Environment (build 1.6.0_27-b07)
Java HotSpot(TM) Client VM (build 20.2-b06, mixed mode, sharing)
Could Not Find C:\Program Files\Android SDK\android-sdk_r12-windows\android-sdk-windows\platform-tools\place-apk-here-for-modding\../place-apk-here-for-modding/signedSettings.apk
Could Not Find C:\Program Files\Android SDK\android-sdk_r12-windows\android-sdk-windows\platform-tools\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSettings.apk
I: Baksmaling...
I: Loading resource table...
W: Skipping "android" package group
I: Loaded.
I: Loading resource table from file: C:\Users\Ukky\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 23
at java.lang.String.charAt(Unknown Source)
at brut.androlib.res.xml.ResXmlEncoders.findNonPositionalSubstitutions(ResXmlEncoders.java:165)
at brut.androlib.res.xml.ResXmlEncoders.enumerateNonPositionalSubstitutions(ResXmlEncoders.java:142)
at brut.androlib.res.data.value.ResStringValue.encodeAsResXmlValue(ResStringValue.java:45)
at brut.androlib.res.data.value.ResArrayValue.serializeToResValuesXml(ResArrayValue.java:55)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:264)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:137)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)
[Android Apps and Games] balamu96m:
I found some important clues......i hope i finish it very soon

!!

I would recommend using apktool because detecting probs will be easier..........
[Android Apps and Games] BohArie:
need your help.

balamu96, how to fix cmparts.apk

urm, when I open sound mode in interface it should multi choose but I can choose only one..

I mean, check box.

how to put multi listpreference on cmparts.apk?

sorry to bother u about this problem, hope U will help me in my problem...

any way thanks for ICS setting step by step guide. very helpful thread.
[Android Apps and Games] balamu96m:
I do not know how to do that !! You can use google to find any tutorial thread...............

What i know is, it cannot be done with .xml files. We need to edit smali files. To edit smali files, we should know the Dalvik opcodes. These Opcodes & their functions can be found here: http://pallergabor.uw.hu/androidblog/dalvik_opcodes.html

Stackoverflow.com will also help you in doing so!

Good luck!
[Android Apps and Games] BohArie:
thank u for reply..

stackoverflow.com, already search on this thread but I dont understood every thing on this website..

thanks again...

how about wifi and bluetooth on/off?? already success or not?
[Android Apps and Games] gafaysto:
i can't decompile settings.apk even if i don't modify it... i tried this for more than 5 hours nothing works... i post here the problem in more detail

( http://xdaforums.com/showthread.php?p=29218359#post29218359 ) I can compile and decompile other apps but some would cause the apk manager to crash...
[Android Apps and Games] balamu96m:
in apktool you must first load your framework-res.apk

this command would do:

apktool if framework-res.apk

if you have twframework-res or htc framework etc, load them also!!:good:
[Android Apps and Games] saldymhmd:
Yeah ! Please figure out, tried to put the toogle bluetooth and wifi but it just like a 'fake toogle' :P Maybe some .smali must be edited. I'm not expert with .smali :D
[Android Apps and Games] -VoL-:
Downloaded and test it now:victory:. Thanks
[Android Apps and Games] gafaysto:
Yea i did that , it wasan't that it seems that the settings.apk had an brokern .9.png i replaced it and now everyting is superb.

Now i have ics layout with colorful gb icons. Very useful guide thank you
[Android Apps and Games] zalzondabuzz:
Hello bro...

I want to mod *about phone in settings.apk by adding some line in it...

What xml files to edit ?
[Android Apps and Games] SpaceCaker:
About_settings.xml or some like that but u will need to add them also in the smali
[Android Apps and Games] zalzondabuzz:
What smali files I must edit...?
[Android Apps and Games] AvijitGhosh82:
Great tut. I'll do it soon!
[Android Apps and Games] Avilove.Cullen:
How tto edit smali files?

Edward Cullen
[Android Apps and Games] hell_lock:
Smali files are found in the /smali files of the decompiled apk... They can be edited using notepad++
[Android Apps and Games] Avilove.Cullen:
Ok i will try and then post :)
[Android Apps and Games] tchen510:
Force Close

A couple of questions.

First question, why don't we have to copy the strings.xml that we edited?

Second, when i tried this first, I kept getting a force close. I then decompiled the apk, and directly recompiled it and it worked, but the size of the settings.apk decreased from 3MB to 1.5MB. Why is this?

Finally, I decompiled my apk, edited the strings.xml, and added the line <PreferenceCategory android:title="@string/settings_ics_radio" /> to my settings.xml, followed the rest of the instuctions and flashed it to my phone. It did not force close, but there was not a difference between this addition and the previous settings.

As a note, I have errors compiling the apk if I don't copy the resources.arsc into my folder before recompiling, but it seems to work if I copy that file.

Another thing I noticed is that the files from the stock settings.apk that I unzipped are unreadable, but the files unzipped from the recompiled settings.apk are still readable (if I unzip an apk with winrar should I be able to read the .xml files?)

Sorry for being a noob.
[Android Apps and Games] balamu96m:
On compiling, the strings.xml goes into the resources.arsc file......

Also on unzipping a compiled apk, xmls cannot be read.....
[Android Apps and Games] kudoluffi:
nice tutor, it would help me
[Android Apps and Games] levellsmith:
Thanks for this tut. Awesome work man!!!! wow!
[Android Apps and Games] tchen510:
Thanks for replying but that is kind of my problem. When I try to recompile the settings.apk it will not go unless I copy in the old .arsc file which then overrides my edits. If I copy in the file, it compiles, but something is wrong because if I unzip the new .apk I can read the XML. I have compiled and recompiled other apk s without problems. Any ideas why I can't compile settings.apk?
[Android Apps and Games] balamu96m:
You can try the latest apktool n make sure u did install the frameworks also.......
[Android Apps and Games] Draky50110:
Simple and naive question : do you have other languages labels ? :D

I'd like the settings for french :)
[Android Apps and Games] AvijitGhosh82:
http://xdaforums.com/showthread.php?p=30255946

Any help please? :P
[Android Apps and Games] balamu96m:
sorry...i don't have any..........you can just use google translate, but it would take time..........
[Android Apps and Games] balamu96m:
Can try if i get enough time !
[Android Apps and Games] AvijitGhosh82:
OK!! Please look into it!
[Android Apps and Games] elol:
need you all help

hye to all sory for this request,i need some help,i get error when complie back the setting.apk with i follow all this guide,i dont know what is the problem,2 week i try to modify my setting.apk but always got error and problem when complie back my setting.apk,can someone help me do this guide and make my setting.apk like style ics?i like it:crying::crying::crying::crying:

this is my setting.apk...hope someone help me do this my setting.apk like ics:crying::crying::crying:
[Android Apps and Games] :
Hey guys I am having a problem recompiling the APK. I get the following error when "apktool b settings" is executed.

C:\apktool>apktool b settings
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\apktool\settings\res\xml\settings.xml:6: error: Error parsing XML: not well-f
ormed (invalid token)
aapt: warning: string 'location_title' has no default translation in C:\apktool\
settings\res; found: es fr
aapt: warning: string 'sp_do_not_ask_SHORT' has no default translation in C:\apk
tool\settings\res; found: es_MX fr_CA ko zh_CN zh_TW
aapt: warning: string 'sp_gesture_call_cat_NORMAL' has no default translation in
C:\apktool\settings\res; found: en_US
aapt: warning: string 'sp_gesture_video_cat_NORMAL' has no default translation i
n C:\apktool\settings\res; found: en_US
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\Russell\AppData\Local\Temp
\APKTOOL6152806156558439597.tmp, -I, C:\Users\Russell\apktool\framework\1.apk, -
S, C:\apktool\settings\res, -M, C:\apktool\settings\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\Russell\AppData\Local\Temp\APKTOOL6152806156558439597.tmp, -I, C:\Users\Rus
sell\apktool\framework\1.apk, -S, C:\apktool\settings\res, -M, C:\apktool\settin
gs\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
[Android Apps and Games] Messi10:
i can't compile settings.apk i get this error

Can't find framework resources for package of id: 2. You must install proper framework files settings apk

EDIT: fixed
[Android Apps and Games] rdsguerreiro:
Can n e one plz provide a flashable file for Orange Boston?? I've tried in every possible way and I'm not being able to do this... PLZ HELP!!!
[Android Apps and Games] samsoul16:
How did u fix it I am having same problem

!!!!!!!THANKS!!!!! IS NoT A WorD To SaY It Is JusT To PrEsS iT..So JusT PrEsS iT FoR Me......!!!;):P

SenT From MY SGY DUOS UsinG---»» DrEaM ICS FuSiOn.!!!!!!
[Android Apps and Games] Messi10:
put framework-res.apk in apktool folder then do this (tw-framework too if u have it )

apktool if framework-res.apk

apktool if tw-framework.apk
[Android Apps and Games] roxtreeme:
amazing work dude.........!thanxx

:):):cool:
[Android Apps and Games] balamu96m:
Will try to provide an update soon !! :good:
[Android Apps and Games] lucacerio:
is there any way to edit battery icon on huawei honor running gb?
[Android Apps and Games] balamu96m:
It isn't related to this thread in any way....... Still :

It is just theming your statusbar.apk or framework-res. apk.......
[Android Apps and Games] alkhafaf:
Thanks alot for this... I managed to add it to MesoROM.. thank you very much

but there is something just wondering me... I tried to find it and couldn't... how to change the color of the backgroud in sub-headers ?? ( the background for WIRELESS & NETWORK, DEVICE, PERSONAL ...)

It can be off-topic, but just wondering if u know how to ?

thank you bro.. :)
[Android Apps and Games] SpaceCaker:
Header dark or header.light png

In framework res apk

Its small png
[Android Apps and Games] Deadly:
I had this same problem while fixing lidroid reboot button title fix.. solved by using 1 apk as framework-res.apk and 2 apk as tw-framework.apk..

hit thanks button! If above post helps u..

Sent from my GT-S6102
[Android Apps and Games] alkhafaf:
waw... Thanks man, u saved alot of time for me, thank you :)
[Android Apps and Games] cj360:
Guide was extremely useful. Thx!

I don't suppose someone knows where xloud strings would be? I've been looking in stock-ics from from Sony that has it and I can't find it.

Sent from my Xperia Play
[Android Apps and Games] n3n00:
I did it :D but something's wrong with my bluetooth and more png (forgot to resize x)) and I forgot to add 1 section. How I did it? Realized that I'm on apktool 1.4.3 and newest is 1.5.0, also I didn't have to edit public.xml because apktool automatically arranges that.

Now if someone can please link me detailed tutorial on how to change button size in Settings.
[Android Apps and Games] SpaceCaker:
Photoshop ;)
[Android Apps and Games] ts_firehawk:
Pixlr.com

Enviado do meu iGalaxy Ace ;)
[Android Apps and Games] n3n00:
?

Yeah that answer is pretty detailed :P I'm using GIMP btw.

I want to change the height of the buttons, not background, if that's what you meant.

I've read a tutorial, said I need to edit something in preferences_icon.xml, changed 3 commands to 25.0dip but only icon and text got smaller.
[Android Apps and Games] ts_firehawk:
Try to search in the layouts file... I think it may be there, since is the layout that creates the UI elements. And that was exactly what I've meant :rolleyes:

Enviado do meu iGalaxy Ace ;)
[Android Apps and Games] jerryn70:
Some screenshots are not working.
[Android Apps and Games] balamu96m:
what screenshots ??
[Android Apps and Games] jerryn70:
The tutorial image
[Android Apps and Games] 23r9i0:
Hi,

One question:

Is possible hide or remove options in wireless_settings?

My problem is that it forced closure by using <! - code -> and in the logcat says " java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.WirelessSettings}: java.lang.NullPointerException " and if possible rather not modify WirelessSettings.smali
[Android Apps and Games] hell_lock:
Anyone who can analyse my settings.apk?? I recompiled it without any errors but in phone its giving FC. I have the logcat if anyone wants.

---------- Post added at 05:20 PM ---------- Previous post was at 04:59 PM ----------

Thanks for this! I am also trying to make those checkboxes work..!!
[Android Apps and Games] jared407:
Can you do a write up on how to change the status bar and battery bar. Great write up by the way.
[Android Apps and Games] balamu96m:
Thanks for that ! I'll try, when i get enough time ! :)
[Android Apps and Games] didije:
Nice tut. Here is my end result: http://xdaforums.com/showpost.php?p=32414800&postcount=948
[Android Apps and Games] psychopac:
my notifications bar has disappeared....can u help me bring it back???
[Android Apps and Games] samsoul16:
Has it disappeared after adding new settings??Apply any other status bar mod on ur rom. U have which fone and which rom??

Sent from my GT-S6102 using Xparent SkyBlue Tapatalk 2
[Android Apps and Games] karlo0321:
I tried it but not working.
[Android Apps and Games] achyut:
THANKS!!!

the guide is GREAT!! thanks a ton! i made a few subtle additions on my own and here are the results: :victory: :cool: :cool:

thankssss a ton! :)

​
[Android Apps and Games] psychopac:
it came back :) n im using stock rooted rom n micromax a52
[Android Apps and Games] DekinGBar:
Hey brand new possibilities with this!Maybe now we can mod the settings like idk maybe WP7/8 or something!
[Android Apps and Games] Kashif.Ali:
apktool???

all about apktool

compile+decompile
[Android Apps and Games] arnabgharay:
http://i.imgur.com/js7qc.jpg

i am using micromax a52 ... adual sim phn.. if u tell me how to edit setting.xml... main is totally diffrent from u... :(
[Android Apps and Games] balamu96m:
Just simple ! Equate every preference screen you see in your Settings Menu (in phone) to the corresponding tag in settings.xml :good:
[Android Apps and Games] underface:
I can do that the data mobile and gps are in the form of high-speed switching and opt-out?
[Android Apps and Games] karlo0321:
It works in my rom thanks. :)
[Android Apps and Games] hell_lock:
How to add checkboxes like in ics?
[Android Apps and Games] balamu96m:
Trying to add.......
[Android Apps and Games] hell_lock:
Where hav u reached till now? Smali hacking done?
[Android Apps and Games] balamu96m:
Working on smali....
[Android Apps and Games] karlo0321:
Do you know how to set sliding tab as the default lockscreen in boot?
[Android Apps and Games] underface:
Its working with ics?

Wysyłane z mojego XT910 za pomocą Tapatalk 2
[Android Apps and Games] psychopac:
I can't do it coz my rom is odexed.... any guide for odexed one???
[Android Apps and Games] ciscogee:
Deodex your rom files.

Google deodex..
[Android Apps and Games] psychopac:
I cant deodex systemui and framework-res...any help for that??
[Android Apps and Games] ciscogee:
Where do u need help? Pm me
[Android Apps and Games] balamu96m:
Should work !
[Android Apps and Games] balamu96m:
What tool are you using ?? Did you set the correct API level ??

FYI,

Android 2.2 - API 8

Android < 2.3.3 - API 9

Android >= 2.3.3 - API 10

Android 3.0 - API 11

Android 3.1 - API 12

Android 3.2 - API 13

Android 4.0 - API 14

Android 4.0.3 - API 15

Android 4.1.2 - API 16
[Android Apps and Games] darklion03:
can add effects to the setting as barrel of iphone?
[Android Apps and Games] psychopac:
sorry im a noob but can you tell me how to set api level in apktool??
[Android Apps and Games] balamu96m:
I would recommend you to use dsi-xda kitchen (or) xUltimate to de-odex your ROM/few apps......

the easiest - dsi-xda kitchen
[Android Apps and Games] psychopac:
dsi-xda's kitchen is unable to deodex systemui and framework-res
[Android Apps and Games] karlo0321:
I used dsi-xda's kitchen to deodex the file but not the framework-res coz its not odexed
[Android Apps and Games] klin1344:
Make sure your api level is set correctly.
[Android Apps and Games] psychopac:
I dunno how to set api level
[Android Apps and Games] ciscogee:
Its one of the options in kitchen. You need java 1.6 installed for gb+
[Android Apps and Games] BohArie:
balamu, did u finished the check box for wifi and bluetooth???
[Android Apps and Games] samsoul16:
Same qs?? Even pmed u..
[Android Apps and Games] balamu96m:
Not yet.
[Android Apps and Games] prithvee:
please help!!!!!!!!!!

i did not understand where all the changes you had done in the xmls. please guide me:confused:
[Android Apps and Games] abhi922:
helped me alot ...........

very useful guide ....

thanks....

---------- Post added at 12:31 AM ---------- Previous post was at 12:27 AM ----------

1.) decompile apk

2.) res>values>strings> add all the strings given in first post....

3.) then res>xml>settings.xml > do all modifications as siad above..

4.) then res>drawable> add ur png's

5.) recompile and adb push that;s all...........