Join Our 3 MILLION+ Members Today! Register Here | Login
Go Back   BlackBerry Forums at CrackBerry.com > BlackBerry PlayBook Tablet Forums > PlayBook Apps & Games > Android App Sideloading

Like Tree42Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
    Thread Author   #1  
Old 10-20-2011, 01:37 AM
CrackBerry Master
Device(s): 9900
Carrier: T-Mobile
 
Join Date: Apr 2008
Posts: 1,122
Likes Received: 321
Thanked 597 Times in 210 Posts
Default Tools to help make the APK -> BAR process easier (UPDATED)

Well guys, I made some batch files to simplify the loading of BAR files before and now I'm back with some more batch files to streamline the APK to BAR conversion process, and the signing process.

Grab this ZIP file and extract it to the root of your C drive. You should end up with a folder structure like so "C:\apk2bar" that has my "apk2bar-HaTaX.bat" and "signbar-HaTaX.bat" in there.(apk2bar-HaTaX.zip)

If this is your first time dipping your toes into this, all you need besides this file is the Android SDK to get started. And if you plan on sharing these BAR files with others, you should go get yourself some signing keys pronto, they take a few days to get sometimes. That means yes, the Blackberry command line converter and signing tools are in this ZIP file and you don't need to go grab those again.

I don't need to go into detail twice for this, I included a "README" file in the zip that outlines the steps you need to take, so I'll just post the contents of it here:
Code:
Hello fellow BlackBerry lovers!!!

I've made a few batch files before to make things easier, and here
is the latest installment to simplify the two step process to porting
Android APKs over to the Android Player on the BlackBerry Playbook.

apk2bar-HaTaX.bat -

    This batch file processes the APK and converts it to a loadable BAR file.
    It will place the BAR file in the same directory the APK file was in.

    First things first, go get your Android SDK downloaded from here:

        http://developer.android.com/sdk/index.html

        When running the installer, remember where you installed the SDK!
        You're going to need that path in a future step, I installed to
        "C:\android-sdk" to keep things simple and clean.


    Second, get that SDK installed and download the "SDK Platform" from the
        "Android 2.3.3 (API10)" list in the Android SDK Manager tree.

    Third,  setup the apk2bar-HaTaX.bat file by opening it up in notepad and make
        sure the "ANDROIDSDK=" line has the correct path to the installed SDK.

    You're set at this point!  Just drag an APK onto the batch file in windows
        explorer and it should start working it's magic.  If the file isn't
        compatible you'll see that listed in the output at the end.


signbar-HaTaX.bat -

    This batch file signs the BAR file created by apk2bar-HaTaX.bat.

    First,  make sure you've gone through the steps to get your signing keys from RIM.
        Start that process at this URL:

        https://www.blackberry.com/SignedKeys/    

    Second, get those keys activated and create a working p12 certificate file.
        Follow the steps at this URL if you need help:

        http://docs.blackberry.com/en/developers/deliverables/27280/Configure_app_signing_from_cmd_line_1463563_11.jsp

    Third,  setup the signbar-HaTaX.bat file by opening it up in notepad and make
        sure the 3 lines are properly filled out.  You should know where your
        .p12 file is, and the passwords for both the .p12 and the CSK password.
        (You created these passwords when you went through step 2 above)

    You're set again!  Just drag a BAR file made with apk2bar-HaTaX.bat onto the
        batch file in windows explorer and you will get a signed BAR file
        ready to be loaded on any Playbook running OS 2.0 with developer mode on.



Good luck!
So basically just follow those steps to get setup and you'll be on your way to converting and signing your very own Android app.

Let me know what you think and how it works for you! I'll consider putting together OSX / Linux shell scripts for this if there's enough demand as well.

EDITS:
New version 1.2 posted on 12-17-2011
This version supports multiple files at once, now you can select multiple files to have converted or signed and it will process them one by one. I know, something that would have been more useful a while ago, but better late then never!!
New version 1.1 posted on 11-1-2011
This version now supports long file names in paths and APK names.
Problems with APKs in a root folder of a drive fixed (C:\ for example).
Some additional tweaks to ensure the correct file is passed.
Default output of APK left up to apk2bar application now, they WILL be placed where the original APK was located


Previous versions available:
1.1 - Download apk2bar-HaTaX-1.1.zip
1.0 - Download apk2bar-HaTaX-1.0.zip

Last edited by HaTaX; 12-17-2011 at 03:46 AM.
Reply With Quote Tip this Post
Liked by supraking, GizmoJeff, Mojoski and 19 others like this.
Thanked by 65 00stryder (12-17-2011), 069908226 (04-09-2012), 33497746 (01-01-2012), afool622 (01-05-2012), aleem.114 (01-24-2012), baysed408 (02-28-2012), bbhybridchris (10-30-2011), bedpan (12-24-2011), bioberry (12-31-2011), bklyneddie (11-01-2011), Bluemax413 (10-20-2011), bluetroll (02-25-2012), Bulldawg (02-02-2012), currentuser (12-19-2011), daniekl (10-22-2011), Deathcommand (02-17-2012), dimm0k (02-23-2012), djrobinn (10-28-2011), elhsupra (01-12-2012), emanxp (11-24-2011), fbloise (12-25-2011), GizmoJeff (11-19-2011), gnasher666 (10-21-2011), Guyzer (11-15-2011), hjkimbrian (03-03-2012), Iatogenicx (02-24-2012), irsan (10-20-2011), irvc.666 (03-07-2012), jerryburst (03-04-2012), jon2003 (12-19-2011), Juggalo20 (10-22-2011), kewlbuddy (01-03-2012), kn0ff (03-20-2012), lwaysluking (10-20-2011), mackie313 (12-06-2011), Megacharge (12-29-2011), Mikhou (01-15-2012), ministry_of_sound (03-04-2012), misdeismo (10-20-2011), Mojoski (10-20-2011), morfy50 (10-26-2011), NooRoticX (12-27-2011), pixieloulou (12-04-2011), PowderJockey (03-10-2012), q649 (10-23-2011), quorry (03-03-2012), rafa32gr (12-29-2011), rais.aslam (10-27-2011), SlcCorrado (11-07-2011), Smooth Chef D (10-20-2011), Somvang1 (10-21-2011), SoUnCool (10-20-2011), spid4me (11-19-2011), StrikeIII (10-20-2011), StringThing (11-29-2011), supraking (10-21-2011), Technosnob (02-25-2012), the.abyzz (10-21-2011), Thetnaung (10-21-2011), The_Original_Modifier (10-30-2011), tofo17 (10-20-2011), Vanderchoac (11-16-2011), VishRS (02-06-2012), xShrimp (02-28-2012), Yosaki (10-21-2011)
  #2  
Old 10-20-2011, 01:38 AM
CrackBerry Genius of Geniuses
Device(s): 9900
Carrier: Tmobile
 
Join Date: Sep 2008
Posts: 14,982
Likes Received: 416
Thanked 335 Times in 269 Posts
Default

Awesome.... let the mass apk conversions commence

Sent from Tapatalk on my Playbook
__________________
My website http://papped.webatu.com
Reply With Quote Tip this Post
    Thread Author   #3  
Old 10-20-2011, 01:41 AM
CrackBerry Master
Device(s): 9900
Carrier: T-Mobile
 
Join Date: Apr 2008
Posts: 1,122
Likes Received: 321
Thanked 597 Times in 210 Posts
Default

D@mn, you is fast papped...

Hopefully this will help the people out that aren't so familiar with the whole process. Only ugly part is getting the signing keys and following the registration instructions to get a working .p12 file. Not much I can do to work around that...

Other then that, it should make the process a lot faster for those that are just testing and dumping these APKs like candy.
Reply With Quote Tip this Post
  #4  
Old 10-20-2011, 01:51 AM
CrackBerry Newbie
 
Join Date: Sep 2011
Posts: 3
Likes Received: 0
Thanked 0 Times in 0 Posts
Default

Amazing!! thank you very much and trying on it now~
Reply With Quote Tip this Post
  #5  
Old 10-20-2011, 01:52 AM
CrackBerry Genius of Geniuses
Device(s): 9900
Carrier: Tmobile
 
Join Date: Sep 2008
Posts: 14,982
Likes Received: 416
Thanked 335 Times in 269 Posts
Default

Was just luck actually, lol. Just happened to look at the post right after you made it.

Sent from Tapatalk on my Playbook
__________________
My website http://papped.webatu.com
Reply With Quote Tip this Post
  #6  
Old 10-20-2011, 03:43 AM
CrackBerry Newbie
 
Join Date: Sep 2011
Posts: 3
Likes Received: 0
Thanked 0 Times in 0 Posts
Default

jut try it and seem like not working on my computer. it took 5sec and show me "exiting" but nothing come out to the folder. did i make something wrong?
Reply With Quote Tip this Post
    Thread Author   #7  
