[Verizon Samsung Galaxy Note II] lacoursiere18:
Owner Profile Picture​

Here is a guide [MENTION=4986903]Deckoz2302[/MENTION] and I have kind of refined from a thread here.. This is changed for TW and anyone can use these files/changed them or include them in your ROM. Just hit thanks and give proper credits..

Original thread here and here

Credits to : [MENTION=4986903]Deckoz2302[/MENTION], [MENTION=4620325]b16h22[/MENTION] and [MENTION=5186263]nightwalker[/MENTION]

Ok so here we go..

Download the attached zip and extract them..View attachment 2642423

Then start off by decompiling SecSettings/Setting.apk

go to res/values/ids.xml... add these:

<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>

Next go to res/values/strings.xml.. add these:

<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 find the files you extracted and put the com folder in correct directory..

SecSetting/smali/com/blac

Now put the files from the res folder in correct directories..

res/layout/lacourb.xml

res/layout/profile_info.xml

res/drawable-hdpi/ (is where the png files go)

res/drawables/done.xml

res/drawable/pick_profile_picture.xml

Now go to where you want to have the option of changing the Profile Picture and Name. I chose to put it in general.xml which you will NOT have..So put it where you want it. Maybe user_settings.xml add this:

<PreferenceScreen android:title="Owner Profile Picture">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.blac.Profile" />
</PreferenceScreen>

Xml's will vary too depending on which one you pick so you need adjust the tag in the beggining of the line and the end of line depending on what it is calling. Example: <PreferenceScreen></PreferenceScreen> OR <headers></headers

Now go to res/xml/device_info_settings.xml and add:

<PreferenceCategory android:title="Device Info" />
<PreferenceScreen android:fragment="[COLOR="Red"]com.android.settings.deckoz.RomControl.General[/COLOR]" android:focusable="false" android:layout="@layout/lacourb" android:key="profile_pic" />

Pay special attention to the line in RED..This line defines where it takes you when the image is clicked when in About Device. SO you would NOT add the same directory as mine because you won't have it. But you DO need to define this because if DO NOT it will FC :rolleyes:

So say you want it to be under Users in SecSettings/General/Users.. you would add it like this:

<PreferenceCategory android:title="Device Info" />
<PreferenceScreen android:fragment="[COLOR="Red"]com.android.settings.UserSettings[/COLOR]" android:focusable="false" android:layout="@layout/lacourb" android:key="profile_pic" />

So now when you click the picture in About Device it will bring you to this directory in SecSettings..So you'll end up in SecSettings/General/Users;)

Now open your AndroidManifest.xml. At the bottom add these lines:

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

Okay now compile your SecSettings/Settings.apk..Then grab the newly compiled one and decompile it.. Make sure you keep the AndroidManifest.xml because you changed it..

Now go to the MY public.xml you downloaded and extracted and then open YOUR res/values/public.xml open it and keep it open..You need to have these open to compare ids..

Open your smali folder you added: com/blac/

You need to find all the ids in the smali and change them to match yours.. for example open com/blac/Profile.smali.. Search 0x7f0401ee

Under my public.xml this id: 0x7f0401ee is for "profile_info".. Yours will NOT be the same.. SO you need to search each id in the smali and then in MY public.xml, you downloaded, then search yours and changed the id's...

NOTE: Be free to changed whatever you want..directories, names of xml etc ect. Also, some things we are still working out.. When you add your name in Profile Name.. It does not show up here>>Click to Show>>

​

Also.. We are going to look into setting this up so that it reads your Google + account profile.. and then also links you there..:good: