yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] tdunham:
I have multiple occurences of similar code from step2 :

iget-boolean v8, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->WACOM_POLICY_FOLLOW_APPLICATION_ROTATION:Z

if-nez v8, :cond_1

My code does not match because this is a different rom. Can I get more surrounding code to match this to please? Tnx - TD

Update: Ok found the correct one.

Checking logcat and I have these, anyone have any ideas? All file permissions appear to be correct, I even switched over from SuperSU to Superuser with the same results:

[ 12-13 15:42:49.983 2042: 2069 W/PackageManager ]

Not granting permission android.permission.STATUS_BAR_SERVICE to package com.sec.android.app.FlashBarService (protectionLevel=2 flags=0x8be4d)

[ 12-13 15:42:49.983 2042: 2069 W/PackageManager ]

Not granting permission android.permission.REMOVE_TASKS to package com.sec.android.app.FlashBarService (protectionLevel=2 flags=0x8be4d)
[Galaxy S II Android Development] Project: Awesome:
I'm attempting this on my T-Mobile Samsung galaxy s2. So far, everything works except multi-window itself. And pushing the modified services.jar causes boot loops. Can anyone shine some light on this? Oh and the ROM is stock 4.1.2 tw leak.
[Galaxy S II Android Development] Adhityairvan:
hey i want to ask,will this mod work on cm10 base rom?
[Galaxy S II Android Development] timmetal6669:
Lol thought id see u around here. Our framework res is missing some files for this mod. They put some temp xmls cause its just a dev leak that they plan add more to. Haven't checked FL04 yet but I guess I'll let u have at this mod too TD. Lemme know what ya find out
[Galaxy S II Android Development] tdunham:
Did you delete (or extract and save first because it needs to go back in later) the classes.dex from the secsettings.apk before trying to decompile it?
[Galaxy S II Android Development] brolee93:
hi guy thanks for your hard work

i attempt for integrate this in 4.1.1 TAB 2 10.1 with official firmware deodexed .

i have 2 question i dont have hard phisycs button how i can launch multiwindow ?

and in smali of secsetting i dont have 4line of your tuto line :

1. Decompile SecSettings.apk and go to smali/com/android/settings/DisplaySettings.smali

FIND:

invoke-virtual {p0}, Lcom/android/settings/DisplaySettings;->getPreferenceScreen()Landroid/preference/PreferenceScreen;

move-result-object v12

iget-object v13, p0, Lcom/android/settings/DisplaySettings;->mMultiWindowPref:Landroid/preference/CheckBoxPreference;

invoke-virtual {v12, v13}, Landroid/preference/PreferenceScreen;->removePreference(Landroid/preference/Preference;)Z

And just delete these lines

- Recompile SecSettings.apk

this is serious problem ?

sorry for my bad english i am french / portugues

EDIT : ggrrrrr i have bootloop after optimisation :/

can you help please ?

can you see my mod ?
[Galaxy S II Android Development] ICS_XD:
Its for 4.1.2
[Galaxy S II Android Development] brolee93:
Seriously?

You think it is work with rom 4.1.2 tab2? U
[Galaxy S II Android Development] ICS_XD:
May be
[Galaxy S II Android Development] Stryke_the_Orc:
Hey guys, I've almost got this sucessfully ported to the Epic 4G Touch with the exception of one issue.

I keep getting this error when I try to open the second app -

I/dalvikvm( 7911): Could not find method android.sec.multiwindow.impl.MultiWindowManager.isFullSize, referenced from method com.android.internal.policy.impl.multiwindow.MultiPhoneWindowEvent.isFullSize
W/dalvikvm( 7911): VFY: unable to resolve static method 595: Landroid/sec/multiwindow/impl/MultiWindowManager;.isFullSize (I)Z

I've searched through every line of code, and found the method in my files, I compared them to the files on GN2, S3 and from this guide, it matches 100%.

I was wondering if anyone had seen, or resolved this issue?
[Galaxy S II Android Development] Rotry83:
In galaxytab2 must be modified SystemUI.apk, android.policy,jar and services.jar. Multiwindows should work as Note 10.1 not as Note2. :D

In addition, there are a lot of code referenced, may be possible.
[Galaxy S II Android Development] Goldie:
Its there but cannot verify the method so it rejected and therefore cannot find. Look for more VFY in the log to see the issue with the method
[Galaxy S II Android Development] brolee93:
Hum I have test in my tab 2 10.1 but I have bootloop have you other idea? You thin I take and remix files of note 10.1? To my tab2?
[Galaxy S II Android Development] Rotry83:
yes... I have a Note10.1 and Tab2 7"

