yashsingh1/xdaforums huggingface dataset:
[Android General] dev0xteam:
aapt: warning: string 'wifi_signal_found_msg' has no default translation in E:\A

PK-Multi-Tool\other\settings\res; found: zh_CN

brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.Br

utException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-s

dk-version, 17, -F, C:\Users\SIDDHA~1\AppData\Local\Temp\APKTOOL2644019707988128

098.tmp, -0, arsc, -I, C:\Users\Siddhan Khanna\apktool\framework\1.apk, -S, E:\A

PK-Multi-Tool\other\settings\res, -M, E:\APK-Multi-Tool\other\settings\AndroidMa

nifest.xml]

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

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

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

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.androlib.AndrolibException: brut.common.BrutException: could not

exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, C:

\Users\SIDDHA~1\AppData\Local\Temp\APKTOOL2644019707988128098.tmp, -0, arsc, -I,

C:\Users\Siddhan Khanna\apktool\framework\1.apk, -S, E:\APK-Multi-Tool\other\se

ttings\res, -M, E:\APK-Multi-Tool\other\settings\AndroidManifest.xml]

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav

a:357)

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

... 5 more

Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd

k-version, 17, --target-sdk-version, 17, -F, C:\Users\SIDDHA~1\AppData\Local\Tem

p\APKTOOL2644019707988128098.tmp, -0, arsc, -I, C:\Users\Siddhan Khanna\apktool\

framework\1.apk, -S, E:\APK-Multi-Tool\other\settings\res, -M, E:\APK-Multi-Tool

\other\settings\AndroidManifest.xml]

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

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav

a:355)

... 6 more
[Android General] Koolshunti:
Help..How to remove Owner Info submenu

I want to remove the "Owner info" submenu in Security and still display the name on the lockscreen.

Can anyone help on this. I could not find anything regarding owner info in the xml files.
[Android General] tirta.agung:
Can't force developer option to be available by default

Hi, I have a MTK phone running on JB 4.2.1. I have follow all your guide but no matter what I do, I just can't force my Phone Developer option to be available by default. I'm using APK Multi Tool to decompile and compile my APK. Do I have to change any Smali or other xml files beside settings_headers and ids? Could you guide me on this issue. I'm also attaching my settings.apk.
[Android General] aureliomilitao:
I just want to change the background color from white to black, I

have to edit?
[Android General] talhask:
Hi Dev.... I want to add theme option in setting like CM Roms .... Please guide me ...???
[Android General] Madaditya:
1.Decompile Settings.apk

2.Open AndroidManifest.xml and fine something like these lines

android:theme="@style/Theme.Holo"

change to

android:theme="@android:style/Theme.DeviceDefault.Dark"

You cant use Cm theme chooser on stock Roms,instead use Xtheme engine or HkTheme Manager and link that app to settings as in the tutorial above.
[Android General] aureliomilitao:
ok,but...

my root Explorer. dont find Settings.apk, i use LG G2,
[Android General] talhask:
Do you have any video tutorial .... ???? it's really hard to understand ......
[Android General] Madaditya:
http://xdaforums.com/showthread.php?t=2341389

This will help,provided you read carefully
[Android General] moseso:
Nexus 5 -- 4.4.2

Settings -> Display -> Sleep

Can I add a "Never Sleep" option to this menu? How?
[Android General] shaikhdjm:
Can I add unmount usb storage option in settings/storage as my custom rom don't have that option
[Android General] Sonic1SVK:
Hi. I need help. On latest Stable 13 for Xiaomi REDMI missing option for changing the USB mode? Can you pleas help me? .Settings.apk decompiled.
[Android General] Bouziane_Dr:
Help

Morning,

Recompiling get error:

[/url][/IMG]

Help me, please.
[Android General] Quinny899:
They're not errors, they're normal. It should compile with them
[Android General] Bouziane_Dr:
Re(Help)

Thank you Sir Quinny899,

I recompile my TNsettings.apk without errors by process:

1. Open apk file in 7zip

2.Copy resources.arsc and META-Inf to the decompiled dir

3. Recompile

