M
M
Malamut2012-11-23 22:45:44
Android
Malamut, 2012-11-23 22:45:44

Intercepting pressing the HOME and the power button?

It is necessary to make an application that cannot be closed without knowing the password. Those. no pressing Home, power button, etc. should not close the application. You need to do it in order to issue devices to stupid users and be sure that they do not log out.
So, in order to protect against any blockers, as far as I understand, this cannot be done in stock firmware.
Question: where to dig to solve the problem? root, custom firmware - anything, if only the task was solved.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
I
Igor Ivanchenko, 2012-11-24
@evgsd

why not? The android api allows you to intercept buttons at the level of a running activity. developer.android.com/reference/android/text/method/KeyListener.html

E
egorinsk, 2012-11-24
@egorinsk

If you want to restrict users so that they can only use 1 program. you need to somehow remove the default shell and all default applications from the device and replace it with this program.

K
Kirill Olenev, 2012-11-25
@agent10

There is some info here.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question