Now I'm trying to run
HardwarePropertiesManager hardwarePropertiesManager = getApplicationContext().getSystemService(HardwarePropertiesManager.class);
        hardwarePropertiesManager.getDeviceTemperatures(HardwarePropertiesManager.DEVICE_TEMPERATURE_CPU, HardwarePropertiesManager.TEMPERATURE_CURRENT);
to check cpu usage and temperature..
but, the exception occurred, which is
java.lang.RuntimeException: Unable to start activity 
ComponentInfo{com.example.___/com.example.___.MainActivity}: 
java.lang.SecurityException: The caller is neither a device 
owner, nor holding the DEVICE_POWER permission, nor the current 
VrListener.
is there any method to check cpu temperature and cpu usage(memory, core)??