diff options
author | qingxun <qingxun@google.com> | 2022-08-29 16:28:51 -0700 |
---|---|---|
committer | qingxun <qingxun@google.com> | 2022-08-30 12:43:38 -0700 |
commit | 4418cb13d543d8cb1b7bdebfc1188ad75fa1934a (patch) | |
tree | 7347cffb7b0948f8288b430cf1f16889af8eb351 | |
parent | 786e9115d5a99e3724d768ff535830325df975cb (diff) | |
download | TV-4418cb13d543d8cb1b7bdebfc1188ad75fa1934a.tar.gz |
Deny epg permissions for untrusted apps
Test: Cuttlefish
Bug: 240268320
Change-Id: Ia0028d04b0cb58d45fbe75d13975c7db4edf3909
-rw-r--r-- | src/com/android/tv/SetupPassthroughActivity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/tv/SetupPassthroughActivity.java b/src/com/android/tv/SetupPassthroughActivity.java index e7f89108..2a4a556f 100644 --- a/src/com/android/tv/SetupPassthroughActivity.java +++ b/src/com/android/tv/SetupPassthroughActivity.java @@ -109,7 +109,6 @@ public class SetupPassthroughActivity extends Activity { finish(); return; } - SetupUtils.grantEpgPermission(this, mTvInputInfo.getServiceInfo().packageName); if (DEBUG) Log.d(TAG, "Activity after completion " + mActivityAfterCompletion); // If EXTRA_SETUP_INTENT is not removed, an infinite recursion happens during // setupIntent.putExtras(intent.getExtras()). @@ -127,6 +126,7 @@ public class SetupPassthroughActivity extends Activity { finish(); return; } + SetupUtils.grantEpgPermission(this, mTvInputInfo.getServiceInfo().packageName); startActivityForResult(setupIntent, REQUEST_START_SETUP_ACTIVITY); } catch (ActivityNotFoundException e) { Log.e(TAG, "Can't find activity: " + setupIntent.getComponent()); |