BOINC / boinc

Open-source software for volunteer computing and grid computing.
https://boinc.berkeley.edu
GNU Lesser General Public License v3.0
2.02k stars 447 forks source link

[Android] Use Android-own global_prefs_override.xml file, not that of main BOINC #3346

Open Ageless93 opened 5 years ago

Ageless93 commented 5 years ago

At the moment the BOINC client under Android comes with a global_prefs_override.xml file that's the same as that of a desktop BOINC. However, the desktop BOINC version of the file is easily editable in an ASCII editor because the data directory under Windows, Linux or Mac is easily reached. Not so however under Android, where one needs to root the device to be able to normally read from and write to the data directory.

Most of the things in the override file are also useless for Android-BOINC because these cannot be set through the GUI, but must be set through web preferences - thus global_prefs.xml This means that some of the default options in global_prefs_override.xml immediately override those set via the website, mostly those about running while in use.

Instead of a normal global_prefs_override.xml file, Android-BOINC should get its own and only have those options that can be set through the GUI. All the rest can be done away with:

So from `

0 90.0 40.0 0 0 3.0 0.0 0.0 0.0 0.0 0.0 50.0 0 0 0.1 0.5 60.0 60.0 0.0 90.0 0.1 50.0 50.0 0.0 0.0 100.0 0.0 0 1

`

Go to `

0 90.0 40.0 50.0 50.0 60.0 90.0 0.1 50.0 100.0 0.0 1

`

davidpanderson commented 5 years ago

BTW, the Android client doesn't use web prefs. Prefs can only be set locally.

Ageless93 commented 5 years ago

Then why does it download and store a full global_prefs.xml file if it doesn't use it?

On Tue, Oct 22, 2019 at 11:45 PM David Anderson notifications@github.com wrote:

BTW, the Android client doesn't use web prefs. Prefs can only be set locally.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/BOINC/boinc/issues/3346?email_source=notifications&email_token=ACS5WU4N3JY5HXEE6FRKNCTQP5YA5A5CNFSM4JDPJUE2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEB7KDIQ#issuecomment-545169826, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACS5WU32MLW6A37UEIQYNN3QP5YA5ANCNFSM4JDPJUEQ .

davidpanderson commented 5 years ago

It's part of the scheduler reply.