Hello Mates!
Here is a Simple Guide to Enable multiuser support on Xperia 4.2+
Here wo Go.
Requirements:-
Basic knowledge of Reverse engineering (apktool and baksmali)
Notepad++ or any other text editor
Time and mind
Step 1:-
Decompile framework-res.apk
Step 2:-
Now Go to res/values/bools.xml
Here search for
Step 3:-
Change the boolean value to true
Save xml file
Step 4:-
Now Go to res/values/integers.xml
Here Search For
Step 5:-
Chnage the Integer value to 3
Save xml file
Step 6:-
Now go to res\layout-port\keyguard_host_view.xml
Look for this FrameLayout
Add this Line before </FrameLayout>
Now It will look like this
Save and close keyguard_host_view.xml
Step 7:-
Now download res.zip from attachments and paste the xml file to res\layout-port\
Step 8:-
Recompile framework-res.apk
Step 9:-
Now Decompile Settings.apk
Step 10:-
Go to res/xml/settings_headers.xml
Step 11:-
Search for this line
Step 12:-
Beside this line, you will find a android:id="@id/user_settings header
change the android:id to android:id="@id/amnix"
Step 13:-
Now add this line to res/values/ids.xml
Step 14:-
Recompile back Settings.apk
Step 15:-
Push new compiled settings and framework to system to adb or mannually
Step 16:-
If its work then Press Thanks Here
If it doesn't or you need any help post in same thread
Cheers
Enjoy
-AmniX
Here is a Simple Guide to Enable multiuser support on Xperia 4.2+
Here wo Go.
Requirements:-
Basic knowledge of Reverse engineering (apktool and baksmali)
Notepad++ or any other text editor
Time and mind
Step 1:-
Decompile framework-res.apk
Step 2:-
Now Go to res/values/bools.xml
Here search for
Code:
<bool name="config_enableLockScreenRotation">false</bool>
Step 3:-
Change the boolean value to true
Save xml file
Step 4:-
Now Go to res/values/integers.xml
Here Search For
Code:
<integer name="config_multiuserMaximumUsers">1</integer>
Step 5:-
Chnage the Integer value to 3
Save xml file
Step 6:-
Now go to res\layout-port\keyguard_host_view.xml
Look for this FrameLayout
Code:
<FrameLayout androidprv:layout_width="fill_parent" androidprv:layout_height="fill_parent" androidprv:layout_childType="widgets">
<include androidprv:layout_gravity="center" androidprv:id="@id/app_widget_container" androidprv:layout_width="fill_parent" androidprv:layout_height="fill_parent" layout="@layout/keyguard_widget_pager" />
</FrameLayout>
Add this Line before </FrameLayout>
Code:
<include layout="@layout/amnix_multi_user_selector" />
Now It will look like this
Code:
<FrameLayout androidprv:layout_width="fill_parent" androidprv:layout_height="fill_parent" androidprv:layout_childType="widgets">
<include androidprv:layout_gravity="center" androidprv:id="@id/app_widget_container" androidprv:layout_width="fill_parent" androidprv:layout_height="fill_parent" layout="@layout/keyguard_widget_pager" />
[COLOR="Red"]<include layout="@layout/amnix_multi_user_selector" />[/COLOR]
</FrameLayout>
Step 7:-
Now download res.zip from attachments and paste the xml file to res\layout-port\
Step 8:-
Recompile framework-res.apk
Step 9:-
Now Decompile Settings.apk
Step 10:-
Go to res/xml/settings_headers.xml
Step 11:-
Search for this line
Code:
android:fragment="com.android.settings.users.UserSettings"
Step 12:-
Beside this line, you will find a android:id="@id/user_settings header
change the android:id to android:id="@id/amnix"
Step 13:-
Now add this line to res/values/ids.xml
Code:
<item type="id" name="amnix">false</item>
Step 14:-
Recompile back Settings.apk
Step 15:-
Push new compiled settings and framework to system to adb or mannually
Step 16:-
If its work then Press Thanks Here
If it doesn't or you need any help post in same thread
Cheers
Enjoy
-AmniX
Attachments
Last edited: