I made this guide that will help you to mod your ROM for support fully Small Apps from Xperia Z1 4.2.2 (Include taskswitcher plugin mod). Works only for CM10.1 and maybe 4.2.2 based devices (Confirmed for working).
Small Apps Z1 4.2.2 is latest version of Sony, it bring us new features like:
Small Apps support.
Favourite 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).
Then, go to res/values/strings.xml and add these lines at the end:
<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>
<string name="permlab_smallapp">Small application overlay</string>
<string name="permdesc_smallapp">Allows running movable small applications on top of other applications.</string>
Save your modifications and recompile it.
Now we go to most difficult part: Porting TaskSwitcher in SystemUI.apk.
You'll add this line with next id marked in blue that you find the last attr type in your public.xml (Don't duplicate "hex ids"):
<public type="attr" name="lookupKey" id="NEXT HEX ID PUT HERE" />
You will do the same with others types, add these lines as instructed below marked in red and put your next id marked in blue:
...lines to skip until last layout type... (Don't copy this line)
<public type="layout" name="plugin_view" id="NEXT HEX ID PUT HERE" />
...much lines to skip until last id type...(Don't copy this line)
<public type="id" name="recents_inject_custom_view" id="NEXT HEX ID PUT HERE" />
<public type="id" name="recents_layout" id="NEXT HEX ID PUT HERE" />
<public type="id" name="recents_pluginview_container" id="NEXT HEX ID PUT HERE" />
5 - Go to res/layout/ (Check Resources files attached in OP for copy necessary files.) plugin_view.xml - paste this file from resource/res-files/layout/ status_bar_recents_panel.xml - paste and replace this file from resource/res-files/layout/
6 - Go to res/layout-land status_bar_recents_panel.xml - paste and replace this file from resource/res-files/layout-land/.
7 - Go to smali/com/android/systemui/ - paste and replace all files from 'resources/smali-files/R/' folder.
8 - Go to smali/com/android/systemui/recent/ - paste and replace all files from 'resources/smali-files/RecentsActivity/' folder.
10 - Go to smali/com/android/systemiu/recent/ and open RecentsActivity.smali
You'll replace these names with "hex id" from res/values/public.xml, it need to match the same name for replace "hex id", for example recents_pluginview_container is marked in blue that you find in RecentsActivity.smali:
-Based from latest small apps taskswitcher plugin from Xperia Z1 -Multiple windows by default from Z1, watch this vídeo: http://www.youtube.com/watch?v=PfspA0-YcYY
-Latest small apps from Xperia Z1 system
-Fixed rotate orientation close small app
-Improvements of small app manager code and library.
-Add step 12 of SystemUI.apk step 5
If you have difficulty to port SystemUI.apk follow this video guide, it will help you to mod
(Recommended to use Virtuous Ten Studio)
If you liked my work, just click on Thanks button.
Credits: Thanks sandy7 for provide this tutorial gave me possibility to port small app 4.2.2 version only. Me (Lukakas) for port Taskswitcher plugin and latest version of Small Apps (Xperia Z1 Android 4.2.2)
Sony for create this awesome feature. Serajr for some tips.
I Have to decompile but i cant find the files (android.policy.jar , framework.jar , framework-res.apk) in your attachments that you said you've modified them to support 4.2.2 "android.policy.jar, framework.jar and framework-res.apk port is based from @sandy7 guide with some updates made by me for support 4.2.2 small app version" ... i am noob if somebody can upload a 'Ready to flash' zip that would be so helpful as we don't have experience in decompiling & recompiling
-and BTW Thank you very much for this awesome guide
Phone History :
1)- Samsung SGH-x506...............2)- Nokia 6600
3)- Nokia 5230.............................4)- Samsung S5230 star
5)- Nokia N97..............................6)- Nokia 701
7)- SonyEricsson Xperia Arc S......8)- SonyEricsson Xperia Play
9)- HTC Evo 3D............................10)- .....?!
I’ve said it before, and I’ll say it again. Despite its limitations, the … more
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer?