RXS Moonbreakers presents proudly
HOW TO PORT XPERIA LOLIPOP SMALL APPS TO CM12

Hi HOW TO PORT XPERIA LOLIPOP SMALL APPS TO CM12
I made this guide that will help you to mod your ROM for support fully Small Apps from Xperia Z3 5.0.2 (Include taskswitcher plugin mod). Works only for CM12 and Maybe Cm12.1.
I know that it is to port very Hard and some users doenst port it easily therefore we will use original Z3 Systemui(Hardest progress) for it. But dont worry!!!
I will release it for all LP Devices too.
Small Apps Z3 5.0.2 is latest version of Sony, it bring us features like:
-Small Apps support.
-Favorite list (Called taskswitcher plugin view) of small apps and "floatings" widgets on 'Recents Apps' (Taskswitcher).
-Widget floating window supported. (Like if converted homescreen widgets to small apps).
-Multiple windows by default from Z3,
-Latest features of small apps ported from Xperia Z3 with Android 5.0.2 version.
-And much more to find.
Before flashing this Mod please make a BACKUP
Requiements
-own framework.jar
-own framework-res.apk
-own android.policy.jar
-Z3 Lolipop Systemui
Lets Start
1.Framework-res.apk
Decompile framework-res.apk
And open AndroidManifest.xml(framework-res.apk/AndroidManifest.xml)
Find this line "<uses-permission android:name="android.permission.CONFIRM_FULL_BACK UP"/>"
and Paste those lines above this line
Like this marked in red lines:
Then, go to res/values/strings.xml and add these lines at the end:
PHP Code:
<string name="permlab_smallapp">Show small apps</string>
<string name="permdesc_smallapp">Allow the application to display small apps on top of other applications.</string>
<string name="permlab_taskSwitcherPluginView">Provide plugin-view to the task-switcher</string>
<string name="permdesc_taskSwitcherPluginView">Allows the application to provide a plugin-view to the task-switcher.</string>
2.android.policy.jar
Decompile android.policy.jar
And open smali\com\android\internal\policy\impl\PhoneWindow Manager.smali
Find for this words " android.permission.SYSTEM_ALERT_WINDOW":
Like this marked in red:
[I mean after goto:goto_1 add small app lines (in red marked) in your android policy ]
PHP Code:
.line 1881
:sswitch_2
const-string v0, "android.permission.SYSTEM_ALERT_WINDOW"
.line 1882
const/16 v3, 0x18
aput v3, p2, v2
goto :goto_1
[B][COLOR="Red"] .line 1793
:sswitch_3
const-string v0, "com.sony.smallapp.permission.SMALLAPP"
.line 1794
goto :goto_1[/COLOR][/B]
[B][COLOR="Red"].line 1862
nop[/COLOR][/B]
:sswitch_data_0
.sparse-switch
0x7d2 -> :sswitch_2
0x7d3 -> :sswitch_2
0x7d5 -> :sswitch_1
0x7d6 -> :sswitch_2
0x7d7 -> :sswitch_2
0x7da -> :sswitch_2
0x7db -> :sswitch_0
0x7dd -> :sswitch_0
0x7e7 -> :sswitch_0
0x7ee -> :sswitch_0
0x7ef -> :sswitch_0
[B][COLOR="Red"] 0xbb5 -> :sswitch_3[/COLOR][/B]
[B][COLOR="Red"] 0xbb6 -> :sswitch_3[/COLOR][/B]
.end sparse-switch
.end method
3.framework.jar
Decompile framework.jar
Open folder smali2/com/
Download this zip and extract it in there
Recompile it
4.Systemui
Please go to this page and download Systemui flashable.zip or Skip this step and go to 5.step
[You can add Smallapp resources and your frameowork files in this zip and flash it or i have prepared a flashable zip in next step]
5.Flash Section
Download this other Smallapp resources(flashable zip) and add your framework files in framework folder(android.policy.jar,framework-res.apk,framework.jar)
Flash it.
Credits
@lukakas
@Kevin-0100
@sandy7
@STRYDER~007
One security warning long connected with the course of medications will
RépondreSupprimercertainly be turned around, the FDA claimed.
To ensure that other folks and your network cannot connect, adjust the default
RépondreSupprimeradministrative password of the switch into a new password.