I´m looking how to do it ... :)
[Galaxy S II Android Development] mingolianbeef:
I waana try this
[Galaxy S II Android Development] brolee93:
Ah good you tell me :)
[Galaxy S II Android Development] Stryke_the_Orc:
OK, so after extensive testing and failing the only other vfy code I can find is

VFY: replacing opcode 0x71 at 0x0000

I can't figure this out:confused:

I've looked in all the multi window files and can't find anything that matches. Any ideas?

I'm sorry to be such a pain, but I'm so close LOL
[Galaxy S II Android Development] fedevd:
I'm trying to port this to Samsung Galaxy Advance and i have some doubts:

* Can I use the files from OP? Or it's just for SGS II?

* I tryed to port but my device just bootloop..

* Do I need to sign apk's?

Why bootloops!!??

:banghead:

..zapatalk..
[Galaxy S II Android Development] brolee93:
With jb you don't sign :)
[Galaxy S II Android Development] fedevd:
I maded signed and unsigned and always bootloop..

When I compile show some errors but apk tool compile the apk..
[Galaxy S II Android Development] brolee93:
Same pb with my Tab2 10.1
[Galaxy S II Android Development] frapeti:
third step?

Coul'd you explain what you did in 3d step? Becouse I can't just paste your files, I'm trying to port this to i9070, thanks in advance!
[Galaxy S II Android Development] fedevd:
Im trying too.. Agregame al talk y lo vemos cabezon..
[Galaxy S II Android Development] fedevd:
Started again without any error in apktool and baksmali and still in bootlop..

Whyyyyyyy!!!!!!!??
[Galaxy S II Android Development] mythtrandyr:
The reasons can be a million ... to answer your question without knowing what you were doing - not possible
[Galaxy S II Android Development] mani1999:
Can I also do this on XWLS8?
[Galaxy S II Android Development] welard:
which system file do i need to mod to enable multi-window toggle?

any help would be great!
[Galaxy S II Android Development] mani1999:
AW: [HOW-TO] [4.1.2] [LSJ] MultiWindow

If you mean toggle in settings, than you have to mod secsettings.apk
[Galaxy S II Android Development] welard:
does it enables toggle in pull down status bar if i mod secsettings?
[Galaxy S II Android Development] Stryke_the_Orc:
I think thats android.policy.jar if I remember right... Could be wrong though...
[Galaxy S II Android Development] welard:
ok thanks no prob
[Galaxy S II Android Development] mani1999:
AW: [HOW-TO] [4.1.2] [LSJ] MultiWindow

Back to my question....:)

Does this work in XWLS8?
[Galaxy S II Android Development] mythtrandyr:
How-to method? - yes
[Galaxy S II Android Development] Stryke_the_Orc:
Quick question, the files in services that were edited, what specifically are they supposed to do? I've boot looped every time I've used them, but can launch mw with stock services. The only problem I run into is a static method (.isFullSize) can't be found in multiwindowmanager.smali from multiwindow.jar so the apps fc when I try to open the second app. Any ideas what might fix this?
[Galaxy S II Android Development] mythtrandyr:
Download firmware for N7100 Sprint edition .... and take the necessary smali files from his services.jar file

I think this should solve the problem with bootloop
[Galaxy S II Android Development] skezza:
Would this work on XWLSD ?
[Galaxy S II Android Development] mani1999:
Yes it does.
[Galaxy S II Android Development] shoman94:
But a few ID's have changed in services.jar smali's...... so double check those.
[Galaxy S II Android Development] skezza:
Is it worth implementing on a stock XWLSD ? Or should I just put on something like NeatROM?
[Galaxy S II Android Development] slade9220:
R: [HOW-TO] [4.1.2] [LSJ] MultiWindow

I try to port this mod in my Ace 2 with odex 4.1.2... i deodex modded and re-odex all the file, push flashbarservice and adction file in /system... the phone starts normaly and appare the multiwindows toogle on status bar and in a display menu.. but i have some bug (flashbarservice force close after reboot and ini.unet.sist force close when i hold press home button).. can anyone help me..

Inviato dal mio GT-I8160 con Tapatalk 2
[Galaxy S II Android Development] Dr01nE:
@OP

I am trying to port this mod to Galaxy Ace 2 GT-I8160, we have leaked 4.1.2, I followed the guide and it gets stuck in a bootloop,

Could you kindly point out which other files have you made device-specific changes? I only know that services.jar is not modified for my device.
[Galaxy S II Android Development] slade9220:
R: [HOW-TO] [4.1.2] [LSJ] MultiWindow

I have service.jar that it work fine in our device.. if do u want i send it (odex and deodex too)..

Inviato dal mio GT-I8160 con Tapatalk 2
[Galaxy S II Android Development] Goldie:
Guys....if you're modding you really need to start using logcat. People cant help blind. I see so many posts on mods saying "im porting this and it fc" but they dont use logcat. You gotta tell people what the issue is if you want help. :)
[Galaxy S II Android Development] yulaws:
Im using mw on disaster lsd rom without losing any extras. Iv used sales FlashBarService.apk from aroma mod to make it semi transparent. I get the option to enable (tick) mw in display, which opens mw perfectly working but i have no toggle options in notif panel. Going to check out additional-files.
[Galaxy S II Android Development] Stryke_the_Orc:
Thats something that needs to edited in systemui I believe, the smali code there is what effects stock toggles in status bar
[Galaxy S II Android Development] bengosuXL:
You lost lockscreens lg,stock.only one is working aosp,so dont say that is working without loosing options because i tried that
[Galaxy S II Android Development] elijahbrown:
Actually they can be added by listing them in arrays.xml ;)

Sent from my SPH-L900 using Xparent Skyblue Tapatalk 2
[Galaxy S II Android Development] tdunham:
Shouldn't you guys be working on multi window over at the E4GT forum? It's not going to get done by itself. :p
[Galaxy S II Android Development] yulaws:
Lol I havnt lost anything, they all working mate :D:D
[Galaxy S II Android Development] bengosuXL:
Lol ok flashed Biftor on top?looks good:laugh:
[Galaxy S II Android Development] yulaws:
Here's the "more option" screenshot too. All thanks to mirko ddd, biftor, sales, mythtrandyr, goldieking, ics_xd, indie and a few more devs for making my s2 the best
[Galaxy S II Android Development] yulaws:
I have modified the systemui too. At the moment im working on the mw toggle & custom ink color picker. Once they are sorted, I'll have a conplete rom to my specific :)
[Galaxy S II Android Development] bengosuXL:
Sounds good but i'll stay on original V9 no mods untill Mirko does it:good:
[Galaxy S II Android Development] Stryke_the_Orc:
Thanks, I've never really messed with that before, I use an app for all my toggles LOL

But why not? LOL all those others just pop up:p
[Galaxy S II Android Development] elijahbrown:
Pssshhaw. I thought you had that all but wrapped up. :p

Either of you hit me up on gtalk: ElijahBrown311@Gmail.Com if you need anything off the sprint gn2. I'm running the official 4.1.2 ota so it might be a bit more compatible than the 4.1.1 files you've been working with.

Apologies to the op, no more slightly OT.

Sent from my SPH-L900 using Xparent Skyblue Tapatalk 2
[Galaxy S II Android Development] wojtek1990:
Hi.

I've got problems with this mod. After pushing modified SecSettings.apk to /system/app I can see multi window but i can't skip Setup Wizard (this window which is shown after wipe - I can see just FC with error message "Unfortunately, Samsung SetupWizard has stopped").

Okey, that were steps which I did:

1. I've deodexed SecSettings (SecSettings.apk and SecSettings.odex files) by Android Kitchen.

2. I've extracted classes.dex from deodexed SecSettings.apk archive.

3. I've disassembled classes.dex file by baksmali:

>> java -jar baksmali.jar classes.dex

4. I've edited out/com/android/settings/DisplaySettings.smali file by Notepad++

5. I've reassembled out folder by smali:

>> java -jar smali.jar out

6. I've renamed file out.dex to classes.dex and I've putted it back to SecSettings.apk

7. I've pushed file to smartphone:

>> adb remount

>> adb push SecSettings.apk /system/app
[Galaxy S II Android Development] Stryke_the_Orc:
May be a dumb question but, Did you reboot?
[Galaxy S II Android Development] Mattix724:
I'll just say this.

adb reboot
[Galaxy S II Android Development] wojtek1990:
Thanks for replies.

Yes, I've rebooted to CWM, wiped cache partition, wiped data, wiped dalvik cache. Then I've rebooted system.

edit: Now it works ... After recompiling / pushing again SecSettings everything is OK.
[Galaxy S II Android Development] kreygor:
Does this mod require deodexed jellybean rom? Or just the stock 4.1.2 rom will suffice?
[Galaxy S II Android Development] cloud.8:
Guys does it works on LSD Deodex Firmware? Thanks
[Galaxy S II Android Development] Martillero:
Yes. Some strings could be slightly different but the process is the same. Just follow the steps.
[Galaxy S II Android Development] mmu7med:
Great work
[Galaxy S II Android Development] phongchot:
everything went well except services.jar file you put it in the ROM, the device occurs bootloop
[Galaxy S II Android Development] joehanh88:
answer him please :(
[Galaxy S II Android Development] dart760:
Same question... I have a stock odexed LSD... can i try the mod?

Thanks for all your work!:good:
[Galaxy S II Android Development] nbnion:
do you think it'll work for sgh727?

i'm getting bootloop, am i missing something from the op?

thank you!
[Galaxy S II Android Development] jackq:
I have request. Does anyone have diffmerge file for multiwindow mod. I dont want to replace all files i services.jar just want to know what and where i must change by hand to enable this mod.
[Galaxy S II Android Development] nbnion:
+1

on top I'm getting boot loop with mod services.jar from op, without services.jar from op its ok but only flahbar no multiwindow.
[Galaxy S II Android Development] nbnion:
i need a bit of help please!

anybody paying attention to this thread anymore????

im getting this error:

VFY: unable to resolve virtual method 14394: Lcom/android/server/wm/WindowManagerService;.getBaseWindowLayoutParam (Landroid/view/IApplicationToken;)Landroid/view/WindowManager$LayoutParams;

i don't have this method in wm/WindowManagerService - getBaseWindowLayoutParam

it's getting called from am/ActivityStack

am/ActivityStack it's mod from OP but he doesn't have any mod in wm/WindowManagerService

is there a way to resolve this?

thank you!
[Galaxy S II Android Development] Shashank.sonth:
Guys how to decompile n I don't understand d method sometime plz explain it in easy n simple words

Btw Does it require root?
[Galaxy S II Android Development] panda00:
Is it necessary to add any permission to the updater script?

---------- Post added at 09:38 AM ---------- Previous post was at 08:44 AM ----------

To sum it up, I want to port this to the S II Plus.

However, I can get the settings option, and the side bar, and the dragging etc.. But when I drag an app to be placed in a frame, it just opens it full screen instead of dividing the screen.
[Galaxy S II Android Development] shakatu:
I just tried to copy files from the Note 10.1 and also had a bootloop.

Unfortunately, it seems like the tablets use different files than the phones... I'd have to look closer at the individual scripts and see what needs to be copied over.
[Galaxy S II Android Development] brolee93:
i have test with take all files from note 10.1 and i have 50% of multiwindows :/ ...
[Galaxy S II Android Development] Benzonat0r:
I'll try it on my S3 Mini. :p
[Galaxy S II Android Development] Benzonat0r:
Nope, boot loop... I've followed these instructions down to every single detail, even tried it 6 times to be absolutely sure I didn't leave something out, but still no go.
[Galaxy S II Android Development] panda00:
Problem is within services.jar ... if you use stock services.jar it will boot but multiwindow will sorta not work

.. option will be there but it will be useless

Sent from my GT-I9105P
[Galaxy S II Android Development] Benzonat0r:
I see, is there any chance I can use some smalis from the modded services.jar and make this thing working?
[Galaxy S II Android Development] panda00:
Well your best bet would be to compare the modded services.jar smalis and compare them with the stock services.jar smalis and make the changes on that basis.

Sent from my GT-I9105P
[Galaxy S II Android Development] tdunham:
Here is the stock LSJ services.jar.

We also are having the issue with Multiwindow not working completely.

The panes show when dragging the apps over but not splitting the apps into panes. The last app dragged over shows full screen with the pane showing. If anyone figures it out, you would be our hero. ;)
[Galaxy S II Android Development] hacker0377:
bro i am serious..you say find the code

and you say delete this line.

what line to delete??
[Galaxy S II Android Development] Benzonat0r:
I've got it partially working yesterday, the same damn problem here too. :)
[Galaxy S II Android Development] Giridharbavana:
Multi Window worked on my Galaxy Tab 2 10.1 ....Only problem I found is multi window cannot be found in status bar,It has to be manually enabled in display settings and sometimes MW force crashes

Will update in Github by tomorrow evening and will be creating a flashable zip file......

:Feeling awesome:

Thanks required for encouragement
[Galaxy S II Android Development] laotzy:
I have done the Multi Windows mod in my SGS2 as described by honoured mythtrandyr. It works but as some of you have already mentioned it is imposible to take away an icon from the side panel or add one to it unless you go to the menu of the telephone and clear off the FlashBarService cache and reboot the telephone after that. Then, Multi Windows Panel starts working propely untill you switch off the telephone - the thing I always do when I go to bed. So when you switch on the phone again next morning the side panel is stuck on again so you have to make out all the previous procedure once more etc. I know, that this problem is solved because the Multi Windows Mod of mythtrandyr for LS8 works flawlessly. This Mod works perfectly on my LSW rom but I need to save some Modes made by myself and if I install Multi Windows LS8 Mod, some of MY mods suffer changes which prevent them from working well. Does anybody know about what is to be fixed to make Multi Windows Mod work as it should???
[Galaxy S II Android Development] tdunham:
Have you tried using the flashbarservice.apk from Mirko's rom?
[Galaxy S II Android Development] laotzy:
No, I haven't. Will try it then. Hope it could help. I will inform if it does.
[Galaxy S II Android Development] tdunham:
There are a bunch of different Flashbarservice files around. I think I have about 7 or 8 of them that I looked at when I was trying to port MW mod to our SII variant.
[Galaxy S II Android Development] laotzy:
My problem is that I am not at all specialist. I can compile or decompile files or make some corrections in the string but it's very difficult for me to find out real solution. I always follow strict instructions... Sometimes I resolve a lite problem in a Mod for it to start working but not in this case. It is just happened to me, though - why not try the LS8 FlashBarService??? It works perfect when installed on my SGS2. Of corse if the problem is in the FlashBarService... Going to try:confused:

---------- Post added at 04:29 PM ---------- Previous post was at 04:11 PM ----------

Oh man... It was as easy as that! I took FlashBarService from LS8 Mod and simply replace by it the FlashBarService I had in my telephone. Now it works like a charm. Thank you for giving me the idea!
[Galaxy S II Android Development] tdunham:
Glad it worked for you.

Sometimes, it is the simplest idea. :D
[Galaxy S II Android Development] MatrixDJ96:
Does this guide work for LSW?
[Galaxy S II Android Development] Kurotsuchi:
PLEASE anyone knows where to put the additional_files.rar ????

I really appreciate any answer ,

THANKS :)
[Galaxy S II Android Development] Sami Kabir:
[MENTION=4354672]mythtrandyr[/MENTION] and [MENTION=3065070]Goldie[/MENTION] (sorry to tag you guys in this post, but I'm really desperate to add this feature to my ROM)

I tried doing this for my SGSA running 4.1.2.. The hardware and software is "almost" the same as S2's ones - so I figured that it should work..

- But I keep getting this when I enable Multiwindow from Settings:

- I also cannot open Recent Apps page.. If I long press the home button, my SystemUI crashes :eek:

If I attach my logcat, will you be able to tell me what's causing this? I would have attached it now but I restored the modified files with the original ones to get out of this mess.. But I can do it again (install my modded files) to get you a logcat.. Thanks in advance :D

And [MENTION=4474161]slade9220[/MENTION], I saw your post in this thread and I think you had the same problem as I am having now.. so did you mane to fix it? :o
[Galaxy S II Android Development] D2Y aka E:
sorry out of the theme .. if this tutorial works on the base 4.2.2 or have already tried it .. thank you already want to answer ..:D
[Galaxy S II Android Development] isaak:
1) Did you try this procedure?

Source:

http://www.note2forum.com/forum/galaxy-note-2-hacking-mods/1653-muti-window-manager-2.html

OR

2) Try with one of these FlashBarService versions in attachment.
[Galaxy S II Android Development] Sami Kabir:
No I didn't. I actually gave up on MultiWindow, because there is an Xposed Module (XMultiWindow) that does the same thing - but better.

If I get some time, I might give it another go. Thanks for sharing this info.
[Galaxy S II Android Development] jr jimmy:
Hey guys..can i use this method on Marshmallow..

If not do u know how to add multi window on galaxy j7prime marshmallow..please teach me..thx..
[Nexus 7 Themes and Apps] rockstang:
So googles voice engine is pretty lame IMHO. I didn't find the voice and pronunciations to be clear enough. I am quite pleased with Ivona text-to-speech engine. Its free and available in the play store. Sorry I would link, but I haven't reached my ten submissions.

Setup is pretty self explanatory:

1. download the app

2. Open app and choose desired voice (download takes a minute or two)

3. select the voice engine settings/language & input/text-to-speach

Hope this helps!
[Nexus 7 Themes and Apps] jook11:
Here ya go:

Main app

Personally, I like the British English voice.

The Australian one is also not bad.