Android Question RemovePermission BIND_WALLAPAPER SET_WALLAPAPER

Sreepathy T L

Member
Licensed User
Longtime User
Hi,
I have put the following lines in manifest editor and recompiled the apk.

B4X:
RemovePermission("android.permission.BIND_WALLAPAPER")
RemovePermission("android.permission.SET_WALLAPAPER")
When I check the AndroidManifest.xml, I find that it contains the lines

B4X:
<uses-permission android:name="android.permission.BIND_WALLPAPER"/>
<uses-permission android:name="android.permission.SET_WALLPAPER"/>
Please help
 

Sreepathy T L

Member
Licensed User
Longtime User
B4X:
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: https://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="17a" android:targetSdkVersion="17"/>
<supports-screens android:largeScreens="true" 
    android:normalScreens="true" 
    android:smallScreens="true" 
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
SetApplicationAttribute(android:theme, "@android:style/Theme.Holo")
'End of default text.
RemovePermission("android.permission.RECORD_VIDEO")
RemovePermission("android.permission.BLUETOOTH")
RemovePermission("android.permission.BLUETOOTH_ADMIN")
RemovePermission("android.permission.BIND_WALLAPAPER")
RemovePermission("android.permission.SET_WALLAPAPER")
RemovePermission("android.permission.RECORD_AUDIO")
RemovePermission("android.permission.FLASHLIGHT")
SetApplicationAttribute("android:allowBackup","false")
 
Upvote 0

Sreepathy T L

Member
Licensed User
Longtime User
Manifest file is not readonly, its timestamp is also changing after compilation. I am attaching a sample project to demonstrate the issue mentioned above. I am not able to upload the actual code due to our security policy.
 

Attachments

  • b4a-example.zip
    35.9 KB · Views: 212
Upvote 0

mlc

Active Member
Licensed User
Longtime User
Change

RemovePermission("android.permission.BIND_WALLAPAPER")
RemovePermission("android.permission.SET_WALLAPAPER")

with

RemovePermission("android.permission.BIND_WALLPAPER")
RemovePermission("android.permission.SET_WALLPAPER")
 
Upvote 0
Top