Home > Uncategorized > Convert BlackBerry 10 BAR file to Android APK #BlackBerryDev

Convert BlackBerry 10 BAR file to Android APK #BlackBerryDev

I just developed this proxy to convert BlackBerry 10 BAR files based on the android runtime to APKs that can be installed on and Android phone.

There’s no user interface yet to this, you just post a url to a BAR file, and the APK will be returned back to you, like this


The whole process is done in-memory, with no temporary files, I’ve used sharpziplib :

var strUrl = Request.QueryString[“url”];
var wc = new WebClient();
var zipped = wc.DownloadData(strUrl);
var stream = new MemoryStream();
stream.Write(zipped, 0, zipped.Length);
stream.Position = 0;
var zf = new ZipFile(stream);
foreach(ZipEntry ze in zf)
if (!ze.Name.EndsWith(“.apk”)) continue;
var zs = zf.GetInputStream(ze);
using (var ms = new MemoryStream())
Response.ContentType = “application/vnd.android.package-archive”;
Response.AddHeader(“Content-Disposition”, “attachment; filename=” + ze.Name + “;”);

Categories: Uncategorized
  1. February 18, 2017 at 12:40 am

    Do you have a user interface yet? i am not to tech savy to send the file with a website link so i don´t know how to send you the files i want converted.


  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: