[GUIDE] Enable Multi-Window Mode on Android 6.0 Marshmallow

Quinny899

Recognized Developer / Recognized Contributor
Jan 26, 2011
8,338
7,569
253
23
Salford, Greater Manchester, UK
quinny898.co.uk
There's a hidden feature in Android 6.0, multi window. It has its warnings:

So decide if this is actually for you before following these steps

It's not shown in user builds, so we have to do some messing. You'll either need root or a custom recovery to do this, but as not everyone wants root, here's how you do it with TWRP, a USB cable, and a PC with ADB:

1. Boot your device into recovery
2. Mount your system by going to Mounts > Tick System
3. On your PC open a command line, somewhere like your desktop is useful
4. Type the following command:
HTML:
adb pull /system/build.prop
5. Open the build.prop file with your favourite (decent) editor, I recommend using Notepad++ on Windows
6. Find the "ro.build.type" line
7. Change the text after = to "userdebug" from "user"
BONUS: If you want a nicer DPI here, change the line "ro.sf.lcd_density" to your preferred DPI
8. Save the file
9. Go back to the command line and enter the following command:
HTML:
adb push build.prop /system/
10. Now open a shell doing:
HTML:
adb shell
11. Now a adb shell will open, enter these commands:
HTML:
cd system
chmod 644 build.prop
12. Reboot the device as normal
13. When the device has booted, go to the developer options
14. Scroll down to the bottom of the "Drawing" category
15. Enable multi-window and have some fun!

If you're rooted...
1. Download "Build.prop editor"

2. Find "ro.build.type"

3. Edit it to have the value "userdebug" from "user"

4. Reboot when prompted
5. When the device has booted, go to the developer options
6. Scroll down to the bottom of the "Drawing" category
7. Enable multi-window and have some fun!

 
Last edited:

prwnd

Senior Member
Sep 11, 2011
95
14
0
I flashed the latest hammerhead twrp with fastboot command, it was successful, but when I reboot bootloader and choose recovery, it keeps loads forever and sometimes the screen flashes black. I tried CWM after that, it said root needed. How do you guys got recovery on M?
 

elreydenj

Senior Member
Aug 12, 2012
956
183
0
How do you use it after enabling?
I get how to use it, but how do you consistently pick the two apps that you want to appear?

---------- Post added at 11:28 AM ---------- Previous post was at 11:26 AM ----------

I get how to use it, but how do you consistently pick the two apps that you want to appear?

It seems to be all over the place. I cant figure out how to always get the two apps that i want in multiwindow to show....
 
  • Like
Reactions: psychomaniac189

hsay

Senior Member
May 18, 2012
1,605
567
0
pune
I flashed the latest hammerhead twrp with fastboot command, it was successful, but when I reboot bootloader and choose recovery, it keeps loads forever and sometimes the screen flashes black. I tried CWM after that, it said root needed. How do you guys got recovery on M?
This is the wrong place to ask this question . Check your pm i have given you the solution and please ask your questions in the right thread next time onwards :)
 

Adr990

Senior Member
Jul 12, 2012
251
116
0
I got this message from ADB:

failed to copy 'build.prop' to '/system//build.prop': Read-only file system
Anything?

Edit:
I tried flashed TWRP as recovery via adb, then in TWRP I pushed the build.prop back. (And did the chmod, following the tutorial from OP)
It doesn't work. :( (Doesn't seem to change/push the build.prop that way at all, the DPI hasn't changed either.)
 
Last edited:

Adr990

Senior Member
Jul 12, 2012
251
116
0
Can you send your build.prop to me via pm. I can flashable zip for you :)
Ah yes! Thanks man.

I can do this myself, luckily. I just totally forgot about that for a sec. :)

Here I share my flash-able zip. (At own risk, of course. But it works for me.)
It contains a 430 DPI Mod, adblocking hosts file (10 fed 2015, more info see my Personal Settings site in my sig), & of course the userdebug Mod. :) (Also, I removed the commented lines from the build.prop to make it smaller)

Edit:
Also made one to revert back to the Stock stuff. (Unmodified Android M build.prop/hosts)

Edit2:
The Multi window feature works fine so far. Really cool! :D Thanks OP.
 

Attachments

Last edited: