yashsingh1/xdaforums huggingface dataset:
[Android Themes] nongoei:
hi mnemonyc

are you done on touchwiz roms. I try this mod on touchwiz and no problem in all step but after flashing i got message "Application is not install in your phone".
[Android Themes] j.posarekar70:
my combinations are

CynogenMod 10.1
GALAXY S4 THEME (by themechooser)

that's the reason screen looks like original touchwiz.

but the truth is

:cowboy: its not.

we are Galaxy Ace Plus user & we didn't get any JB update further.

sorry mate but we don't have original touchwiz. :(​

---------- Post added at 01:36 PM ---------- Previous post was at 01:33 PM ----------

btw did you find solution on bluetooth button FC ??

If YES please.... :fingers-crossed:​
[Android Themes] nongoei:
thanks for reply mate :o
[Android Themes] mnemonyc:
I have done this mod in my cyanogen based rom named "miniNUX" for Galaxy mini. I solved bt problem porting bt smali and all its dependent smali.

Inviato dal mio GT-I9300 usando Tapatalk 4
[Android Themes] souler456:
Question!!

Hey guys, I'm quite in a noob-dilemma here :eek:

So, here's the step I'm quite confused:

I can't quite understand this step. Where is this

settings_header ids

in (for instance) AppSettings.smali?

Opened it in Note++ and searched it (even searched settings_header), but I can't find it....

Can you guys share an enlightenment with this? :eek:
[Android Themes] nongoei:
in you public.xml search for "settings_header" you will get the id number. then open AppSetting.smali, DeviceSettings.smali, PersonalSettings.smali and find id that you get form public.xml.

and then back to public.xml search for "app_settings_headers" you will get new id number replace it in AppSettings.smali

do same for "device_settings_headers" and "personal_settings_headers"

sorry i bad english :)
[Android Themes] souler456:
So, here's the Screenshots:

As you said, I went to public.xml and searched "settings_headers" and I got an IDs with a value of 0x7f05003a

Next that I did (if I understand correctly), is to search the IDs on AppSettings.xml, which, in turns, getting here (line 998):

Next is, back to public.xml then go search "app_settings_headers":

Get the IDs (where here, it's 0x7f050053):

Go back to AppSettings.xml, return to line 998, and if I'm correct, replace the last ID (0x7f050053a, from settings_headers) to the new one (0x7f050053, from app_settings_headers)...

Please tell me I did right :(
[Android Themes] :
What's that app?
[Android Themes] Crewnshaw:
Hi! I'm having this bug. Can someone help me?
[Android Themes] nongoei:
you correct and do the same for "device_settings_headers" and "personal_settings_headers" then replace new ids to DeviceSettings.smali and PersonalSettings.smali :)
[Android Themes] souler456:
Nice! Thanks! :D

Oh by the way, the App's name is DroidEdit :3

Another Question: What code is that? That Click to show content? :/
[Android Themes] mpoendi:
doing your guide on stock ICS xperia neo v, compile it and it won't show up the settings.apk

however, i have this logcat for you

I/ActivityManager( 3229): START {act=android.settings.SETTINGS flg=0x10000000} from pid 8777
D/AudioHardwareMSM7X30( 178): value of device and enable is 6 1
E/AndroidRuntime( 8777): FATAL EXCEPTION: main
E/AndroidRuntime( 8777): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.settings.SETTINGS flg=0x10000000 }

any idea man?
[Android Themes] thirdzcee:
So uh, I was having a hard time on the New 4.2 quickpanel with viewflipper and all that other stuff so I took a break from for a while and returned here to you settings with swipe guide which I also laid off a few weeks ago cause I was also like going around in circles with but now guess after just 1 try.. Taaddaaa

Unfortunately I have the same bug as akash,, back button doesnt close settings :confused::confused::confused:
[Android Themes] marcomarinho:
Can anyone know how to put it like this: http://i.imgur.com/0lKffAy.png

Regards.:cool:
[Android Themes] rockernaxo:
Sir [MENTION=5204709]Adi Aisiteru Reborn[/MENTION], thanks for this and all your guides you're definitely a master.

I need some help from you:crying:

When I try to activate Wifi (and Bluetooth) from toggle enabler, it gets stuck and I can't deactivate from there without killing Settings and entering again.

See the following screenshot:

I've checked all smalis related with Wifi (and Bluetooth) in Settings.apk and still don't know where the problem came from. It's the same apk...

From Settings activity (no MainSettings) it works well. See the following screenshot:

Any help would be much appreciated:highfive:, I've already check about 20 smali files about Wifi and Bluetooth and anything seems odd.
[Android Themes] sieuan:
Hi sir!

I success to mod new 3 tab settings with blank xml, and it work good.

And when I try add code to blank xml, such as:

<?xml version="1.0" encoding="utf-8"?>
<preference-headers
xmlns:android="http://schemas.android.com/apk/res/android">
<header android:title="@string/header_category_personal" />
</preference-headers>

It work good:

But if add:

<?xml version="1.0" encoding="utf-8"?>
<preference-headers
xmlns:android="http://schemas.android.com/apk/res/android">
<header android:title="@string/header_category_personal" />
<header android:icon="@drawable/ic_settings_location" android:id="@id/location_settings" android:title="@string/location_settings_title" android:fragment="com.android.settings.LocationSettings" />
</preference-headers>

My settings will FC:( Can you help me sir? Thanks!
[Android Themes] rockernaxo:
Please upload a full logcat so that we can help you.;)

Sir [MENTION=5204709]Adi Aisiteru Reborn[/MENTION], sorry for bother you again, ¿but could you say something about my issue in the post above?
[Android Themes] mnemonyc:
I send u in pm my settings.apk to try to solv your wifi and bt problems...

Inviato dal mio GT-I9300 usando Tapatalk 4
[Android Themes] ssojyeti2:
+1!!! I wanna mod on my phone lol
[Android Themes] sieuan:
Hi sir! I follow your guide step by step carefully (with blank xml), but i get FC when click on icon settings in app drawer, can your check it help me, sir? Thanks!
[Android Themes] rockernaxo:
Upload the full logcat error and your files decompiled, please
[Android Themes] mnemonyc:
Have u readed my pm??

Inviato dal mio GT-I9300 usando Tapatalk 4
[Android Themes] rockernaxo:
Yes, mate. Thanks for both files :):):) and also for your help.

I've been comparing smalies all the morning, I've cheked all about WifiEnabler but without any luck yet.

I'll keep on looking through the code and I will post if I discover something.;)
[Android Themes] :
Can you also make a noob guide on how to integrate apps into settings? All the others are way to compilcated, your guides are the best:good:
[Android Themes] sieuan:
Sorry sir. Here is my logcat and decompiled file. Can you check it help me. Thanks!
[Android Themes] rockernaxo:
You have to focus in these two lines:

VFY: unable to resolve direct method 4494: [B]Lcom/android/settings/PersonalSettings$1[/B];.<init> (Lcom/android/settings/PersonalSettings;)V
VFY: replacing [B]opcode [/B]0x70 at 0x0073

Here you have a description of dalvik opcodes http://pallergabor.uw.hu/androidblog/dalvik_opcodes.html

You can see the problem is in android/settings/PersonalSettings, so go there.

What can we found? You haven't substituted Lcom/android/settings/Settings for Lcom/android/settings/PersonalSettings in the right way.

I'm going to upload my smali files for you to compare, but you must also check AppSettings and DeviceSettings (all its smalies) and change Lcom/android/settings/Settings properly ;)

Good luck.
[Android Themes] sieuan:
Thanks for your help, sir.

Your mean is must check edit all line of the new AppSettings.smali and its sub from Lcom/android/settings/Settings to Lcom/android/settings/AppSettings

and

