Merge "Makes injectLocation a system api to suport car stack mainline updatability."

This commit is contained in:
TreeHugger Robot
2021-07-15 01:21:15 +00:00
committed by Android (Google) Code Review
2 changed files with 9 additions and 0 deletions

View File

@@ -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 {

View File

@@ -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");