Welcome, Guest. Please login or register.

Author Topic: Get BitMessage running on Android with sl4a  (Read 1674 times)

merlink

  • Jr. Member
  • **
  • Posts: 76
  • Karma: +6/-0
    • View Profile
Get BitMessage running on Android with sl4a
« on: June 17, 2013, 08:40:01 AM »
I'm Testing to get Bitmessage Deamon running on python4android.

Openssl Library works now with this change:
import os
try:
    if os.path.isfile('/system/lib/libcrypto.so'):
        OpenSSL = _OpenSSL('/system/lib/libcrypto.so')
    else:
        OpenSSL = _OpenSSL('libcrypto.so')

Line 408 in openssl.py

But I get problems with sqite3 because python4android is pyhon2.6 not 2.7.

Any Ideas to get this running?

AutorunScript attached:
Starts Bitmessage and BM-Pop3 Wrapper


Contact me on Bitmessage: BM-2DBNPfRBqDe973DidYW7WrJHg5ACKX9Tv8

merlink

  • Jr. Member
  • **
  • Posts: 76
  • Karma: +6/-0
    • View Profile
Re: Get BitMessage running on Android with sl4a
« Reply #1 on: June 17, 2013, 10:33:35 AM »
Deactivated the sqlite check at line: 2460 (bitmessagemain.py)

New Version of autorun.py doesn't override keys.dat where pub and privat key must be copied.
Also Path is now correct (all in one folder).

Bitmessage runs but crashes after some time:

Traceback (most recent call last):
  File "/storage/sdcard0/sl4a/scripts/BitPOP/bitmessagemain.py", line 1295, in processpubkey
    ripeHasher = hashlib.new('ripemd160')
  File "/home/manuel/AptanaStudio3Workspace/python-for-android/python-build/output/usr/lib/python2.6/hashlib.py", line 87, in __py_new
  File "/home/manuel/AptanaStudio3Workspace/python-for-android/python-build/output/usr/lib/python2.6/hashlib.py", line 80, in __get_builtin_constructor
ValueError: unsupported hash type

Now I get Errors with ripemd160...

Any Ideas?
« Last Edit: June 17, 2013, 10:40:08 AM by merlink »
Contact me on Bitmessage: BM-2DBNPfRBqDe973DidYW7WrJHg5ACKX9Tv8

merlink

  • Jr. Member
  • **
  • Posts: 76
  • Karma: +6/-0
    • View Profile
Re: Get BitMessage running on Android with sl4a
« Reply #2 on: June 17, 2013, 12:02:25 PM »
Hmmm, dont't find much online.

I think py4android doesn't support ripemd160.   :'(

Any Android Geek somewhere?
« Last Edit: June 17, 2013, 06:54:45 PM by merlink »
Contact me on Bitmessage: BM-2DBNPfRBqDe973DidYW7WrJHg5ACKX9Tv8

justinkau

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Get BitMessage running on Android with sl4a
« Reply #3 on: August 15, 2013, 05:44:10 AM »
I am still getting errors that openssl is missing even with your fix.

import os
try:
    if os.path.isfile('/system/lib/libcrypto.so'):
        OpenSSL = _OpenSSL('/system/lib/libcrypto.so')
    else:
        OpenSSL = _OpenSSL('libcrypto.so')

Line 408 in openssl.py

What sources of GitMessage and BM-Pop3 Wrapper are you using?

Also what version of python for android are you using?

I am on R6 and when i run openssl.py it looks like it finds the /system/lib/libcrypto.so file.
But when I use your autrun i get a error that its missing openssl



merlink

  • Jr. Member
  • **
  • Posts: 76
  • Karma: +6/-0
    • View Profile
Re: Get BitMessage running on Android with sl4a
« Reply #4 on: August 15, 2013, 06:01:36 PM »
Hy, I'll test the new versions tomorrow :-)
Contact me on Bitmessage: BM-2DBNPfRBqDe973DidYW7WrJHg5ACKX9Tv8