Device Settings ,to be Lcom/android/settings/DeviceSettings

PersonalSettings. to be Lcom/android/settings/PersonalSettings

except annotation section, sir?

I tried many times but no lucky. Here is my original smali. Can you help me doing STEP-3 sir! Thanks!
[Android Themes] rockernaxo:
Ufff It's too tedious to do all replacements and today I've not enough time, but I'll give you some tips.

1. Take the file in Notepad++

2. Ctrl+F (search and replace)

3. Search for Lcom/android/settings/Settings and replace it with Lcom/android/settings/PersonalSettings (for example)

4. First clic on search and replace the one of the top (.class public Lcom/android/settings/Settings)

5. Then jump annotations and select everything from that point to the end. (Ctrl+Shift+End)

6. Clic on

replace in selection

7. It's done, save your file and rename it!:victory::victory::victory:

It's much easier doing like these than replacing 1 by 1.

In 10 seconds you've your smali done.

I've changed personalsettings (in the attachment), rename it to .smali.
[Android Themes] funky0308:
You won't find nothing in ***wifi***.smali or ***bluetooth***.smali.

I asked [MENTION=599722]niaboc79[/MENTION] and he said this (maybe you saw that already)

file \settings\smali\com\android\settings\Settings$HeaderAdapter.smali is responsible for wifi and bluetooth switches on main tab/page.

I tried to compare all code (manually and by "code compare) and I can't find where's the error.

AppSettings$HeaderAdapter.smali, PersonalSettings$HeaderAdapter.smali and DeviceSettings$HeaderAdapter.smali are basically copies of Settings$HeaderAdapter.smali , renamed and changed lines "Lcom/android/settings/Settings" to Lcom/android/settings/(name of tab)Settings

so if Settings$HeaderAdapter.smali it's possible that all others have same error too.

I've checked all that files and nothing....everything is like it's supposed to be....

I followed your tutorial and two others and every tutorial gave same results - everything is working except wifi and bluetooth switch.

One more thing...

If you can remember you've sent me two settings.apk (white and black version)

In white version there was great option, you could slide tabs or touch names (Applications ...Personal...) and change position in that way to....

Just to tell you that.

I'll try to find solution and, of course, will let you know if I found something interesting....

See ya...
[Android Themes] billy_cater:
I need the help of everyone, I try to follow current guidelines but are not successful, if done without modifying the file tab 3 xml files (app, personal, device), the settings file is run, showing up 3 blank tab, but if I add value to the xml file (app, personal, device), the settings file force close error, expect people to see my settings file and guide me how to fix it, I send 2 files (1 stock and 1 settings-tab),plz help me :( and sorry for my english
[Android Themes] the_thespian:
I can't find a MainSetting.smali on my smali files, is there any other name for that MainSetting.smali?
[Android Themes] mnemonyc:
MainSetting.smali is into package zip and not in your original settings.apk

Inviato dal mio GT-I9300 usando Tapatalk 4
[Android Themes] the_thespian:
Okay sir, thanks for your help I already find it. I will now continue on this guide. Hope that I can perfect this.
[Android Themes] sieuan:
In your attached file (personalsettings), in the first line, there are .class public Lcom/android/settings/Settings;, so I must change it to .class public Lcom/android/settings/PersonalSettings; ? Or keep it .class public Lcom/android/settings/Settings; as your example, sir? Thanks!
[Android Themes] rockernaxo:
Is it not changed? Sorry, I might forget to do it.

You've to change every Lcom....Settings except from annotations`. So, you must also change «.class» line

Hope this can help you!

Enviado desde mi LT26i usando Tapatalk
[Android Themes] TuDien:
how to signed apk Apkmultitool :(
[Android Themes] sieuan:
I tried again carefully (with blank xml), but still get FC when I press icon Settings in app drawer. Here is my decompiled file and logcat, can you check it help me. Thanks!
[Android Themes] rockernaxo:
Your smalis seem to be a little bit different from mine and the tutorial. Anyway, the error comes from here:

Could not find class 'com.android.settings.PersonalSettings$PostDrawListener', referenced from method com.android.settings.PersonalSettings.<init>

It means that the app search for a smali/class called PersonalSettings$PostDrawListener which actually doesn't exist.

There's two ways to "solve" this issue.

The first is to create those Personal/App/DeviceSettings$PostDrawListener like you've done with Settings.smali, Settings$1.smali and so on. So take Settings$PostDrawListener, make three copies and rename them to Personal/App/DeviceSettings$PostDrawListener one each time. Go inside them one by one and change all "Lcom/android/settings/Settings$PostDrawListener" for "Lcom/android/settings/[Device/App/Personal]Settings$PostDrawListener".

The second one consist of chaging the references from "App/Device/PersonalSettings$PostDrawListener" to "Settings$PostDrawListener" in every smali you have modified or created. This could be rather tedious and buggy.

In order to avoid more issues I'd choose the first one, but you decide ;)

I hope you understand all this explanation, if it keeps on giving FC, please upload a new logcat
[Android Themes] sieuan:
Thanks for your explanation!

I follow the 1st way, make 3 copies of Settings$PostDrawListener.smali, rename them to Personal/App/DeviceSettings$PostDrawListener.smali, and replace all Lcom/android/settings/Settings$PostDrawListener to Lcom/android/settings/[Device/App/Personal]Settings$PostDrawListener, except "annotations".

But I still get FC, here is my new logcat.

/// SOLVED
[Android Themes] sieuan:
^

^

[MENTION=4562527]rockernaxo[/MENTION]

SOLVED: some code was wrong in DeviceSettings$HeaderAdapter.smali. There are something wrong with auto-replace mode of my Notepad++, so there are a some code didn't replaced right.

Now, my settings tab is working with blank xml. Big thanks for your help, sir!
[Android Themes] sieuan:
[MENTION=4562527]rockernaxo[/MENTION]

It seem I am not lucky with Settings TAB, It working with blank xml. But if I modified the xml, example in personal_settings_headers.xml:

<?xml version="1.0" encoding="utf-8"?>
<preference-headers
xmlns:android="http://schemas.android.com/apk/res/android">
<header android:title="@string/header_category_personal" />
</preference-headers>

My Settings get FC if I add any code in xml, except with blank xml, it work good.

Here is my logcat.
[Android Themes] rockernaxo:
Hi mate, sorry for the delay, I've been very busy at weekend.

Let's see the error:

E/AndroidRuntime( 770): java.lang.NoSuchMethodError: com.android.settings.PersonalSettings$HeaderAdapter$HeaderViewHolder.<init>

E/AndroidRuntime( 770):	at com.android.settings.PersonalSettings$HeaderAdapter.getView(Settings.java:516)

And a couple of lines before:

I/dalvikvm( 770): Could not find method com.android.settings.AppSettings$HeaderAdapter$HeaderViewHolder.<init>, referenced from method com.android.settings.AppSettings$HeaderAdapter.getView

Let's check getView method in App/Device/PersonalSettings$HeaderAdapter.smali

I've found several differences:

Here's is my code:

invoke-direct {v10, v0}, Lcom/android/settings/DeviceSettings$HeaderAdapter$HeaderViewHolder;-><init>(Lcom/android/settings/[B]DeviceSettings$[/B]1;)V

.line 669
.local v10, holder:Lcom/android/settings/[B]DeviceSettings$HeaderAdapter$HeaderViewHolder[/B];
packed-switch v9, :pswitch_data_0

And here is yours:

invoke-direct {v2, v10}, Lcom/android/settings/DeviceSettings$HeaderAdapter$HeaderViewHolder;-><init>(Lcom/android/settings/Settings$1;)V

.line 517
.local v2, holder:Lcom/android/settings/Settings$HeaderAdapter$HeaderViewHolder;
packed-switch v1, :pswitch_data_0

What is wrong is highlighted, revise all files carefully.

I think the error comes from there, check it and if not upload again a new logcat :)
[Android Themes] sieuan:
I got it! Big thanks for your help!

Now, my Settings-tab is working. But I had 3 problems with it:

1. CAN NOT use back button to exit the settings:

-With blank xml, I can press back button to exit settings in 3 tabs

-If add code to personal_settings_headers.xml, can't press back button to exit in personal and system tabs. But if I swipe it to application tab, can press back button to exit settings.

-If add code to personal_settings_headers.xml and device_settings_headers.xml, can not use back button in 3 tabs.

-If add code to all 3 xml, can not use back button in 3 tabs.

2. CAN NOT turn-off wifi&bluetooth from toggle after turn-on it, as your problem here.

3. CAN NOT press/enter in "SIM Management" settings. It appears in wireless/network settings. But the "SIM management" title was blur, and I can't press on it. My Lenovo phone has 2 simcard, so this settings is useful.

Do you have any ideas, sir [MENTION=4562527]rockernaxo[/MENTION]? Thanks!
[Android Themes] rockernaxo:
I've not managed to solve toggle issue yet but I think I'm approaching.

Please, upload your apk decompile so that I can take a quick look ;)

Enviado desde mi LT26i usando Tapatalk
[Android Themes] sieuan:
Thanks sir. Here is my decompiled file
[Android Themes] sieuan:
[MENTION=4562527]rockernaxo[/MENTION]:

How about the button on-off toggle if you add ONLY code of wifi&bluetooth settings in xml? It seem if I add only one code about wifi setting in xml, the button can switch on-off.
[Android Themes] rockernaxo:
Really? If I have time at night I'll check it and also your files:highfive:

EDIT:

Mate [MENTION=4948569]sieuan[/MENTION], I've taken a quick look to your files and I realized you forgot to edit this part on AndroidManifiest.xml:

About SIM Managment, have you tried to change its position? Maybe inside More submenu?
[Android Themes] sieuan:
Ok thanks sir!

I've taken look for the androidmanifest, and of course, I 've been edited the androidmanifest:

<application android:theme="@*android:style/Theme.DeviceDefault.Light.DarkActionBar" android:label="@string/settings_label" android:icon="@drawable/ic_launcher_settings" android:taskAffinity="" android:hardwareAccelerated="true" android:uiOptions="splitActionBarWhenNarrow">
[COLOR="Red"] <activity android:label="@string/settings_label_launcher" android:name="Settings">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>[/COLOR]

If not, my setting didn't appear in app drawer. So, the problem is not here.

And about the SIM Management, I added it inside the display settings, and it's working now.:good: Thanks sir!:good:
[Android Themes] rockernaxo:
Uhm, damn. Now I've run out of ideas....

Try to take a full logcat to see if pressing back button gives any kind of error:)
[Android Themes] sieuan:
Hi mate! I'm tried to read the logcat, but I can't understand it. Here is my logcat when I press the back button, if you have free time, please check it help me. Thanks!
[Android Themes] rockernaxo:
I've read the logcat carefully but no idea why back button doesn't work.... Sorry...
[Android Themes] phenomarc:
I'm having FC on SecSettings. Here's logcat :

W/dalvikvm(15730): threadid=1: thread exiting with uncaught exception (group=0x40f762a0)
E/AndroidRuntime(15730): FATAL EXCEPTION: main
E/AndroidRuntime(15730): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.MainSetting}: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.PersonalSettings}: java.lang.NullPointerException
E/AndroidRuntime(15730):	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java)
E/AndroidRuntime(15730):	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java)
E/AndroidRuntime(15730):	at android.app.ActivityThread.access$700(ActivityThread.java)
E/AndroidRuntime(15730):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java)
E/AndroidRuntime(15730):	at android.os.Handler.dispatchMessage(Handler.java)
E/AndroidRuntime(15730):	at android.os.Looper.loop(Looper.java)
E/AndroidRuntime(15730):	at android.app.ActivityThread.main(ActivityThread.java)
E/AndroidRuntime(15730):	at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(15730):	at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime(15730):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
E/AndroidRuntime(15730):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
E/AndroidRuntime(15730):	at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(15730): Caused by: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.PersonalSettings}: java.lang.NullPointerException
E/AndroidRuntime(15730):	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java)
E/AndroidRuntime(15730):	at android.app.ActivityThread.startActivityNow(ActivityThread.java)
E/AndroidRuntime(15730):	at android.app.LocalActivityManager.moveToState(LocalActivityManager.java)
E/AndroidRuntime(15730):	at android.app.LocalActivityManager.startActivity(LocalActivityManager.java)
E/AndroidRuntime(15730):	at com.android.settings.MainSetting.InitViewPager(MainSetting.java:114)
E/AndroidRuntime(15730):	at com.android.settings.MainSetting.onCreate(MainSetting.java:52)
E/AndroidRuntime(15730):	at android.app.Activity.performCreate(Activity.java)
E/AndroidRuntime(15730):	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java)
E/AndroidRuntime(15730):	... 12 more
E/AndroidRuntime(15730): Caused by: java.lang.NullPointerException
E/AndroidRuntime(15730):	at com.android.settings.PersonalSettings.onCreate(Settings.java:228)
E/AndroidRuntime(15730):	at android.app.Activity.performCreate(Activity.java)
E/AndroidRuntime(15730):	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java)
E/AndroidRuntime(15730):	... 20 more

Any help?

Edit: I attach my modded files if someone would to see. I'm working in S2 JB.
[Android Themes] :
Settings.apk FC

[MENTION=5204709]Adi Aisiteru Reborn[/MENTION] Somebody help me my settings.apk keep force close and now i am not sure what to do?????
[Android Themes] sandeepkiran:
Settings icon gets disappeared . Need some help

Hi Adi Sir ,

I've tried the OP Step by Step but after flashing the Settings.apk in zip file , settings icon gets disappeared and when i try to use Settings shortcut the message is shown " SystemUI is stopped" . Can you help me in solving this . i've attached the settings folder here. can you identity the mistake
[Android Themes] Mart13:
.

hiii.. adi.

I've just read ur guide and just want to try it's work or not on my mtk device on JB4.2.1

Coz i've read several page and ur guide work in JB 4.2

I've just complete in 1st step and use ur cm9 source tab settings.

But i've a problem in 2nd step.

I can't find file Settings.smali in my smali/com/android/settings folder
[Android Themes] DarkStryder:
update for cm10.2 would be great as the lines have changed, thanks
[Android Themes] bamzzz:
Here some logcat from my device.. please help
[Android Themes] doremonwithme:
aks

Please check my mod.

FC Settings
[Android Themes] blu3m4n:
Work on mine but there is a problem

sir [MENTION=5204709]Adi Aisiteru Reborn[/MENTION], i have do this on my JB 4.2 and it work very nicely...just one problem that i found.. there is one option on my settings menu are blocked, i can't access/tap it anyway...! can you help me for that problem sir?

here is some screenshoot from my device
[Android Themes] Adrian ERM:
Please give me some Answer

I just wondering why my Settings.apk still FC on my Phone

I've tried so many ways to fix it, but still FC

I've read your Guide carefully, is it possible the trouble on my tools for Compile/decompile?

I using APKtool and for Sign the APK I use zipalign

But I think the problem about Androidmanifest.xml + Sign the apk

Would you Like to check on my apk files?

Thanks before :angel:
[Android Themes] D2Y aka E:
help sir...

I want to change the color of progress ram setting.apk cm10.1 if you can help me to publish a tutorial

sorry my bad engslish
[Android Themes] darkguy2008:
I'm having the same issue with the SIM Management & WiFi On/Off toggle. Any ideas about it?