I knew the code to be added, but I was adding it in wrong file, then i figured it out and mod was complete
I looked back and remembered that Sniper Killer suggested me to try custom layout and smali editing. I knew, it was nothing to do with smalis, duh. Just a simple ImageView Tag it was. But the Custom Layout thing was true
Guide
1. Download the SettingsSource.zip
2. Decompile your Settings.apk
3. Extract contents of SettingsSource.zip to respective folders in Settings.apk
4. Open /res/xml/device_info_settings.xml
You'll see several <Preference android:title tags
Add this just a line above the first Preference tag:
Code:
<PreferenceCategory android:layout="@layout/areebisawesome" android:key="blah" android:title="" />
Finally, it will look like this
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:key="blah" android:title="" />
<Preference android:title="@string/model_number" android:key="device_model" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
Save the file
5. Now,go to /res/drawable/
There, you'll see cosmic.png Change it to any png of size 320x200 You can change this size description in /res/layout/areebisawesome.xml
6. Recompile the apk
7. Enjoy
Preview in the last.. ;)
SettingsSource.zip
And if you want a method for changing the image on clicking, my I found a very easy to follow way for that :
http://forum.xda-developers.com/show...1&postcount=36
Like us on facebook link:--
Http://www.facebook.com/micromaxu2
Source :- xda
Thanx to:- me (vishal kaushik)
0 comments:
Post a Comment