Warnings Your Apk Is Using Permissions That Require A Privacy Policy: (android.permission.READ_PHONE_STATE)

前端 未结 20 1208
孤独总比滥情好
孤独总比滥情好 2020-12-01 00:53

In manifest not added android.permission.READ_PHONE_STATE. permission.

Why error comes when I upload a new apk version error comes below.

Your app has an apk w

相关标签:
20条回答
  • 2020-12-01 01:40

    Just try to add this line to your manifest file:

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

    and add attribute xmlns:tools="http://schemas.android.com/tools" to your <manifest> tag to define namespace tools

    From the documentation for tools:node="remove":

    Remove this element from the merged manifest. Although it seems like you should instead just delete this element, using this is necessary when you discover an element in your merged manifest that you don't need, and it was provided by a lower-priority manifest file that's out of your control (such as an imported library).

    0 讨论(0)
  • 2020-12-01 01:41

    If you use React Native

    This problem has been completely solved here

    https://facebook.github.io/react-native/docs/removing-default-permissions

    0 讨论(0)
  • 2020-12-01 01:41

    Are you using AdSense or other ads in your app, or maybe Google Analytics ? I think if you do so, even if you don't have the android.permission.READ_PHONE_STATE in your manifest this is added by the ads library.

    There are free templates that might help you create a privacy policy.

    This is the email i received from Google about it :

    Hello Google Play Developer, Our records show that your app, xxx, with package name xxx, currently violates our User Data policy regarding Personal and Sensitive Information. Policy issue: Google Play requires developers to provide a valid privacy policy when the app requests or handles sensitive user or device information. Your app requests sensitive permissions (e.g. camera, microphone, accounts, contacts, or phone) or user data, but does not include a valid privacy policy. Action required: Include a link to a valid privacy policy on your app's Store Listing page and within your app. You can find more information in our help center. Alternatively, you may opt-out of this requirement by removing any requests for sensitive permissions or user data. If you have additional apps in your catalog, please make sure they are compliant with our Prominent Disclosure requirements. Please resolve this issue by March 15, 2017, or administrative action will be taken to limit the visibility of your app, up to and including removal from the Play Store. Thanks for helping us provide a clear and transparent experience for Google Play users. Regards, The Google Play Team

    0 讨论(0)
  • 2020-12-01 01:41

    See steb by step and you will understood

    public static String getVideoTitle(String youtubeVideoUrl) {
            Log.e(youtubeVideoUrl.toString() + " In GetVideoTitle Menu".toString() ,"hiii" );
            try {
    
                if (youtubeVideoUrl != null) {
                    URL embededURL = new URL("https://www.youtube.com/oembed?url=" +
                            youtubeVideoUrl + "&format=json"
                    );
                    Log.e(youtubeVideoUrl.toString() + " In EmbedJson Try Function ".toString() ,"hiii" );
                    Log.e(embededURL.toString() + " In EmbedJson Retrn value ".toString() ,"hiii" );
                    Log.e(new JSONObject(IOUtils.toString(embededURL)).getString("provider_name").toString() + " In EmbedJson Retrn value ".toString() ,"hiii" );
    
                    return new JSONObject(IOUtils.toString(embededURL)).getString("provider_name").toString();
                }
            } catch (Exception e) {
                Log.e(" In catch Function ".toString() ,"hiii" );
    
                e.printStackTrace();
            }
            return null;
        }
    
    0 讨论(0)
  • 2020-12-01 01:42

    It may be because of any third party lib which may include that permission so from my experience in this field You have to add the privacy policy regarding to that particular information it means if you ask get accounts permission in your app than you have to declare that with your privacy policy file we use that data i.e. email address or whatever with reasons like to login in google play game.

    Also can do this

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

    Hope This Will Guide you What You can do for this warning create privacy policy for your app and attach that with store listing.

    0 讨论(0)
  • 2020-12-01 01:44

    2018 update:

    For AdMob users, this causes AdMob version 12.0.0 (currently last version). It wrongly requests READ_PHONE_STATE permission, so even if your app doesn't require READ_PHONE_STATE permission in manifest, you won't be able to update your app in the Google Play Console (it will tell you to create a privacy policy page for your app, because your app requires this permission).

    See this: https://developers.google.com/android/guides/releases#march_20_2018_-_version_1200

    Also, they wrote they will publish an update to 12.0.1 fixing this soon.

    0 讨论(0)
提交回复
热议问题