1.frameworks/base/core/res/AndroidManifest.xml:
<!-- Allows an application to sensor_enable xiayu --><permission android:name="android.permission.SENSOR_ENABLE"
android:permissionGroup="android.permission-group.HARDWARE_CONTROLS"
android:protectionLevel="dangerous"
android:label="@string/permlab_sensor_enable"
android:description="@string/permdesc_installLocationProvider" />
<!-- Allows an application to sensor_info xiayu -->
<permission android:name="android.permission.SENSOR_INFO"
android:permissionGroup="android.permission-group.HARDWARE_CONTROLS"
android:protectionLevel="normal"
android:label="@string/permlab_sensor_info"
android:description="@string/permdesc_installLocationProvider" />
2.frameworks/base/core/res/res/values/strings.xml
<!-- Title of an application permission, listed so the user can choose whether they want to allow the application to do this. --><string name="permlab_sensor_enable">sensor enable</string>
<!-- Title of an application permission, listed so the user can choose whether they want to allow the application to do this. -->
<string name="permlab_sensor_info">sensor info</string>
3.frameworks/base/core/java/android/app/ContextImpl.j