• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[MOD] [Xposed] [V3.1] Multiwindow [No flashing] [22-01-13]

Status
Not open for further replies.
Search This thread

_jis_

Senior Member
Feb 5, 2012
1,469
529
"Unfortunately, com.sec.android.app.FlashBarService has stopped." - I have got this message (snapshot attached) after proper install and activation XposedMultiWindow.apk module.

(1) No problem, it can happen, so I cleared data for com.sec.android.app.FlashBarService to get it work after the next reboot. Then it works beautifully and without any problem on my Note II 4.1.2 stock ROM. But another day after selecting some new shortcuts to tray and another reboot, the same error was back again, when I first time long press Back button to show MultiWindow tray. So I must repeat whole procedure from the point (1).

I did some testing and I have found the culprit of this error. I would like to test Chrome and Chrome Beta side to side. But this is not possible with Samsung MultiWindow feature. Let see what happens with flash_bar_list.xml file when I put on the tray just Chrome and Chrome Beta shortcuts:

Code:
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<map>
<int name="NUM_APP_IN_FILE" value="2" />
<int name="com.google.android.apps.chrome.Main" value="2" />
<boolean name="FILE_SAVE" value="true" />
</map>

As you can see, there is correctly written that I put on the tray two shortcuts:
Code:
<int name="NUM_APP_IN_FILE" value="2" />

But there is only the second one:
Code:
<int name="com.google.android.apps.chrome.Main" value="2" />

The first one is missing. Why? Because underlying Samsung code for MultiWindow feature cannot distinguish between two different apps with the same intent as it is in this case. So I beware you before such a testing. Backup your flash_bar_list.xml file before any heavy modifying to be sure you doesn't lost your tray settings.

I am very happy with this mod. Big thanks to Scalee for his perfect work!
 

_jis_

Senior Member
Feb 5, 2012
1,469
529
Another multi window mod?
Yes! Because of the wonderful xposed framework it should work on all roms that have the normal multiwindow control.
But wait there is more! With others mods if you try to move an app to the bar from the edit page sometimes, you're suddenly dragging a different app, but with my mod this is fixed :highfive: Now also features correct sorting on reboot and faster start up times. :cool:
I have just small nitpick. Could you please signed your lines in Xposed Debug Log to indicate from which module they are? I marked the typing error in red colour too.

Now:
Code:
22.3.2014 23:13:45 UTC
Loading Xposed v42 (for Zygote)...
Loading modules from /data/app/nl.scale.xposedmultiwindow-2.apk
  Loading class nl.scale.xposedmultiwindow.xposedmm
[COLOR="Red"]Androind [/COLOR]package found
Flashbar package found
set supported apps true
set supported apps true
set supported apps true
set supported apps true

Signed:
Code:
22.3.2014 23:13:45 UTC
Loading Xposed v42 (for Zygote)...
Loading modules from /data/app/nl.scale.xposedmultiwindow-2.apk
  Loading class nl.scale.xposedmultiwindow.xposedmm
xMWM: Android package found
xMWM: Flashbar package found
xMWM: set supported apps true
xMWM: set supported apps true
xMWM: set supported apps true
xMWM: set supported apps true

When you have installed many modules unsigned lines in log could be confusing if you need to debug something.

BTW, what is the meaning of these lines in the Debug Log? They number is increasing constantly between restarts:
Code:
set supported apps true
set supported apps true
set supported apps true
set supported apps true
 

Scalee

Senior Member
Aug 21, 2009
187
249
I have just small nitpick. Could you please signed your lines in Xposed Debug Log to indicate from which module they are? I marked the typing error in red colour too.

Now:
Code:
22.3.2014 23:13:45 UTC
Loading Xposed v42 (for Zygote)...
Loading modules from /data/app/nl.scale.xposedmultiwindow-2.apk
  Loading class nl.scale.xposedmultiwindow.xposedmm
[COLOR="Red"]Androind [/COLOR]package found
Flashbar package found
set supported apps true
set supported apps true
set supported apps true
set supported apps true

Signed:
Code:
22.3.2014 23:13:45 UTC
Loading Xposed v42 (for Zygote)...
Loading modules from /data/app/nl.scale.xposedmultiwindow-2.apk
  Loading class nl.scale.xposedmultiwindow.xposedmm
xMWM: Android package found
xMWM: Flashbar package found
xMWM: set supported apps true
xMWM: set supported apps true
xMWM: set supported apps true
xMWM: set supported apps true

When you have installed many modules unsigned lines in log could be confusing if you need to debug something.

BTW, what is the meaning of these lines in the Debug Log? They number is increasing constantly between restarts:
Code:
set supported apps true
set supported apps true
set supported apps true
set supported apps true

This module was for personal use but after request i put it online.
But this project has been abandoned, everything became a mess when i lost the original source code.
There are many alternatives right now, so no need for me to dive into horrible written samsung code.
 

_jis_

Senior Member
Feb 5, 2012
1,469
529
This module was for personal use but after request i put it online.
But this project has been abandoned, everything became a mess when i lost the original source code.
There are many alternatives right now, so no need for me to dive into horrible written samsung code.
Ok, anyway thank you for reply.
 
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 181
    26-03-14
    This project is no longer maintained, no further updates will occur.

    07-04-2013
    Overdue images of 240DPI mod
    Also new version of DPI mod which doesn't crash when the settings file gets corrupted.

    18-03-2013
    Release 240DPI mod beta (Use at own risk)
    I will post some screenshots when my phone returns (USB connector broke :crying:)
    See below for details

    22-01-2013
    Hopefully resolved the issues people were having.

    21-01-2013
    Probably the last version of this mod.
    Big thanks to my three donators, People like you keep developers making awesome things.

    Changelog:
    The sorting issue on reboot has been fixed, Samsung made it so it would only properly work if you have all apps in alphabetical order.
    As a happy side effect my start up code seems twice as fast as samsung, reducing start up time!

    Instructions
    Just download the attached APK and update the current version, and reboot your device for the changes to take effect.

    02-01-2013 - 1898 downloads
    New version compatible with framework 2.0, Attached to this post. *People who update: Make sure you download and install the latest xposed framework, Before pressing "Install/Update" else you will receive incomparable message*
    Get it here - (2.0: Removed the native library replacement again, support for 4.1 and 4.2, Instagram crash fixed, ...)

    15-12-12
    Initial release - 1737 downloads

    *Not compatible with version message / Updating procedure*

    1. Follow the link and download the xposed framework (again)
    2. Install the apk and overwrite the current installation
    3. Open the xposed installer and hit "Install / Update"
    You are now on the latest version of the xposed framework, And ready to update my mod.

    Requirements

    Root
    XposedFramework - http://forum.xda-developers.com/showthread.php?t=2012770

    Another multi window mod?

    Yes! Because of the wonderful xposed framework it should work on all roms that have the normal multiwindow control.
    But wait there is more! With others mods if you try to move an app to the bar from the edit page sometimes, you're suddenly dragging a different app, but with my mod this is fixed :highfive: Now also features correct sorting on reboot and faster start up times. :cool:

    How to
    • Download and install the xposed framework from the thread above (no flashing required, but does require root)
    • Download and install my attached APK
    • In the xposed installer app goto the modules pane and activate my mod
    • Reboot
    • Enjoy

    How to 240 DPI


    Tested on

    Stock LJ1 (4.1.1)
    LJ3, thanks deltacode
    LK7 (4.1.2)
    KJ7 (4.1.2)
    N7105
    N7100XXDLL4
    And many more

    Thanks to

    rovo89 and pulser_g2 for their work on the xposed framework!

    Donation link
    Donate
    13
    If i don't die before tonight, I'll release a 2.0 framework compatible version.

    Ugh no sleep last night (Irritation bonus modifier!), and windows didn't want to detect my phone for an hour hnnnng.
    But still got you guys the new version, good luck
    3
    Uploaded a new version, which hopefully resolves all issues.
    3
    I found a nice little tweak for phones with this mod on some website, but it doesn't seem to have been mentioned in this thread before.
    if you combine it with xposed app settings you can get a hybrid phone/tablet mode where Windows in split-screen mode can be undocked to turn them into floating apps like on the note 10.1.
    it's not perfect, but it does work.
    the undock icon only appears when 2 windows are open, and it doesn't seem to work on the first window you open.
    to enable this:
    set the screen(dp) option for "android system" to 1280x800 in xposed app settings but say no when you're offered to kill it.
    reboot your phone (power>restart or the reboot button in the xposed installer)
    open the multi-window launcher, and open an app fullscreen.
    drag the app you want to have floating from the multi-window launcher on to the fullscreen app.
    tap the green pin to unpin the app and make it float.

    apps that are floating like this will work pretty much the same as in Windows.
    you drag them around using the bar on top.
    there's a maximize and a close button in the top-right corner.
    tapping the pin again should put the floating window back into split-screen mode.

    edit: some corrections.
    once undocked the pin button stops working.
    and the float options don't seem to appear on some apps.
    perhaps an idea for an expansion of the multi-window mod would be to make floating windows more consistent and easier to enable.
    3
    Just perfect! Thanks so much!

    I just would like so much to automatically sort all apps in alphabetical order. Would this be possible to implement?

    Both enabled apps and the Edit Panel...

    In theory, yes. But there are also people who do not that.
    And because manual sorting also always alphabetic sorting,
    I have chosen to leave it on manual.

    However there is currently an issue with this which i will look into probably tonight.



    *Update on the sorting issue*

    So i looked into why apps positioning changes on a reload.
    And i found the problem, Samsung has a function to restore apps on reboot (It is unchanged in my mod, so every multiwindow mod is affected by this)

    It's simply wrong... It can never restore apps in the same order the way it written at the moment.
    It also waste resources doing things multiple times for no reason causing extra load times and allocates extra memory for nothing, Can't believe that they made such sloppy code.

    Anyway..... Ill have to rewrite the whole function to solve the issue.
    I will try to rewrite it, but i am not sure that i will succeed.