[HOW TO] Simply add Custom Banner in "about phone" section
What we need:
! JDK/JRE (last version):
(after installing jdk, add new variable if needed)
(Dev-Host - [Window XP_7_8][GB_ICS_JB] Apktool and baksmaling + Signer v2 by ibanez7.zip - The Ultimate Free File Hosting / File Sharing Service
Follow this guide to learn using and setup apktool http://forum.xda-developers.com/show....php?t=2213985
Don't worry, i will provide all commands you need for our modification
* FILE WE NEED TO ADD BANNER IN SETTINGS:
- trasparent Banner template
, that you will modify with Gimp, Paint.net...etc etc. to add your preferred logos, writings etc etc.
, that you will put in res/layout
- Settings.apk (from /system/app) & framework-res.apk (from /system/framework) from Your ROM
1) Copy the framework-res.apk and Settings.apk to apktool folder
First off, you need to download a copy of the .zip file of the ROM you’re using onto your computer OR transfer a copy of the framework-res.apk and Setttings.apk to your computer from your G-Nex. Once you have located these files, you need to place both files into the apktool folder that you unzipped onto your preferred location earlier:
2) Open cmd window in your apktool folder
Simply hold down the Shift key and right-click a folder. The context menu will contain an entry, "Open command window here”
3) Here we start decompile/compile (in red you find apktool commands that you should learn )
IMPORTANT NOTE: *NEVER CLOSE THE COMMAND PROMPT DURING DECOMPILATION/COMPILATION* :P
Once the command window has opened; you need to install the framework-res.apk… simply and easily type the following command:
apktool if framework-res.apk
You will see something like THIS:
4) Decompile Settings.apk:
I: Framework installed to: C:\Users\username\apktool\framework\1.apk
We will now decompile the Settings.apk file. To do this, type the following command:
apktool d Settings.apk
We will see something like this:
I: Loading resource table…
I: Decoding file-resources…
I: Decoding values*/* XMLs…
I: Copying assets and libs…
After you see that, you should notice that a new file has been added to the apktool folder, which should be named “Settings”. Inside that folder, you will observe the following folders/files; assets; build; dist; res; AndroidManifest.xml; apktool.yml. The files that we are worried about are in the “res” folder.
5) Add Custom Banner
1) After you've complete Your custom banner, open the “res” folder and then navigate to the “drawable” folder and copy&paste Your custom banner here:
2) Now open the layout folder in /res folder and copy&paste our logo_nexus.xml
3) Now we need to modify a .xml file using Notepad++. Navigate to XML folder and search for "device_info_settings.xml" and open it with Notepad++:
... and copy this line to device_info_settings.xml:
<PreferenceScreen android:layout="@layout/logo_nexus" android:key="od_logo" />
It should looks like this:
(thanks to APatte111 for this important part of the guide):4) We are now going to compile back the Settings
You will see this in the command prompt:
I:Building APK file… etc etc.
Once this is complete, navigate back to the apktool folder and to the Settings folder.
Nowwe need to navigate to
and look for the following files:
Now this is important
, we need to replace this file with the AndroidManifest.xml file from the original unzipped Settings.apk located in apktool folder.
So open the original Settings.apk with 7-zip, and copy “META-INF” and “AndroidManifest.xml”.
Once you have those copied from the original unzipped Settings.apk, relocate back to the apktool folder/Settings/build/apk and paste both of them. If asked to replace, CLICK YES OR REPLACE ON ALL WARNINGS THAT POP UP!!!!
Now we need to back out to the Settings folder in apktool and click on the folder that is named “dist” where the freshly compiled SettingsI.apk is located once we type build command in the command prompt). Once inside the “dist” folder, you will see a Settings.apk file. DELETE IT
We never use the first Settings.apk that we compile, because we needed to added the META-INF and AndroidManifest.xml files for signing purposes. Once you have the 1st compiled Settings.apk deleted, return to the command prompt and enter the compile command again and compile a 2nd Settings.apk.
The 2nd Settings.apk will appear in the “dist” folder and is the usable Settings.apk.
(thanks to APatte111 for this important part of the guide)
• Now drag the Settings.apk freshly file into this Update.zip file to place it under /system/App... You can also use it to revert changes