No errors. Try this solution.

I follow your guide word by word BUT when reboot my device, NO SETTING, NO ICON!.

Help
[Android General] hemantv:
I'd recommend you to open both .apk files, original and recompiled one in 7-Zip. And then directly copy the META-INF folder & AndroidManifest.xml from original apk to the one recompiled by you.

This way you can sign the app without any problem.
[Android General] Bouziane_Dr:
Thanks

Thank you.

Work well !
[Android General] dl1nkx:
hELP

Thanks :) for this Guide
[Android General] marco2tiger8:
Nice guide

pressed thx button, :good: :highfive:
[Android General] Yu_San:
Great!i'll try it

来自我的 vivo X3t 上的 Tapatalk
[Android General] Rashiq:
Video

Could you upload a video of this tutorial? That would be very helpful. Thanks.
[Android General] hemantv:
If you follow all the steps correctly then you don't need to watch any video. And if you get any error while compiling you can simply Google them for solution or post here so that any of us could help you.
[Android General] DVDandroid:
Thanks for the guide
[Android General] Paras1259:
Thanks

:good:
[Android General] ingkko:
how to remove the string of "wifi"?

Hi Im a Korean who got bad English skills.. so please read this carefully.

Ive been looking for this kind of information to remove some of the strings on setting.

I actually wanna totally diable WiFi so that i wont be tempted by many function of my tablet pc.

I need to use my tablet only for watching learning methods.. not for playing a game or using internet.

You have written many useful things that i would be very interested but one thing i really need is missing.

How can I strike out some of the items on Setting.apk?

I want to remove Wifi string and bluetooth and data usage and so on.

Pleaee give me some information about it above. Ill be very appreciated!
[Android General] Madaditya:
Haven't come across such ideas :p

but can try this

1.Decompile Settings.apk

2. In res/xml/settings_headers.xml and delete lines which look similar to these

<header android:icon="@drawable/ic_settings_wireless" android:id="@id/wifi_settings" android:title="@string/wifi_settings_title" android:fragment="com.android.settings.wifi.WifiSettings" />
<header android:icon="@drawable/ic_settings_bluetooth2" android:id="@id/bluetooth_settings" android:title="@string/bluetooth_settings_title" android:fragment="com.android.settings.bluetooth.BluetoothSettings" />
<header android:icon="@drawable/ic_settings_data_usage" android:id="@id/data_usage_settings" android:title="@string/data_usage_summary_title" android:fragment="com.android.settings.DataUsageSummary" />

3.Recompile

Try if works.
[Android General] robindebruin:
hey i wanna remove the mobile network setting menu here are my .apk

plz help me and tell me how you done it so far this is the .zip of how far i got
[Android General] VanDeSanders:
how to add menu shortcut to apps ....
[Android General] luca020400:
How can I add a submenu

How can I add a submenu in settings like About device

Thanks

Sorry for my bad english i'm italian and 14
[Android General] ThunderSky7:
great
[Android General] shaikhdjm:
Nice guide.. thanks ;)
[Android General] leingod0923:
Adding USB Mount / Unmount

can you please help me.. im using canvas hd custom ROM.. its 4.2.2 but the problem is the OTG is working fine but in Settings > Storage there is no Mount / Unmount options to sometimes im forced to pull the USB OTG without unmounting it first.. please help me.. i tried decompiling the settings.apk and checked res > xml but there is no XML for storage...
[Android General] hackernor:
This works great for me, thanks!
[Android General] gerstavros:
I never use apktool etc as root, and have no problem:confused:
[Android General] Quinny899:
It can have problems with accessing the framework-res.apk on some systems
[Android General] mknrls:
[MENTION=3563640]Quinny899[/MENTION] if i would like to remove System Updates from the SecSettings.apk, what would be the steps to do so ?
[Android General] Quinny899:
It should be very similar if not the same as the guide in the first post
[Android General] brigo:
Hi I would like change all this that I circle :) Where have I modify this in settings.apk ? Or it exist a xposed module for this ? thank you
[Android General] hemantv:
The on off toggle is in framework. They are labelled as switch_thumb. The icons in left are in drawable-*dpi folders of Settings and they are labelled as ic_settings_*.png. And the icon in the action bar can be found in mipmap-*dpi folders of Settings.
[Android General] Quinny899:
The second guide in the OP.
[Android General] bestkid123:
i was trying to remove "Themes" section from CM10.1 settings but I get compiling errors :(
[Android General] hemantv:
The only error is in settings_headers.xml on line 16. Check whether you've edited the xml properly.
[Android General] Papadat:
nice guide, thanks :cyclops:
[Android General] Sheldayo:
PIN code question

Great Guide!

I have a question, is there a way to attach a PIN code to any of the headers in the settings.apk or framework-res.apk? Basically, if I want to deny access to anyone but myself to specific folders in the system, is it possible?

Thanks! Again, great guide!
[Android General] ice.modding:
This work on Firmware FNE7 i9500? Or only cyanogen rom?
[Android General] Flashalot:
If you know what your doing you can do it on most phone's
[Android General] RasmusDesign:
Hi, i have this error :

I just edit pictures ic_settings. The pictures have the same size and the same format.

Thanks
[Android General] Quinny899:
You don't have a copy of AAPT in the same directory as your apktool.jar or in your PATH
[Android General] RasmusDesign:
Thank you, I copy the aapt from Apk Multi tools.

But now I have a problem, I run adb as root, everything is fine but when I type the command adb remount, nothing happens.

So I manually rename the settings.apk in settings.bak es with and I copy the freshly sign in system / app. I restart but I have now no more application settings
[Android General] Quinny899:
Did you sign it?
[Android General] RasmusDesign:
Yes with zipsigner !

my phone has a mediatek processor, perhaps the modification need mediatek-res.apk + framework-res.apk ?
[Android General] Quinny899:
Nope, but you may have a different platform signature, which I can't fix, and this guide won't work for it
[Android General] RasmusDesign:
I can try other sign method ?
[Android General] Quinny899:
Not that I know of, unless you can get the platform signature from your ROM
[Android General] sureshsoori1:
Nice work keep it up.
[Android General] kuronosan:
Okay, so I'm doing this on an MTK settings.apk that I deodexed in order to change the theme.

None of my header changes are appearing. It doesn't matter whether I add 10 or 20 lines, I get the same menu every time.

Oddly enough, I change icons and graphics and it all changes. Am I missing something?
[Android General] Quinny899:
Seems silly, but make sure you're editing the correct XML. There might be another one that you've not seen
[Android General] kuronosan:
I've looked through the entire thing. It has all the default AOSP settings in the headers.xml file along with the proprietary headings... but changing anything there does nothing.

Maybe it's missing the smali files and that's what I need to copy over? If I put another settings.apk in there the options are all present and can be selected, but I lose a lot of function from having the settings.apk that came with the device.

I'm trying to merge the two or at least enable some necessary options like accessibility and tethering.
[Android General] DrLex:
I am having a similar problem with the Settings.apk on an MTK phone with 4.2.2. It lacks some sections like Accessibility or Accounts, although I got into the Accessibility settings through an app, so it does exist. I thought I could add the missing sections using the guide from the OP, but when I look in the XML files, the sections are already there. Maybe the XML is ignored and the menu structure is hard-coded?

If you had any success in adding the missing sections, I would be thankful if you could tell how you did it.
[Android General] kuronosan:
I haven't figured out where these are hard coded, because the headers file allows you to manipulate the strings and icons (and delete it). So you can change or alter but for some reason cannot add.
[Android General] DrLex:
Indeed, I also tried a Settings.apk from another similar phone and it has the missing options, even some things that I don't need. It will be easier to hack that one and remove the redundant settings, than to get items added to the nerfed stock Settings… Thanks anyway.
[Android General] kuronosan:
How do you go about doing that?
[Android General] DrLex:
I haven't tried it yet, but if this other Settings.apk behaves normally, then removing items should be possible by removing the right bits of XML.

I also have to do the development_settings_force thing for this one.
[Android General] asasiii:
Hi, very good tutorial ! :highfive: thanks!!!

I decompile and recompile a setting.apk and add lines for xreality engine! and this is success!!!:victory:

but...

this option not work properly! check and uncheck of this option don't any change! xreality working on my phone when check/uncheck option!!!

can help me why this occur?

my phone is SE live with walkman with stock ICS

excuse me for my English!!! I am not english man!
[Android General] SmiLeToLife:
Adding items to submenus

Hello,

I am trying to add Developer Name and Rom Name to my settings submenu but they don't appear in About Phone. I decompiled the settings.apk and edited device_info_setting.xml and values/string.xml, compiled it and everything is fine but the headers don't appear. I on KitKat 4.4.2 MTK6589. Any idea? Thanks in advance.
[Android General] the.eag:
Should it be possible to edit the settings.apk png icons using the same method as for the systemui.apk?

Open apk in 7zip, replace icons in drawable folder with edited version, close 7zip, copy apk and paste into system/apps, then reboot...

This works great for systemui, no de/recompile needed.

Should it work for settings.apk?

...because it didn't for me when I tried (screen went black after kernel splash screen).

Edit - must have been a permission issue, because it's working now.

Snoochie boochie newbie.
[Android General] pirulo259:
Thanks!!! Works in Huawei Ascend P1 (U9200-1) stock rom (B003 venezuela)
[Android General] Killer.shubham:
Works Great

thanks bro worked as you said
[Android General] Quinny899:
Try deleting public.xml and try again
[Android General] HaoZeke:
Android 5.0

Hey I'm missing settings_headers.xml in my android L decompiled settings app.
[Android General] Quinny899:
Install your framework apks
[Android General] friedrich420:
there isnt one ;)

you need the "dashboard_categories.xml" file to make the changes, but im still being unsuccessful and i was really hoping someone else figured it out :angel:

Edit: scratch that ;) Success!! Its definitely "dashboard_categories.xml" If you follow the logic of the other entries in that file, it wont be hard to do..
[Android General] Quinny899:
Have you followed the instructions on the apktool site on how to use multiple frameworks?
[Android General] miclukolov:
Possible that an error in the file settings.apk? If decompile, and then back again to compile framework-res.apk, then everything is fine. Error only settings.apk. I tried use the settings.apk from samsung i727, have exactly the same error
[Android General] Quinny899:
No, it's down to the framework. That's why if you decompile and recompile the framework it works. It's not possible for there to be an error in the settings.apk besides the @id/skype... one you edited (I can see that, make it @+id)
[Android General] wally3614:
In Lollipop Is there a way to increase all the icon sizes in Settings menu? TIA
[Android General] SamadiPour:
hi guys

i want to add option in setting menu

a Section like About Phone

what Shout i Do?

is there any Video TUT?
[Android General] :
Anyone has tried editing the items in 'Battery' in Settings.apk? Not the main screen, but within the Battery options. I want to remove 'CPU power saving mode', but somehow can't find the item to remove.
[Android General] :
deleted...
[Android General] Nicene Nerd:
When I recompile my Settings apk, sign it, and install it to /system/priv-app my settings menu will simply never open. No errors in the whole process, though. Any idea why?
[Android General] CiDev:
settings

How did you sign it?

If you didn't use the META-INF and the AndroidManifest.xml from the original apk then this could be the problem
[Android General] nicgentile:
Same here

Same thing here. I decompiled, made my changes, recompiled, signed, nothing. Then I decompiled, and recompiled, signed, without any changes and it wouldn't work. The first time I did it for my old firmware it was not an issue. This time round, there is something hinky.
[Android General] Jayadratha Mondal:
I'm also having the same issue. I edited then I opened both the new apk and the original apk using 7zip. then just simply drag & dropped the resource file from the new one to the original. & then I replaced the settings.apk in my phone using root explorer and modified permission to 644. The settings is there in the drawer but when I'm tapping it it crashing.

Please help me if..:(
[Android General] areyouanand:
For getting "device owner " in about phone like u. , were should I add android:key="agisksgwhajah". In strings.xml
[Android General] Diaz1999:
well, what did you mean?? sorry but I don't get it :confused:
[Android General] areyouanand:
What are the changes i should make in values/strings...?
[Android General] Diaz1999:
GUIDE

I'd made a comprehensive guide about it long time ago ...
[Android General] xjpmauricio:
Hi, great article! A real life saviour!

Question: is there a way to substitute Zipsigner by some command?
[Android General] 01001001M:
Can anyone help me removing the Performance Option in the CM12 Settings.apk?

I already removed the submenu and now when I'm taping on the performance Option in the settings it crashes the settings.apk.

I attached a Screenshot of the section I want to remove and also a dropbox link to the settings.apk I already edited by myself...

https://www.dropbox.com/s/dnuedbk4vu11ozx/Settings.apk?dl=0
[Android General] pravin21:
Hi i did everything but cant able to install settings by either way....when i try to install it always shows settings not installed...
[Android General] AATRONIX:
Help

I want to change settings header background from dark grey to blue...how to do it
[Android General] djdelarosa25:
How do I remove the auto-brightness feature from the custom ROM that I am porting? Thanks!
[Android General] Nimadroid:
this guide work for lollipop also?

if work plz tell me how to add data and ifi and bluetooth switch to main of setting

look like this

[IMG=""]http://xdaforums.com/attachment.php?attachmentid=3367027&d=1434559805[/IMG]
[Android General] 05Gurpreet:
Great tutorial sir :)
[Android General] Quinny899:
That won't be possible with simple XML edits, it's far more work than that. I have no guidance for that.
[Android General] Nimadroid:
tnx man

if u find any tel me
[Android General] starbucks2010:
Thank you for this helpful guide.

I think that the OP would have covered more situations if instead of replacing an item in Settings, you would have guide us how to add a new item into a new section in Settings. Especially if it would be for Lollipop. :good:

Best regards.
[Android General] jimbomodder:
Can I also change the background using this method?

Sent from my GT-I9195
[Android General] lawrd44:
deleting meu item

Thank ALOT for this guide, if you can help me with an item id be most appreciative.

Im trying to hide/delete the 'usb debugging ' menu item. Meaning, i dont want that menu item to be visible at all. I deleted the string in the settings where the header is, when i tried recompiling i got an error message and subsequently when i pushed the apk to the phone it froze and got stuck on bootloop when i touched the settings icon.

my goal is to either delete the 'developer mode' menue item completely or at least to delete the usb debugging menu item.

thanks for your help..
[Android General] furzewolf:
This is a very interesting guide, and I'm currently modifying a stock Samsung 4.4.2 ROM. Problem I'm having is, I used the signer, and every step showed success, but the settings menu simply doesn't work. Doesn't appear. Any ideas?
[Android General] BRoy_98:
Hi, I added this lines in the stock rom of galaxy tab 4 setting.apk in setting_header.xml

<header android:icon="@drawable/ic_supersu" android:id="@id/supersu" android:title="@string/supersu">
<intent android:targetPackage="eu.chainfire.supersu" android:action="android.intent.action.MAIN" android:targetClass="eu.chainfire.supersu.MainActivity" />
</header>

But the super su option didn't appear in the setting. What is wrong..?? Please help me. I am in 4.4.2.
[Android General] ninocass:
Thank you for the info, i am trying to access a menu which is present within the APK but is not displayed on the devices (Android Wear), do you know any external files etc which would define what is shown in the settings file?

Thanks
[Android General] Shujath:
Thank you for the guide, it helps us to lean more about theming/developing
[Android General] XxpikaachuuxX:
does anyone know how i cann add a password to a submenu? that would be very helpful. if so I ask you coders please give me an idea how to or doit for me, it would really reallyhelp me for real.
[Android General] XxpikaachuuxX:
Okay forget that another question: Is it possible to Remove a Submenu like the Backup&Restore Tab? If so can someone please help me out, i will donate if it works.

Also to Mention that its Lollipop, but i got it decompiled and only need to remove the Backup&Restore tab.

Also to mention my settings app isnt getting recognized or shown although i signed it.