Affichage des articles dont le libellé est Easily. Afficher tous les articles

Won't it be wonderful, if one can keep track of family members, kids, loved ones and employees at the comfort of home. All that they will need is an easy-to-download application on their smartphones. These applications run on both the Android and iOS. It is now easy to non-intrusively track phones via GPS, see target's message inbox, stay updated about the call details and keep a vigil on the employees' mail. These applications are easy to install and can be kept hidden. This makes the use easy and hassle-free.





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

Hi
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



<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.SMALLAP P" android:protectionLevel="dangerous"/>
<permission android:description= @String/permdesc_taskSwitcherPluginView" android:label= @String/permlab_taskSwitcherPluginView" android:name="com.sonymobile.permission.TASK_SWITC HER_PLUGIN_VIEW" android:protectionLevel="signatureOrSystem"/>
<permission android:name="com.sonymobile.permission.ACCESS_BEA CON_MANAGER" androidrotectionLevel="system|signature" />



Like this marked in red lines:



<permission android:label= @String/permlab_serialPort" android:name="android.permission.SERIAL_PORT" android:protectionLevel="system|signature" android:description= @String/permdesc_serialPort" />
<permission android:label= @String/permlab_accessContentProvidersExternally" android:name="android.permission.ACCESS_CONTENT_PR OVIDERS_EXTERNALLY" android:protectionLevel="signature" android:description= @String/permdesc_accessContentProvidersExternally" />
<permission android:label= @String/permlab_updateLock" android:name="android.permission.UPDATE_LOCK" android:protectionLevel="signatureOrSystem" android:description= @String/permdesc_updateLock" />
<permission android:name="com.sony.smallapp.permission.CONTROL _SMALLAPP" android:protectionLevel="system|signature" />
<permission android:label= @String/permlab_smallapp" android:name="com.sony.smallapp.permission.SMALLAP P" android:protectionLevel="dangerous" android:description= @String/permdesc_smallapp" />
<permission android:label= @String/permlab_taskSwitcherPluginView" android:name="com.sonymobile.permission.TASK_SWITC HER_PLUGIN_VIEW" android:protectionLevel="signatureOrSystem" android:description= @String/permdesc_taskSwitcherPluginView" />
<permission android:name="com.sonymobile.permission.ACCESS_BEA CON_MANAGER" android:protectionLevel="system|signature" />

<uses-permission android:name="android.permission.CONFIRM_FULL_BACK UP" />
<application android:label= @String/android_system_label" android:icon="@drawable/ic_launcher_android" android:allowClearUserData="false" android:hasCode="false" android:persistent="true" android:process="system" android:backupAgent="com.android.server.SystemBack upAgent" android:killAfterRestore="false" android:supportsRtl="true">
<activity android:theme="@style/Theme.Holo.Dialog.Alert" android:name="com.android.internal.app.ChooserActi vity" android:multiprocess="true" android:excludeFromRecents="true" android:finishOnCloseSystemDialogs="true">
<intent-filter>
<action android:name="android.intent.action.CHOOSER" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity android:theme="@style/Theme.Holo.Dialog" android:label= @String/heavy_weight_switcher_title" android:name="com.android.internal.app.HeavyWeight SwitcherActivity" android:process=":ui" android:excludeFromRecents="true" android:finishOnCloseSystemDialogs="true" />





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> 









Save your modifications and recompile it.

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 









Save your modifications and recompile it.

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