Android Question android.permission.INTERNET - how to remove

b4auser1

Well-Known Member
Licensed User
Longtime User
I found in the AndroidManifest.xml file <uses-permission android:name="android.permission.INTERNET"/>, though my application doesn't use the Internet connection and doesn't require this permission.

The text in the Manifest editor is
B4X:
AddManifestText(
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="14"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")

How to remove android.permission.INTERNET ?
 

eps

Expert
Licensed User
Longtime User
Is your Manifest File being created by B4A each time the code is generated?

If it isn't then simply edit the Manifest File, but if it is, which it probably is...

You need to work out why this has been automatically added, it will be either because of a statement you use which requires INTERNET access or a Library.. but only really if you use a Statement from within the Library..
 
Upvote 0

NJDude

Expert
Licensed User
Longtime User
There's no need to do any of that, just remove the permission using the manifest editor and that's it.

Editing the manifest manually is of no help since is recreated every time the app is compiled, and it's also a bad idea.
 
Upvote 0

eps

Expert
Licensed User
Longtime User
There's no need to do any of that, just remove the permission using the manifest editor and that's it.

Editing the manifest manually is of no help since is recreated every time the app is compiled, and it's also a bad idea.

I agree that editing it manually is a bad idea, but it might be that the Developer has ticked the 'Do not overwrite' manifest file tickbox in the SDK..
 
Upvote 0
Top