Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,730,714 Members 41,175 Now Online
XDA Developers Android and Mobile Development Forum

[TUTORIAL] [MOD] How to add Extra Options in About Sections

Tip us?
 
AndroidFire
Old
(Last edited by AndroidFire; Yesterday at 12:02 PM.) Reason: update
#1  
AndroidFire's Avatar
Member - OP
Thanks Meter 61
Posts: 44
Join Date: Jul 2014
Location: Near Equator
Default [TUTORIAL] [MOD] How to add Extra Options in About Sections

Hello Today I am Showing How to add Extra Options in Settings CPU Info Screen Resolution Mem Info Swap Mem Info I will Update This Thread with New Options So Let"s Start

Requirement:Credits:
  • My Friends Aryne Neil Carlno Cabatan

Instructions:
Step 1 :- Pull Your Settings from Your Phone
Step 2 :- Decompile The Settings.apk
Step 3 :- Merged The Your Settings with My Zip
Step 4 :- Open Values/strings.xml
Step 5 :- Add This
Code:
	<string name="cpu_info">CPU info</string>
    <string name="mem_info">Mem info (avail/total)</string>
	<string name="swap_mem_info">Swap mem info (avail/total)</string>
    <string name="device_screen_resolution">Screen resolution</string>
Step 6 :- Open xml/device_info_settings
Step 7 :- Remove All lines
Step 8 :- Add This
Code:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/about_settings"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <PreferenceScreen android:title="@string/device_status" android:key="status_info" android:summary="@string/device_status_summary">
        <intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.deviceinfo.Status" />
    </PreferenceScreen>
    <Preference android:title="@string/model_number" android:key="device_model" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
    <Preference android:title="@string/firmware_version" android:key="firmware_version" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
    <Preference android:title="@string/baseband_version" android:key="baseband_version" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
    <Preference android:title="@string/kernel_version" android:key="kernel_version" android:summary="@string/device_info_default" />
    <Preference android:title="@string/cpu_info" android:key="device_cpu" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
    <Preference android:title="@string/device_screen_resolution" android:key="device_screen_resolution" style="?android:preferenceInformationStyle" />
    <Preference android:title="@string/mem_info" android:key="device_memory" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
    <Preference android:title="@string/swap_mem_info" android:key="device_swap_memory" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
	<Preference android:title="Guide by"  android:key="android_fire_xda"  android:summary="AndroidFire" style="?android:preferenceInformationStyle" /> 
</PreferenceScreen>
Step 9 :- Recompile and Decompile Again
Step 10 :- Go to values/public.xml
Step 11 :- search for device_info_settings Note the id code
Step 12 :- Search for 0x7f040010 Change This according to your public
Step 13 :- Recompile And Sign And Enjoy
Attached Files
File Type: zip Settings.zip - [Click for QR Code] (6.8 KB, 12 views)

The Following 2 Users Say Thank You to AndroidFire For This Useful Post: [ Click to Expand ]
 
AndroidFire
Old
(Last edited by AndroidFire; Today at 03:07 AM.)
#2  
AndroidFire's Avatar
Member - OP
Thanks Meter 61
Posts: 44
Join Date: Jul 2014
Location: Near Equator
Info 2 My Work

The Following 2 Users Say Thank You to AndroidFire For This Useful Post: [ Click to Expand ]
 
AndroidFire
Old
#3  
AndroidFire's Avatar
Member - OP
Thanks Meter 61
Posts: 44
Join Date: Jul 2014
Location: Near Equator
Reserved

The Following User Says Thank You to AndroidFire For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes