yashsingh1/xdaforums huggingface dataset:
[Android General] Ephramar:
Why the tool failed to execute?

Using version 2.0.2 on Ubuntu GNOME 14.04.

Tried the tool but failed to compile. The tool is posting these errors:

Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/tmp/brut_util_Jar_6761156629328586551.tmp, p, --forced-package-id, 127, --min-sdk-version, 17, --target-sdk-version, 17, --version-code, 17, --version-name, 4.2.2-eng.peishengguo.1397641251, -F, /tmp/APKTOOL148755505103872860.tmp, -0, resources.arsc, -0, arsc, -I, /root/apktool/framework/1.apk, -S, /home/justin/Settings/res, -M, /home/justin/Settings/AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:465)
at brut.androlib.Androlib.buildResources(Androlib.java:403)
at brut.androlib.Androlib.build(Androlib.java:291)
at brut.androlib.Androlib.build(Androlib.java:261)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/tmp/brut_util_Jar_6761156629328586551.tmp, p, --forced-package-id, 127, --min-sdk-version, 17, --target-sdk-version, 17, --version-code, 17, --version-name, 4.2.2-eng.peishengguo.1397641251, -F, /tmp/APKTOOL148755505103872860.tmp, -0, resources.arsc, -0, arsc, -I, /root/apktool/framework/1.apk, -S, /home/justin/Settings/res, -M, /home/justin/Settings/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:425)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:451)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [/tmp/brut_util_Jar_6761156629328586551.tmp, p, --forced-package-id, 127, --min-sdk-version, 17, --target-sdk-version, 17, --version-code, 17, --version-name, 4.2.2-eng.peishengguo.1397641251, -F, /tmp/APKTOOL148755505103872860.tmp, -0, resources.arsc, -0, arsc, -I, /root/apktool/framework/1.apk, -S, /home/justin/Settings/res, -M, /home/justin/Settings/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:419)
... 6 more
[Android General] sandyworld25:
Can I add Two options for APN as on Second screen Shot, i am on custom Rom and every thing is working fine but i am unable to create APN for 2nd sim card so i want to add TWO sims APN option under Mobile Network, Can I do that?? If yes Can you guys help me to do that??
[Android General] beegeero:
Thank you.

Thank you.

Very good help.
[Android General] Fayas Hassan KT:
Please always update apktool to latest version
[Android General] LuanHalaiko:
Help I am editing cm 12.1 settings.apk, but It don't have settings_headers.xml, what I do?
[Android General] so_oth:
Same problem here, CM13-based ROM. Looks like the file got broken down into several smaller ones, I'm gonna try deleting some to see if the respective heareds disappear.
[Android General] p.m.6:
Hi friends,

Where i can change hidden languages in settings.apk??My language is hidden in menu but it exist when i decompile settings.apk..Also I am looking for a way to unhide it not use softwares like morelocale so Please help me do this.Thanks
[Android General] KYashK:
How to launch the app ?

I just wanted to add a header of inoty app and i added too but while replacing the action sector i got confused what to replace it with . I just want to start the application from there so that we will get the same screen as we get from launching it from app drawer.:confused:

This is the manifest of inoty

actuall it is not allowing me to post a link to manifest so just go to "protectedtext.com"

/andromanifest

password is "andro"
[Android General] arteaga323:
Hello everyone! Great guide BTW. For some reason whenever I replace settings with the new signed one, I lose the settings Launcher icon and even when I try to click the gear on the notifications bar,nothing opens. Everything goes well, decompiling,editing, compiling, signing, but settings are gone! Idk what I'm doing wrong. I'm on stock M systemless Feb update... !maybe this guide doesn't apply to L - M builds?
[Android General] p.m.6:
system files does not need to sign,,and you must copy your edited settings.apk 2 times in priv-app.

Good luck
[Android General] Sterben Pistole:
Do I need to adb pull the apk from my phone or can I simply go into my rom and extract it from system/priv-app?
[Android General] arteaga323:
By copying 2 times you mean copy and paste twice? Should I reboot in between? Wipe dalvik? Also is it alright if I'm doing all this via a regular explorer? I see a lot of people pushing and pulling through adb, does it matter? Apologies for all the questions lol. I didn't know it didn't have to be signed, everyone is signing them, at least that's what they post

ATTN.

Alex A.

---------- Post added at 09:40 AM ---------- Previous post was at 09:39 AM ----------

Either of works fine, I see a couple people prefer adb, I did it both ways and as you can see I'm trying to make it work. I'm sure the I'm missing something that's causing it rather than it being the different extraction methods

ATTN.

Alex A.
[Android General] Sterben Pistole:
Thanks for the reply. I asked because grabbing it straight from my rom's zip didn't seem to work for me. I hope pulling via adb produces a different result. I feel like I'm doing something wrong when decompiling and recompiling, but I don't think so since I don't get any errors.

---------- Post added at 11:29 PM ---------- Previous post was at 10:53 PM ----------

Is this normal for recompiling an AOSP Settings.apk? I pulled directly from system/priv-app/ on my phone with adb.

c:\Windows>apktool b Settings
I: Using Apktool 2.0.3
I: Copying Settings classes.dex file...
I: Checking whether resources has changed...
I: Building resources...
warning: string 'cell_broadcast_settings_summary' has no default translation.
warning: string 'experimental_webview' has no default translation.
warning: string 'experimental_webview_summary' has no default translation.
warning: string 'nfc_payment_ask' has no default translation.
warning: string 'print_services_title' has no default translation.
warning: string 'wifi_display_available_devices' has no default translation.
warning: string 'wifi_display_disconnect_text' has no default translation.
warning: string 'wifi_display_disconnect_title' has no default translation.
warning: string 'wifi_display_paired_devices' has no default translation.
warning: string 'wifi_display_search_for_devices' has no default translation.
warning: string 'wifi_display_searching_for_devices' has no default translation.
warning: string 'wifi_display_settings_empty_list_wifi_display_disabled' has no default translation.
warning: string 'wifi_display_settings_empty_list_wifi_display_off' has no default translation.
warning: string 'wifi_display_status_available' has no default translation.
warning: string 'wifi_display_summary_disabled' has no default translation.
warning: string 'wifi_display_summary_off' has no default translation.
warning: string 'wifi_display_summary_on' has no default translation.
warning: string 'wimax_settings_summary' has no default translation.
I: Building apk file...

c:\Windows>

---------- Post added 9th March 2016 at 12:18 AM ---------- Previous post was 8th March 2016 at 11:29 PM ----------

I found out what I've been doing wrong now. First off, for all of you reading this, don't sign the Settings.apk. What you need to do is when you recompile your Settings.apk open up the original apk and the modified one with 7-Zip and copy over the AndroidManifest.xml and META-INF folder from the original apk over to the modified one. After that, adb push over to your phone into /system/priv-app/, and make sure you set the permissions to -rw-r--r-- After that just reboot and you should be all set.
[Android General] arteaga323:
Dude! You are a genius! I can confirmed that it works, I discovered the new recompiled product was missing META-INF, I did what you said and moved it over from the original apk and replaced AndroidManifest.xml, DID NOT SIGN IT (most guides say to do so) moved it over to system/priv-app/Settings (nexus 6 6.0.1, your directory might be different) and it worked!

Here's a preview... I added SuperSU and GravityBox (props to their makers) to Developer Options with a brief description underneath.
[Android General] Sterben Pistole:
Nice! Glad my method worked for you! Hopefully I help out a lot more people that were having the same problem we were having :)
[Android General] :
I can't find any settings_header.xml in res/xml. I want to remove the Smart Wake option from my settings.apk as it is of no use to me. I have flashed a ported rom and my kernel does not support gestures. So, I want to remove that dead entry from my settings.apk. I am attaching the apk and screenshot. Please help me....:confused:
[Android General] arteaga323:
Anyone has issues trying to reinstall Google apps? I'm trying to add Android Wear to the settings but whenever I extract, edit the line, recompile, sign and install, Android Wear crashes, I'm not sure if it's a signature problem (using ZipSigner on Platform) or the fact I'm modifying the manifest... Anyone has a solution for this?
[Android General] KYashK:
good

---------- Post added at 08:11 AM ---------- Previous post was at 08:10 AM ----------

vvvvgooddd
[Android General] xjpmauricio:
This depends a lot on the device's brand. On a Samsung device like the Galaxy Grand SM-G530FZ (with lollipop), these kind of features are located at res\xml\dashboard_categories.xml
[Android General] :
Thanks....

....

I tried but nothing works.
[Android General] Radium21:
I cannot find the "settings_headers.xml".........I'm using acip cm12.1 based rom...I know you have written that the filename depends on the rom,but if you have any idea about what it can be......It would be a great help.
[Android General] KYashK:
Thanks it helped me a lott:good::good::o
[Android General] AssassinGEO:
Guys, I'm trying to edit settings.apk from MIUI and can't find some strings I want to remove, like there are all but not the ones I want. Can anyone help me with that? How can I find them?
[Android General] arif.celik56:
Is this method Android 6.0 also works?
[Android General] dedichthui:
Display & Wallpaper on settings app stopped when i open it. (Convert frome note4). please, help. thank you.
[Android General] Frankbrazillian:
If your rom are TW, already have all languages and some are hidden, just navigate on system/csc and exclude the file languages.xml.
[Android General] bleros:
Hi [MENTION=3563640]Quinny899[/MENTION] THanks for tuto do u have idea how to remove submenu ? i.e i want to remove User Manual from settings ? i cant find header in marshmallow thanks
[Android General] Quinny899:
This guide doesn't work on Marshmallow, it's for 4.x
[Android General] bleros:
Yes i know if u have any idea where could be ?

Thanks
[Android General] Quinny899:
There is no headers file like that anymore, it changed in 5.0
[Android General] BIade:
Hey this one works also in marshmallow. Just in case anyone might find this helpful.

https://play.google.com/store/apps/details?id=com.wilco375.settingseditor
[Android General] Ven99:
Hello, firstly I read all 33 pages but couldn't find what I am looking for.

Some options in Settings are Greyed Out ( like Screen Lock under Security (Security is active) ) so can not use it.

Do you know is it related what you explained here, if so how, or something else ?

Thank you.
[Android General] dark_boy99:
hi all freinds

i try to decompile setting apps but i get error
[Android General] Android-gig:
APK not showing

Can't get the Setting apk display after modifying tried [MENTION=6053184]Sterben Pistole[/MENTION] but still not showing.

Any ideas?

Could be not having device correct signature? how can i get it?

When trying to install with adb install I get error "INSTALL_FAILED_SHARED_USER_INCOMPATIBLE" what does this mean?
[Android General] kaiiori:
How to do it in Android 6.0?
[Android General] ivinsjames:
I need help removing an item from the Settings menu

I posted a thread but figured Id ask my question here since it's about the Settings menu. I have C-Rom for my Samsung Galaxy s3 Sgh T-999 and I want to remove "Themes" from the Settings menu. I tried removing some strings from the headers xml but it just broke the app. Can somebody give me advice how to properly do this or just do it for me and Il rezip it into my rom manually? Thanks in advance.
[Android General] senseijtitus:
Hi,

Wanted to ask a question.

If I want to add fingerprint gesture settings to Liniage OS 14.1 Settings menu, and link it to the Fingerprint Gesture control related files which I have placed into the ROM while building, how can I use this tutorial to make it work(Set FP gesture inputs using FP settings in Settings menu)?
[Android General] Quinny899:
You can't, it's for Android 4.x only
[Android General] senseijtitus:
But stock android 7 for my device has this option to n settings and works perfectly.
[Android General] Quinny899:
This guide is for 4.x only. It even says in the title.
[Android General] senseijtitus:
Okay.

Can u make a guide for Android n as well if possible?
[Android General] Quinny899:
No. It's not as easy anymore so a guide wouldn't cut it
[Android General] jcdark:
Hi friends,

I'm having a problem on recompiling my Settings.apk.

I unpack the application to include the pt-rBR translation. I succeeded in including the translation.

When installing Settings.apk everything worked perfectly. However, when I perform a factory reset, settings.apk don't work, Simply apk disappears/deleted. The same happens if I create a system installation ZIP file via TWRP.

Error occurs because of this settings.apk file not being installed on the first boot. I have tried to translate all other apks of systems: framework-res.apk, systemUI.apk and all work normally, however with Settings.apk this error occurs.

Does anyone know tell me what I'm missing to do so it can be included in a Custom ROM to create a TWRP install?
[Android General] chankruze:
I don't have settings.apk in /system/app folder it is in /system/priv-app/Settings/Settings.apk by the way i pulled it.

when i push after compiling it works as normal no error no bugs but once my phone is power off or i do reboot then i face bootloop.

Then i flash that ROM again.

Now i am try it from ROM zip and will flash the whole zip with modified Settings and will let you know if bootloop still occurs or not:silly:

My Information

ROM : lineage-14.1

Device : Motorola Potter

Frameworks i installed : framework-res.apk tagged as los , org.cyanogenmod.platform-res.apk tagged as lineage.

Tools : Apk Easy Tool

Version : JAVA JDK - 10 , JRE - 9.4 , apktool - 2.3.1, Python - 3.6.5

Host Os : Win-10-64bit
[Android General] CherrugDeveloper:
I try several times this guide, but on my leeco le max 2 x829 it doesn't works unless I put the compiled settings.apk without signing it. I hope this can be helpful to someone else btw great guide!!!Ty
[Android General] Coayer:
Which version of Android are you running?
[Android General] CherrugDeveloper:
Marshmallow
[Android General] AFFAFXP:
Gona sound off here... In reference to the double or diplicated SETTINGS MENU options... I develope on the TMO-Samsung Galaxy S6 Edge+ and I have a dozen or so roms and until just today they all had the muddy settings menu with Duplicate or Double menu items in the Settings Icon... The simple fix for me was to put the csc folder in the system folder FYI it is in small letters like this "csc" this folder once its in place just repack your rom and flash it.

OR:

You can simple extract the "csc" forlder in my roms copy it to any location then just open each ROM in winRAR double click the system folder then simple drag the "csc" and drop it in the zip windows wait for it to add the csc to the zip\system folder, then flash the updated zip AND WALLA...
[Android General] mark02r:
disabling unknown sources permanently

how do i edit settings apk to disable unknown sources permanently on lineage os 14.1
[Android General] DoR3M3:
post error... :(
[Android General] VadimW:
Thank you for the article about modifying settings.
[Android General] nelsonkim2019:
Hi, I follow the exact steps in this guide, using zipsigner-platform to sign the apk, and load it. Everything works fine, until I restart the device. Then it stuck in the logo screen when booting. Initially I thought the change trigger knox or validity check, so I managed to suppress the knox, and load a no-validity-xxxx.zip. But still it stuck. And while it stuck, it use adb shell back into the screen (this is a rooted phone with twrp), and change back the settings.apk (basically put back the original settings), it goes on to reboot fine ...

Finally I find some hint when looking through the logcat logs, the device is stuck when keeps trying on this:

W/Atfwd_Sendcmd: AtCmdFwd service not published, waiting... retryCnt : 1

----and this retry goes on to retryCnt : 5 and then a few other things, and restart.

This is on Samsung GP Pro, SM-J250f, rooted phone, with twrp installed.

Please help, I tried many things (an old mobile developer, way back from blackberry years in 2004, through Nokia, Windows Mobile, iPhone, and Android 2,3,4,5 till Q now), and I am a little out of ideas. Please help!
[Android General] SyauqiSan:
I tried to run:

adb devices

it works:

List of devices attached

emulator-5554 device

but when I run:

adb pull /system/app/Settings.apk

it results:

adb: error: remote object '/system/app/Settings.apk' does not exist

what did I do wrong? I found nothing on google... please help me
[Android General] Quinny899:
This guide is over 7 years old, it won't work on newer versions.
[Android General] SyauqiSan:
Can you please give me hint or link which will work on newer version?

I spend hours tried to find probably a new path or sort of but found no result.
[Android General] SnipoGamer:
Can you make a guide for touchwiz? I'm trying to save a phone from obsolescence.

(SM-G360T1)
[Android General] GoldSpark911:
Very nice
[Android General] refrigerador67:
Try installing a custom ROM with an "actual" version of android, like lineageos 13, 14, 15, 16, 17 or another ROM.

For example: Im using android 6 (for now, i will update to android 7 or newer) in a GT-i9190
[Android General] haze_1986:
Hi I'm intending to edit a settings apk. I was trying to decompile and recompile the apk as a first try. Works without errors but the new apk is smaller, even after signing. 11mb vs 18mb. I uploaded it to the device and it softbricked it and had to reflash the fw.

Anyone knows if what's wrong? How do I ensure the files are exactly the format to be read by the device?
[Android General] gps3dx:
On 4.2 ROMs ( under settings->about) tap build number 7 times to access performance and developer settings.:cowboy:
[Android General] jacknb1ack:
i am on using 4.1.1, but i found solution already, found something in DevelopmentSetting$smali , there is a method to hide some options ( i forgot the line, but its easy to find) ...

thanks btw
[Android General] cittaslow:
Hi,

Some titles and sub-titles in Settings.apk were not my language. Now, I am trying to change these words to my language and it works. But I can't find some of these in original strings.xml on Settings\res\values. Where should i search these or which *.xml include this?
[Android General] Diaz1999:
What's your language?
[Android General] cittaslow:
It's Turkish. I'm changing words in strings.xml in Settings\res\values-tr folder.
[Android General] Diaz1999:
Yes,, that's what I mean

via XDA for Timescape™
[Android General] cittaslow:
I copy some of the missing lines from strings.xml in Settings\res\values folder to strings.xml in Settings\res\values-tr folder. Then I translating into my language.

"<string name="header_category_interface">INTERFACE</string>"

"<string name="header_category_interface">ARAYÜZ</string>"

But some titles and sub-titles appears in settings menu on my phone (e.g., "Screens and wallpapers", "Apps and widgets drawer") can't find in strings.xml in Settings\res\values folder. Where can i find these?
[Android General] Diaz1999:
Looks like that's strings.xml from framework-res

---------- Post added at 12:30 PM ---------- Previous post was at 11:39 AM ----------

@Quinny899 are you know how to add ON | OFF slider in the settings like this one?

That's really nice,, like it :good:
[Android General] 其实我也不懂:
thanks for your guide,it's very useful!
[Android General] Quinny899:
You'd need to edit source for that I think. You could make it tabbed but it would be a checkbox rather than a slider I think
[Android General] Diaz1999:
Yeah,, I know how to make tabbed, I just asking that slider, that makes turning on Mobile Data, Aeroplane Mode as easy as turning on WiFi and Bluetooth...

Actually,, I want to make that slider for:

Aeroplane Mode (above WiFi)

Mobile Data (below WiFi)

Developer Settings (it has ON | OFF slider,, but you have to open that and slide the switcher)

Just that.

If you would answer my question, how to build from source?
[Android General] Quinny899:
Find your ROM's source, and it will be under android_packages_apps_Settings on there
[Android General] greveldinges:
Doesn't work...

I added an option to my About phone menu, but my settings app won't show anymore.. If I try to open it from the launcher, I just get a message saying it doesn't exist. The file is not corrupted however, I can see the correct icon for the apk in a file manager, any help would be nice.
[Android General] greveldinges:
Yes, I did sign it, I'll try it again..
[Android General] PieceofCheat:
hello i want to change the setting inside lock screen.i want to add a shortcut to my lockscreen .i can do this once i install the rom but i wanna do it the hard way hope you help me :)
[Android General] Envious_Data:
question

could you be more spesific when it comes to adding "credits" to your "about device" menu

i have interpretation issues thats why i ask this question