[Sony Ericsson Xperia Neo, Pro] sandy7:
How to add xperia S/T lockscreen and small apps

Xperia S/T Lockscreen TUT​

requirements.

framework-res.apk

android.policy.jar

notpad++

winrar

knowledge of how to decompile and recompile

If u guys want a good tut for de/recompiling here is good guide by my good friend Stanlin salu

http://xdaforums.com/showthread.php?t=2011254

1-STEP

decompile framework-res.apk

navigate to res/values

and open strings.xml

here add these two at the end (see pic for reference.) and save it

<string name="permlab_external_lockscreen">xperia lockscreen</string>
<string name="permdesc_external_lockscreen">xperia loxkscreen</string>

2-STEP

in the same values folder

open public.xml

and these strings just below the line show in the below pic and save it

<public type="string" name="permlab_external_lockscreen" id="0x01040525" />
<public type="string" name="permdesc_external_lockscreen" id="0x01040526" />

IMPORTANT

0x01040525 ,0x01040526 these are called hex codes and should in a proper order

for ex from the above codes the last 4 hex codes should in this way

0x01040524

0x01040525

0x01040526

0x01040527

3-STEP

come back to main framework-res folder

and open AndroidManifest.xml

and add these line just below line shown in the pic and save it

<permission android:label="@string/permlab_external_lockscreen" android:name="com.sonyericsson.permission.EXTERNAL_LOCKSCREEN" android:protectionLevel="signatureOrSystem" android:description="@string/permdesc_external_lockscreen" />

4-STEP

recompile the framework-res.apk

5-STEP

decompile android.policy.jar

navigate to com\android\internal\policy\impl\

and add this ExternalLockScreen.smali file there (smali file is provided by in the resources zip attached in this post)

and recompile it back

6-STEP

i have attached a flashable zip for format in this post below

put the following files it

uxpnxtlockscreen.apk (provided in resorces zip by me)

settings.apk (which supports XS LS , which can be found easily in this forum) (or may be later ill tell how to add them in ur settings)

android.policy.jar

framework-res.apk

zip and flash it..and ur done ...

HOW TO ADD SMALL APPS
​

1-STEP

Decompile framework-res.apk

and navigate to res/values/strings.xml

and add these 4 lines at the end as shown in the pic. and save it

<string name="permlab_smallapp">Small application overlay</string>
<string name="permdesc_smallapp">Allows running movable small applications on top of other applications.</string>
<string name="permlab_externalTaskSwitcher">Start as an external task switcher</string>
<string name="permdesc_externalTaskSwitcher">Allows the application to be an external task switcher replacing the native task switcher</string>

2-STEP

in the same values folder open public.xml

and add these 4 lines below the line shown in the pic and save it

<public type="string" name="permlab_smallapp" id="0x01040550" />
<public type="string" name="permdesc_smallapp" id="0x01040551" />
<public type="string" name="permlab_externalTaskSwitcher" id="0x01040552" />
<public type="string" name="permdesc_externalTaskSwitcher" id="0x01040553" />

3-STEP

come back to main framework-res folder

and open AndroidManifest.xml

now add this line as shown in the pic

<permission android:label="@string/permlab_externalTaskSwitcher" android:name="com.sonymobile.permission.EXTERNAL_TASK_SWITCHER" android:protectionLevel="signatureOrSystem" android:description="@string/permdesc_externalTaskSwitcher" />

and this line as shown in pic .and save it

<permission android:label="@string/permlab_smallapp" android:name="com.sony.smallapp.permission.SMALLAPP" android:protectionLevel="dangerous" android:description="@string/permdesc_smallapp" />

Now recompile the framework-res.apk

4-STEP

decompile framework.jar

and the whole sony folder which consists of small apps samli (i have provided in small apps resources.zip )

recompile it

done

5-STEP

u need some framework files and some permissions files ( provided in resources.zip)

1-etc/permissions

2- small app framework jar file

3-small apps supported services.

4-the small apps

6-STEP

now all mods are ready only thing need is small apps (which i have provided in small apps resources.zip)

and also make u use the small apps supported susyemUI.apk (which can be found in this forum)

put all these files in the flashable zip formate i have provided below..

and enjoy ur small apps

CREDITS:

AOEN WORLD -for resources.