Commit 3a7675d4 authored by Andrew Grieve's avatar Andrew Grieve Committed by Commit Bot

Incremental Install: Apply API whitelist check to P

Seems that some emulators require this even when just on
Android P.

Bug: 946194
Change-Id: Iad5811a54404bfcf46267d5c3f3a5f565f399ac1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2098236
Auto-Submit: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: default avatarColin Blundell <blundell@chromium.org>
Commit-Queue: Colin Blundell <blundell@chromium.org>
Cr-Commit-Position: refs/heads/master@{#749249}
parent 8675efcc
...@@ -232,7 +232,7 @@ def Install(device, install_json, apk=None, enable_device_cache=False, ...@@ -232,7 +232,7 @@ def Install(device, install_json, apk=None, enable_device_cache=False,
def check_device_configured(): def check_device_configured():
target_sdk_version = int(apk.GetTargetSdkVersion()) target_sdk_version = int(apk.GetTargetSdkVersion())
# Beta Q builds apply whitelist to targetSdk=28 as well. # Beta Q builds apply whitelist to targetSdk=28 as well.
if target_sdk_version >= 28 and device.build_version_sdk >= 29: if target_sdk_version >= 28 and device.build_version_sdk >= 28:
apis_allowed = ''.join( apis_allowed = ''.join(
device.RunShellCommand( device.RunShellCommand(
['settings', 'get', 'global', 'hidden_api_policy'], ['settings', 'get', 'global', 'hidden_api_policy'],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment