Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,808,827 Members 50,934 Now Online
XDA Developers Android and Mobile Development Forum

[possible Port?] Note II's Multi Window feature ==> Devs needed for assistance!

Tip us?
 
eybee1970
Old
(Last edited by eybee1970; 10th October 2012 at 02:55 PM.)
#1  
eybee1970's Avatar
Recognized Contributor - OP
Thanks Meter 13,285
Posts: 4,920
Join Date: Jan 2010
Default [possible Port?] Note II's Multi Window feature ==> Devs needed for assistance!

ok, guys,

For the ones, who don't know what multiwindow-feature is: http://www.youtube.com/watch?v=k6c7XaDWmJg
I diffed 2 different Note 2 ROMs (1 with multiwindow, 1 without), to point out the differences responsible for making multiwindow work.
This is what I could find out:

  1. you need 'multiwindow.jar' inside /system/framework (inside attached 'multiwindow' package)
  2. you need 3 additional xmls inside /system/etc/permissions (inside attached 'multiwindow' package)
  3. you need the app 'FlashBarService.apk' and according permission xml 'com.sec.feature.flashbar.xml' (inside attached 'FlashBar' package)
  4. various changes in xmls and strings within framework-res.apk have also to be done...attached 'framework' package with 1 'without mulitwindow' and 1 'with multiwindow' of original Note 2 ROMs: http://www.mediafire.com/?p6zem8je5sakvfg
  5. and the most tricky part: you need to port smalis inside 'android.policy.jar' to make it working (original Note 2 android.policy.jar inside attached 'multiwindow' package)
    • --> there is one complete folder inside \com\android\internal\policy\impl\ called 'multiwindow' ==> you for sure have to add to your android.policy.jar
    • --> there are several code-changes to be made inside \com\android\internal\policy\impl\PhoneWindowManag er.smali (at least to define backbutton working for starting multiwindow)
    • --> maybe other changes in same folder to other smalis

I also attached the android.policy.jar from Note2-ROM without multiwindow --> it is for devs to diff and find out what to port in a more detailed way....

Unfortunately I am not good in porting smali-code, but for sure others are able to do that!

I guess, if this succeeds, there is a good chance to make it working on other Sammy-Devices, such as S3 or Note1....or the feature depends on more then just that - who knows

So someone with deeper smali / java knowledge should continue....

For the devs wanna diff themselves, here are the sources I used:
Quote:
--> this is deodexed Odin-ROM with multiwindow enabled (so you have to unyaff system.img after DL): https://hotfile.com/dl/175413315/b8e...EODEX.zip.html
--> this is custom ROM by indie without multiwindow: http://depositfiles.com/files/g3zkghhq7
Attached Files
File Type: jar android.policy.jar - [Click for QR Code] (332.2 KB, 535 views)
File Type: zip multiwindow.zip - [Click for QR Code] (369.8 KB, 846 views)
File Type: zip FlashBar.zip - [Click for QR Code] (138.2 KB, 606 views)
I don't need money for my work!!
Donate to Medicins sans Frontieres
http://www.msf.org/msf/donations/donations_home.cfm
The Following 86 Users Say Thank You to eybee1970 For This Useful Post: [ Click to Expand ]
 
pajaSRB
Old
#2  
pajaSRB's Avatar
Senior Member
Thanks Meter 105
Posts: 471
Join Date: May 2010
Location: Beograd
Rly cool feature!
 
zgmf-x322a
Old
#4  
zgmf-x322a's Avatar
Senior Member
Thanks Meter 19
Posts: 679
Join Date: Sep 2008
Nice, gonna try it!!

Sent from my Galaxy Note or from my Transformer TF300T
Current Devices:
Pantech Vega Secret Note A890 (4.4.2 rooted)
Google Nexus 7 [2013]
ASUS Transformer Pad TF300T
Apple iPad 2
----------------
The Past:
Asus P535
Dell Streak
HTC Dream, Sensation
Motorola Xoom, Milestone
NEC N830, N840
Nokia 3310, 8250
Pantech Vega A860
Samsung Note1, Note2 LTE, S3, Omnia i900, Galaxy Tab 7.7
Sharp GX22
Sony J5
Xiaomi RedMi
----------------
Japanese phone collection:
Docomo SH-01A, SH-01D
Softbank 920sc, 910sh
Vodafone 802sh, 903sh, 904sh
 
jonsey
Old
#5  
Member
Thanks Meter 3
Posts: 51
Join Date: Aug 2006
Gr8!I was looking for this on my GNote
 
eybee1970
Old
#6  
eybee1970's Avatar
Recognized Contributor - OP
Thanks Meter 13,285
Posts: 4,920
Join Date: Jan 2010
Quote:
Originally Posted by jonsey View Post
Gr8!I was looking for this on my GNote
it's not done yet....just started, so we need assistance in smali coding from talented devs to get it running
I don't need money for my work!!
Donate to Medicins sans Frontieres
http://www.msf.org/msf/donations/donations_home.cfm
The Following User Says Thank You to eybee1970 For This Useful Post: [ Click to Expand ]
 
psicolizzard
Old
#7  
Junior Member
Thanks Meter 3
Posts: 29
Join Date: Oct 2011
The best new feature of sn2.
 
Crash
Old
#8  
Crash's Avatar
Senior Member
Thanks Meter 6,667
Posts: 4,407
Join Date: Apr 2011
Location: Costa Rica

 
DONATE TO ME
Hehe dam eybee i will give it a try but the one is very good on smalis is grgciols maybe he can help us

Sent from my GT-N7000 using Tapatalk 2
The Following 8 Users Say Thank You to Crash For This Useful Post: [ Click to Expand ]
 
eybee1970
Old
#9  
eybee1970's Avatar
Recognized Contributor - OP
Thanks Meter 13,285
Posts: 4,920
Join Date: Jan 2010
Quote:
Originally Posted by Crash 1976 View Post
Hehe dam eybee i will give it a try but the one is very good on smalis is grgciols maybe he can help us

Sent from my GT-N7000 using Tapatalk 2
and framework-res.apk also need to be worked on...will attach now to OP
I don't need money for my work!!
Donate to Medicins sans Frontieres
http://www.msf.org/msf/donations/donations_home.cfm
The Following 4 Users Say Thank You to eybee1970 For This Useful Post: [ Click to Expand ]
 
Crash
Old
#10  
Crash's Avatar
Senior Member
Thanks Meter 6,667
Posts: 4,407
Join Date: Apr 2011
Location: Costa Rica

 
DONATE TO ME
I send a message to Criskelo he is good on smalis too so lets wait eybee to see if he can give us a hand

The Following 9 Users Say Thank You to Crash For This Useful Post: [ Click to Expand ]
THREAD CLOSED
Subscribe
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes