Permissions not specified in Android Studio permissions are displayed

Asked 1 years ago, Updated 1 years ago, 93 views

I am currently creating an application on Android Studio 2.1.2, but I would like to remove the permissions that Android Manifest does not specify when installing on GooglePlay.

The permission you want to delete is "location information".

The following are some of Android Manifest.

<uses-sdk android:minSdkVersion="16"/>

<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android: name="android.permission.ACCESS_NETWORK_STATE"/> 
<uses-permission android:name="android.permission.GET_TASKS"/>

<uses-permission
    android:name="android.permission.WRITE_EXTERNAL_STORAGE"
    android:maxSdkVersion="18"/> 
<uses-permission
    android: name="android.permission.READ_PHONE_STATE"/> 
<uses-permission
    android:name="android.permission.READ_EXTERNAL_STORAGE"
    android:maxSdkVersion="18"/>

<application...

I also checked the link below, but I didn't know what would happen in this case, so I asked you a question.

1.
Ask Android Studio permissions you do not remember requesting them

2.
Workaround: When unnecessary Permissions are added without permission
http://android.tecc0.com/?p=161

Thank you for your cooperation.

android-studio google-play

2022-09-30 16:08

2 Answers

A person who is worried about the same thing was presented with a solution, so I will attach a link.

[Android] What to do when unwanted permissions are added to the app

According to the above site, there are three ways to cancel it:

1.Update targetSdkVersion
2. Update targetSdkVersion in Library
3. Overwrite and delete with AndroidManifest.xml

The person who mentioned above said it happened in "android.permission.READ_PHONE_STATE".


2022-09-30 16:08

I don't know if it's a good way, but

<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"tools:node="remove"/>

Why don't you force it to be deleted?


2022-09-30 16:08

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.