The problem is: when creating a LocalPermission (located in DevicePermission.java), only two actions are accepted:
open and powermanage, so legal actions "data" and "setdirection"
result in LocalPermission creation failure.