yashsingh1/xdaforums huggingface dataset:
[Android Themes] Adi Aisiteru Reborn:
second time I am telling you, that you must to do it very carefully..:)

oke

I've checked again your settings, and you have :

Settings.smali

Settings$1.smali

Settings$2.smali

Settings$HeaderAdapter$HeaderViewHolder.smali

Settings$HeaderAdapter.smali

but

you only have

AppSettings.smali

AppSettings$2.smali

AppSettings$HeaderAdapter$HeaderViewHolder.smali

AppSettings$HeaderAdapter.smali

for DeviceSettings and PersonalSettings already completed,

but you missed many lines in doing my guide STEP-3

PersonalSettings$HeaderAdapter.smali

open with Notepad+++ line 363

invoke-direct {v3, v8}, Lcom/android/settings/PersonalSettings$HeaderAdapter$HeaderViewHolder;-><init>(Lcom/android/settings/[COLOR="Red"]Settings$1[/COLOR];)V

AppSettings$HeaderAdapter.smali

open with Notepad+++ line 363

invoke-direct {v3, v8}, Lcom/android/settings/AppSettings$HeaderAdapter$HeaderViewHolder;-><init>(Lcom/android/settings/[COLOR="Red"]Settings$1[/COLOR];)V

Notepad+++ line 388

invoke-direct {p0, v3, v7}, Lcom/android/settings/AppSettings$HeaderAdapter;->handleDisableHolder(Lcom/android/settings/[COLOR="Red"]Settings$HeaderAdapter$HeaderViewHolder[/COLOR];Landroid/view/View;)V

Notepad+++ line 746

invoke-direct {p0, v3, v7}, Lcom/android/settings/AppSettings$HeaderAdapter;->handleEnableHolder(Lcom/android/settings/[COLOR="Red"]Settings$HeaderAdapter$HeaderViewHolder[/COLOR];Landroid/view/View;)V

and we cannot continue to settings_header.xml if your smali like that :)

please fix your smali first
[Android Themes] :
Hmmm:confused::confused::confused:

Sorry Sir.....

