[Sony Cross-Device General] slipsystem:
Yes I got this to work on cm12.1 but I did some things different. What type of errors are you getting?

this is what I did

1.Framework-res.apk(contained spaces so copying and pasting doesn't work)

Decompile Framework-res.apk

open \framework-res\AndroidManifest.xml

add this code above

<uses-permission android:name="android.permission.CONFIRM_FULL_BACKUP"/>

<permission android:name="com.sony.smallapp.permission.CONTROL_SMALLAPP" android:protectionLevel="system|signature"/>
<permission android:description="@string/permdesc_smallapp" android:label="@string/permlab_smallapp" android:name="com.sony.smallapp.permission.SMALLAPP" android:protectionLevel="dangerous"/>
<permission android:description="@string/permdesc_taskSwitcherPluginView" android:label="@string/permlab_taskSwitcherPluginView" android:name="com.sonymobile.permission.TASK_SWITCHER_PLUGIN_VIEW" android:protectionLevel="signatureOrSystem"/>
<permission android:name="com.sonymobile.permission.ACCESS_BEACON_MANAGER" android:protectionLevel="system|signature"/>

open \framework-res\res\values\strings.xml

and add these lines at the end before

</resources>

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

Save your modifications and recompile it.

2.android.policy.jar(my PhoneWindowManager.smali was different)

Decompile android.policy.jar

open \android.policy\com\android\internal\policy\impl\PhoneWindowManager.smali

find this "android.permission.SYSTEM_ALERT_WINDOW"

mine looked like this

const-string v0, "android.permission.SYSTEM_ALERT_WINDOW"

const/16 v3, 0x18

aput v3, p2, v2

goto :goto_2a

:sswitch_data_42
.sparse-switch
0x7d2 -> :sswitch_3b
0x7d3 -> :sswitch_3b
0x7d5 -> :sswitch_36
0x7d6 -> :sswitch_3b
0x7d7 -> :sswitch_3b
0x7da -> :sswitch_3b
0x7db -> :sswitch_2a
0x7dd -> :sswitch_2a
0x7e7 -> :sswitch_2a
0x7ee -> :sswitch_2a
0x7ef -> :sswitch_2a
0x7f0 -> :sswitch_2a
.end sparse-switch
.end method

so i modified like this

const-string v0, "android.permission.SYSTEM_ALERT_WINDOW"

const/16 v3, 0x18

aput v3, p2, v2

goto :goto_2a

[COLOR="red"]	:sswitch_2d
const-string v0, "com.sony.smallapp.permission.SMALLAPP"

goto :goto_2a[/COLOR]

:sswitch_data_42
.sparse-switch
0x7d2 -> :sswitch_3b
0x7d3 -> :sswitch_3b
0x7d5 -> :sswitch_36
0x7d6 -> :sswitch_3b
0x7d7 -> :sswitch_3b
0x7da -> :sswitch_3b
0x7db -> :sswitch_2a
0x7dd -> :sswitch_2a
0x7e7 -> :sswitch_2a
0x7ee -> :sswitch_2a
0x7ef -> :sswitch_2a
0x7f0 -> :sswitch_2a
[COLOR="Red"]	0xbb5 -> :sswitch_2d
0xbb6 -> :sswitch_2d[/COLOR]
.end sparse-switch
.end method

notice that the goto: after "com.sony.smallapp.permission.SMALLAPP" is the same goto as a the goto above :sswitch_2d

and that the :sswitch_2d was not in the origonal method if you already have a :sswitch_2d make it something else like :sswitch_3

Save your modifications and recompile it.

3.framework.jar(smali code did not work for me)

Decompile your framework.jar

Download the attached framework.zip and extract it.

copy all the files to your framework

recompile

4.Systemui(superusermod is needed)

download the systemUI from

http://xdaforums.com/crossdevice-dev/sony/port-official-xperia-z3-lollipop-t3104027

and follow post for to make superuser mod

5.Flash Section (Permissions were in the wrong place)

Download this other Smallapp resources([CM12][RXS Moonbreakers]Xperia Lolipop Small Apps-by Gamzekal.zip) and add your framework files in framework folder(android.policy.jar,serivices.jar(step 4),framework-res.apk,framework.jar)

and Flash it. then flash systemui you downloaded in step 4