aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqingxun <qingxun@google.com>2022-08-29 16:28:51 -0700
committerqingxun <qingxun@google.com>2022-08-30 12:43:38 -0700
commit4418cb13d543d8cb1b7bdebfc1188ad75fa1934a (patch)
tree7347cffb7b0948f8288b430cf1f16889af8eb351
parent786e9115d5a99e3724d768ff535830325df975cb (diff)
downloadTV-4418cb13d543d8cb1b7bdebfc1188ad75fa1934a.tar.gz
Deny epg permissions for untrusted apps
Test: Cuttlefish Bug: 240268320 Change-Id: Ia0028d04b0cb58d45fbe75d13975c7db4edf3909
-rw-r--r--src/com/android/tv/SetupPassthroughActivity.java2
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());