Hi! I'm back for making a new guide for ya! :D
In this thread, i'll tell you how to Add Extra Informations that like TeslaROM based CyanogenMod!
Okay here we go!
Guide Add Extra Information di Settings.apk!
Recuirements:
- Apktool v1.5.2
- Knowing what is Compare
- Merge all files to its places
- Then add this in res/drawable/xml/DeviceInfoSettings.xml -->
<PreferenceScreen android:title="@string/teslaextrainfo" android:key="extrainfo" android:summary="@string/teslaextrainfo_summary">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.tesla.ex trainfo.MainActivity" />
</PreferenceScreen>
- Now add this in AndroidManifest.xml -->
<activity android:theme="@*android:style/Theme.Holo.Dialog.NoActionBar.MinWidth" android:name="com.android.settings.tesla.extrainfo .MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
- Next add this in res/drawable/values/strings.xml -->
<string name="teslaextrainfo">Extra information</string>
<string name="teslaextrainfo_summary">Display extra info for cpu, display, etc</string>
- Recompile dan Sign
- Decompile your Settings.apk again
- In here we must compare the ID in Public.xml to smali for work!
- Open smali/com/android/settings/tesla/extrainfo/MainActivity.smali
- Search code with "0x7"
- 0x7f0400d6 --> extrainfo_layout.xml
(layout)
- 0x7f0802bc --> mainLinearLayout (id)
- Then compare dan paste that code to ID Public.xml to smali
- Next Recompile and Sign
- And push!
If this guide doens't work on your Device, pls make sure post the log in comments so i will know and try to fix it :)
Thanks to:
- Allah SWT
- Prophet Muhammad SAWW
- My GF :D
Download:
Settings Files
Credits:
- Cyanogen Team (Big thanks for you for helping me!)
- TeslaROM
- AICP
- AOKP
- PAC-ROM
- GzROM
- ROM that based CyanogenMod!
- Jawaad Saeed for making original guide!
In this thread, i'll tell you how to Add Extra Informations that like TeslaROM based CyanogenMod!
Okay here we go!
Guide Add Extra Information di Settings.apk!
Recuirements:
- Apktool v1.5.2
- Knowing what is Compare
- Merge all files to its places
- Then add this in res/drawable/xml/DeviceInfoSettings.xml -->
<PreferenceScreen android:title="@string/teslaextrainfo" android:key="extrainfo" android:summary="@string/teslaextrainfo_summary">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.tesla.ex trainfo.MainActivity" />
</PreferenceScreen>
- Now add this in AndroidManifest.xml -->
<activity android:theme="@*android:style/Theme.Holo.Dialog.NoActionBar.MinWidth" android:name="com.android.settings.tesla.extrainfo .MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
- Next add this in res/drawable/values/strings.xml -->
<string name="teslaextrainfo">Extra information</string>
<string name="teslaextrainfo_summary">Display extra info for cpu, display, etc</string>
- Recompile dan Sign
- Decompile your Settings.apk again
- In here we must compare the ID in Public.xml to smali for work!
- Open smali/com/android/settings/tesla/extrainfo/MainActivity.smali
- Search code with "0x7"
- 0x7f0400d6 --> extrainfo_layout.xml
(layout)
- 0x7f0802bc --> mainLinearLayout (id)
- Then compare dan paste that code to ID Public.xml to smali
- Next Recompile and Sign
- And push!
If this guide doens't work on your Device, pls make sure post the log in comments so i will know and try to fix it :)
Thanks to:
- Allah SWT
- Prophet Muhammad SAWW
- My GF :D
Download:
Settings Files
Credits:
- Cyanogen Team (Big thanks for you for helping me!)
- TeslaROM
- AICP
- AOKP
- PAC-ROM
- GzROM
- ROM that based CyanogenMod!
- Jawaad Saeed for making original guide!
Follow Us