Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[GUIDE]How to Make Tab in Settings.apk with Icon

OP shadman0

9th March 2014, 10:33 AM   |  #1  
OP Account currently disabled
Flag Delhi
Thanks Meter: 118
 
348 posts
Join Date:Joined: Nov 2013
More
Hello Dear Today I Have A Guide All Credits Goes to CrDeanCatabay From His Awsome Rom.

Downloads The Zip File From Atthachment

1.Decomnile Your Settings Extract downloaded zip it to the decompiled folder.
2.Open String from /res/values/string
3.Add This
Quote:

<string name="ic_settings_tab_phone_settings_title">Phone Settings</string>
<string name="ic_settings_tab_advanced_title">Advanced Settings</string>
<string name="ic_settings_tab_about">About Hyperion</string>

4.Recompnile
5. Decompnile Its Again
6.Now The Parts Where We Need to Modify Smali
7.Open Public from res/values/public
8.
Quote:

Open TabActivity And Public
Find 0x7f03005b Change it to "indicator" (Layout)
Find 0x7f0b0019 Change it to "title" (ids)
Find 0x7f0b0018 Change it to "icon" (ids)
Find 0x7f0805d8 Change it to "ic_settings_tab_phone_settings_title" (string)
Find 0x7f0200c1 Change it to "ic_tab_system" (drwable)
Find 0x7f0805d9 Change it to "ic_settings_tab_advanced_title" (string)
Find 0x7f0200c0 Change it to "ic_tab_advanced" (drwable)
Find 0x7f0805da Change it to "ic_settings_tab_about" (string)
Find 0x7f0200bf Change it to "ic_tab_about" (drwable)
Find 0x7f03005c Change it to "main" (layout)


Open SystemActivity And Public
Find 0x7f04003a Change it to "advanced_settings" (xml)

9.Find This From AndroidManifiest.xml

Quote:

<application android:label="@string/settings_label" android:icon="@drawable/ic_launcher_settings" android:taskAffinity="">
<uses-library android:name="touchwiz" />

10.Add this After The Line
Quote:

<activity android:theme="@*android:style/Theme.NoTitleBar" android:label="@string/settings_label_launcher" android:name="TabsActivity" 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>
<activity android:name="SettingsActivity" />
<activity android:name="SystemActivity" />

11.Now Find This

Quote:

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

12.Replace with

Quote:

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

13.Compnile Your Settings Make Flashble File Put into /system/app

14.Enjoy

Downloads
Last edited by shadman0; 9th March 2014 at 10:35 AM. Reason: I wamt to remove q
The Following User Says Thank You to shadman0 For This Useful Post: [ View ]
9th March 2014, 11:33 AM   |  #2  
SlimShady's's Avatar
Senior Member
Flag Altamura
Thanks Meter: 251
 
432 posts
Join Date:Joined: Dec 2013
Will try soon..

Sent from my GT-S5570 using xda app-developers app
10th March 2014, 03:35 PM   |  #3  
OP Account currently disabled
Flag Delhi
Thanks Meter: 118
 
348 posts
Join Date:Joined: Nov 2013
More
Reserved
11th March 2014, 09:38 AM   |  #4  
OP Account currently disabled
Flag Delhi
Thanks Meter: 118
 
348 posts
Join Date:Joined: Nov 2013
More
SS Added
Attached Thumbnails
Click image for larger version

Name:	uploadfromtaptalk1394523455006.jpg
Views:	144
Size:	14.8 KB
ID:	2624524   Click image for larger version

Name:	uploadfromtaptalk1394523488021.jpg
Views:	110
Size:	14.9 KB
ID:	2624525  
Post Reply Subscribe to Thread

Tags
guide
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes