Anyone knows how this app was made
http://fs1.d-h.st/download/00090/J60/SplitViewLauncher.apk
I got it from the thread of the first split view port, but it doesn't work on this version (using paedus 7.7)
Opening the app is supposed to trigger split view to start
Sent from my LG-D802
I decompiled it to Java code. Here is the interesting line:
Code:
sendBroadcast(new Intent("com.lge.splitwindow.LAUNCH"));
It's just an Intent broadcast.
Sadly I don't know how to intercept system intents that are probably sent directly to the dualwindow/splitwindow app or if it's even possible. I tried different things like:
com.lge.splitwindow.LAUNCH (the original, just to make sure)
com.lge.dualwindow.LAUNCH (although im pretty convinced this is wrong)
com.lge.intent.action.FLOATING_WINDOW_ENTER_LOWPRO FILE (because this showed up in adb logcat)
and variations of the first two.
I tried to get through the decompiled output of the dualwindowservice.apk but it seems to me that it's not complete or partly wrong. There are numerous intent strings and an extra string, but they are never created, just received and analyzed (or I just don't have enough understanding of the smali code). In my opinion there has to be another location where this Intent is created to start up the dual window app the correct way. It could be in the software buttons code, but I don't know if they are a dedicated app or not. There is also some library mentioned in the manifest file called "com.lge.zdi.splitwindow" maybe thats another spot to look out for.
Maybe there is some kind of extra missing to the original intent to make it complete, but as I said before, I can't find code where those intents are actually created and broadcasted, not just received, so it makes it a pretty impossible guessing game...
Other Strings I found are:
com.lge.settings.ACTION_DUAL_WINDOW
com.lge.intent.extra.SPLIT_WINDOW_STARTKEY
com.lge.intent.extra.SPLIT_WITH_DRAWER
com.lge.android.intent.action.SPLIT_WINDOW
I would try to see through the code for the software buttons, but I don't know how to do that as there is no app to decompile (or is there?). Can anybody help?
EDIT: I just realized that there is smali code in his app too, totally didn't notice that before :angel:
So I guess his app is somehow emulating parts of the dualwindowservice or something similar to get it to open the dualwindow app?