是否有任何命令可以通过它重置Android设备中的磁传感器?
我按照建议here尝试echo 1 > /sys/class/sensors/proximity_sensor/prox_cal
,但它不起作用。
这些命令手机是否依赖?
我正在尝试这段代码:
Process process ;
try {
process = Runtime.getRuntime().exec("echo 1 > /sys/class/sensors/proximity_sensor/prox_cal");
BufferedReader bufferedReader = new BufferedReader(
new InputStreamReader(process.getInputStream()));
System.out.println("Executing ADB Command");
}
catch(IOException e)
{
System.out.println("Some error while executing ADB Command");
}
它总是进入catch区块。任何人都可以帮我吗?