Commit 7c8154e1 authored by Akira Baruah's avatar Akira Baruah Committed by Commit Bot

Add READ_FACTORY_DATA permission to Android manifest.

Includes com.google.android.things.permission.READ_FACTORY_DATA in the
AndroidManifest.xml template. This permission is required by the
GetFactoryLocaleList() implementation in Cast on Android Things.

Bug: b/115985851
Test: Ensure no system errors involving READ_FACTORY_DATA

Change-Id: Ia4a281cee86f167911db13aa17156b59c346b086
Merge-With: eureka-internal/205878
Reviewed-on: https://chromium-review.googlesource.com/c/1259612
Commit-Queue: Akira Baruah <akirabaruah@chromium.org>
Reviewed-by: default avatarSimeon Anfinrud <sanfin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#601329}
parent 8eba1b94
......@@ -11,8 +11,10 @@ assert(is_android)
cast_shell_android_manifest =
"$root_gen_dir/cast_shell_manifest/AndroidManifest.xml"
manifest_variables =
[ "cast_build_enable_background_activities=$enable_background_activities" ]
manifest_variables = [
"cast_build_enable_background_activities=$enable_background_activities",
"is_android_things_non_public=$is_android_things_non_public",
]
jinja_template("cast_shell_manifest") {
input = "apk/AndroidManifest.xml.jinja2"
......
......@@ -14,6 +14,11 @@
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
{% if is_android_things_non_public == "true" %}
<!-- CastSysInfoAndroidThings must read factory data. -->
<uses-permission android:name="com.google.android.things.permission.READ_FACTORY_DATA"/>
{% endif %}
<application android:name="org.chromium.chromecast.shell.CastApplication"
android:icon="@mipmap/app_icon"
android:label="@string/app_name">
......
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