midlet.checkpermissions — Query permission information
midlet.checkpermissions
permission_name
This command returns information about whether a given permission has been granted to the midlet. Quoting from the Java documentation:
Get the status of the specified permission. If no API on the device defines the specific permission requested then it must be reported as denied. If the status of the permission is not known because it might require a user interaction then it should be reported as unknown.
The command returns 0 if the permission is denied; 1 if the permission is allowed, and -1 if the status is unknown