-
-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please remove unnecessary permissions #568
Comments
These are not used by the Gallery but some library dependencies, I will check out the Phone permission and force remove |
I have been investigating why the "Read phone status and identity" permission gets added automatically to Gallery. The offending library is surprisingly Tensorflow Lite, specifically "org.tensorflow.lite.task.core" aka "org.tensorflow:tensorflow-lite-task-base", which does not declare in its AndroidManifest any <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="src.java.org.tensorflow.lite.task.core">
<application>
</application>
</manifest> Because of this, the Android build-system's manifest merger incorrectly assumes, according to my manifest merging log (below), that the [...]
action#androidx.profileinstaller.action.BENCHMARK_OPERATION
ADDED from [androidx.profileinstaller:profileinstaller:1.4.1] /home/linuxct/.gradle/caches/8.10.2/transforms/4960eb61de97d9c80ab6df5cdd9b905a/transformed/profileinstaller-1.4.1/AndroidManifest.xml:50:17-95
uses-permission#android.permission.READ_PHONE_STATE
IMPLIED from /home/linuxct/Android/IacobIonut-Gallery/app/src/main/AndroidManifest.xml:2:1-190:12 reason: src.java.org.tensorflow.lite.task.core has a targetSdkVersion < 4 This is because, according to Google's own documentation, in SDK versions lower than API 4, Since the problem resides in "org.tensorflow:tensorflow-lite-task-base", I suggest to:
|
Fixes Please remove unnecessary permissions #568 Signed-off-by: IacobIonut01 <[email protected]>
Fixes Please remove unnecessary permissions #568 Signed-off-by: IacobIonut01 <[email protected]>
3.1.0 fdroid
The text was updated successfully, but these errors were encountered: