Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to Disable (delete) Permissions From App

    • 0
    • 0
    • 0
    • 1
    • 0
    • 0
    • 0
    • 779
    Answer it

    Hi i want to disable (delete) these permissions from my app

    1. <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    2. <uses-permission android:name="android.permission.INTERNET" />
    3. <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    4. <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
    5. <uses-permission android:name="android.permission.WAKE_LOCK" />


        

    and disable using camera and taking photos
    the source code of users permissions in my app, I am using android studio.

    that is the source how will be the new ??
     

    1. <?xml version="1.0" encoding="utf-8"?>
    2. <manifest xmlns:android="http://schemas.android.com/apk/res/android"
    3. package="com.bpositive"
    4. android:versionCode="2"
    5. android:versionName="1.0.3" >
    6.  
    7. <uses-sdk
    8. android:minSdkVersion="15"
    9. android:targetSdkVersion="25" />
    10.  
    11. <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    12. <uses-permission android:name="android.permission.INTERNET" />
    13. <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    14. <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    15. <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    16. <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
    17. <uses-permission android:name="android.permission.WAKE_LOCK" />
    18.  
    19. <uses-feature
    20. android:name="android.hardware.camera"
    21. android:required="true" />
    22. <uses-feature android:name="android.hardware.camera.autofocus" />
    23.  
    24. <uses-permission android:name="android.permission.CAMERA" />
    25. <uses-permission android:name="android.permission.VIBRATE" /> <!-- Permissions required for GCM -->
    26. <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
    27.  
    28. <uses-feature
    29. android:glEsVersion="0x00020000"
    30. android:required="true" />
    31.  
    32. <permission
    33. android:name="com.bpositive.permission.C2D_MESSAGE"
    34. android:protectionLevel="signature" />
    35.  
    36. <uses-permission android:name="com.bpositive.permission.C2D_MESSAGE" />
    37.  
    38. <application
    39. android:name="sample.bpositive.sparkleappz.app.BPlus"
    40. android:allowBackup="true"
    41. android:icon="@mipmap/ic_launcher"
    42. android:label="@string/app_name"
    43. android:supportsRtl="true"
    44. android:theme="@style/AppTheme" >
    45. <activity
    46. android:name="sample.bpositive.sparkleappz.activities.SplashActivity"
    47. android:screenOrientation="portrait"
    48. android:windowSoftInputMode="stateHidden" >
    49. <intent-filter>
    50. <action android:name="android.intent.action.VIEW" />
    51.  
    52. <category android:name="android.intent.category.DEFAULT" />
    53. <category android:name="android.intent.category.BROWSABLE" />
    54.  
    55. <data
    56. android:host="sparkleappz.com/"
    57. android:scheme="http" />
    58. <data
    59. android:host="sparkleappz.com/"
    60. android:scheme="https" />
    61. </intent-filter>
    62. <intent-filter>
    63. <action android:name="android.intent.action.MAIN" />
    64.  
    65. <category android:name="android.intent.category.LAUNCHER" />
    66. </intent-filter>
    67. </activity>
    68. <activity
    69. android:name="sample.bpositive.sparkleappz.activities.MainActivity"
    70. android:screenOrientation="portrait"
    71. android:theme="@style/AppTheme"
    72. android:windowSoftInputMode="stateHidden" >
    73. </activity>
    74. <activity
    75. android:name="sample.bpositive.sparkleappz.activities.ResetPasswordActivity"
    76. android:screenOrientation="portrait"
    77. android:theme="@style/AppTheme"
    78. android:windowSoftInputMode="stateHidden" >
    79. </activity>
    80. <activity
    81. android:name="sample.bpositive.sparkleappz.activities.DonateActivity"
    82. android:screenOrientation="portrait"
    83. android:theme="@style/AppTheme"
    84. android:windowSoftInputMode="stateHidden" >
    85. </activity>
    86. <!--
    87. The API key for Google Maps-based APIs is defined as a string resource.
    88. (See the file "res/values/google_maps_api.xml").
    89. Note that the API key is linked to the encryption key used to sign the APK.
    90. You need a different API key for each encryption key, including the release key that is used to
    91. sign the APK for publishing.
    92. You can define the keys for the debug and release targets in src/debug/ and src/release/.
    93. -->
    94. <meta-data
    95. android:name="com.google.android.geo.API_KEY"
    96. android:value="@string/google_maps_key" />
    97.  
    98. <service android:name="sample.bpositive.sparkleappz.MyFirebaseMessagingService" >
    99. <intent-filter>
    100. <action android:name="com.google.firebase.MESSAGING_EVENT" />
    101. </intent-filter>
    102. </service>
    103. <service android:name="sample.bpositive.sparkleappz.MyFirebaseInstanceIDService" >
    104. <intent-filter>
    105. <action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
    106. </intent-filter>
    107. </service>
    108.  
    109. <activity
    110. android:name="com.theartofdev.edmodo.cropper.CropImageActivity"
    111. android:theme="@style/Theme.AppCompat.Light.DarkActionBar" /> <!-- Include the AdActivity and InAppPurchaseActivity configChanges and themes. -->
    112. <activity
    113. android:name="com.google.android.gms.ads.AdActivity"
    114. android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
    115. android:theme="@android:style/Theme.Translucent" />
    116. <activity
    117. android:name="com.google.android.gms.ads.purchase.InAppPurchaseActivity"
    118. android:theme="@style/Theme.IAPTheme" />
    119. <activity
    120. android:name="com.google.android.gms.appinvite.PreviewActivity"
    121. android:exported="true"
    122. android:theme="@style/Theme.AppInvite.Preview" >
    123. <intent-filter>
    124. <action android:name="com.google.android.gms.appinvite.ACTION_PREVIEW" />
    125.  
    126. <category android:name="android.intent.category.DEFAULT" />
    127. </intent-filter>
    128. </activity>
    129. <activity
    130. android:name="com.google.android.gms.common.api.GoogleApiActivity"
    131. android:exported="false"
    132. android:theme="@android:style/Theme.Translucent.NoTitleBar" />
    133. <!--
    134. FirebaseMessagingService performs security checks at runtime,
    135. no need for explicit permissions despite exported="true"
    136. -->
    137. <service
    138. android:name="com.google.firebase.messaging.FirebaseMessagingService"
    139. android:exported="true" >
    140. <intent-filter android:priority="-500" >
    141. <action android:name="com.google.firebase.MESSAGING_EVENT" />
    142. </intent-filter>
    143. </service>
    144.  
    145. <receiver
    146. android:name="com.google.android.gms.measurement.AppMeasurementReceiver"
    147. android:enabled="true"
    148. android:exported="false" >
    149. </receiver>
    150. <receiver
    151. android:name="com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver"
    152. android:enabled="true"
    153. android:permission="android.permission.INSTALL_PACKAGES" >
    154. <intent-filter>
    155. <action android:name="com.android.vending.INSTALL_REFERRER" />
    156. </intent-filter>
    157. </receiver>
    158.  
    159. <service
    160. android:name="com.google.android.gms.measurement.AppMeasurementService"
    161. android:enabled="true"
    162. android:exported="false" />
    163.  
    164. <receiver
    165. android:name="com.google.firebase.iid.FirebaseInstanceIdReceiver"
    166. android:exported="true"
    167. android:permission="com.google.android.c2dm.permission.SEND" >
    168. <intent-filter>
    169. <action android:name="com.google.android.c2dm.intent.RECEIVE" />
    170. <action android:name="com.google.android.c2dm.intent.REGISTRATION" />
    171.  
    172. <category android:name="com.bpositive" />
    173. </intent-filter>
    174. </receiver>
    175. <!--
    176. Internal (not exported) receiver used by the app to start its own exported services
    177. without risk of being spoofed.
    178. -->
    179. <receiver
    180. android:name="com.google.firebase.iid.FirebaseInstanceIdInternalReceiver"
    181. android:exported="false" />
    182. <!--
    183. FirebaseInstanceIdService performs security checks at runtime,
    184. no need for explicit permissions despite exported="true"
    185. -->
    186. <service
    187. android:name="com.google.firebase.iid.FirebaseInstanceIdService"
    188. android:exported="true" >
    189. <intent-filter android:priority="-500" >
    190. <action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
    191. </intent-filter>
    192. </service>
    193.  
    194. <provider
    195. android:name="com.google.firebase.provider.FirebaseInitProvider"
    196. android:authorities="com.bpositive.firebaseinitprovider"
    197. android:exported="false"
    198. android:initOrder="100" />
    199.  
    200. <meta-data
    201. android:name="com.google.android.gms.version"
    202. android:value="@integer/google_play_services_version" />
    203. </application>
    204.  
    205. </manifest>

     

 1 Answer(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Reset Password
Fill out the form below and reset your password: