1<?xml version="1.0" encoding="utf-8"?> 2<manifest xmlns:android="http://schemas.android.com/apk/res/android" 3 package="com.google.android.tv.setup.customizationsample"> 4 5 <uses-feature 6 android:name="android.hardware.touchscreen" 7 android:required="false" /> 8 <uses-feature 9 android:name="android.software.leanback" 10 android:required="true" /> 11 12 <uses-permission android:name="com.android.setupwizard.permission.SETUP" /> 13 <uses-permission android:name="android.permission.REBOOT" /> 14 15 <application 16 android:label="TV Setup Customization Sample" 17 android:theme="@style/AppTheme"> 18 19 20 <!-- This Receiver marks this app as being eligible to provide resources which influence 21 the behavior and look of TV Setup. --> 22 <receiver android:name=".PartnerReceiver"> 23 <intent-filter> 24 <action android:name="com.google.android.tvsetup.action.PARTNER_CUSTOMIZATION" /> 25 <category android:name="android.intent.category.DEFAULT" /> 26 </intent-filter> 27 </receiver> 28 29 30 <!-- HOOK Activity examples --> 31 32 <activity 33 android:name=".HookBeginActivity" 34 android:label="Partner Hook: Begin (Priority 5)" 35 android:screenOrientation="landscape"> 36 <intent-filter android:priority="5"> 37 <action android:name="com.android.setupwizard.action.HOOK_BEGIN" /> 38 <category android:name="android.intent.category.DEFAULT" /> 39 </intent-filter> 40 </activity> 41 42 43 <activity 44 android:name=".HookBegin2Activity" 45 android:label="Partner Hook: Begin (Priority 4)" 46 android:screenOrientation="landscape"> 47 <intent-filter android:priority="4"> 48 <action android:name="com.android.setupwizard.action.HOOK_BEGIN" /> 49 <category android:name="android.intent.category.DEFAULT" /> 50 </intent-filter> 51 </activity> 52 53 54 <activity 55 android:name=".HookPostNetworkActivity" 56 android:screenOrientation="landscape" 57 android:label="Partner Hook: Post-Network" 58 > 59 <intent-filter> 60 <action android:name="com.android.setupwizard.action.HOOK_POST_NETWORK" /> 61 <category android:name="android.intent.category.DEFAULT" /> 62 </intent-filter> 63 </activity> 64 65 66 <activity 67 android:name=".HookPostNetworkFollowupActivity" 68 android:screenOrientation="landscape" 69 android:label="Partner Hook: Post-Network Follow-up" 70 android:exported="true" 71 > 72 </activity> 73 74 75 <activity 76 android:name=".HookEndActivity" 77 android:screenOrientation="landscape" 78 android:label="Partner Hook: End" 79 > 80 <intent-filter> 81 <action android:name="com.android.setupwizard.action.HOOK_END" /> 82 <category android:name="android.intent.category.DEFAULT" /> 83 </intent-filter> 84 </activity> 85 86 87 <!-- Implements the delegate-network-to-partner action. --> 88 <activity 89 android:name=".NetworkDelegationActivity" 90 android:screenOrientation="landscape" 91 android:label="Network Delegation" 92 > 93 <intent-filter> 94 <action android:name="com.android.net.GET_CONNECTED" /> 95 <category android:name="android.intent.category.DEFAULT" /> 96 </intent-filter> 97 </activity> 98 99 100 <activity 101 android:name=".HookPostWelcomeActivity" 102 android:label="Partner Hook: Post-Welcome" 103 android:screenOrientation="landscape"> 104 <intent-filter android:priority="4"> 105 <action android:name="com.android.setupwizard.action.HOOK_POST_WELCOME" /> 106 <category android:name="android.intent.category.DEFAULT" /> 107 </intent-filter> 108 </activity> 109 110 111 <!-- A simple opaque Activity --> 112 <activity 113 android:name=".OpaqueActivity" 114 android:screenOrientation="landscape" 115 android:label="Opaque Activity" 116 android:exported="true" 117 android:theme="@style/AppThemeOpaque" 118 > 119 </activity> 120 121 122 <!-- A simple transparent Activity --> 123 <activity 124 android:name=".TransparentActivity" 125 android:screenOrientation="landscape" 126 android:label="Transparent Activity" 127 android:exported="true" 128 > 129 </activity> 130 131 132 <!-- Implements a pre-Enrollment action (which is normally handled by Katniss). We say 133 'pre-Enrollment' because the actual enrollment Activity is a device-specific Activity; the 134 design calls for the Katniss implementation of this action to redirect to that device- 135 specific Activity (which we do not attempt here with MockHotwordEnrollmentActivity)--> 136 <activity 137 android:name=".MockHotwordEnrollmentActivity" 138 android:screenOrientation="landscape" 139 android:label="Mock Hotword Enrollment" 140 > 141 <intent-filter> 142 <action android:name="com.google.android.katniss.action.ATV_SETUP_ENROLL_HOTWORD" /> 143 <category android:name="android.intent.category.DEFAULT" /> 144 </intent-filter> 145 </activity> 146 147 148 <!-- Implements a delegate-to-Katniss action. --> 149 <activity 150 android:name=".MockKatnissActivity" 151 android:screenOrientation="landscape" 152 android:label="Mock Katniss" 153 > 154 <intent-filter> 155 <action android:name="com.google.android.katniss.action.ATV_SETUP" /> 156 <category android:name="android.intent.category.DEFAULT" /> 157 </intent-filter> 158 </activity> 159 160 </application> 161 162</manifest> 163