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

Commit 1da6f0eb authored by Grace Cheng's avatar Grace Cheng
Browse files

Makes injectLocation a system api to suport car stack mainline

updatability.

The detailed reason why we do this is explained in the bug.

Bug: 192377485
Test: build

Change-Id: If5a800257cd3a875de208f8142ef5b4e88a05dbe
parent 3c299e99
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -102,6 +102,14 @@ package android.hardware.usb {

}

package android.location {

  public class LocationManager {
    method @RequiresPermission(allOf={android.Manifest.permission.LOCATION_HARDWARE, android.Manifest.permission.ACCESS_FINE_LOCATION}) public boolean injectLocation(@NonNull android.location.Location);
  }

}

package android.media {

  public class AudioManager {
+1 −0
Original line number Diff line number Diff line
@@ -1569,6 +1569,7 @@ public class LocationManager {
     *
     * @hide
     */
    @SystemApi(client = SystemApi.Client.MODULE_LIBRARIES)
    @RequiresPermission(allOf = {LOCATION_HARDWARE, ACCESS_FINE_LOCATION})
    public boolean injectLocation(@NonNull Location location) {
        Preconditions.checkArgument(location != null, "invalid null location");