AOSP: How to restrict app accessing Camera, Location?
问题 I'm trying to restrict apps in Android by modifying source code. I was able to get it working for Internet, but I was not able to restrict apps from using Camera or Location? Internet permission is enforced at linux process level with group-id. But I Camera/Location are not enforced the same way. So I want to know what is the best place to restrict the apps for these permissions. Are checkCallingPermission() enforceCallingPermission() methods the right ones? 回答1: Yes, you're right. In these