samedi 8 mars 2014

How to add Tab in Settings.apk with Icon topic




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














Attached Files





File Type: zip Xda-Developers.zip -
[Click for QR Code]
(23.1 KB)









Aucun commentaire:

Enregistrer un commentaire