8 Replies Latest reply: Dec 14, 2017 3:41 PM by aalapptl02 RSS

Blackberry APK manager in MAC

aalapptl02 Newbie

I am using android studio 3.0. I am trying to run my android app in blackberry. It has been couple of days that I am following blackberry guidelines and discovered that, after getting error "Can't load project" with plugin manger exception that, I cant use plugin tools any more with newer android studio versions. I tried next option which is using command tools. I followed steps from this link (https://developer.blackberry.com/android/files/documentation/install_an_app_rpkg_tool.html) for that as well and created account for blackberry id, downloaded tools zip file named (CommandLineTools_2.0.6.201409181326-mac.zip).

 

I also have downloaded keystore file with .csk extension. Next step which says

The BlackBerry APK Packager and the BlackBerry Signing Configuration wizard

The issue I have is

 

1) I cant seems to find or understand Research in motion file (I found Library folder but I dont have research in motion file).

2) .exe files doesn't open in MAC environment. They have a work around of clicking on the file with control button and then opening but it just opens a text file which has info about what this file is. Thus I am not able to follow this steps shown in dialogs (i.e. signing configuration and confirmation ones).

 

Set up your test environment

 

I followed steps in this section as well, opened blackberry device and activated developer mode but not able to find device it in my ADB

 

Please guide me further if I am missing something or doing something wrong.

  • Re: Blackberry APK manager in MAC
    Mark Sohm BlackBerry Employee

    The BlackBerry 10 Android Studio Plug-in no longer functions in current versions of Android Studio.  Changes were made to Android Studio that broke the plug-in, which is no longer being updated.

     

    You can still use the command line tools.  It sounds like you've downloaded the command line tools for Windows instead of Mac, since you are seeing exe files.  Download the Mac version and you should be able to repackage using it.

     

    http://developer.blackberry.com/android/tools/

    • Re: Blackberry APK manager in MAC
      aalapptl02 Newbie

      Thank you Mark, I downloaded for MAC now and opened the package manager, converted my debug.apk to .bar and now I want to install it on my blackberry Q5 phone.

       

      Now I open Blackberry ADB proxy manager and try to add my device with its IP address (found from settings->about->network option from drop-down-> ipv4 address), but it says that "No device recognized at address:XXX.XXX.X.XXX".

       

      I figured that I didn't check signin and deploy check boxes while creating .bar file.

       

      So, I also followed this steps (https://developer.blackberry.com/android/documentation/rpkg_with_apk_pkgr_tool.html) and at the end I see blackberry deploy dialog box, I dont see device name in drop down (My phone is plugged in to MAC with usb cable and with developer mode on) list so I enter device name using the format shown in the steps which is (BLACKBERRY 5E48 - (XXX.XXX.X.XXX) ) for me, and add password as well, but it says connection timeout exception every time.


       

      • Re: Blackberry APK manager in MAC
        Mark Sohm BlackBerry Employee

        ADB proxy manager is another component that was broken in newer versions of Android Studio.  Deployment of the BAR file should still work as far as I'm aware using blackberry-deploy.  But debugging features are not available.

        • Re: Blackberry APK manager in MAC
          aalapptl02 Newbie

          Thank you Mark , so why is that I am having trouble with deploying bar file ?

           

          Is it because as you said debugging features are not available that means I can not deploy debug .bar file ? Or Is it that I am not able to enter proper device info and that is why I am getting time out error ?

          • Re: Blackberry APK manager in MAC
            Mark Sohm BlackBerry Employee

            Try running blackberry-deploy from a command line, specify the device USB IP address and see if you can connect and deploy that way.

             

            If that doesn't work see if you can ping the IP.  If not, there is likely some firewall or VPN software running that is blocking the connection.

            • Re: Blackberry APK manager in MAC
              aalapptl02 Newbie

              Mark sorry in advance but I tried the second option you mentioned first,

               

              i.e pinging my ip address 1) mentioned in setting->security and privacy->development mode-> ip address xxx.xxx.x.x

              2) settings->about->network option from drop down->ipv4 address in format xxx.xxx.x.xxx

               

              My command in iTerm is ping xxx.xxx.x.x and with another ip format ping xxx.xxx.x.xxx and it gives me this mentioned messages in image.

               

              Screen Shot 2017-11-02 at 14.36.15.png

               

               

              Does this mean that if I try first option it wont work as well ?

              • Re: Blackberry APK manager in MAC
                Mark Sohm BlackBerry Employee

                Correct, if you can't ping the device's IP address none of the development tools will be able to connect to it.  If you haven't tried, give the device a reboot.  That can resolve USB issues if it's a device side problem.  Note that you'll need to re-enable developer mode after the restart.  If that doesn't help you'll need to check on the computer side to see what is blocking the connection.

                • Re: Blackberry APK manager in MAC
                  aalapptl02 Newbie

                  Hi Mark. Sorry for late response, I was out of the project for a while. I have made progress on the discussion we had and wanna thank you for that. now I have successfully created .bar file of my project's .apk file using APK to Bar Online Converter link. I also installed it to my blackberry phone from my playbook manager extension from chrome.

                   

                  Now when I run the app it crashes and gives "unfortunately app stopped" classic android crash msg. But I dont see anything in my android studio in device listing so I am not able to move forward and find the root cause. I have also downloaded blackberry emulator but when I try to open it, my iMac says it cant open it says

                   

                  “BlackBerry10Simulator-Installer” can’t be opened because the identity of the developer cannot be confirmed."

                   

                  Please guide how to proceed ??