App removed in playstore cause using Device Administration in android Malformed AndroidManifest (android.app.action.DEVICE_ADMIN_ENABLED)

被刻印的时光 ゝ 提交于 2019-12-11 06:45:46

问题


my app had been removed on play store cause

REASON FOR SUSPENSION: Violation of the dangerous products provision of the Content Policy:

We don't allow content that harms, interferes with the operation of, or accesses in an unauthorized manner, networks, servers, or other infrastructure. After a regular review, we have determined that your app has a malformed AndroidManifest.xml file which may make it difficult for users to uninstall the app.

In particular, the app’s AndroidManifest.xml contains a malformed Device Admin receiver entry (as identified by meta-data named android.app.device_admin). To be a well-formed Device Admin, the entry must declare an Intent filter for Intents with action android.app.action.DEVICE_ADMIN_ENABLED. The suggested modification is to make the entry well-formed if the receiver is a Device Admin, or remove the meta-data named android.app.device_admin if the receiver is not a Device Admin.

This particular app has been disabled as a policy strike. If your developer account is still in good standing, you may revise and upload a policy compliant version of this application as a new package name.

I still dont understand why they removed it, i using in manifest is same with other app in play store, could anyone help me know why may app had removed :S, so sad

So is it possible to create such a method without a violation of the terms?

<receiver
     android:name=".DeviceAdminDemoReceiver"
     android:permission="android.permission.BIND_DEVICE_ADMIN" >
     <intent-filter>

            <!-- This action is required -->
            <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" />
        </intent-filter>

        <!-- This is required this receiver to become device admin component. -->
        <meta-data
            android:name="android.app.device_admin"
            android:resource="@xml/uses_policies" />
    </receiver>

来源:https://stackoverflow.com/questions/31484954/app-removed-in-playstore-cause-using-device-administration-in-android-malformed

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!