Page 1 of 4 1234 LastLast
Results 1 to 25 of 86
Like Tree11Likes
  1. Thread Author  Thread Author    #1  

    Default [How to] edit apps for use with multi window.

    I know some of you were disappointed when the apps thread was removed. I am also aware that some of you may not want to root your devices, but you do want the ability to add apps to the multi-window.

    This post is meant to assist users with modifying an apk file for use with the Multi-window feature on the Galaxy Note II.
    Root is not needed.

    Credit goes to the folks over in the Galaxy Note 10.1 forums.

    ianbbaa
    JustFlesh
    Leppin


    Special thanks also goes to our very own DroidXcon who was extremely patient and helpful in making the original apps thread, and who also asked me to put this together for all of you.

    The first section describes how to modify the apps using the apk multi-tool.
    The second section describes how to modify the apps manually from the command prompt using the files from the apk multi-tool.
    This will not work with all apps, some will not recompile.

    What you'll need.

    1. apk multi tool -
    2. Java -
    3. A zip program -
    4. A file explorer -

    You may receive a java not found error when running the script the first time. If you have correctly installed java the error means you will have put java in your path.

    Setting Path on Windows.
    Ex: C:\Program Files\Java\jdk1.7.0_02\bin

    Windows 7
    1. Select Computer from the Start menu
    2. Choose System Properties from the context menu
    3. Click Advanced system settings > Advanced tab
    4. Click on Environment Variables, under System Variables, find PATH, and click on it.
    5. In the Edit windows, modify PATH by adding the location of the class to the value for PATH. If you do not have the item PATH, you may select to add a new variable and add PATH as the name and the location of the class as the value.
    6. Reopen Command prompt window, and run your java code.

    Windows XP
    1. Start -> Control Panel -> System -> Advanced
    2. Click on Environment Variables, under System Variables, find PATH, and click on it.
    3. In the Edit windows, modify PATH by adding the location of the class to the value for PATH. If you do not have the item PATH, you may select to add a new variable and add PATH as the name and the location of the class as the value.
    4. Close the window.
    5. Reopen Command prompt window, and run your java code.

    Windows Vista
    1. Right click My Computer icon
    2. Choose Properties from the context menu
    3. Click Advanced tab (Advanced system settings link in Vista)
    4. In the Edit windows, modify PATH by adding the location of the class to the value for PATH. If you do not have the item PATH, you may select to add a new variable and add PATH as the name and the location of the class as the value.
    5. Reopen Command prompt window, and run your java code.

    Section 1 - Script method.

    Put the apk tool zip file onto your desktop. Right click on the zip file, choose the zip program, and extract to "apk-multi-toolv1.0.10".
    It will create the folder apk-multi-toolv1.0.10 on your desktop.
    Using explorer, go into the apk-multi-toolv1.0.10 folder, double click the setup command and choose option 3 to setup directories.
    After the folders have been created, type 00 to quit the setup program.


    Before you can edit an app you have to get the apk file from the app. You can do this on your device with ES file explorer.
    Launch ES file explorer, hit menu - manager - app manager. Press and hold the app you want and select backup. There will be a short message stating the location of the backup.



    Transfer the apk file to your PC using your preferred method.
    Place the apk file in the folder "place-apk-here-for modding" folder which is inside the folder that you created on your desktop.

    Double click "script" and press any key to continue.

    Choose option 9 to decompile the apk file. (If the screen immediately closes skip to the manual section of this document).
    When the decompile finishes, type 00 and press enter, or press the control key and c together, then answer Y and hit enter.


    Using windows explorer, go into the "projects" folder, then into the folder of the app you decompiled.
    Right click on AndroidManifest, choose open with, choose wordpad.


    Select find. In the find what box type "category.launcher".
    Add the following underneath the category.launcher line.You can simply Cut and paste the code from the box below.
    Code:
    <category android:name="android.intent.category.MULTIWINDOW_LAUNCHER" />


    Search for /application.
    Add the following lines BEFORE the /application line.You can simply Cut and paste the code from the box below.
    Code:
    <uses-library required="false" name="com.sec.android.app.multiwindow" />
    <meta-data android:name="com.sec.android.support.multiwindow" android:value="true" />
    <meta-data android:name="com.sec.android.multiwindow.DEFAULT_SIZE_W" android:value="632.0dip" />
    <meta-data android:name="com.sec.android.multiwindow.DEFAULT_SIZE_H" android:value="598.0dip" />
    <meta-data android:name="com.sec.android.multiwindow.MINIMUM_SIZE_W" android:value="632.0dip" />
    <meta-data android:name="com.sec.android.multiwindow.MINIMUM_SIZE_H" android:value="598.0dip" />


    Save the document. If you get the popup about the format, click yes, close the document.
    Launch the script again, this time choose option 15, and press enter. Press the control key and c together, and answer y.

    Press the control, alt, and delete keys together, choose start task manager, select adb.exe, select end process.


    Go into the "place-apk-here-for-modding" folder.
    Transfer the signed apk file to your device. Using a file explorer, navigate to the location of the signed apk file, tap the file and install.

    Section 2 - Manual method.

    Move the apk file to the "other" folder which you'll as a sub folder in the "apk-multi-toolv1.0.10" folder you created on your desktop.
    Start the command line on your PC.


    cd desktop\apk-multi-toolv1.0.10\apk-multi-tool\other
    List the contents of the folder by typing dir
    You should see the apk file you placed in this folder as well as the executables installed with you extracted the zip file.
    In this example I will use the name mms.apk, you of course will use the name of the apk file you're modifying. If the file name has spaces you will need to put the file name in double quotes. Example: "mms 2.apk"

    To decompile the apk type:
    apktool d -s --no-src mms.apk (mms is the file name used in this example).
    When the app has been decompiled it will look like the following:
    I: Copying raw classes.dex file...
    I: Loading resource table...
    I: Loaded.
    I: Decoding AndroidManifest.xml with resources...
    I: Loading resource table from file: C:\Users\js\apktool\framework\1.apk
    I: Loaded.
    I: Decoding file-resources...
    I: Decoding values */* XMLs...
    I: Done.
    I: Copying assets and libs...

    You will now have a folder with the named mms (mms is the apk file used in this example) inside "desktop\apk-multi-toolv1.0.10\apk-multi-tool\other".
    Now you can perform the same steps as above to modify the xml file.
    After saving the xml file, go back to the command line and recompile the apk by typing the following:
    apktool b mms (mms is just the example used here).

    If the app compiles successfully you will see the following:
    I: Copying classes.dex file...
    I: Checking whether resources has changed...
    I: Building resources...
    I: Building apk file...

    If the app does not recompile successfully this app cannot be used.

    After successfully compiling the app, you now have to sign the apk file in order to install it onto your device.
    The apk you'll need to sign is located in the "desktop\apk-multi-toolv1.0.10\apk-multi-tool\other\mms\dist" folder. mms is only the file name used in this example.
    You can move this file up to the "other" folder.

    To sign the apk file, type the following:

    java -jar SignApk.jar -w testkey.x509.pem testkey.pk8 "mms.apk" signed.mms.apk (mms is only the file name used in this example).

    You should now have a properly signed apk modified to work with multi-view.
    You can now transfer the signed_.apk file to your device to be installed. The previous version of the app must be uninstalled first.
    Last edited by pool_shark; 12-28-2012 at 07:00 AM.
    Thanked by 19:
    + Show/Hide list of the thanked
  2. #2  

    Default Re: How to edit apps for use with multi window.

    Awesome shark much appreciated. Is it easier if we are rooted?
    Sent from my Rooted VZW Note 3
  3. Thread Author  Thread Author    #3  

    Default Re: How to edit apps for use with multi window.

    Quote Originally Posted by sudbury78 View Post
    Awesome shark much appreciated. Is it easier if we are rooted?
    This has nothing to do with being rooted.
    If you're rooted you can just install the multi window control mod. That eliminates the need for this.
  4. #4  

    Default Re: How to edit apps for use with multi window.

    That was my point. Assume its way easier?
    Sent from my Rooted VZW Note 3
  5. Thread Author  Thread Author    #5  

    Default Re: How to edit apps for use with multi window.

    This is for those who don't want to root or unlock.
    If you're rooted and unlocked, just flash the multi window mod and install the mwc app, then you can add any app you like.

    I flashed it yesterday, it works great.
  6. #6  

    Default Re: How to edit apps for use with multi window.

    I had asked nhbass for some help in noob terms. The xda instructions go over my head. Haha
    Sent from my Rooted VZW Note 3
  7. Thread Author  Thread Author    #7  

    Default Re: How to edit apps for use with multi window.

    Instructions for flashing the mwc mod?
    Thanked by:
    Domdym 
  8. #8  
    DroidXcon's Avatar

    Posts
    11,645 Posts
    Global Posts
    11,775 Global Posts
    ROM
    Stock for now

    Default Re: How to edit apps for use with multi window.

    Quote Originally Posted by pool_shark View Post
    Instructions for flashing the mwc mod?
    Cwm (clockwork mod recovery) ill be working on these write ups next. I need to get all these done before xmas. So much to do so little time. . Great job pool shark. Thank you for your work

    From my Galaxy Note 2 via Tapatalk
    If i've made life easier buy me a Macchiato
    Thanked by:
  9. #9  

    Default Re: [How to] edit apps for use with multi window.

    Can't wait!
    Sent from my Rooted VZW Note 3
  10. #10  
    DroidXcon's Avatar

    Posts
    11,645 Posts
    Global Posts
    11,775 Global Posts
    ROM
    Stock for now

    Default Re: [How to] edit apps for use with multi window.

    Everyone please than pool shark this was his first big write up. He took allot of time and care. Its well done and appreciated

    From my Galaxy Note 2 via Tapatalk
    If i've made life easier buy me a Macchiato
  11. #11  
    Johnly's Avatar

    Posts
    7,357 Posts
    Global Posts
    10,402 Global Posts
    ROM
    AOSP, & stock.

    Default Re: [How to] edit apps for use with multi window.

    Quote Originally Posted by DroidXcon View Post
    Everyone please than pool shark this was his first big write up. He took allot of time and care. Its well done and appreciated

    From my Galaxy Note 2 via Tapatalk
    done...
    Thanked by 2:
  12. #12  
    NHBass39's Avatar

    Posts
    788 Posts
    ROM
    Stock rom/rooted

    Default Re: [How to] edit apps for use with multi window.

    Quote Originally Posted by Johnly View Post
    done...
    Done as well

    - - - Updated - - -

    Quote Originally Posted by NHBass39 View Post
    Done as well
    Last edited by NHBass39; 01-03-2013 at 06:17 AM.
    Thanked by:
  13. #13  

    Question Re: [How to] edit apps for use with multi window.

    Is this also possible on S3 4.1.2?
  14. Thread Author  Thread Author    #14  

    Default Re: [How to] edit apps for use with multi window.

    Quote Originally Posted by oddBeat View Post
    Is this also possible on S3 4.1.2?
    You're modifying apps, not the device, so it should work for any device using multi view.
  15. #15  

    Default Re: [How to] edit apps for use with multi window.

    When I run the script I get a "java not found" error. I have java installed and I also downloaded java from the posted link and let it uninstall and reinstall with no joy. Any ideas what I'm doing wrong?

    EDIT: I'm running Windows 7 x64 if it matters
    Last edited by rlt9999; 12-23-2012 at 09:41 PM. Reason: more info
  16. #16  
    DroidXcon's Avatar

    Posts
    11,645 Posts
    Global Posts
    11,775 Global Posts
    ROM
    Stock for now

    Default Re: [How to] edit apps for use with multi window.

    Quote Originally Posted by rlt9999 View Post
    When I run the script I get a "java not found" error. I have java installed and I also downloaded java from the posted link and let it uninstall and reinstall with no joy. Any ideas what I'm doing wrong?

    EDIT: I'm running Windows 7 x64 if it matters
    go to start on your computer>right click on "computer" and select Properties>Advanced system settings>Advanced tab>Under "System variables" highlight CLASSPATH>click Edit button>Variable name should be similar to this .;C:\Program Files (x86)\Java\jre6\lib\ext\QTJava.zip
    If i've made life easier buy me a Macchiato
  17. Thread Author  Thread Author    #17  

    Default Re: [How to] edit apps for use with multi window.

    Quote Originally Posted by DroidXcon View Post
    go to start on your computer>right click on "computer" and select Properties>Advanced system settings>Advanced tab>Under "System variables" highlight CLASSPATH>click Edit button>Variable name should be similar to this .;C:\Program Files (x86)\Java\jre6\lib\ext\QTJava.zip
    I was just about to post a link showing how to set the path, though it shouldn't really be needed.
    Oh yeah, just in case, I never used an anti virus program that didn't think java was a virus.
  18. #18  
    DroidXcon's Avatar

    Posts
    11,645 Posts
    Global Posts
    11,775 Global Posts
    ROM
    Stock for now

    Default Re: [How to] edit apps for use with multi window.

    Quote Originally Posted by pool_shark View Post
    I was just about to post a link showing how to set the path, though it shouldn't really be needed.
    Oh yeah, just in case, I never used an anti virus program that didn't think java was a virus.
    is what i said correct and inline with what you were going to post?
    If i've made life easier buy me a Macchiato
  19. Thread Author  Thread Author    #19  

    Default Re: [How to] edit apps for use with multi window.

    Quote Originally Posted by DroidXcon View Post
    is what i said correct and inline with what you were going to post?
    Yes.

    Windows 7
    1. Select Computer from the Start menu
    2. Choose System Properties from the context menu
    3. Click Advanced system settings > Advanced tab
    4. Click on Environment Variables, under System Variables, find PATH, and click on it.
    5. In the Edit windows, modify PATH by adding the location of the class to the value for PATH. If you do not have the item PATH, you may select to add a new variable and add PATH as the name and the location of the class as the value.
    6. Reopen Command prompt window, and run your java code.
  20. #20  
    DroidXcon's Avatar

    Posts
    11,645 Posts
    Global Posts
    11,775 Global Posts
    ROM
    Stock for now

    Default Re: [How to] edit apps for use with multi window.

    Quote Originally Posted by pool_shark View Post
    Yes.

    Windows 7
    1. Select Computer from the Start menu
    2. Choose System Properties from the context menu
    3. Click Advanced system settings > Advanced tab
    4. Click on Environment Variables, under System Variables, find PATH, and click on it.
    5. In the Edit windows, modify PATH by adding the location of the class to the value for PATH. If you do not have the item PATH, you may select to add a new variable and add PATH as the name and the location of the class as the value.
    6. Reopen Command prompt window, and run your java code.
    You should add this to the OP and add the example of what the path should look like

    From my Galaxy Note 2 via Tapatalk
    If i've made life easier buy me a Macchiato
  21. #21  

    Default Re: [How to] edit apps for use with multi window.

    Thanks for the help guys, I had read the manual that was included in the APK Multi-Tool and was already editing my system path.When all else fails, RTFB. I haven't had to edit a path since MSDOS 3.3 and that's a long time ago! Just for reference for mine I had to add C:\Program Files (x86)\Java\jre7\bin

    BTW, I use Norton Internet Security and it's never had a problem with java but I've used others that did.
  22. #22  
    DroidXcon's Avatar

    Posts
    11,645 Posts
    Global Posts
    11,775 Global Posts
    ROM
    Stock for now

    Default Re: [How to] edit apps for use with multi window.

    Bump

    From my Galaxy Note 2 via Tapatalk
    If i've made life easier buy me a Macchiato
  23. #23  

    Default Re: [How to] edit apps for use with multi window.

    I just did it on my S3 and it worked perfectly
    DroidXcon likes this.
  24. Thread Author  Thread Author    #24  

    Default Re: [How to] edit apps for use with multi window.

    Quote Originally Posted by Myburgh Nel View Post
    I just did it on my S3 and it worked perfectly
    Great.
  25. #25  

    Default Re: [How to] edit apps for use with multi window.

    Hey Im busy writing most of my apps to do this and I got to say thanks poolshark!!!! I really appreciate it a lot!!! Im really enjoying running my favorite apps in dual view. I just want to know if there is a way to stop the script from closing immediately after pressing nine to decompile? Cause I dont really like doing it the manual way. Also, how could I do this with system apps like S memo, Playstore, or My files? Thanks a lot

    - - - Updated - - -

    Hey Im busy writing most of my apps to do this and I got to say thanks poolshark!!!! I really appreciate it a lot!!! Im really enjoying running my favorite apps in dual view. I just want to know if there is a way to stop the script from closing immediately after pressing nine to decompile? Cause I dont really like doing it the manual way. Also, how could I do this with system apps like S memo, Playstore, or My files? Thanks a lot
Page 1 of 4 1234 LastLast

Similar Threads

  1. How-To Enable ADB for the Kindle Fire (Windows)
    By Jerry Hildenbrand in forum Amazon Kindle Fire
    Replies: 9
    Last Post: 10-19-2012, 08:05 PM
  2. Replies: 1
    Last Post: 07-25-2012, 04:52 AM
  3. How to "enable video" in settings for use with Skype
    By rocksdahouse in forum Samsung Galaxy Tab 10-inch
    Replies: 1
    Last Post: 10-03-2011, 10:28 AM
  4. [HOW-TO] Work-arounds for issues with stock Nook Color ROM
    By lopezpm in forum Barnes & Noble Nook Color
    Replies: 21
    Last Post: 03-25-2011, 05:36 AM
  5. App for using an Android device as input to a PC
    By johnssm in forum Market Help
    Replies: 0
    Last Post: 12-10-2010, 08:56 PM

Posting Permissions

B