Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Android™ Runtime Development

Reply
Developer
Chambras
Posts: 34
Registered: ‎02-04-2012
My Device: BlackBerry PlayBook
Accepted Solution

result::failure -103

[ Edited ]

I am trying to deploy my signed .BAR application to my BlackBerry PlayBook but everytime I try I get this wierd error result::failure -103

 

These are the steps I am doing:

first comvert my .APK to BAR

./apk2bar [path to my apk folder] ~/android-sdks/  -t [path to output folder] -rv

 

then I sign it

./blackberry-signer -verbose -cskpass [password] -keystore author.p12 -storepass [password] [path to my .bar] RDK author

 

Then I verify it:

./blackberry-signer -verify -verbose [path to the .BAR]

 

and this is the output I get:

1342 Thu Nov 22 23:25:04 EST 2012 META-INF/MANIFEST.MF
         608 Thu Nov 22 23:25:04 EST 2012 META-INF/AUTHOR.SF
         601 Thu Nov 22 23:25:04 EST 2012 META-INF/AUTHOR.EC
         608 Thu Nov 22 23:25:04 EST 2012 META-INF/RDK.SF
         280 Thu Nov 22 23:25:04 EST 2012 META-INF/RDK.EC
sm      7600 Thu Nov 22 23:24:16 EST 2012 android/res/drawable-mdpi/icon.png
sm    169511 Thu Nov 22 23:24:16 EST 2012 android/Chmbrs-NotePadBB.apk

  s = signature was verified 
  m = entry is listed in manifest
  k = at least one certificate was found in keystore
  i = at least one certificate was found in identity scope

Info: Bar verified.

 According to this everything is fine.

 

Finally I push the file to my PlayBook

 

./blackberry-deploy -installApp -device 192.168.1.109 -package [path to the .BAR] -password [Playbook password]

 but this is where it fails and I get this output

Info: Sending request: Install
Info: Action: Install
Info: File size: 133672
Info: Installing ...
Info: Processing 133672 bytes
Info: Progress 50%...
Info: Progress 100%...
actual_dname::com.chmbrs.apps.notepad.gYABgOwP1jrtFP9mlr5GwQ_xwlw
actual_id::gYABgOwP1jrtFP9mlr5GwQ_xwlw
actual_version::1.0.5.0
result::failure -103

 I can see the application installed in the PlayBook but when I try to pen I get a window asking me to approve some permissions. I accept them and then I see a black window and the application closes itself. It does that all the time.

 

I have Oracle jdk installed version 1.6.0_33 and I am using Ubuntu 12.10 . That shouldn't matter though because according to the tool my .BAR is signed and without errors.

 

Any ideas why is not working? I would like not to use Eclipse because with the latest ADT update the BlackBerry plugin is broken and is not working not even on windows.

 

Thanks for the help.

Please use plain text.
Developer
murugesan2013
Posts: 34
Registered: ‎11-16-2012
My Device: BB Dev 10 Alpha Simulator

Re: result::failure -103

Try these steps,

  1. Save all files that you want to deploy in the same directory. The batchbar-deploy tool does not look for files in subdirectories.
  2. On the command line, navigate to the bin subfolder where you installed the SDK.
  3. Run the batchbar-deploy tool using the following syntax:
    batchbar-deploy <input_files> <IP_address> 
        <tablet_password> 
Regards,
Murugesan
Please use plain text.
Developer
murugesan2013
Posts: 34
Registered: ‎11-16-2012
My Device: BB Dev 10 Alpha Simulator

Re: result::failure -103

Please use plain text.
Contributor
amaguran
Posts: 23
Registered: ‎07-07-2010
My Device: 9700

Re: result::failure -103

Is your apk signed? If I remember correctly, this is what I've got when the apk was not signed.

Please use plain text.
Developer
murugesan2013
Posts: 34
Registered: ‎11-16-2012
My Device: BB Dev 10 Alpha Simulator

Re: result::failure -103

Could we able to get Debug token without signed ?? No I think.. only Signed app gets debug token

Regards,
Murugesan
Please use plain text.
Developer
Chambras
Posts: 34
Registered: ‎02-04-2012
My Device: BlackBerry PlayBook

Re: result::failure -103

If you open the batchbar-deploy file, in an editor, you will see that at the end it executes a blackberry-deploy command and I tried that approach already and it is still failing.

Please use plain text.
Contributor
amaguran
Posts: 23
Registered: ‎07-07-2010
My Device: 9700

Re: result::failure -103

[ Edited ]

I am talking about signed APK, not signed BAR. Is the apk properly signed?

Please use plain text.
Developer
Chambras
Posts: 34
Registered: ‎02-04-2012
My Device: BlackBerry PlayBook

Re: result::failure -103

There is no documentation about that. I do not think the apk needs to be singed. I do bot remember doing that before. In the whole workflow either using command line tools or the Eclipse plugin no where it says that you need to sign your apk before signing the BAR file

 

Are you sure about that?

Please use plain text.
Contributor
amaguran
Posts: 23
Registered: ‎07-07-2010
My Device: 9700

Re: result::failure -103

I'm 100% sure that I needed to sign the apk before signing the bar. However, I'm not 100% that I've got the -103 error when it was not signed. It could of been a different error code.

I'm sorry guys, but wouldn't be faster just to try that?

Cheers.

 

Please use plain text.
Developer
Chambras
Posts: 34
Registered: ‎02-04-2012
My Device: BlackBerry PlayBook

Re: result::failure -103

Yes! you were right!! it seems you need to sign the .APK before packing it and send it to your playbook for installation. I followed these steps and it worked:

Go to your android project root folder and build your project for release

ant clean
and release

Connect to your Playbook:

./blackberry-connect [playbook IP] -password [playbook password] -sshPublicKey [key].pub

 

sign your APK with your keys:

jarsigner -verbose -sigalg MD5withRSA -digestalg SHA1 -keystore [your key].kestore [your app name].apk [alias]

--verify your signed apk

jarsigner -verify bin/NoteList-release-unsigned.apk

 

now if it passes, you can create the BAR file

./apk2bar [path to your APK folder] [path to android dsk folder]  -t [path to output folder] -rv

 Sign the BAR file

./blackberry-signer -verbose -cskpass [password] -keystore [path to your certificate].p12 -storepass [certificate password] [path to your BAR file] RDK author

-- to verify the signed BAR
./blackberry-signer -verify -verbose [path to your BAR file]

 And Finally sending to you Playbook

 

./blackberry-deploy -installApp -device [playbook IP] -package [path to your BAR file] -password [playbook password]

 I tried these steps using Ubuntu 12.10 and CommandLineTools_1.3 beta. Just remember to turn development ON on you playbook and enable SSH access so you can use blackberry-connect. Also, when you download the command line tools you need to give the execution permission to all the scripts.

 

Hope this helps some one developing under Ubuntu until BlackBerry fixes the plugin for eclipse which is broken with the latest ADT tools rev 21.

 

Happy coding!

Please use plain text.