summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleksandr Tolstykh <tolstykh@google.com>2018-06-11 11:57:29 +0200
committerOleksandr Tolstykh <tolstykh@google.com>2018-06-11 11:57:29 +0200
commitea4cd4f0c44f3dde7186bacbc37b8c44ccafe703 (patch)
treee1880e9921bf9beb6ceb72ab7071fdd76aa295f8
parent2ed12059e545fe0c0e69a1bd2f2a2e5ddefc3b2b (diff)
downloaddevice_google_atv-ea4cd4f0c44f3dde7186bacbc37b8c44ccafe703.tar.gz
device_google_atv-ea4cd4f0c44f3dde7186bacbc37b8c44ccafe703.tar.bz2
device_google_atv-ea4cd4f0c44f3dde7186bacbc37b8c44ccafe703.zip
Fix feature set of low-ram configuration of AndroidTV
Despite the fact that the multiscreen is disabled on low_ram, AndroidTV shows picture_in_picture and activities_on_secondary_displays in the available feature set (adb shell pm list features). It causes some applications to crash when enter PIP functionality because PackageManager.hasSystemFeature returns true (should be false) on low_ram configuration. Test: manual test - try to run application (Live Channels & VLC) in PIP before and after change. Bug: 109863784 Change-Id: I3b84cabc13f281b60b754a5be096dc99e883c770
-rw-r--r--permissions/tv_core_hardware.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/permissions/tv_core_hardware.xml b/permissions/tv_core_hardware.xml
index 74403e2..d9d4eb1 100644
--- a/permissions/tv_core_hardware.xml
+++ b/permissions/tv_core_hardware.xml
@@ -30,8 +30,8 @@
<feature name="android.software.leanback" />
<feature name="android.software.leanback_only" />
<feature name="android.software.live_tv" />
- <feature name="android.software.picture_in_picture" />
- <feature name="android.software.activities_on_secondary_displays" />
+ <feature name="android.software.picture_in_picture" notLowRam="true" />
+ <feature name="android.software.activities_on_secondary_displays" notLowRam="true" />
<feature name="android.software.voice_recognizers" />
<feature name="android.software.input_methods" />
<feature name="android.software.autofill" />