I am working on an app, in which i need to stop some functionality of phone,
which include :
1) making or receiving phone calls,
2) use of Bluetooth or wifi,
3) Use of camera,
these feature will lock as soon as this app get installed, and will be locked until the get uninstalled, first two i have done, but i dont know how to achieve 3rd task, as i have tried locking the camera with my app, but after some time it automatically unlocked.
any clue/pointer/help will be appreaciated. Thanks
Try to register broadcast receiver for BOOT_COMPLETE event, and open camera device[s] and lock() it – nobody will be able to use it until lock is given up. And I think it will stay even after your process is killed ( not sure though)
You may also try to FUBAR camera with some weird settings (I managed this sometimes, though can not explain how. – camera was unusable until reboot)