Loading core/java/android/hardware/SystemSensorManager.java +0 −2 Original line number Diff line number Diff line Loading @@ -575,7 +575,6 @@ public class SystemSensorManager extends SensorManager { && rate > CAPPED_SAMPLING_RATE_LEVEL && mIsPackageDebuggable && !mHasHighSamplingRateSensorsPermission) { Compatibility.reportChange(CHANGE_ID_SAMPLING_RATE_SENSORS_PERMISSION); throw new SecurityException("To use the sampling rate level " + rate + ", app needs to declare the normal permission" + " HIGH_SAMPLING_RATE_SENSORS."); Loading Loading @@ -787,7 +786,6 @@ public class SystemSensorManager extends SensorManager { && rateUs < CAPPED_SAMPLING_PERIOD_US && mManager.mIsPackageDebuggable && !mManager.mHasHighSamplingRateSensorsPermission) { Compatibility.reportChange(CHANGE_ID_SAMPLING_RATE_SENSORS_PERMISSION); throw new SecurityException("To use the sampling rate of " + rateUs + " microseconds, app needs to declare the normal permission" + " HIGH_SAMPLING_RATE_SENSORS."); Loading Loading
core/java/android/hardware/SystemSensorManager.java +0 −2 Original line number Diff line number Diff line Loading @@ -575,7 +575,6 @@ public class SystemSensorManager extends SensorManager { && rate > CAPPED_SAMPLING_RATE_LEVEL && mIsPackageDebuggable && !mHasHighSamplingRateSensorsPermission) { Compatibility.reportChange(CHANGE_ID_SAMPLING_RATE_SENSORS_PERMISSION); throw new SecurityException("To use the sampling rate level " + rate + ", app needs to declare the normal permission" + " HIGH_SAMPLING_RATE_SENSORS."); Loading Loading @@ -787,7 +786,6 @@ public class SystemSensorManager extends SensorManager { && rateUs < CAPPED_SAMPLING_PERIOD_US && mManager.mIsPackageDebuggable && !mManager.mHasHighSamplingRateSensorsPermission) { Compatibility.reportChange(CHANGE_ID_SAMPLING_RATE_SENSORS_PERMISSION); throw new SecurityException("To use the sampling rate of " + rateUs + " microseconds, app needs to declare the normal permission" + " HIGH_SAMPLING_RATE_SENSORS."); Loading