I began to investigate your comment and found that as of version 10 of Android there are more severe restrictions on the information of the device.
that there is a way to access such information.
Is there a way to do this in codenameone?
It is also possible to know when the cell phone is turned off, the battery level or when the gps is turned off?
Thanks