Old 10-20-2011, 04:03 AM
CrackBerry Master
Device(s): 9900
Carrier: T-Mobile
 
Join Date: Apr 2008
Posts: 1,122
Likes Received: 321
Thanked 597 Times in 210 Posts
Default

I did notice one small thing, don't have your APKs in the root folder of a drive. It chops the last "\" off and it doesn't have a proper output path then. I'll fix this soon and post up a new link, but for now just put it in "C:\Temp" or something before dragging it over.
Reply With Quote Tip this Post
  #8  
Old 10-20-2011, 04:19 AM
CrackBerry Newbie
 
Join Date: Sep 2011
Posts: 3
Likes Received: 0
Thanked 0 Times in 0 Posts
Default

I put the apk file to some folder and drag it again still nothing happen, may be i should wait for your new link and check it out again. Thank you very much~
Reply With Quote Tip this Post
  #9  
Old 10-20-2011, 06:57 AM
CrackBerry User
 
Join Date: May 2011
Posts: 17
Likes Received: 0
Thanked 2 Times in 2 Posts
Default

I cant find my DEVCERTPASS or CSKPASS password anywhere. Anyway I can retrieve it from my current environment?! I use Flash Builder.

Very stupid question, do you have to sign the file after the conversion, or is it suppose to work without signing?
Reply With Quote Tip this Post
  #10  
Old 10-20-2011, 07:57 AM
CrackBerry Newbie
 
Join Date: Oct 2011
Posts: 9
Likes Received: 1
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by snakeshea View Post
jut try it and seem like not working on my computer. it took 5sec and show me "exiting" but nothing come out to the folder. did i make something wrong?
Same here ...
Reply With Quote Tip this Post
  #11  
Old 10-20-2011, 08:04 AM
CrackBerry Abuser
Device(s): 32GB PlayBook and 9900
Carrier: Optus Australia
 
Location: Brisbane, Australia
Join Date: Feb 2010
Posts: 134
Likes Received: 16
Thanked 13 Times in 12 Posts
Default

Quote:
Originally Posted by Gossieur View Post
Same here ...
Same with me HataX, I get the "Starting to Convert", "Using Android SDK located at", and "Created BAR file will be placed in" messages followed by "Exiting" but nothing is created.

Tried a few APKs to be sure.
Reply With Quote Tip this Post
  #12  
Old 10-20-2011, 09:01 AM
CrackBerry Addict
Device(s): 9XXX :-)
Carrier: The Carrier
Pin: Ask Me
 
Location: London, UK
Join Date: Jun 2009
Posts: 782
Likes Received: 72
Thanked 69 Times in 47 Posts
Default

Same here as well, exiting with nothing created, nothing in log either.
__________________
Danger Mouse

Reply With Quote Tip this Post
  #13  
Old 10-20-2011, 09:45 AM
CrackBerry Abuser
 
Join Date: Jun 2011
Posts: 386
Likes Received: 53
Thanked 55 Times in 38 Posts
Default

me too,no file was created
Reply With Quote Tip this Post
  #14  
Old 10-20-2011, 09:58 AM
CrackBerry User
Device(s): 9850 & 16GB Playbook
Carrier: Verizon
 
Location: Charlotte, NC
Join Date: Mar 2009
Posts: 94
Likes Received: 38
Thanked 36 Times in 15 Posts
Default

For those of you having issues with this, if you are using Windows Vista or Windows 7 Microsoft changed the behavior of allowing drag and drop on batch files. Dropping the apk file on the .bat file will not work. You will have to open a command prompt and run it from there with the path to the apk file as an argument to the apk2bar-HaTax.bat file. I just confirmed that this does work.
Reply With Quote Tip this Post
Liked by erhan8 likes this.
  #15  
Old 10-20-2011, 10:05 AM
CrackBerry Newbie
 
Join Date: Oct 2011
Posts: 9
Likes Received: 1
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by compgen25 View Post
For those of you having issues with this, if you are using Windows Vista or Windows 7 Microsoft changed the behavior of allowing drag and drop on batch files. Dropping the apk file on the .bat file will not work. You will have to open a command prompt and run it from there with the path to the apk file as an argument to the apk2bar-HaTax.bat file. I just confirmed that this does work.
I'm not sure this is the issue, since I have it on Windows XP aswell ...
Reply With Quote Tip this Post
Liked by john1210 likes this.
Reply
BlackBerry Forums at CrackBerry.com > > BlackBerry PlayBook Tablet Forums > PlayBook Apps & Games > Android App Sideloading   Tools to help make the APK -> BAR process easier

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes