boinc icon indicating copy to clipboard operation
boinc copied to clipboard

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

Open Ageless93 opened this issue 6 years ago • 3 comments

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 <global_preferences> <run_on_batteries>0</run_on_batteries> <battery_charge_min_pct>90.0</battery_charge_min_pct> <battery_max_temperature>40.0</battery_max_temperature> <run_gpu_if_user_active>0</run_gpu_if_user_active> <run_if_user_active>0</run_if_user_active> <idle_time_to_run>3.0</idle_time_to_run> <suspend_cpu_usage>0.0</suspend_cpu_usage> <start_hour>0.0</start_hour> <end_hour>0.0</end_hour> <net_start_hour>0.0</net_start_hour> <net_end_hour>0.0</net_end_hour> <max_ncpus_pct>50.0</max_ncpus_pct> <leave_apps_in_memory>0</leave_apps_in_memory> <dont_verify_images>0</dont_verify_images> <work_buf_min_days>0.1</work_buf_min_days> <work_buf_additional_days>0.5</work_buf_additional_days> <disk_interval>60.0</disk_interval> <cpu_scheduling_period_minutes>60.0</cpu_scheduling_period_minutes> <disk_max_used_gb>0.0</disk_max_used_gb> <disk_max_used_pct>90.0</disk_max_used_pct> <disk_min_free_gb>0.1</disk_min_free_gb> <ram_max_used_busy_pct>50.0</ram_max_used_busy_pct> <ram_max_used_idle_pct>50.0</ram_max_used_idle_pct> <max_bytes_sec_up>0.0</max_bytes_sec_up> <max_bytes_sec_down>0.0</max_bytes_sec_down> <cpu_usage_limit>100.0</cpu_usage_limit> <daily_xfer_limit_mb>0.0</daily_xfer_limit_mb> <daily_xfer_period_days>0</daily_xfer_period_days> <network_wifi_only>1</network_wifi_only> </global_preferences>

Go to <global_preferences> <run_on_batteries>0</run_on_batteries> <battery_charge_min_pct>90.0</battery_charge_min_pct> <battery_max_temperature>40.0</battery_max_temperature> <suspend_cpu_usage>50.0</suspend_cpu_usage> <max_ncpus_pct>50.0</max_ncpus_pct> <disk_interval>60.0</disk_interval> <disk_max_used_pct>90.0</disk_max_used_pct> <disk_min_free_gb>0.1</disk_min_free_gb> <ram_max_used_busy_pct>50.0</ram_max_used_busy_pct> <cpu_usage_limit>100.0</cpu_usage_limit> <daily_xfer_limit_mb>0.0</daily_xfer_limit_mb> <network_wifi_only>1</network_wifi_only> </global_preferences>

Ageless93 avatar Oct 22 '19 12:10 Ageless93

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

davidpanderson avatar Oct 22 '19 21:10 davidpanderson

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 [email protected] 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 .

Ageless93 avatar Oct 23 '19 08:10 Ageless93

It's part of the scheduler reply.

davidpanderson avatar Oct 23 '19 08:10 davidpanderson