Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,741,682 Members 42,569 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
shadman0
Old
(Last edited by shadman0; 9th March 2014 at 09:35 AM.) Reason: I wamt to remove q
#1  
Account currently disabled - OP
Thanks Meter 116
Posts: 348
Join Date: Nov 2013
Location: Delhi
Default [GUIDE]How to Make Tab in Settings.apk with Icon

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
The Following User Says Thank You to shadman0 For This Useful Post: [ Click to Expand ]
 
SlimShady's
Old
#2  
SlimShady's's Avatar
Senior Member
Thanks Meter 231
Posts: 393
Join Date: Dec 2013
Location: Altamura
Will try soon..

Sent from my GT-S5570 using xda app-developers app
8 Mile Rd, Detroit MI

★Eminem★
~You better lose yourself in the music, the moment
You own it, you better never let it go
You only get one shot, do not miss your chance to blow
This opportunity comes once in a lifetime, yo.~
 
shadman0
Old
#3  
Account currently disabled - OP
Thanks Meter 116
Posts: 348
Join Date: Nov 2013
Location: Delhi
Reserved
 
shadman0
Old
#4  
Account currently disabled - OP
Thanks Meter 116
Posts: 348
Join Date: Nov 2013
Location: Delhi
SS Added
Attached Thumbnails
Click image for larger version

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

Name:	uploadfromtaptalk1394523488021.jpg
Views:	80
Size:	14.9 KB
ID:	2624525  
Tags
guide
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes