From 4ff239b3126c94b67b30a1f066e4584f025b291d Mon Sep 17 00:00:00 2001 From: andyh2 Date: Wed, 19 Feb 2020 23:25:19 -0500 Subject: [PATCH] apk: Fix permission to read /sdcard/ old-commit-hash: ab54a9e2c92791e276017c480789e14847618c4f --- common/apk.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/apk.py b/common/apk.py index 32bd2f54c6..d77b83f141 100644 --- a/common/apk.py +++ b/common/apk.py @@ -33,10 +33,9 @@ def start_frame(): def set_package_permissions(): pm_grant("ai.comma.plus.offroad", "android.permission.ACCESS_FINE_LOCATION") pm_grant("ai.comma.plus.offroad", "android.permission.READ_PHONE_STATE") + pm_grant("ai.comma.plus.offroad", "android.permission.READ_EXTERNAL_STORAGE") appops_set("ai.comma.plus.offroad", "SU", "allow") appops_set("ai.comma.plus.offroad", "WIFI_SCAN", "allow") - appops_set("ai.comma.plus.offroad", "READ_EXTERNAL_STORAGE", "allow") - appops_set("ai.comma.plus.offroad", "WRITE_EXTERNAL_STORAGE", "allow") def appops_set(package, op, mode): system(f"LD_LIBRARY_PATH= appops set {package} {op} {mode}")