Commit 6204cae0 authored by Sadrul Habib Chowdhury's avatar Sadrul Habib Chowdhury Committed by Chromium LUCI CQ

[android] Fix running native-tests on Android 10.

Explicitly turn on requestLegacyExternalStorage attribute for native
tests, since it is disabled by default on Android 10. The storage access
is needed for listing the tests in a test-suite.

BUG=none

Change-Id: I5f6a399dec50204e47aa4c162ede1a9f64111cf4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2567713Reviewed-by: default avatarMichael Thiessen <mthiesse@chromium.org>
Reviewed-by: default avatarAndrew Grieve <agrieve@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Auto-Submit: Sadrul Chowdhury <sadrul@chromium.org>
Cr-Commit-Position: refs/heads/master@{#832415}
parent c899ea49
......@@ -22,7 +22,13 @@ found in the LICENSE file.
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<!-- Explicitly set the attribute requestLegacyExternalStorage to "true"
since it is "false" by default on apps targeting Android 10, and that
breaks test listing. See
https://developer.android.com/training/data-storage#scoped-storage and
https://developer.android.com/training/data-storage/compatibility. -->
<application android:label="NativeTests"
android:requestLegacyExternalStorage="true"
android:name="org.chromium.native_test.NativeTestApplication">
<uses-library android:name="android.test.runner"/>
{% if use_native_activity == 'true' %}
......
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