Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 880eec41 authored by Brian Stack's avatar Brian Stack Committed by android-build-merger
Browse files

Merge "Merge changes from topic "step_event_permission" into qt-dev am:...

Merge "Merge changes from topic "step_event_permission" into qt-dev am: 76d9f441" into qt-dev-plus-aosp
am: 91a6a2f3

Change-Id: Iad1b805d61a2360c9508ab3e279fca3b9cac52da
parents a63c2dbc 91a6a2f3
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -364,6 +364,8 @@ public final class Sensor {
     * count steps if it is not activated. This sensor is ideal for fitness tracking applications.
     * count steps if it is not activated. This sensor is ideal for fitness tracking applications.
     * It is defined as an {@link Sensor#REPORTING_MODE_ON_CHANGE} sensor.
     * It is defined as an {@link Sensor#REPORTING_MODE_ON_CHANGE} sensor.
     * <p>
     * <p>
     * This sensor requires permission {@code android.permission.ACTIVITY_RECOGNITION}.
     * <p>
     * See {@link android.hardware.SensorEvent#values SensorEvent.values} for more details.
     * See {@link android.hardware.SensorEvent#values SensorEvent.values} for more details.
     */
     */
    public static final int TYPE_STEP_COUNTER = 19;
    public static final int TYPE_STEP_COUNTER = 19;
@@ -382,6 +384,8 @@ public final class Sensor {
     * gyroscope. This sensor uses lower power than the other rotation vectors, because it doesn't
     * gyroscope. This sensor uses lower power than the other rotation vectors, because it doesn't
     * use the gyroscope. However, it is more noisy and will work best outdoors.
     * use the gyroscope. However, it is more noisy and will work best outdoors.
     * <p>
     * <p>
     * This sensor requires permission {@code android.permission.ACTIVITY_RECOGNITION}.
     * <p>
     * See {@link android.hardware.SensorEvent#values SensorEvent.values} for more details.
     * See {@link android.hardware.SensorEvent#values SensorEvent.values} for more details.
     */
     */
    public static final int TYPE_GEOMAGNETIC_ROTATION_VECTOR = 20;
    public static final int TYPE_GEOMAGNETIC_ROTATION_VECTOR = 20;
+12 −0
Original line number Original line Diff line number Diff line
@@ -23941,6 +23941,18 @@ public class PackageManagerService extends IPackageManager.Stub
            return 0;
            return 0;
        }
        }
        @Override
        public int getTargetSdkVersionForPackage(String packageName)
                throws RemoteException {
            int callingUser = UserHandle.getUserId(Binder.getCallingUid());
            ApplicationInfo info = getApplicationInfo(packageName, 0, callingUser);
            if (info == null) {
                throw new RemoteException(
                        "Couldn't get ApplicationInfo for package " + packageName);
            }
            return info.targetSdkVersion;
        }
        @Override
        @Override
        public boolean[] isAudioPlaybackCaptureAllowed(String[] packageNames)
        public boolean[] isAudioPlaybackCaptureAllowed(String[] packageNames)
                throws RemoteException {
                throws RemoteException {