FORUMS
Remove All Ads from XDA

[MOD] [HOW-TO] 4.4.2 TW All apps in multi & pen window | Quad view

2,231 posts
Thanks Meter: 6,993
 
By tkari4, Senior Member on 1st June 2014, 06:03 PM
Post Reply Email Thread
Isn't my work all credits to @kin201303

original thread: http://forum.xda-developers.com/show....php?t=2729438

Root and deodexed framework2.jar recommended.

Needed tools:

Backsmali/Smali
Notepad++
7Zip

1.) Baksmali framework2.jar
2.) Navigate to com/samsung/android/multiwindow folder
3.) Open MultiWindowApplicationInfos.smali

find: .field private static final SUPPORTEDSCALE_ALL_APPLICATIONS:Z

add blue

Code:
# static fields
.field private static final CONFIG_FILE:Ljava/lang/String; = "/system/etc/mw_blacklist.txt"

.field private static final SUPPORTEDSCALE_ALL_APPLICATIONS:Z
find: .field mNotSupportScaleAppList:Ljava/util/ArrayList;

add blue

Code:
.end field

.field mMaxPenWindowCount:I

.field private mMultiWindowBlackList:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field  

.field mNotSupportScaleAppList:Ljava/util/ArrayList;
find: .method public isSupportApp(Ljava/lang/String;)Z

overwrite the whole method with this new one:

Code:
.method public isSupportApp(Ljava/lang/String;)Z
    .registers 6

    iget-object v2, p0, Lcom/samsung/android/multiwindow/MultiWindowApplicationInfos;->mMultiWindowBlackList:Ljava/util/List;

    if-nez v2, :cond_3b

    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    iput-object v2, p0, Lcom/samsung/android/multiwindow/MultiWindowApplicationInfos;->mMultiWindowBlackList:Ljava/util/List;

    new-instance v2, Ljava/io/File;

    const-string v3, "/system/etc/mw_blacklist.txt"

    invoke-direct {v2, v3}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2}, Ljava/io/File;->exists()Z

    move-result v2

    if-eqz v2, :cond_3b

    :try_start_18
    new-instance v1, Ljava/io/BufferedReader;

    new-instance v2, Ljava/io/FileReader;

    const-string v3, "/system/etc/mw_blacklist.txt"

    invoke-direct {v2, v3}, Ljava/io/FileReader;-><init>(Ljava/lang/String;)V

    invoke-direct {v1, v2}, Ljava/io/BufferedReader;-><init>(Ljava/io/Reader;)V

    :cond_24
    :goto_24
    invoke-virtual {v1}, Ljava/io/BufferedReader;->readLine()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_3b

    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v2

    if-lez v2, :cond_24

    iget-object v2, p0, Lcom/samsung/android/multiwindow/MultiWindowApplicationInfos;->mMultiWindowBlackList:Ljava/util/List;

    invoke-interface {v2, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_39
    .catch Ljava/lang/Exception; {:try_start_18 .. :try_end_39} :catch_3a

    goto :goto_24

    :catch_3a
    move-exception v2

    :cond_3b
    iget-object v2, p0, Lcom/samsung/android/multiwindow/MultiWindowApplicationInfos;->mMultiWindowBlackList:Ljava/util/List;

    invoke-interface {v2, p1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_45

    const/4 v2, 0x1

    :goto_44
    return v2

    :cond_45
    const/4 v2, 0x0

    goto :goto_44
.end method
find: .method public isSupportScaleApp(Landroid/content/pm/ActivityInfo;)Z

overwrite the whole method with this new one:

Code:
.method public isSupportScaleApp(Landroid/content/pm/ActivityInfo;)Z
    .registers 2

    const/4 p0, 0x1

    return p0
.end method
4.) Save your changes
5.) Smali classout folder
6.) Add the new classes.dex file to framework2.jar with 7Zip
7.) Push to your Phone
8.) Copy the attached mw_backlist.txt to system/etc folder set permissions. (rw-r--r--)
9.) Reboot
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2014-06-01-18-54-16.jpg
Views:	4801
Size:	76.2 KB
ID:	2775021   Click image for larger version

Name:	Screenshot_2014-06-01-18-54-37.jpg
Views:	4770
Size:	47.4 KB
ID:	2775022  
Attached Files
File Type: txt mw_blacklist.txt - [Click for QR Code] (1.5 KB, 972 views)
The Following 26 Users Say Thank You to tkari4 For This Useful Post: [ View ] Gift tkari4 Ad-Free
1st June 2014, 06:04 PM |#2  
tkari4's Avatar
OP Senior Member
Thanks Meter: 6,993
 
More
4.4.2 Multi Instance & Quad view
Optional: Multi instance

find: .method public isSupporMultiInstance(Landroid/content/pm/ActivityInfo;)Z

Delete red
Add blue

Code:
.method public isSupporMultiInstance(Landroid/content/pm/ActivityInfo;)Z
    .registers 5
    .parameter "activityInfo"

    .prologue
    const/4 v0, 0x0
    const/4 v0, 0x1

    .line 217
    if-eqz p1, :cond_7

    iget-object v1, p1, Landroid/content/pm/ComponentInfo;->applicationInfo:Landroid/content/pm/ApplicationInfo;

    if-nez v1, :cond_8

Optional: Quad view

Thanks to @unclefab for sharing!

Original thread: http://forum.xda-developers.com/show....php?t=2770531

Whit this mod you can see 4 app in multi window. (second & third screen shot in the attachment)

Download the attached rar file and copy com.sec.feature.multiwindow.quadview.xml from it to:
/ system / etc / permissions folder

Set permissions to rw-r--r--

Reboot.

;)
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2014-06-01-19-25-37.jpg
Views:	2401
Size:	78.5 KB
ID:	2775078   Click image for larger version

Name:	Screenshot_2014-06-28-14-45-15.jpg
Views:	1897
Size:	44.4 KB
ID:	2822160   Click image for larger version

Name:	Screenshot_2014-06-28-14-45-23.jpg
Views:	1856
Size:	35.8 KB
ID:	2822161  
Attached Files
File Type: rar com.sec.feature.multiwindow.quadview.rar - [Click for QR Code] (639 Bytes, 584 views)
The Following 16 Users Say Thank You to tkari4 For This Useful Post: [ View ] Gift tkari4 Ad-Free
1st June 2014, 06:11 PM |#3  
Kamy's Avatar
Senior Member
Flag Beijing
Thanks Meter: 19,414
 
Donate to Me
More
good good good. Thanks for sharing
The Following 2 Users Say Thank You to Kamy For This Useful Post: [ View ] Gift Kamy Ad-Free
2nd June 2014, 09:37 AM |#5  
Kamy's Avatar
Senior Member
Flag Beijing
Thanks Meter: 19,414
 
Donate to Me
More
Quote:
Originally Posted by tkari4

Optional: Multi instance

...

Just saw this one and I am just like a Woohoo! Thanks buddy...
The Following 2 Users Say Thank You to Kamy For This Useful Post: [ View ] Gift Kamy Ad-Free
2nd June 2014, 12:52 PM |#6  
and2's Avatar
Senior Member
Flag Halle
Thanks Meter: 1,205
 
More
Thumbs up
Thank you tkari4. It also works great in the S5 port (why not ).
The Following 2 Users Say Thank You to and2 For This Useful Post: [ View ] Gift and2 Ad-Free
2nd June 2014, 05:07 PM |#8  
Junior Member
Thanks Meter: 1
 
More
Nice job!! Really great thing..

Ancient phones: Nokia 3310, 5210, 6610, 6600, Samsung E700, Samsung D410, Nokia N73, Siemens SL55, Iphone 2G, Nokia E5, Samsung galaxy S2, S3, Galaxy grand duos.
Sent from my samsung note III N9005.
The Following User Says Thank You to kallel.abdesslem For This Useful Post: [ View ] Gift kallel.abdesslem Ad-Free
3rd June 2014, 04:16 PM |#9  
Junior Member
Thanks Meter: 0
 
More
Rooting needed?
Do i need to root to use it? My N3 still under warranty and i dont wanna void it...yet
3rd June 2014, 07:04 PM |#10  
tkari4's Avatar
OP Senior Member
Thanks Meter: 6,993
 
More
Quote:
Originally Posted by Netpreneur

Do i need to root to use it? My N3 still under warranty and i dont wanna void it...yet

Yes, root needed.

The Following User Says Thank You to tkari4 For This Useful Post: [ View ] Gift tkari4 Ad-Free
4th June 2014, 01:36 AM |#11  
Member
Thanks Meter: 37
 
More
Can someone mod the files and make a flashable zip for the stock Tmo NE6 rom for us noobs please. Thank you

Sent from my SM-N900T using Tapatalk
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes