[GUIDE][MOD][4.2.2] Adding Custom ROM image in Settings

Adding custom ROM image in Settings

All information, follow these instructions !

Required tools

* Java
* SDK
* Notepad ++ ( Or another application )
* Deodexed Settings.apk
* Download the “Required files”
* APK Tool
* Extract the “Settings.apk” from your rom /system/app/

PART 1

* Decompile Settings.apk

* Put the “\drawable and \layout” into the extracted “Required files” folder.

-Trick

There, you’ll see customimage.png Change it to any png of size 400×155 You can change this size description in /res/layout/areebisawesome.xml

* Navigate to \res\xml

* Open device_info_settings with notepad++ and add the following lines after that close and save the changes.

Original Line

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/sp_sw_update_capital_NORMAL" android:key="software_update_settings_for_dcm" android:summary="@string/system_update_settings_list_item_summary">
        <intent android:targetPackage="com.nttdocomo.android.fota" android:action="android.intent.action.MAIN" android:targetClass="com.nttdocomo.android.fota.screens.DmcFota" />
    </PreferenceScreen>
    <PreferenceScreen android:title="@string/system_update_settings_list_item_title" android:key="system_update_settings" android:summary="@string/system_update_settings_list_item_summary">
        <intent android:action="android.settings.SYSTEM_UPDATE_SETTINGS" />
    </PreferenceScreen>

Modified

Code:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/about_settings"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <PreferenceCategory android:layout="@layout/areebisawesome" android:title="" android:key="blah" />
    <PreferenceScreen android:title="@string/sp_sw_update_capital_NORMAL" android:key="software_update_settings_for_dcm" android:summary="@string/system_update_settings_list_item_summary">
        <intent android:targetPackage="com.nttdocomo.android.fota" android:action="android.intent.action.MAIN" android:targetClass="com.nttdocomo.android.fota.screens.DmcFota" />
    </PreferenceScreen>
    <PreferenceScreen android:title="@string/system_update_settings_list_item_title" android:key="system_update_settings" android:summary="@string/system_update_settings_list_item_summary">
        <intent android:action="android.settings.SYSTEM_UPDATE_SETTINGS" />
    </PreferenceScreen>

PART 2

* Compile Settings.apk file ( APK Tool )

* You can do this with a File explorer ( With root permissions or before you build your rom. )

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s