When you add in app purchasing, and start using "Google Play Licensing" you will notice that the app now requires read_phone_state, which do not look good on app installs
To remove read_phone_state from the android apk please do below
To remove read_phone_state from the android apk please do below
- Goto YourProject.gmx\extensions\GooglePlayLicensingAsExt\AndroidSource\Sdk\library
- Edit AndroidManifest.xml
- Add xmlns:tools="http://schemas.android.com/tools" to manifest header
- Add <uses-permission android:name="android.permission.READ_PHONE_STATE" tools:node="remove" /> in the body
- Save and compile project
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.android.vending.licensing"
xmlns:tools="http://schemas.android.com/tools"
android:versionCode="2"
android:versionName="1.5">
<!-- Devices >= 3 have version of Android Market that supports licensing. -->
<uses-sdk android:minSdkVersion="3" android:targetSdkVersion="15" />
<!-- Required permission to check licensing. -->
<uses-permission android:name="android.permission.READ_PHONE_STATE" tools:node="remove" />
<uses-permission android:name="com.android.vending.CHECK_LICENSE" />
</manifest>
package="com.google.android.vending.licensing"
xmlns:tools="http://schemas.android.com/tools"
android:versionCode="2"
android:versionName="1.5">
<!-- Devices >= 3 have version of Android Market that supports licensing. -->
<uses-sdk android:minSdkVersion="3" android:targetSdkVersion="15" />
<!-- Required permission to check licensing. -->
<uses-permission android:name="android.permission.READ_PHONE_STATE" tools:node="remove" />
<uses-permission android:name="com.android.vending.CHECK_LICENSE" />
</manifest>
1 comment:
Thanks but when I change I receive buit failed
A problem occurred configuring project ':com.companyname.FlyPunkBit'.
> A problem occurred configuring project ':library'.
> Exception while parsing the supplied manifest file Z:\library\AndroidManifest.xml
Post a Comment