B bluedude Well-Known Member Licensed User Longtime User Dec 4, 2012 #1 Hi, When I uploaded an APK i just discovered it contains the WAKE_LOCK permission. I'm not using this functionality, which library could cause this to be added? Cheers.
Hi, When I uploaded an APK i just discovered it contains the WAKE_LOCK permission. I'm not using this functionality, which library could cause this to be added? Cheers.
Erel B4X founder Staff member Licensed User Longtime User Dec 4, 2012 #3 Note that libraries do not add permissions. Only if you use (Dim) an object that requires a permission it gets added. Upvote 0
Note that libraries do not add permissions. Only if you use (Dim) an object that requires a permission it gets added.
mc73 Well-Known Member Licensed User Longtime User Dec 4, 2012 #4 Erel said: Note that libraries do not add permissions. Only if you use (Dim) an object that requires a permission it gets added. Click to expand... Perhaps dimming occurs in added classes, no? Upvote 0
Erel said: Note that libraries do not add permissions. Only if you use (Dim) an object that requires a permission it gets added. Click to expand... Perhaps dimming occurs in added classes, no?
Erel B4X founder Staff member Licensed User Longtime User Dec 4, 2012 #5 Perhaps dimming occurs in added classes, no? Click to expand... Yes (in B4A classes). It is important to understand that no permission is added just because you referenced a library. The Phone library is a good example. Upvote 0
Perhaps dimming occurs in added classes, no? Click to expand... Yes (in B4A classes). It is important to understand that no permission is added just because you referenced a library. The Phone library is a good example.
B bluedude Well-Known Member Licensed User Longtime User Dec 4, 2012 #6 All fine but how can I test this? I want to minimize permissions in apps. Upvote 0
NJDude Expert Licensed User Longtime User Dec 4, 2012 #7 bluedude said: All fine but how can I test this? Click to expand... After you compile your app, open your Manifest, not via the manifest editor but the actual file located in <YOUR_PROJECT_NAME\Objects and look if any "unwanted" permissions have been added. Upvote 0
bluedude said: All fine but how can I test this? Click to expand... After you compile your app, open your Manifest, not via the manifest editor but the actual file located in <YOUR_PROJECT_NAME\Objects and look if any "unwanted" permissions have been added.
B bluedude Well-Known Member Licensed User Longtime User Dec 4, 2012 #8 NjDude, Sure, I did that but isn't really helpful. Now use Windows Grep to search inside XML files and that is actually better. Upvote 0
NjDude, Sure, I did that but isn't really helpful. Now use Windows Grep to search inside XML files and that is actually better.
B bluedude Well-Known Member Licensed User Longtime User Dec 4, 2012 #9 Ok, The WAKE_LOCK is also be used by VBWep. The DEVICE_STATS too. So, I now know why. Thanks Erel and others, searching in the XML files explains it. Upvote 0
Ok, The WAKE_LOCK is also be used by VBWep. The DEVICE_STATS too. So, I now know why. Thanks Erel and others, searching in the XML files explains it.