[GUIDE][5.0][NOOBS]Add rom banner in about phone.

Search This thread

Vidhanth

Senior Member
Oct 29, 2013
1,886
3,666
19
Bangalore
Hi, in this tut, ill show you how to add rom banners in about phone settings of your lollipop rom.

Files required-
-Zip in attachments
-DEODEXED rom
-Brain(link?)

Part One-

-Extract the zip
-Copy these files into the folder--->
Code:
/system/priv-app/Settings/Settings.apk
And
Code:
/system/framework/framework-res.apk
-Run cmd.exe and run this command--->
Code:
apktool if framework-res.apk
This will install the framework.
-Then run this command to decompile settings.apk--->
Code:
apktool d Settings.apk


Part two-

-In apktool folder goto Settings/res/layout and create a logo.xml file
-Open it, and paste the following lines in it--->
-----------------------------------------------------------------------------------------------------------------------------------
"<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center" android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<ImageView android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/logo" />
</LinearLayout>"
------------------------------------------------------------------------------------------------------------------------------------
-Resize your banner (which should be a PNG file) to 500x123 and rename it to logo.png. Then copy it to Settings/res/drawable


Part Three-

-Navigate to Settings/res/xml and open device_info_settings.xml.
-Add this line--->
------------------------------------------------------------------------------------------------------------------------------------
"<PreferenceScreen android:enabled="false" android:layout="@layout/logo" android:selectable="false" android:key="logo" />
------------------------------------------------------------------------------------------------------------------------------------
Right below this line--->
------------------------------------------------------------------------------------------------------------------------------------
"xmlns:android="http://schemas.android.com/apk/res/android">"
------------------------------------------------------------------------------------------------------------------------------------
-It should look like this--->
-----------------------------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/about_settings"
xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceScreen android:enabled="false" android:layout="@layout/logo" android:selectable="false" android:key="logo" />
------------------------------------------------------------------------------------------------------------------------------------


Part four-

-Now open cmd.exe and type this to recompile--->
Code:
apktool b Settings


Part Five and most important!!

-After the last command finishes, goto Settings/original and copy everything inside it to
Settings/build/apk and replace the file if prompted
-Then again run--->
Code:
apktool b Settings
-Now you have your settings.apk in Settings/dist/
-Copy it to /system/priv-app/Settings/ and replace the old file, set rw-r-r- permissions and reboot!


NOTE- THIS HAS BEEN TESTED ON AOSP BASED LOLLIPOP ROM. I DO NOT GUARANTEE WORKING ON CUSTOMIZED ROMS LIKE TOUCHWIZ OR LG ROMS. ALL LINES MUST BE ADDED WITHOUT THE "(QUOTES) MARK AT THEIR STARTING AND ENDING.

It should look like this--->
FwRKd3D.png


HIT THNX IF IT HELPED!!!
 

Attachments

  • FilesUNeed.zip
    5.6 MB · Views: 322
Last edited:

Vidhanth

Senior Member
Oct 29, 2013
1,886
3,666
19
Bangalore
Are u using xda app?
Whoops! I remember adding em. Anyways, I'll do it.
Would it be OK if I add em in few hrs? I hv school.
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    Hi, in this tut, ill show you how to add rom banners in about phone settings of your lollipop rom.

    Files required-
    -Zip in attachments
    -DEODEXED rom
    -Brain(link?)

    Part One-

    -Extract the zip
    -Copy these files into the folder--->
    Code:
    /system/priv-app/Settings/Settings.apk
    And
    Code:
    /system/framework/framework-res.apk
    -Run cmd.exe and run this command--->
    Code:
    apktool if framework-res.apk
    This will install the framework.
    -Then run this command to decompile settings.apk--->
    Code:
    apktool d Settings.apk


    Part two-

    -In apktool folder goto Settings/res/layout and create a logo.xml file
    -Open it, and paste the following lines in it--->
    -----------------------------------------------------------------------------------------------------------------------------------
    "<?xml version="1.0" encoding="utf-8"?>
    <LinearLayout android:gravity="center" android:layout_width="fill_parent" android:layout_height="wrap_content"
    xmlns:android="http://schemas.android.com/apk/res/android">
    <ImageView android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/logo" />
    </LinearLayout>"
    ------------------------------------------------------------------------------------------------------------------------------------
    -Resize your banner (which should be a PNG file) to 500x123 and rename it to logo.png. Then copy it to Settings/res/drawable


    Part Three-

    -Navigate to Settings/res/xml and open device_info_settings.xml.
    -Add this line--->
    ------------------------------------------------------------------------------------------------------------------------------------
    "<PreferenceScreen android:enabled="false" android:layout="@layout/logo" android:selectable="false" android:key="logo" />
    ------------------------------------------------------------------------------------------------------------------------------------
    Right below this line--->
    ------------------------------------------------------------------------------------------------------------------------------------
    "xmlns:android="http://schemas.android.com/apk/res/android">"
    ------------------------------------------------------------------------------------------------------------------------------------
    -It should look like this--->
    -----------------------------------------------------------------------------------------------------------------------------------
    <?xml version="1.0" encoding="utf-8"?>
    <PreferenceScreen android:title="@string/about_settings"
    xmlns:android="http://schemas.android.com/apk/res/android">
    <PreferenceScreen android:enabled="false" android:layout="@layout/logo" android:selectable="false" android:key="logo" />
    ------------------------------------------------------------------------------------------------------------------------------------


    Part four-

    -Now open cmd.exe and type this to recompile--->
    Code:
    apktool b Settings


    Part Five and most important!!

    -After the last command finishes, goto Settings/original and copy everything inside it to
    Settings/build/apk and replace the file if prompted
    -Then again run--->
    Code:
    apktool b Settings
    -Now you have your settings.apk in Settings/dist/
    -Copy it to /system/priv-app/Settings/ and replace the old file, set rw-r-r- permissions and reboot!


    NOTE- THIS HAS BEEN TESTED ON AOSP BASED LOLLIPOP ROM. I DO NOT GUARANTEE WORKING ON CUSTOMIZED ROMS LIKE TOUCHWIZ OR LG ROMS. ALL LINES MUST BE ADDED WITHOUT THE "(QUOTES) MARK AT THEIR STARTING AND ENDING.

    It should look like this--->
    FwRKd3D.png


    HIT THNX IF IT HELPED!!!