Wednesday , 26 April 2017
Home » Technology » Development » Hacking Android apps that don’t work to work on BlackBerry 10

Hacking Android apps that don’t work to work on BlackBerry 10

I just recently upgraded my dark arts of Android hacking skills which I’ll like to share. I’m sure many of you have come across verification problems when converting Android apps to the BlackBerry 10, especially those apps using Google Maps, and the apps just crashed when it opens. Well, fear not for I have figured out a solution. Do note this WILL make the app unstable and crash, and this is only for testing purposes to show a proof of concept of the app running on the BlackBerry 10 device.

  1. Set up your Android + BlackBerry development environment. If you don’t know how to, you should not be doing this.
  2. Download the apk from the Google Play store.
    1. You will need Chrome Browser and an Android device for this.
    2. Go to and follow the instructions.
    3. Go to Google Play store in Chrome and download the apk file.
  3. Use apk2barVerifier and you find out several problems with the AndroidManifest.xml
    1. E.g. []:(AndroidManifest.xml) uses-library:
    2. Oh No! What do you do now? Even if you install the generated bar file, it will crash on load.
  4. Download apktool and unzip –
  5. Decode your apk file
    1. ./apktool decode myappdirectory
    2. Now you have the ENTIRE apk decoded at your fingertips! GO WILD and MODIFY! You can now modify your AndroidManifest.xml!
  6. (Re)Build your apk file
    1. ./apktool b myappdirectory
  7. Sign your NEW apk file
    1. Follow these instructions if you haven’t created your signing key –
    2. jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore JustinLi
    3. Now you have a new APK file freshly off the oven. Yummy!!
  8. Just do the usual apk2bar procedures, and you should now be able to run the app ignoring the library!

This is VERY useful for 3rd party libraries, and other level 4-5 warnings. Again, I emphasise, this SHOULD only be shown as a prototype for apps just to make them run, and expectations should be made clear. This process is highly illegal as you are technically modifying someone’s intellectual property, assets and calling it your own (signing).

You have been warned. Go forth and hack on!

About Justin Lee

Check Also

Apple WWDC 2014 Videos Podcast RSS Feed Generator using XSLT

I realised there isn’t any podcast subscription link for the Apple WWDC 2014 videos at …

Leave a Reply