Hello Droiders!! The is a Tutorial About How To Add Lollipop Like Changeable Owner Icon In Statusbar Expand.
Disclaimer:I or XDA Developers will not be responsible for any damage of your Device.A Backup is highly recomanded.
:::NOTE:::
- You Signature vefification must be disabled.you can disable it by using `Lucky Patcher` or editing your `services.jar`.
- You need to be "very patient" and have a lot of time as this is a time consuming tutorial.
- I won't explain how to do things like pushing the apps, setting the permission, or how to get a value in public.xml and use that to change something in a certain smali.
You can Try the LProfile_demo.apk from the attachment.
Things You Will Needed:
1) SystemUI.apk
2) Notepad++ or any other text editor.
3) Apktool 1.5.x/Any Other tool to deconlmpile apk.
4) Brain.jar Patient.apk :p
STEP 1:
Decompile your Systemui.apk
Download the LProfile.zip from the attachment,extract it and merge it into your decompiled systemui.
Open statusbar_expand_header.xml in /res/layout and compare with this:
Open AndroidManifest.xml
add this at the bottom before </application>
AndroidManifest.xml for compare
Open Styles.xml in /res/values and add this at the bottom before </resources>
Open SystemUIService.smali in /smali/com/android/systemui and find the method:
And add this below the method:
Now recompile your SystemUI.apk and Sign it.Then Decompile it again.
STEP 2:
Open LProfile.smali in /smali/bloody/badboy/here
Search-
0x7f030000
And replace with the value of
<public type="layout" name="lprofile_picture" from your public.xml
Do the same for
0x7f060001 replace with <public type="id" name="photo_picker_cover"
0x7f060000 replace with <public type="id" name="image_cover"
0x7f020001 replace with <public type="drawable" name="default_user"
Open LProfilePicture$1.smali in smali/bloody/badboy
0x7f020001 replace with <public type="drawable" name="default_user"
Open LProfilePicture$1.smali in smali/bloody/badboy
0x7f020001 replace with <public type="drawable" name="default_user"
0x7f06000 replace with <public type="id" name="name_edit_cover"
Now recompile your systemui.apk sign and push it into system/app/ and reboot.
If You Like it then Hit My Thanks Button.It will not cost but it will motivate me. :good: :good:
Disclaimer:I or XDA Developers will not be responsible for any damage of your Device.A Backup is highly recomanded.
:::NOTE:::
- You Signature vefification must be disabled.you can disable it by using `Lucky Patcher` or editing your `services.jar`.
- You need to be "very patient" and have a lot of time as this is a time consuming tutorial.
- I won't explain how to do things like pushing the apps, setting the permission, or how to get a value in public.xml and use that to change something in a certain smali.
You can Try the LProfile_demo.apk from the attachment.
Things You Will Needed:
1) SystemUI.apk
2) Notepad++ or any other text editor.
3) Apktool 1.5.x/Any Other tool to deconlmpile apk.
4) Brain.jar Patient.apk :p
STEP 1:
Decompile your Systemui.apk
Download the LProfile.zip from the attachment,extract it and merge it into your decompiled systemui.
Open statusbar_expand_header.xml in /res/layout and compare with this:
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="60.0dip" android:baselineAligned="false" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<RelativeLayout android:orientation="vertical" android:paddingLeft="16.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_centerVertical="true">
<com.android.systemui.statusbar.policy.CustomClock android:textSize="16.0sp" android:textStyle="normal" android:textColor="#ffffffff" android:id="@id/custom_clock" android:layout_width="wrap_content" android:layout_height="wrap_content"/>
<com.android.systemui.statusbar.policy.DateView android:textSize="14.0dip" android:textColor="#b2ffffff" android:id="@id/date" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/custom_clock"/>
<com.bloody.badboy.DateView android:textSize="14.0sp" android:textStyle="normal" android:textColor="#b2ffffff" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/custom_clock"/>
</RelativeLayout>
<LinearLayout android:gravity="right|center" android:orientation="horizontal" android:paddingRight="5.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1.0" android:layout_alignParentRight="true">
</LinearLayout>
<LinearLayout android:layout_width="27.0dip" android:layout_height="27.0dip" android:layout_marginRight="16.0dip">
<bloody.badboy.LProfilePicture android:id="@id/image" android:background="@drawable/fmd_user" android:layout_width="27.0dip" android:layout_height="27.0dip" android:scaleType="centerCrop" android:onClick="LProfile" android:contentDescription="@null"/>
</LinearLayout>
</LinearLayout>add this at the bottom before </application>
Code:
<activity android:theme="@style/Theme.LProfile" android:name="com.android.settings.Profile">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity> Open Styles.xml in /res/values and add this at the bottom before </resources>
Code:
<style name="Theme.LProfile" parent="@*android:style/Theme.Holo.Light.Dialog">
<item name="android:windowBackground">@*android:color/transparent</item>
<item name="android:windowNoTitle">true</item>
</style>Code:
# virtual methods Now recompile your SystemUI.apk and Sign it.Then Decompile it again.
STEP 2:
Open LProfile.smali in /smali/bloody/badboy/here
Search-
0x7f030000
And replace with the value of
<public type="layout" name="lprofile_picture" from your public.xml
Do the same for
0x7f060001 replace with <public type="id" name="photo_picker_cover"
0x7f060000 replace with <public type="id" name="image_cover"
0x7f020001 replace with <public type="drawable" name="default_user"
Open LProfilePicture$1.smali in smali/bloody/badboy
0x7f020001 replace with <public type="drawable" name="default_user"
Open LProfilePicture$1.smali in smali/bloody/badboy
0x7f020001 replace with <public type="drawable" name="default_user"
0x7f06000 replace with <public type="id" name="name_edit_cover"
Now recompile your systemui.apk sign and push it into system/app/ and reboot.
If You Like it then Hit My Thanks Button.It will not cost but it will motivate me. :good: :good: