For me it works i.e. set a pattern & having to swype pattern to unlock app is all good, but the app stays in memory... (for how long - not sure) while it is still in memory the supposedly access controlled app can be opened (after it has been closed) w/o requiring password (pattern).
[STRIKE]
Hi, I do not know if there is any mechanism in MIUI to auto kill an app that is running under access control. But what I do is enable the "Long-press to kill app" ( Settings > System > Button Settings ) and set it to 2 seconds. When hoding back with the app open for 2 seconds it gets killed. (this is my proffered method, I fiddled for ages before settling on 2 seconds, to be sure it was quick enough to be useful but could not be accidentally triggered when just going back.)
Or when you are finished using an app go to home and then long press home, and then hit "App Killer" should clear all running apps.
It is easy to see if either of these methods works by long press home again and the apps you wanted killed shouldn't have the green border any more. Only apps that are particularly persistent will still have green border.
Hope this makes sense.[/STRIKE] Aarg, strike don't work
Ok, after some fiddling. The above method does not stop an app from being reset from the point of view of "access control" (AC) , what does that is locking and unlocking your phone. At this point you have to put the AC password back in again.
I also just noticed that if the permissions are incorrect any pattern will work
I had;
Code:
-rw------- 1 root root 20 Jan 21 15:14 access_control.key
and any pattern would work, after changing it to below it is now fixed properly
Code:
-rw------- 1 system system 20 Jan 21 15:14 access_control.key
Oh, yeah, to do this with adb;
Code:
~$ adb shell
# ash
~ # cd /data/system
/data/system # chown system:system access_control.key
/data/system # ls -alh access_control.key
-rw------- 1 system system 20 Jan 21 15:14 access_control.key