(guide)How to add Owner pic in settings About Panel

Status
Not open for further replies.
Search This thread

Droidbuster

Senior Member
Jan 20, 2014
166
332
www.facebook.com
Here is My guide how to add Owner pic in settings about Panel


3pspMJ4.jpg

Always backup any original file before modifying. If your phone doesn't boot push that backup to your phone.**
REQUIRED:
--Android SDK
--APK Tool
--WinZIP
--NOTEPAD


STEPS:-
-- Download the attached ZIPowner.zip
--Decompile your Setting.apk folder

--and replace mine res folder with yours

Code:
<PreferenceCategory android:layout="@layout/preference_category" android:title=" INFO  " />
  <Preference android:focusable="false" android:clickable="false" android:layout="@layout/lenox_pic" />
Below this line

xmlns:android="http://schemas.android.com/apk/res/android">
IT will look like this



Z7q5QJT.png


Open res/values/ids.xml and add these at the end

<item type="id" name="image">false</item>
<item type="id" name="owner">false</item>
<item type="id" name="linear_layout">false</item>
<item type="id" name="profile_pic">false</item>
<item type="id" name="layout1">false</item>
<item type="id" name="change_picture_text">false</item>
<item type="id" name="photo_picker">false</item>
<item type="id" name="linear_layout1">false</item>
<item type="id" name="layout2">false</item>
<item type="id" name="name_field">false</item>
<item type="id" name="name_edit">false</item>
<item type="id" name="profile">false</item>
<item type="id" name="profile_name">false</item
Open strings.xml and add these strings
<string name="change_pic">Change profile picture</string>
<string name="profile_pic">SET PROFILE PICTURE</string>
<string name="profile_name">CHANGE PROFILE NAME</string>

Now recompile the apk and decompile it again. Now open the public.xml and find these ids.These may not be the same in your apk



-- Now, Copy the "b16h22" folder to \smali\com\(here)

Below are the most imp. steps:
This step is for matching the codes found in public.xml with that in smali foder.

1. Open each Smali files one by one which you copied now.
2. Also open Open the PublicPre.xml provided by me and Public.xml of ur current ROM in which u had registered the ID's.

3. In your smali files, find the id codes like 0x.......
4.Search dis in PublicPre.xml.
5.Copy the Item name related to dis code and search dis in ur current Public.xml.
6. And finally copy the Id of that ITEM name and replace with that in your Smali file.
7. Do the above steps with each ID codes in each Smali..

Now open the res/xml/ settings.xml

and add this iconpreferencescreen.You can add it anywhere you want.I'm assuming you have basic knowledge about preference xmls.

<com.android.settings.IconPreferenceScreen android:title="Owner Profile" settings:icon="@drawable/ic_settings_owner">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.b16h22.Profile" />
</com.android.settings.IconPreferenceScreen>

Now open the res/xml/ Open AndroidManifest.xml and add this



[QUOTE]<activity android:label="@string/change_pic" android:name="com.b16h22.Profile">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>

[/QUOTE]
10. Now you are done with modifications. Recompile and sign the settings.apk with kitchen

Here is the last step

you have to disable signature check otherwise settings will not work

Here is My Guide
Decompile /system/framework/services.jar,

open com/android/server/packagemanagerservice.smali, look for

.method checkSignaturesLP([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
.registers 10
.parameter "s1"
.parameter "s2"

.prologue
.line 1921

and add the red part


method checkSignaturesLP([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
.registers 10
.parameter "s1"

.parameter "s2"

.prologue
.line 1921
const/4 v6, 0x0
return v6

Credit
b16h22

MARK

if u like my guide then press thanks button







 
Last edited:

abhi922

Senior Member
Jul 29, 2012
1,331
4,532
Toronto
very nice mod.... i will sure include this in my rom....& ofcourse ur & author's credit will be there...
 

limyuyang

Senior Member
Jun 7, 2013
651
227
Android Planet
sir did not try on 4.1 android and other high version!!

but you can try !!
and tell me result

and bro i am using 2.3.5:victory:

Hmm.....okay. I guess this mod will only work on GB because this code is only for GB, not for JB.

Code:
<com.android.settings.IconPreferenceScreen android:title="Owner Profile" settings:icon="@drawable/ic_settings_owner">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.b16h22.Profile" />
</com.android.settings.IconPreferenceScreen>
 

Droidbuster

Senior Member
Jan 20, 2014
166
332
www.facebook.com
Hmm.....okay. I guess this mod will only work on GB because this code is only for GB, not for JB.

Code:
<com.android.settings.IconPreferenceScreen android:title="Owner Profile" settings:icon="@drawable/ic_settings_owner">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.b16h22.Profile" />
</com.android.settings.IconPreferenceScreen>


sir

may be it will work

Code:
  <header android:icon="@drawable/ic_settings_owner" "  android:title="Owner Profile" >
 <intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.b16h22.Profile" / />
    </header>
 

takuhii

Senior Member
Dec 12, 2010
874
120
Would it be worthwhile trying to create a collections of settings.apk files for various phones on various networks? Then the uninitiated, like myself, would be able to try this too :)
 
Last edited:
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 38
    Here is My guide how to add Owner pic in settings about Panel


    3pspMJ4.jpg

    Always backup any original file before modifying. If your phone doesn't boot push that backup to your phone.**
    REQUIRED:
    --Android SDK
    --APK Tool
    --WinZIP
    --NOTEPAD


    STEPS:-
    -- Download the attached ZIPowner.zip
    --Decompile your Setting.apk folder

    --and replace mine res folder with yours

    Code:
    <PreferenceCategory android:layout="@layout/preference_category" android:title=" INFO  " />
      <Preference android:focusable="false" android:clickable="false" android:layout="@layout/lenox_pic" />
    Below this line

    xmlns:android="http://schemas.android.com/apk/res/android">
    IT will look like this



    Z7q5QJT.png


    Open res/values/ids.xml and add these at the end

    <item type="id" name="image">false</item>
    <item type="id" name="owner">false</item>
    <item type="id" name="linear_layout">false</item>
    <item type="id" name="profile_pic">false</item>
    <item type="id" name="layout1">false</item>
    <item type="id" name="change_picture_text">false</item>
    <item type="id" name="photo_picker">false</item>
    <item type="id" name="linear_layout1">false</item>
    <item type="id" name="layout2">false</item>
    <item type="id" name="name_field">false</item>
    <item type="id" name="name_edit">false</item>
    <item type="id" name="profile">false</item>
    <item type="id" name="profile_name">false</item
    Open strings.xml and add these strings
    <string name="change_pic">Change profile picture</string>
    <string name="profile_pic">SET PROFILE PICTURE</string>
    <string name="profile_name">CHANGE PROFILE NAME</string>

    Now recompile the apk and decompile it again. Now open the public.xml and find these ids.These may not be the same in your apk



    -- Now, Copy the "b16h22" folder to \smali\com\(here)

    Below are the most imp. steps:
    This step is for matching the codes found in public.xml with that in smali foder.

    1. Open each Smali files one by one which you copied now.
    2. Also open Open the PublicPre.xml provided by me and Public.xml of ur current ROM in which u had registered the ID's.

    3. In your smali files, find the id codes like 0x.......
    4.Search dis in PublicPre.xml.
    5.Copy the Item name related to dis code and search dis in ur current Public.xml.
    6. And finally copy the Id of that ITEM name and replace with that in your Smali file.
    7. Do the above steps with each ID codes in each Smali..

    Now open the res/xml/ settings.xml

    and add this iconpreferencescreen.You can add it anywhere you want.I'm assuming you have basic knowledge about preference xmls.

    <com.android.settings.IconPreferenceScreen android:title="Owner Profile" settings:icon="@drawable/ic_settings_owner">
    <intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.b16h22.Profile" />
    </com.android.settings.IconPreferenceScreen>

    Now open the res/xml/ Open AndroidManifest.xml and add this



    [QUOTE]<activity android:label="@string/change_pic" android:name="com.b16h22.Profile">
    <intent-filter>
    <action android:name="android.intent.action.MAIN" />
    </intent-filter>
    </activity>

    [/QUOTE]
    10. Now you are done with modifications. Recompile and sign the settings.apk with kitchen

    Here is the last step

    you have to disable signature check otherwise settings will not work

    Here is My Guide
    Decompile /system/framework/services.jar,

    open com/android/server/packagemanagerservice.smali, look for

    .method checkSignaturesLP([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
    .registers 10
    .parameter "s1"
    .parameter "s2"

    .prologue
    .line 1921

    and add the red part


    method checkSignaturesLP([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
    .registers 10
    .parameter "s1"

    .parameter "s2"

    .prologue
    .line 1921
    const/4 v6, 0x0
    return v6

    Credit
    b16h22

    MARK

    if u like my guide then press thanks button







    1
    Hi @SK(SurajKumar), will this work on 4.1.2 jelly bean as well ? :)


    sir did not try on 4.1 android and other high version!!

    but you can try !!
    and tell me result

    and bro i am using 2.3.5:victory:
    1
    plz tell me, about guide multypanel settings for JB 4.1 Samsung Touchwiz

    I hope you come out with an update guide fir kitkat. Thanks though as this is fabulous

    Check out my thread for 4.1 to 4.4.Check owner profile in about phone bro.
    1
    This is nothing more than a copy and past thread that was stolen from @nightwalker

    Please check out the original thread here

    http://xdaforums.com/showthread.php?t=2591100


    Thread Closed