Re: [android-developers] trilead ssh2 library

2012-02-14 Thread New Developer

Can a single  apk   have  source files with multiple package  names ?

I just added the trilead source code to my project
So the trilead files have
package com.trilead.ssh2.transport;
package com.trilead.ssh2...  etc;

Where as my project all has
package org.ttienterprises.eeds

Could this somehow relate to the problem I am seeing
a) debug build apk's   don't mind  whereas
b) exported signed apk'sdo mind ?

Why else would the code work if done using a debug apk  but fail if 
using a signed apk ?



Thanks in advance



On 01/25/2012 03:21 PM, New Developer wrote:
I'm trying to use the  trilead ssh2 library to establish a   scp  
connection


If I create the apk using the debug/run  then the code works fine

If I export and sign the apk  then the code generates the following 
logcat error


W/System.err( 1974): java.lang.Exception: Error occured connecting: 
java.io.IOException: There was a problem while connecting to 24.220.0.0:22

W/System.err( 1974): at org.ttienterprises.eeds.em.a(Unknown Source)
W/System.err( 1974): at org.ttienterprises.eeds.ek.run(Unknown Source)
W/System.err( 1974): Caused by: java.io.IOException: There was a 
problem while connecting to 24.220.0.0:22

W/System.err( 1974): at com.a.a.b.d(Unknown Source)
W/System.err( 1974): at com.a.a.b.b(Unknown Source)
W/System.err( 1974): ... 2 more
W/System.err( 1974): Caused by: java.io.IOException: Key exchange was 
not finished, connection is closed.

W/System.err( 1974): at com.a.a.i.b.c(Unknown Source)
W/System.err( 1974): at com.a.a.i.i.a(Unknown Source)
W/System.err( 1974): ... 4 more
W/System.err( 1974): Caused by: java.io.IOException: Fatal error 
during MAC startup!

W/System.err( 1974): at com.a.a.i.b.e(Unknown Source)
W/System.err( 1974): at com.a.a.i.b.a(Unknown Source)
W/System.err( 1974): at com.a.a.i.i.f(Unknown Source)
W/System.err( 1974): at com.a.a.i.j.run(Unknown Source)
W/System.err( 1974): at java.lang.Thread.run(Thread.java:856)




IP address changed for security,  the user name and password are 
correct and present

not sure also where the  eeds.em.aand eeds.ek.run   come from ?

any help greatly appreciated

Thanks in advance


--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en 


--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] trilead ssh2 library

2012-02-14 Thread Nikolay Elenkov
On Thu, Jan 26, 2012 at 12:54 PM, New Developer secur...@isscp.com wrote:
 Can a single  apk   have  source files with multiple package  names ?


Yes.

 Why else would the code work if done using a debug apk  but fail if using a
 signed apk ?



Are you using ProGuard? (it seems you are from the stacktrace) It might be
removing classes/methods your app actually needs. Try disabling ProGuard,
if that works, read the docs and fine-tune your progurad.cfg.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] trilead ssh2 library

2012-02-14 Thread New Developer

Thank you !!
Yes I disabled ProGuard  as you suggested and now  suddenly all works well

Do you have some links to help inform/teach  how to fine-tune  as you 
further suggested


Thanks


On 02/14/2012 11:08 PM, Nikolay Elenkov wrote:

On Thu, Jan 26, 2012 at 12:54 PM, New Developersecur...@isscp.com  wrote:

Can a single  apk   have  source files with multiple package  names ?


Yes.


Why else would the code work if done using a debug apk  but fail if using a
signed apk ?



Are you using ProGuard? (it seems you are from the stacktrace) It might be
removing classes/methods your app actually needs. Try disabling ProGuard,
if that works, read the docs and fine-tune your progurad.cfg.



--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] trilead ssh2 library

2012-02-14 Thread Nikolay Elenkov
On Thu, Jan 26, 2012 at 1:27 PM, New Developer secur...@isscp.com wrote:
 Thank you !!
 Yes I disabled ProGuard  as you suggested and now  suddenly all works well

 Do you have some links to help inform/teach  how to fine-tune  as you
 further suggested


http://proguard.sourceforge.net/index.html#manual/usage.html

Look at the -keep* options.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en