yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] uriel_zo:
in TabbedSettings.smali

delete this lines

.line 70

new-instance v0, Landroid/widget/TextView;

invoke-direct {v0, p0}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

const-string v1, "System"

const-string v2, "DeviceInfoSettings"

invoke-direct {p0, v0, v1, v2}, Lcom/android/settings/TabbedSettings;->setupTab(Landroid/widget/TextView;Ljava/lang/String;Ljav/lang/String;)V

greetings.
[Android Software/Hacking General [Developers Only]] Zius:
thanks for this. i will try and report later. :)

edit: it works! thanks a lot! :D
[Android Software/Hacking General [Developers Only]] joelquerty:
thank you m8
[Android Software/Hacking General [Developers Only]] o0ojake13o0o:
Please help me. I cant figure out where i went wrong. I followed every steps carefully and correctly, but still no lock to make it work. It always says that apk not installed. I have this idea that i went wrong to androidmanifest.xml, maybe the instructions on the guide is not applicable for my device. Anyways. This is just a local android phone. 2.3.5.
[Android Software/Hacking General [Developers Only]] FeraVolt:
[MENTION=4354180]CoD.<D.J.>[/MENTION]

what is the font you have on your screenshots?
[Android Software/Hacking General [Developers Only]] CoD.<D.J.>:
olney-light...
[Android Software/Hacking General [Developers Only]] joelquerty:
here's mine mate
[Android Software/Hacking General [Developers Only]] samsoul16:
Omg Cod is back. Now we can expect something new.....

Sent from my GT-S6102 using Xparent Blue Tapatalk 2
[Android Software/Hacking General [Developers Only]] WYPIERDAALAAC:
Who has Settings.apk with tabs on 2.3.6 or maybe CM7 (although I see on CM7 it's impossible to do this)?

I can't recompile stock settings apk... only CM7 Settings but it does not work.
[Android Software/Hacking General [Developers Only]] davidvilla11:
, I'm newbie, someone has already cast in simplicity v5 rom? sansumg 5830i galaxy ace, would be so kind to spend his settings.apk? thanks
[Android Software/Hacking General [Developers Only]] Trevino07:
Aybody able to get this working on Aokp? Running into a issue with the manifest any help would be appreciated :)
[Android Software/Hacking General [Developers Only]] HACKER90210:
will this work on touchwiz?
[Android Software/Hacking General [Developers Only]] aravindanxda:
error

C:\android\apktool\sett\res\drawable\tab_indicator.xml:6: error: Error: No resou

rce found that matches the given name (at 'drawable' with value '@drawable/tab_f

ocus').

C:\android\apktool\sett\res\drawable\tab_indicator.xml:7: error: Error: No resou

rce found that matches the given name (at 'drawable' with value '@drawable/tab_f

ocus').

Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl

ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-

sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\TKROOP~1\AppData\Local\T

emp\APKTOOL7063910268807501946.tmp, -I, D:\Users\T K ROOPA\apktool\framework\1.a

pk, -S, C:\android\apktool\sett\res, -M, C:\android\apktool\sett\AndroidManifest

.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, 10, --target-sdk-version, 10, -F, C:

\Users\TKROOP~1\AppData\Local\Temp\APKTOOL7063910268807501946.tmp, -I, D:\Users\

T K ROOPA\apktool\framework\1.apk, -S, C:\android\apktool\sett\res, -M, C:\andro

id\apktool\sett\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, 10, --target-sdk-version, 10, -F, C:\Users\TKROOP~1\AppData\Local\Tem

p\APKTOOL7063910268807501946.tmp, -I, D:\Users\T K ROOPA\apktool\framework\1.apk

, -S, C:\android\apktool\sett\res, -M, C:\android\apktool\sett\AndroidManifest.x

ml]

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

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

a:355)

... 6 more
[Android Software/Hacking General [Developers Only]] PineappleOwl:
At the tab indicator xml sir,edit it and change the tab_focus to tab_pressed
[Android Software/Hacking General [Developers Only]] ak414:
reviewing..

test
[Android Software/Hacking General [Developers Only]] cruizz:
:confuse: after signing the app, the settings app not show on drawer ... is there any clue for this?
[Android Software/Hacking General [Developers Only]] aravindanxda:
Me also I can't see my settings in app draw
[Android Software/Hacking General [Developers Only]] sieuan:
How can replace the settings default in Google tab with other settings (in settings_header.xml), sir?

I tried to edit the program_settings.xml to:

<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/program_settings_tab" android:key="parent"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<header android:title="@string/header_category_wireless_networks" />
<header android:icon="@drawable/ic_settings_dualsim" android:id="@id/sim_settings" android:title="@string/gemini_sim_management_title" android:fragment="com.android.settings.gemini.SimManagement" />
<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" />
<header android:id="@id/operator_settings" android:fragment="com.android.settings.WirelessSettings">
<intent android:action="com.android.settings.OPERATOR_APPLICATION_SETTING" />
</header>
<header android:icon="@drawable/empty_icon" android:id="@id/wireless_settings" android:title="@string/radio_controls_title" android:fragment="com.android.settings.WirelessSettings" android:breadCrumbTitle="@string/wireless_networks_settings_title" />
</PreferenceScreen>

But my settings get FC when i swipe to Google tab. Please help me. Thanks!
[Android Software/Hacking General [Developers Only]] adizmayazal:
hi i tried your guide and it worked perfectly....thanks for the guide

can you help of in how to remove the swipe feature in your mod in settings and if it is possible please guide me

and is there a way to add images in place of text or with text different images in different tab...i found a way to add picture but its only one picture in all tab screen sot added below
[Android Software/Hacking General [Developers Only]] joelquerty:
how did you add picture?

---------- Post added at 10:24 AM ---------- Previous post was at 10:22 AM ----------

double check the id's youve subtitute
[Android Software/Hacking General [Developers Only]] billy_cater:
can u help me sir,i just a noob member,i copy lines from settings_headers to google tab like [MENTION=4948569]sieuan[/MENTION] and not change any id ~> force close like him :( ,what should i do now sir ??? :(
[Android Software/Hacking General [Developers Only]] joelquerty:
edit tabbedsettings.smali, find google and replace with anything you want
[Android Software/Hacking General [Developers Only]] billy_cater:
i found "Google" in tabbedsettings.smali and changed it to "Banana" like u asked,but it only change title,it still FC when i swipe to it :(
[Android Software/Hacking General [Developers Only]] thirdzcee:
Is it possible to adapt these codes to other apks likethe systemui for example????
[Android Software/Hacking General [Developers Only]] joelquerty:
first restore your settings_headers to default. then go to res/xml/personal_settings.xml
[Android Software/Hacking General [Developers Only]] sieuan:
I tried to copy some code from settings_header.xml to personal_settings.xml, example:

<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/personal_settings_tab" android:key="parent"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<header android:title="@string/header_category_wireless_networks" />
<header android:icon="@drawable/ic_settings_dualsim" android:id="@id/sim_settings" android:title="@string/gemini_sim_management_title" android:fragment="com.android.settings.gemini.SimManagement" />
<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" />
<header android:id="@id/operator_settings" android:fragment="com.android.settings.WirelessSettings">
<intent android:action="com.android.settings.OPERATOR_APPLICATION_SETTING" />
</header>
<header android:icon="@drawable/empty_icon" android:id="@id/wireless_settings" android:title="@string/radio_controls_title" android:fragment="com.android.settings.WirelessSettings" android:breadCrumbTitle="@string/wireless_networks_settings_title" />
</PreferenceScreen>

But I get FC when swipe to personal tab.
[Android Software/Hacking General [Developers Only]] joelquerty:
the problem is in this. <header android:title="@string/header_category_wireless_networks" />

<header android:icon="@drawable/ic_settings_dualsim" android:id="@id/sim_settings" android:title="@string/gemini_sim_management_title" android:fragment="com.android.settings.gemini.SimManagement" />

<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" />

<header android:id="@id/operator_settings" android:fragment="com.android.settings.WirelessSettings">

<intent android:action="com.android.settings.OPERATOR_APPLICATION_SETTING" />

</header>

<header android:icon="@drawable/empty_icon" android:id="@id/wireless_settings" android:title="@string/radio_controls_title" android:fragment="com.android.settings.WirelessSettings" android:breadCrumbTitle="@string/wireless_networks_settings_title" />
[Android Software/Hacking General [Developers Only]] Jersey.:
I was trying this a month ago. Got a few compiling errors. I didn't knew how to 'read' APKtool properly, didn't get any help, so eventually I just gave up.

I checked it out again yesterday and saw where it went wrong. The .zip doesn't include tab_focus.9.png, which is defined in tab_indicator.xml. I know ya'll know that by now, I saw some members saying to replace that line of code with an image that is already there.

Still, I decided to make a tab_focus for you, perfectly working .9.png file.

Just add it to the drawable folder and you are good to go, without editing anything else.

:victory:
[Android Software/Hacking General [Developers Only]] sieuan:
[MENTION=4354180]CoD.<D.J.>[/MENTION]

How to remove the tab vertical divider and change the text color of tab's name, sir? Thanks!
[Android Software/Hacking General [Developers Only]] ardelsan:
Happy New Year.. :D

Can you mod my Settings.apk? pls.. *Happy New Year... :D *
[Android Software/Hacking General [Developers Only]] karambir singh:
nice guide sure i will try this
[Android Software/Hacking General [Developers Only]] shadman0:
Please Make Threads About How to make Tabs with Icon Like Hyperion 8 Golden Master Final Build
[Android Software/Hacking General [Developers Only]] mangDroid:
My settings icon won't appear, and i got fc

Bro, I had follow the instruction but finally my settings icon won't appear on my app drawer. Moreover, when I press the settings shortcut in my statusbar, the setting got fc. If you don't mind, please share with the the basic concept of adding tabbs in the settings.apk. Some more questions: (1) in my androidmanifest.xml there are more lines below:

<activity android:label="@string/settings_label_launcher" android:name="Settings" android:taskAffinity="com.android.settings" android:clearTaskOnLaunch="true" android:launchMode="singleTop">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.settings.SETTINGS" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

Before the closing tag </activity>. Should I replace all or just this code? I replace just on this code, so I didn't put the closing tag. I leave the original closing tag at the end of the lines below this activity. My question number (2), In this code:

I found my ID 0x7f0c0000. Should I put only 0000, or 0x7f0c0000 (I got error when i put this), I leave it 0x7f0c? Thank you brother. Need your clarification on my problems.

Note I use SNexian Cronos mi-320, clone of Micromax A56.
[Android Software/Hacking General [Developers Only]] :
I get this error after replacing smali codes and modding androidmanifest

can u help me out?

C:\apktool>apktool b settings Settings.apk
I: Checking whether sources has changed...
I: Smaling...
[0,0] 2131820544 cannot fit into a short
[113,4] mismatched tree node: I_STATEMENT_FORMAT35c_METHOD expecting I_CATCHES
[115,4] mismatched tree node: I_STATEMENT_FORMAT11x expecting <UP>
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file
: C:\apktool\settings\smali\com\android\settings\TabbedSettings$1.smali
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:45)

at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:33)

at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:66)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:50)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:37)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:257)
at brut.androlib.Androlib.buildSources(Androlib.java:214)
at brut.androlib.Androlib.build(Androlib.java:205)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)

C:\apktool>
[Android Software/Hacking General [Developers Only]] Josiah_07:
Error when recompiling

I got this errors when recompiling at the step 1.. I'm stucked..... :( Please help!

Microsoft Windows XP [Version 5.1.2600]

(C) Copyright 1985-2001 Microsoft Corp.

C:\APK-TOOL>apktool if framework-res.apk

I: Framework installed to: C:\Documents and Settings\Admin\apktool\framework\1.a

pk

C:\APK-TOOL>apktool d Settings.apk

I: Using Apktool 2.0.0-Beta7 on Settings.apk

I: Loading resource table...

W: Skipping "android" package group

I: Decoding AndroidManifest.xml with resources...

I: Loading resource table from file: C:\Documents and Settings\Admin\apktool\fra

mework\1.apk

I: Regular manifest package...

I: Decoding file-resources...

I: Decoding values */* XMLs...

I: Loading resource table...

Cleaning up unclosed ZipFile for archive C:\Documents and Settings\Admin\apktool

\framework\1.apk

W: Skipping "android" package group

I: Baksmaling...

testI: Copying assets and libs...

I: Copying unknown files/dir...

I: Copying original files...

C:\APK-TOOL>apktool b Settings new.apk

I: Using Apktool 2.0.0-Beta7 on Settings

I: Checking whether sources has changed...

I: Smaling...

Settings\smali\com\android\settings\PersonalSettings.smali[21,4] Error for input

'.parameter': Invalid directive

Settings\smali\com\android\settings\PersonalSettings.smali[21,15] mismatched inp

ut '"savedInstanceState"' expecting END_METHOD_DIRECTIVE

Settings\smali\com\android\settings\PersonalSettings.smali[38,4] Error for input

'.parameter': Invalid directive

Settings\smali\com\android\settings\PersonalSettings.smali[38,15] mismatched inp

ut '"i"' expecting END_METHOD_DIRECTIVE

Exception in thread "main" brut.androlib.AndrolibException: Could not smali file

: com/android/settings/PersonalSettings.smali

at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:72)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:56)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)

at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:337)

at brut.androlib.Androlib.buildSources(Androlib.java:298)

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

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

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

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

C:\APK-TOOL>
[Android Software/Hacking General [Developers Only]] ThunderSky7:
nice guide
[Android Software/Hacking General [Developers Only]] Myth2014:
use apktool1.5.2
[Android Software/Hacking General [Developers Only]] MPKMRS:
help need in tabbed settings

advance thanks bro

sir am changed every thing and compiled sucesses fully but when i click on settings its force closes why i reamoved personal settings and added my own in preference screen help me sir
[Android Software/Hacking General [Developers Only]] orbitA13:
Hello All,

I have done the same as most here I have not had any FC but I did notice that my "Add To Home Screen" stopped working for Widgets, Shortcuts, and Folders.. Now that is one problem the next is I have no compile errors and everything seem to go OK but as mentioned like others here my Settings is no loner in the App Drawer. This is a pure stock ROM no other edits or mods only this one.

Any help would be great, Thanks in advance. :)

- orbit
[Android Software/Hacking General [Developers Only]] Murali dharan:
Does it support for xperia stock??
[Android Software/Hacking General [Developers Only]] nasr18:
No settings.apk after compiling....... :(

bro after compiling and pushing settings.apk, my settings app gone.......... my phone is mtk.......

please help me bro
[Android Software/Hacking General [Developers Only]] Yousef Algadri:
Hi pals! Your guide is great! I've test it on KitKat 4.4.4 and 4.4.2, Recompile and Decompile Successfully but its not working either i can't install/push it in Systems. Can you help? :)
[Android Software/Hacking General [Developers Only]] MPKMRS:
need help

am also facing the same problem if u find fix please tell me what can i do to fix this issue
[Android Software/Hacking General [Developers Only]] MPKMRS:
finally got successes
[Android Software/Hacking General [Developers Only]] G.M.L:
good morning one question how can i add only one or two tab what must me to change?

EDIT:Nevermind ok i made it!!!!!!!!
[Android Software/Hacking General [Developers Only]] TrojanHorses:
My public.xml is missing:

What do I do?
[Android Software/Hacking General [Developers Only]] DevendraMilmile121:
Problem

i can't solve these problem

C:\Users\Devendra\Desktop\Apktool>apktool b Settings
I: Checking whether sources has changed...
I: Smaling...
[0,0] 2131492864 cannot fit into a short
[113,4] mismatched tree node: I_STATEMENT_FORMAT35c_METHOD expecting I_CATCHES
[115,4] mismatched tree node: I_STATEMENT_FORMAT11x expecting <UP>
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: C:\Users\Devendra\Desktop\Apktool\Settings\smali\com\android\settings\TabbedSettings$1.smali
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:45)
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:33)
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:66)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:50)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:37)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:257)
at brut.androlib.Androlib.buildSources(Androlib.java:214)
at brut.androlib.Androlib.build(Androlib.java:205)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)

C:\Users\Devendra\Desktop\Apktool>

---------- Post added at 10:22 PM ---------- Previous post was at 10:11 PM ----------

do these thing add all smali files in proper folder's and then re-compile apk then again de-compile newly compile apk the u can found all id's in public.xml
[Android Software/Hacking General [Developers Only]] qromwel:
working good for me :laugh:

followed tutorials as written there and no problem.
[Android Software/Hacking General [Developers Only]] Rushi Pawar:
Successfully Added tabs to my Setting Apk 4.4.2

Thank you Bro its working :) :good::good:

but i have problem in Action and google tab it does not show any content and system tab is getting fc bt i have deviceinfo.smali help me to add contents in google tab n action tab
[Android Software/Hacking General [Developers Only]] Rushi Pawar:
Help ....See Ss

action tab and google tab does not have any contents how to add >>>????? my phone is mtk kitkat 4.4.2
[Android Software/Hacking General [Developers Only]] vinaykharayat:
Nice guide buddy.Will please make a guide to remove tabs?

My setting contains tab I wanna remove it.

Device kitkat 4.4.2
[Off-topic] epicelite:
I'm trying to get help with a custom ROM I am using, but I can't post in the support thread because it says I need 10 posts. I happen to have 10 posts, with this one 11.

Would PM a mod asking for help, but I can't even send PM's apparently?

Can I mod please approve my account or whatever is needed? Thank you.
[Off-topic] deathnotice01:
as what i know,

xda updates every hour,

so you should wait a little for the system to update,

just be patient,

also ib4l...
[Off-topic] noahk423:
Let the system update itself, it might take ten minutes, it might take hours, if it doesn't work in a while, then you can pm a moderator or someone of the like to help resolve the issue.
[Off-topic] ricky babalu:
Maybe this: 10 post Warning
[Off-topic] Ichigo:
WOW

Android>iOS... Android FTW!
[Off-topic] deathnotice01:
anyone managed to report this thread yet?
[Off-topic] jalaazul:
I needed this! Thanks x1000:D:D

Social Observer
[Off-topic] conantroutman:
Congratulations on using the development forums to ask a question that you'd already asked in Q&A.

Nothing to do here / I don't want to live on this forum anymore..... :rolleyes:
[Vibrant Q&A, Help & Troubleshooting] kobesabi:
How do you get stock CM10 to deep sleep?
[Vibrant Q&A, Help & Troubleshooting] ToStymiedBoar:
I use Helly Bean and it sleeps.
[Vibrant Q&A, Help & Troubleshooting] FaultException:
OP, how are you measuring deep sleep? Cpuspy? And have you checked for any app wake locks that may be keeping it?
[General Questions and Answers] RyuRoo:
Hey guys. What's a good free app to take screenshots with? And screenshots are saved to my gallery
[General Questions and Answers] Clark Joseph Kent:
What ROM are you on, there are options for ROMS, for doing screenshots...

I also use:

THIS ONE

AND THIS ONE
[General Questions and Answers] burdman:
I use drocap but I don't see too many people using it. Works fine for me, is there any reason nobody else uses it?