How to use BOINC for Android from adb console?

Message boards : Questions and problems : How to use BOINC for Android from adb console?
Message board moderation

To post messages, you must log in.

AuthorMessage
Profile DjLisT

Send message
Joined: 6 Mar 15
Posts: 5
Argentina
Message 60707 - Posted: 6 Mar 2015, 14:44:34 UTC

Hi. I want to use BOINC in a broke screen Android phone.
My only way to use the phone is through adb console from my computer, but i don't find any guide on how to do that.
After i install the boinc apk using 'adb install', what should i do to configure my client account/projects and start the crunching service? how to do that from the Android console?
I know some config xml file can me manually pushed into the /client/client directory inside Android, but i am not sure how to do the rest.
Can any Boinc developer help?
This may become very useful because me and many people have a couple of broke-screen useless devices with working multicore cpu's, so enabling usb debugging and configuring it from console is a must :D
ID: 60707 · Report as offensive
Juha
Volunteer developer
Volunteer tester
Help desk expert

Send message
Joined: 20 Nov 12
Posts: 801
Finland
Message 60730 - Posted: 7 Mar 2015, 18:57:39 UTC - in response to Message 60707.  

The APK appears to contain boinccmd. If it works in Android the same way as in other versions you can use it to control the client. See wiki.

There's also Initialization files.

Of course you need to figure out how to start the client with adb.
ID: 60730 · Report as offensive
Profile DjLisT

Send message
Joined: 6 Mar 15
Posts: 5
Argentina
Message 60743 - Posted: 8 Mar 2015, 11:44:10 UTC

Great, thanks bro. I just fount the boinccmd binary located on
/data/data/edu.berkeley.boinc/client #
then i have to type: ./boinccmd , and a list of commands is displayed :)
Now i have to figure out how to use it btw, but i guess that would be the same way like in windows/linux clients.
i'll keep you updated if make it work.
ID: 60743 · Report as offensive
bugmenot

Send message
Joined: 15 Dec 05
Posts: 23
Austria
Message 61145 - Posted: 23 Mar 2015, 22:02:35 UTC

I just managed to "revive" my Desire HD using this Thread:
http://stackoverflow.com/questions/4567904/how-to-start-an-application-using-android-adb-tools

Recommended:
adb pull /data/data/edu.berkeley.boinc/client
change preferences in global_prefs.xml and globals_prefs_override.xml (use batteries, lower battery threshold like 30%, 100% CPU Time)
adb push global_prefs.xml /data/data/edu.berkeley.boinc/client
repeat with override xml

kill boinc process if necessary or just reboot the phone
start boinc by:
am start -a android.Intent.Main -n edu.berkeley.boinc/.SplashActivity

There is also the adb shell monkey variant explained in the thread from above, but I haven't tried that yet.
ID: 61145 · Report as offensive

Message boards : Questions and problems : How to use BOINC for Android from adb console?

Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.