[android-developers] Re: Enabling/Disabling features in Andorid
Thanks for the reply.. I understand that blocking could be a security issue. But enabling/ disabling should not be a problem. For example, if the app disables the 'installing non-market apps feature from my app, the user can go to settings and enable it back. Something like this would do.. Coz I know that this is possible for bluetooth n wifi.. The application could be the device admin if needs to.. Thanks, Priyank On Oct 6, 2:01 pm, Kristopher Micinski krismicin...@gmail.com wrote: On Thu, Oct 6, 2011 at 1:30 PM, Priyank priyankvma...@gmail.com wrote: I would like to know if these features can be turned on/off (or block) from an application.. I am trying to build a security related application. 1. Camera 2. Tethering 3. USB 4. Data Roaming. 5. Installing non-market apps. 6. Mobile access points I was able to enable/disable Bluetooth and WiFi. Any help on this would be great.. Thanks, Priyank Priyank, You can't ``block'' these resources to the rest of the system. However, you can remove a permission from any given app and block it from that app. But I think the answer to your question is no, you can't block access to other apps from your app, this would be a big security hole indeed if you could. Kris -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Enabling/Disabling features in Andorid
On Thu, Oct 6, 2011 at 2:17 PM, Priyank priyankvma...@gmail.com wrote: Thanks for the reply.. I understand that blocking could be a security issue. But enabling/ disabling should not be a problem. For example, if the app disables the 'installing non-market apps feature from my app, the user can go to settings and enable it back. Something like this would do.. Coz I know that this is possible for bluetooth n wifi.. The application could be the device admin if needs to.. Thanks, Priyank It doesn't matter if you're the device admin or not, there's just simply no way to turn off the camera, etc.. from all apps, it's just not possible.. You can block it from certain apps, but only if you rip their guts out and physically remove the permission from them. So your app can't, at runtime, remove abilities from other apps, that relate to hardware resources. Even if you turn the Bluetooth off, somebody else can turn it back on, so you're not really blocking it :-/ Kris -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en