But done this carefully still.......:(:(:(

Now I will do this tomorrow.....

Let me give a last try sir and one more thing sir I completed the settings header part myself and it doesn't' got errors just only one problem not showing settings in app drawer....

"Hitting Thanks Don't Cost You Anything, so, Why Don't You Try Hitting It Once......
[Android Themes] Adi Aisiteru Reborn:
Read my very last Guide,

you must sign it with platform key from CM github
[Android Themes] :
Adi Sir,

One Serious Issue is there, I merge the CM9 Source & and I include AppSettings$1

But Not Able to Find It, after Compiling the Apk........

Again Attaching the Modded Apk......

Please See This Last time Sir,

Thanks For helping In every problem of Mine.....
[Android Themes] Adi Aisiteru Reborn:
And your rom is JB 4.1 , why are you following and donloded CM9 (ICS 4.0.4) Source and guide :)
[Android Themes] :
Hmmm,

I was Not knowing This sir, So All Things Done By Me Goes in Vain.....

No problem, Will try This Again With CM10 Sources

Any Shorter Way To get This thing Done....
[Android Themes] :
Adi Sir,

One Help Needed.....

I have Done the Modding but will you check the APK file of Mine. This time I have followed the CM10 Source Guide for Modding. And Also Please do Sign the APK with the Platform Keys of CM, As I am Not Able to Do That......

Please Sir, Do This the last time I am Asking Help.....

Please......!!!!!
[Android Themes] Rydlis:
Hi,

everytime when I want to compile it for first time, APKtool send me this (I am using Linux Ubuntu 12.04.2 and trying it on LiQu OS (cm 10.1)

david@david-HP:~$ apktool b /home/david/Plocha/Settings-update /home/david/Plocha/Settings.apk
I: Checking whether sources has changed...
I: Smaling...
[8,15] Error for input '/': Invalid text
[8,23] Error for input '/': Invalid text
[8,32] Error for input '/': Invalid text
[8,42] Error for input ';': Invalid text
[8,11] no viable alternative at input 'Lcom'
[8,16] mismatched input 'android' expecting EQUAL
[8,24] mismatched input 'settings' expecting EQUAL
[8,33] mismatched input 'Settings' expecting EQUAL
[9,0] mismatched input '.end annotation' expecting EQUAL
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: java.io.FileInputStream@5fb7565
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:256)
at brut.androlib.Androlib.buildSources(Androlib.java:213)
at brut.androlib.Androlib.build(Androlib.java:204)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:218)
at brut.apktool.Main.main(Main.java:74)

I'll be glad if somebody write what I am doing bad :)

Settings.apk

View attachment Settings-update.zip

My modified files

View attachment newFiles.zip
[Android Themes] sferenzi:
it's WORKK :good: :laugh:

this's my SS
[Android Themes] Adi Aisiteru Reborn:
yah, I've checked your settings, I didnt find in ids.xml and strings.xml

<string name="personalized_setting">Personal</string>
<string name="device_setting">System</string>
<string name="app_setting">Applications</string>

<item type="id" name="linearLayout1">false</item>
<item type="id" name="personalized_tab">false</item>
<item type="id" name="device_tab">false</item>
<item type="id" name="app_tab">false</item>
<item type="id" name="cursor">false</item>
<item type="id" name="vPager">false</item>
[Android Themes] Rydlis:
I am stupis :D Yes, it is missing in .xml files, but I still have a problem with compiling (same as I posted above)
[Android Themes] Adi Aisiteru Reborn:
have you installed the correct framework of its settings ?
[Android Themes] Rydlis:
yes, i have a correct framework, maybe the error is in smali files, i'll try to remake smali files and post result
[Android Themes] peetu20:
Hey adi, can u please tell what must I do at this part?

NEXT
in public.xml
find
Code:

<public type="xml" name="settings_headers" id="0x????????" />

KEEP IT OPEN, AND GO TO :
smali/com/android/settings/
and open with Notepad++
AppSettings.smali, DeviceSettings.smali, PersonalSettings.smali
and find settings_header ids , 0x???????? in all that 3 smali, so it's gonna be like this
Code:

0x???????? in AppSettings.smali

0x???????? in DeviceSettings.smali

0x???????? in PersonalSettings.smali

of course, the ids in all that three will be same, because all that three smali is copied of setting.smali,.
now we must change all red ids, with new ids in public.xml

Code:

replace the Red Ids in AppSettings.smali, DeviceSettings.smali, PersonalSettings.smali, with new ids in public.xml :

in PersonalSettings.smali -> replace with <public type="xml" name="personal_settings_headers" id="0x????????" />

in DeviceSettings.smali -> replace with <public type="xml" name="device_settings_headers" id="0x????????" />

in AppSettings.smali -> replace with <public type="xml" name="app_settings_headers" id="0x????????" />

NEXT

Coz, how can I know whatare the settings_header ids, there is many ids in mentioned smali files. Maybe I am just stupid, but i still decided to ask about this coz I do not really understand :(
[Android Themes] :
Adi Sir,

Have you checked the moded settings apk. I am waiting for your helpful reply from arround a week. Please please please Sir,

Help me in this.

Here is my earlier post link.....

http://xdaforums.com/showthread.php?p=41591900

"Hitting Thanks Don't Cost You Anything, so, Why Don't You Try Hitting It Once.......

:) :) :) "
[Android Themes] Adi Aisiteru Reborn:
oke , I'll try to explain by screenshot

NEXT

in public.xml

find

Code:

<public type="xml" name="settings_headers" id="[COLOR="Red"]0x????????[/COLOR]" />

KEEP IT OPEN, AND GO TO :

smali/com/android/settings/

and open with Notepad++

AppSettings.smali, DeviceSettings.smali, PersonalSettings.smali

and find settings_header ids ,0x???????? in all that 3 smali, so it's gonna be like this

Code:

[COLOR="Red"]0x????????[/COLOR] in AppSettings.smali

[COLOR="Red"]0x????????[/COLOR] in DeviceSettings.smali

[COLOR="Red"]0x????????[/COLOR] in PersonalSettings.smali

of course, the ids in all that three will be same, because all that three smali is copied of setting.smali,.

now we must change all red ids, with new ids in public.xml

Example screenshot

Code:

replace the Red Ids in AppSettings.smali, DeviceSettings.smali, PersonalSettings.smali, with new ids in public.xml :

in PersonalSettings.smali -> replace with <public type="xml" name="personal_settings_headers" id="[COLOR="Green"]0x????????[/COLOR]" />

in DeviceSettings.smali -> replace with <public type="xml" name="device_settings_headers" id="[COLOR="Blue"]0x????????[/COLOR]" />

in AppSettings.smali -> replace with <public type="xml" name="app_settings_headers" id="[COLOR="Magenta"]0x????????[/COLOR]" />

Example screenshot
[Android Themes] Adi Aisiteru Reborn:
here :

DeviceSettings$HeaderAdapter.smali

invoke-direct {v3, v8}, Lcom/android/settings/DeviceSettings$HeaderAdapter$HeaderViewHolder;-><init>([COLOR="Red"]Lcom/android/settings/Settings$1[/COLOR];)V

my advice is, request to someone expert on your device forum for doing this. :)
[Android Themes] peetu20:
Thanks for help :D

So must I take the id from original id from ORIGINAL Settings.apk and then change it to NEW Settings.apk id? Thats what I understood :D
[Android Themes] MicroLizard:
Hi Adi, do you know how to make it have JB UI?

because it's use the GB UI.

It will be more perfect if it also have JB UI.

Thanks.:good:
[Android Themes] Adi Aisiteru Reborn:
I cannot understand what you mean bro, can you explain it more specific, by screenshot may be ..

This settings has tab UI layout, with three tabs , and has swipe feature to switch from tab to tab.

is there a different betwen GB and JB bro ?

I think what you mean of JB UI is Holo ui ?

this settings already holo bro, and compatible with theme choser .
[Android Themes] MicroLizard:
i.e. when I press the "about phone" option, it will have white bg with some orange color in bottom of it instead of holo blue.

but not problem, I fix it using ICS Fixer theme. :victory:
[Android Themes] azlav:
ahhhh i got the same problem as Rydlis with compiling the apk...can you help us?
[Android Themes] Adi Aisiteru Reborn:
Ohh thats just when you press it, but when u use theme choser the color will change too according to your theme chosser..

Or you can manually edit the press color in layout/mainsettings.xml
[Android Themes] Anthrax:
Will this work on stock JB for Xperia???
[Android Themes] Adi Aisiteru Reborn:
This guide is re-write/re-explain from here http://xdaforums.com/showpost.php?p=40907670&postcount=33

sir tdunham self coming from epic 4G touch JB touchwiz leak, and he apply this mod to his leak rom : http://xdaforums.com/showthread.php?t=2285290

which means will work to all ICS+

I my self apply it to CM :)

try it and guud luck :)
[Android Themes] MicroLizard:
here is mine. :D
[Android Themes] Adi Aisiteru Reborn:
tell me, is it re-mod the mainsetting.xml ?

give us short guide here bro :D
[Android Themes] MicroLizard:
for the mainsetting.xml, I change the tab background and tabs title.

for fix the GB leftover, I use this theme.

-----

btw, here is my .xml file.

http://www.mediafire.com/download/7jtyrezu1lt72pb/tabbed-settings.zip
[Android Themes] Anthrax:
Thanks bro.... will work on it and let you know how it goes....

another question is that how can we modify the files for only two tabs instead of three.?????

EDIT: Man this guide work great... :)

tried this first time and got it working.......

just a small glitch about signing apk but that was not so hard after a search.....

If you can help me with the two tab instead of one it will be great.... :)

will make some modifications as its working great.....

will post screenies in a bit.......
[Android Themes] Adi Aisiteru Reborn:
Very nice :D

Btw, if you want two tabs only, I guess will be more complicated to do it, you will need to edit mainsettings.smali, mainsetting.xml, android manifest.xml since they call 3 tabs.
[Android Themes] peetu20:
Hey, adi, I have managed to make settings app transparent(Not via framework-res.apk) and its working fine with cm10.1 stock settings app, but while I tried to make tabbed settings transparent too, I noticed, that the mainsettings screen does not become transparent, all subsettings, like "system" part becomes, so do you have idea, how to change background of the tabbed settings mainscreen(The screen where tabs are visible)? :)
[Android Themes] blackcoffeez:
After a few hour...

here's mine...

Great guide... :thumbup:

you're the best dude :D
[Android Themes] Adi Aisiteru Reborn:
Nice bro :)
[Android Themes] blackcoffeez:
Tryin on CM10 AOKP..the mods works..but getting fc when swipe or press the tab..still cannot find the solution,,have no knowledge on smali's.. lookin on winmerge,,and yes..there's a different on AOKP smali and base CM 10.. would u mind to see whats wrong with the smali's?? i'll upload soon if you have a time.. :)
[Android Themes] vikasb32:
i decompile new setthings.apk and now there is no appsettings.smali, DeviceSettings.smali,PersonalSettings.smali but rest of file i add like AppSettings$1.smali AppSettings$2.smali is present.i am using apkmultitool for decomipling.rom is cm10.1
[Android Themes] vikasb32:
Got working.i also mange to got holo ui.because default ui is not completely holo ui.
[Android Themes] darryim:
Wil this work if you share the apk?
[Android Themes] Adi Aisiteru Reborn:
Good job bro , can you share with us the code ?
[Android Themes] Adi Aisiteru Reborn:
It should work to all non multi DPI layout settings..
[Android Themes] vikasb32:
Code:-

Change code of AndroidManifest.xml to below code(change only red color code)

<activity android:name="MainSetting" android:theme="[COLOR="Red"]@style/Theme.NoTitleBar[/COLOR]" android:taskAffinity="com.android.settings" android:launchMode="singleTask">
<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>

Add below line to res/values/styles.xml

<style name="Theme.NoTitleBar" parent="@*android:style/Theme.Holo">
<item name="android:windowNoTitle">true</item>
</style>

Change mainsetting.xml to below code

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout android:layout_width="fill_parent" android:layout_height="48.0dip">
<LinearLayout android:gravity="center" android:background="@*android:drawable/ab_solid_dark_holo" android:orientation="horizontal" android:id="@id/linearLayout1" android:layout_width="fill_parent" android:layout_height="48.0dip" android:layout_alignParentTop="true">
<TextView android:background="@*android:drawable/tab_indicator_holo" android:textSize="16.0sp" android:gravity="center" android:id="@id/personalized_tab" android:layout_width="0.0px" android:layout_height="fill_parent" android:text="@string/personalized_setting" android:layout_weight="1.0" />
<TextView android:background="#11ffffff" android:layout_width="1.0dip" android:layout_height="40.0dip" android:text="" />
<TextView android:background="@*android:drawable/tab_indicator_holo" android:textSize="16.0sp" android:gravity="center" android:id="@id/device_tab" android:layout_width="0.0px" android:layout_height="fill_parent" android:text="@string/device_setting" android:layout_weight="1.0" />
<TextView android:background="#11ffffff" android:layout_width="1.0dip" android:layout_height="40.0dip" android:text="" />
<TextView android:background="@*android:drawable/tab_indicator_holo" android:textSize="16.0sp" android:gravity="center" android:id="@id/app_tab" android:layout_width="0.0px" android:layout_height="fill_parent" android:text="@string/app_setting" android:layout_weight="1.0" />
</LinearLayout>
<RelativeLayout android:layout_width="fill_parent" android:layout_height="48.0dip" android:layout_marginLeft="1.0dip">
<ImageView android:id="@id/cursor" android:background="@*android:drawable/tab_selected_holo" android:layout_width="fill_parent" android:layout_height="48.0dip" android:scaleType="matrix" android:layout_alignParentBottom="true" />
</RelativeLayout>
</RelativeLayout>
<android.support.v4.view.ViewPager android:layout_gravity="center" android:id="@id/vPager" android:persistentDrawingCache="animation" android:layout_width="wrap_content" android:layout_height="wrap_content" android:flipInterval="30" android:layout_weight="1.0" />
</LinearLayout>
[Android Themes] shreyas.kukde:
I don't understand what do I have to do here :(

I can locate the id settings_headers in public.xml but where do I need to replace it in AppSettings.smali? Please guide me :(

---------- Post added at 04:23 PM ---------- Previous post was at 04:03 PM ----------

Please help me [MENTION=301180]adi[/MENTION] I have spent too much time to reach the step I mentioned above, I don't really want to give up on my work till now :(
[Android Themes] shreyas.kukde:
Okay, Finally done, but settings is FCing now. It won't open. I carefully did the steps, dont know what went wrong :( HERE is my apk, hope anybody takes a look and points out the culprit :eek:
[Android Themes] remuntada78:
request

[MENTION=5204709]Adi Aisiteru Reborn[/MENTION]

I appreciate your tutorial ,so thanks, but in this case i have a request

i'm with galaxy s2 jelly bean 4.1.2 stock so can you make a tutorial for

setting menù to do it like galaxy s4 ?

or have you some suggestion?
[Android Themes] ArdhiArt:
Bro, can u tell me how to make it into stock rom settings? I just can't sign it, cz that is stock settings.apk :confused:
[Android Themes] saiz136:
Thanks adi! I'll be sharing this with folks on P940 CM10.1 Unofficial ROM.

Sent from LG Prada 3.0 P940 CM10.1

My Colorscreen

Tabbed with Swipe Settings and Emoji Keyboard for P940 CM10.1 ROM
[Android Themes] MattBooth:
Any idea how to add a forth tab?

EDIT:

I should add, I've been trying myself. I've increased the width division by 4 instead of 3 and added extra intents to the list in the smali, added an extra set of smali files and added the stuff to the mainsettings.xml file ... but no go
[Android Themes] Adi Aisiteru Reborn:
I have no idea yet :)

btw, don't forget to do it to android.manifest.xml too ;)
[Android Themes] Adi Aisiteru Reborn:
Check again your 3 new xml in xml folder, make sure you manage it carefully
[Android Themes] Adi Aisiteru Reborn:
It should work too to touchwiz leak
[Android Themes] Adi Aisiteru Reborn:
Few post back there is user who succesfully made it for stok JB leak xperia
[Android Themes] MattBooth:
I did that :D

I managed to get the tabs to show, but the ViewPager threw an unhandled exception when you scrolled to page 4, then tried to go back (or maybe just when you tried to go to page 4) Also, I couldn't tap the 4th tab, either :/

EDIT:

3 tabs works fine, though... Though I followed the original guide and I'm not using Cyanogen. However you're developing this it seems and the original guy isn't so I posted here :)
[Android Themes] syahazu:
superb tutorials !! Thnks OP ;)
[Android Themes] -CALIBAN666-:
Awesome,i have downloaded the example cm10.1 version for wonder and have the extracted settings.apk with permission rw-r-r-- installed on my LG Optimus L5 e610 with cm10.1 and its worked perfect and for 100%.Thanx :thumbup:

GREEEEEETZ!!!!
[Android Themes] blackcoffeez:
it's work now..but at stock dpi..havent try if i change to tblet ui/dual view..but

now my phone has cm10.1 released.. getting stuck when decompile..its said java heap bla..bla..bla..i use apktool+jdk7+latest android sdk..any suggestions?
[Android Themes] mnemonyc:
Finally my settings work good!!

Thanks OP for your base!
[Android Themes] MattBooth:
For non-AOSP ROMs you may need to add some missing pager and view methods in order to use applications manager fragments.
[Android Themes] tatono:
Thanks, it's very useful
[Android Themes] IceBullet-Rom:
Thank you for the great guide :good:

we are developing for users in Israel as everyone knows RTL Support is very important to us.

The rom is AOKP 4.2.2 based

Everything works great except for 2 things :

1. The bottom cursor work fine in LTR locals but whit RTL locals (iw,ar) the cursor start from the right and gone after tab slide

2. Wifi + Bluetooth switch toggles not working like the original settings menu,

when wifi toggle pressed he shows that it is turned on but no blue color on the switch

when BT toggle pressed he shows that it is turned on+blue color on the switch but no BT function untill you press BT settings and press the inside toggle..

my file is attached,, hoping that you can help and give advices.

apologize for bad English
[Android Themes] mnemonyc:
To fix point #2 you must change some framework sources and some smali into settings.apk taking them from your original settings.apk

I had the same problem and I fixed it in this way.
[Android Themes] IceBullet-Rom:
Thanks for the response :o

what changes did you made? can you share?

i need to change "smali/com/android/settings/wifi/WifiEnabler.smali" ? and "smali/com/android/settings/bluetooth/BluetoothEnabler.smali"

If I'm not mistaken I saw in my DeviceSettings$HeaderAdapter.smali (i put wifi+bluetooth in device tab) reference to this.

by the way all my files is taking from my original settings.apk
[Android Themes] saiz136:
Hi Adi,

Ok first of all thank you for the guide! It makes my phone or my settings beautiful! :good: Uhmm is it possible that we could make a vrtheme for this, since I update my CM10.1 ROM often like 3x a week, and some changes on Settings.apk are likely been changing on every update. I would like to know if it is possible to have a vrtheme for this mod? sorry for my english! :eek:
[Android Themes] :
can anyone make it for cm10 for me

im getting force close after compile

check my settings.apk plz sir

i think i had a mistake in android-manifest

check that too

thank you
[Android Themes] :
any helps?
[Android Themes] j.posarekar70:
Thanks...really appreciate for your guide...

:fingers-crossed: here are mine screenshots :fingers-crossed:

works fine with me:highfive:

​
[Android Themes] thirdzcee:
hmmm., followed evewryhing but the strange thing is my settings didnt change, its still the same and if i try to add anything in settings_headers.xml, it doesnt show any changes anymore after recompiling, am i missing something??? im on an mt6577 device
[Android Themes] akash akya:
[MENTION=5204709]Adi Aisiteru Reborn[/MENTION]

thanks for guide,

i got settings working.... but some issues are there,

* display settings not working,

* back button not working in tab view, ( working in other settings like wifi,sound )

so please share your settings... i have a very big doubt....

my device : mt6577
[Android Themes] thirdzcee:
A little help here akash how did you get it to work , mine keeps force closing with logcat blabbering about class not found alarm provider even though its there
[Android Themes] akash akya:
sorry for late replay... bit busy bro... surly i will help later... :D
[Android Themes] IceBullet-Rom:
Sections 1 + 2 only me? Does anyone have another idea?
[Android Themes] mnemonyc:
I had the same problem...I have fix it modifing all bluetooth and wifi related smali taking them from original settings.apk of my rom.
[Android Themes] IceBullet-Rom:
What files did you modifed?

can you share an example?
[Android Themes] mnemonyc:
Wait for this evening...
[Android Themes] IceBullet-Rom:
Thank you for the response, I will wait patiently
[Android Themes] akash akya:
bro have any idea why back button is not working in my phone... else everything working like charm...

its explained here : http://stackoverflow.com/questions/6368012/why-back-button-is-not-detecting-in-muti-tab-activities

can you help in that...
[Android Themes] IceBullet-Rom:
Any news?

Framework files for example ?
[Android Themes] nongoei:
look like touchwiz.

are you run touchwiz or just the theme.

if you run touchwiz guide me to sign SecSetting.apk please.
[Android Themes] mnemonyc:
And for u is it good like this?

Inviato dal mio GT-I9300 usando Tapatalk 4