|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | 2 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" |
| 3 | + xmlns:tools="http://schemas.android.com/tools" |
3 | 4 | package="org.deviceconnect.android.deviceplugin.host"> |
4 | 5 |
|
5 | 6 | <uses-permission android:name="android.permission.BLUETOOTH" /> |
|
23 | 24 | <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" /> |
24 | 25 | <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> |
25 | 26 | <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> |
26 | | - <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> |
27 | 27 | <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" /> |
28 | 28 | <uses-permission android:name="com.android.launcher.permission.UNINSTALL_SHORTCUT" /> |
29 | 29 | <uses-permission android:name="android.permission.ACCESS_NOTIFICATION_POLICY" /> |
30 | | - |
31 | | - <uses-feature android:name="android.hardware.camera" android:required="false"/> |
32 | | - <uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/> |
33 | | - <uses-feature android:name="android.hardware.camera.flash" android:required="false"/> |
| 30 | + <uses-permission android:name="android.permission.READ_PHONE_STATE" /> |
| 31 | + <uses-permission |
| 32 | + android:name="android.permission.PACKAGE_USAGE_STATS" |
| 33 | + tools:ignore="ProtectedPermissions" /> |
| 34 | + |
| 35 | + <uses-feature |
| 36 | + android:name="android.hardware.camera" |
| 37 | + android:required="false" /> |
| 38 | + <uses-feature |
| 39 | + android:name="android.hardware.camera.autofocus" |
| 40 | + android:required="false" /> |
| 41 | + <uses-feature |
| 42 | + android:name="android.hardware.camera.flash" |
| 43 | + android:required="false" /> |
34 | 44 |
|
35 | 45 | <application android:allowBackup="false"> |
36 | | - <activity |
37 | | - android:name="org.deviceconnect.android.deviceplugin.host.setting.HostSettingActivity" |
38 | | - android:launchMode="singleTask" |
39 | | - android:theme="@style/AppCompatTheme" /> |
40 | | - |
41 | | - <activity |
42 | | - android:name="org.deviceconnect.android.deviceplugin.host.setting.HostGpsSettingActivity" |
43 | | - android:exported="false" |
44 | | - android:launchMode="singleTask" |
45 | | - android:theme="@style/AppCompatTheme" /> |
46 | 46 |
|
47 | | - <activity |
48 | | - android:name="org.deviceconnect.android.deviceplugin.host.setting.HostRecorderSettingActivity" |
49 | | - android:exported="false" |
50 | | - android:launchMode="singleTask" |
51 | | - android:theme="@style/AppCompatTheme" /> |
52 | | - |
53 | | - <activity |
54 | | - android:name="org.deviceconnect.android.deviceplugin.host.setting.HostRecorderAudioSettingActivity" |
55 | | - android:exported="false" |
56 | | - android:launchMode="singleTask" |
57 | | - android:theme="@style/AppCompatTheme" /> |
58 | | - |
59 | | - <activity |
60 | | - android:name="org.deviceconnect.android.deviceplugin.host.setting.HostRecorderSRTSettingActivity" |
61 | | - android:exported="false" |
62 | | - android:launchMode="singleTask" |
63 | | - android:theme="@style/AppCompatTheme" /> |
64 | | - |
65 | | - <activity |
66 | | - android:name="org.deviceconnect.android.deviceplugin.host.setting.HostDemoSettingActivity" |
67 | | - android:exported="false" |
68 | | - android:launchMode="singleTask" |
69 | | - android:theme="@style/AppCompatTheme" /> |
70 | | - |
71 | | - <activity |
72 | | - android:name="org.deviceconnect.android.deviceplugin.host.activity.BluetoothManageActivity" |
73 | | - android:excludeFromRecents="true" |
74 | | - android:exported="false" |
75 | | - android:theme="@android:style/Theme.Translucent.NoTitleBar" /> |
| 47 | + <!-- 各プロファイルで表示画面 --> |
76 | 48 |
|
77 | 49 | <activity |
78 | 50 | android:name="org.deviceconnect.android.deviceplugin.host.mediaplayer.VideoPlayer" |
|
84 | 56 | android:theme="@style/AppCompatTheme" /> |
85 | 57 |
|
86 | 58 | <activity |
87 | | - android:name="org.deviceconnect.android.deviceplugin.host.activity.CanvasProfileActivity" |
| 59 | + android:name="org.deviceconnect.android.deviceplugin.host.activity.profile.CanvasProfileActivity" |
88 | 60 | android:configChanges="orientation|keyboardHidden|screenSize" |
89 | 61 | android:excludeFromRecents="true" |
90 | 62 | android:exported="false" |
|
93 | 65 | android:theme="@style/AppCompatTheme" /> |
94 | 66 |
|
95 | 67 | <activity |
96 | | - android:name="org.deviceconnect.android.deviceplugin.host.activity.TouchProfileActivity" |
| 68 | + android:name="org.deviceconnect.android.deviceplugin.host.activity.profile.TouchProfileActivity" |
97 | 69 | android:excludeFromRecents="true" |
98 | 70 | android:exported="false" |
99 | 71 | android:launchMode="singleInstance" |
100 | 72 | android:taskAffinity=".touch" |
101 | 73 | android:theme="@style/AppCompatTheme" /> |
102 | 74 |
|
103 | 75 | <activity |
104 | | - android:name="org.deviceconnect.android.deviceplugin.host.activity.KeyEventProfileActivity" |
| 76 | + android:name="org.deviceconnect.android.deviceplugin.host.activity.profile.KeyEventProfileActivity" |
105 | 77 | android:excludeFromRecents="true" |
106 | 78 | android:exported="false" |
107 | 79 | android:launchMode="singleInstance" |
108 | 80 | android:taskAffinity=".keyevent" |
109 | 81 | android:theme="@style/AppCompatTheme" /> |
110 | 82 |
|
| 83 | + <!-- パーミッション要求画面 --> |
| 84 | + |
111 | 85 | <activity |
112 | | - android:name="org.deviceconnect.android.deviceplugin.host.recorder.screen.PermissionReceiverActivity" |
| 86 | + android:name=".recorder.util.OverlayPermissionActivity" |
113 | 87 | android:configChanges="orientation|screenSize" |
114 | 88 | android:exported="false" |
115 | | - android:theme="@android:style/Theme.Translucent" /> |
| 89 | + android:theme="@style/AppCompatTheme.Translucent" /> |
116 | 90 |
|
117 | 91 | <activity |
118 | | - android:name=".recorder.util.OverlayPermissionActivity" |
| 92 | + android:name=".recorder.util.PermissionReceiverActivity" |
119 | 93 | android:configChanges="orientation|screenSize" |
120 | 94 | android:exported="false" |
121 | | - android:theme="@style/AppTheme.Translucent" /> |
| 95 | + android:theme="@style/AppCompatTheme.Translucent" /> |
| 96 | + |
| 97 | + <activity |
| 98 | + android:name="org.deviceconnect.android.deviceplugin.host.activity.BluetoothManageActivity" |
| 99 | + android:excludeFromRecents="true" |
| 100 | + android:exported="false" |
| 101 | + android:theme="@style/AppCompatTheme.Translucent" /> |
122 | 102 |
|
123 | 103 | <activity |
124 | 104 | android:name="org.deviceconnect.android.deviceplugin.host.activity.GeolocationAlertDialogActivity" |
125 | 105 | android:excludeFromRecents="true" |
| 106 | + android:exported="false" |
126 | 107 | android:launchMode="singleInstance" |
127 | | - android:theme="@style/AppTheme.Translucent" /> |
| 108 | + android:theme="@style/AppCompatTheme.Translucent" /> |
128 | 109 |
|
129 | | - <!-- パーミッション要求画面 --> |
| 110 | + <!-- プラグイン設定画面用の Activity --> |
130 | 111 | <activity |
131 | | - android:name="org.deviceconnect.android.activity.PermissionRequestActivity" |
| 112 | + android:name="org.deviceconnect.android.deviceplugin.host.setting.HostSettingActivity" |
| 113 | + android:exported="false" |
| 114 | + android:launchMode="singleTask" |
| 115 | + android:theme="@style/AppCompatTheme" /> |
| 116 | + |
| 117 | + <!-- レコーダー設定画面用の Activity --> |
| 118 | + <activity |
| 119 | + android:name=".activity.recorder.settings.SettingsActivity" |
| 120 | + android:configChanges="keyboardHidden|orientation|screenSize" |
132 | 121 | android:exported="false" |
133 | | - android:taskAffinity=".permission" |
134 | | - android:theme="@style/Theme.Dialog.Transparent" /> |
| 122 | + android:theme="@style/AppCompatTheme" /> |
135 | 123 |
|
| 124 | + <!-- プラグイン本体サービス --> |
| 125 | + <service |
| 126 | + android:name=".HostDevicePlugin" |
| 127 | + android:exported="true"> |
| 128 | + <meta-data |
| 129 | + android:name="org.deviceconnect.android.deviceplugin" |
| 130 | + android:resource="@xml/org_deviceconnect_android_deviceplugin_host" /> |
| 131 | + |
| 132 | + <meta-data |
| 133 | + android:name="org.deviceconnect.android.deviceplugin.name" |
| 134 | + android:value="@string/app_name_host" /> |
| 135 | + |
| 136 | + <meta-data |
| 137 | + android:name="org.deviceconnect.android.deviceplugin.icon" |
| 138 | + android:resource="@drawable/dconnect_icon" /> |
| 139 | + </service> |
| 140 | + |
| 141 | + <!-- Device Connect API リクエストのレシーバー --> |
| 142 | + <!-- |
| 143 | + NOTE: 下記のレシーバーは、旧仕様のDevice Connect Managerとの互換性、 |
| 144 | + およびDevice Connect Managerのアンインストール検知のために残しています. |
| 145 | + --> |
| 146 | + <receiver |
| 147 | + android:name=".HostDevicePluginProvider" |
| 148 | + android:enabled="true" |
| 149 | + android:exported="true"> |
| 150 | + <meta-data |
| 151 | + android:name="org.deviceconnect.android.deviceplugin" |
| 152 | + android:resource="@xml/org_deviceconnect_android_deviceplugin_host" /> |
| 153 | + <intent-filter> |
| 154 | + <action android:name="org.deviceconnect.action.GET" /> |
| 155 | + <action android:name="org.deviceconnect.action.PUT" /> |
| 156 | + <action android:name="org.deviceconnect.action.POST" /> |
| 157 | + <action android:name="org.deviceconnect.action.DELETE" /> |
| 158 | + |
| 159 | + <!-- uninstall notification --> |
| 160 | + <action android:name="android.intent.action.PACKAGE_FULLY_REMOVED" /> |
| 161 | + <data android:scheme="package" /> |
| 162 | + </intent-filter> |
| 163 | + </receiver> |
| 164 | + |
| 165 | + <!-- Device Connect ファイル管理用の Provider --> |
136 | 166 | <provider |
137 | 167 | android:name="org.deviceconnect.android.deviceplugin.host.file.HostFileProvider" |
138 | 168 | android:authorities="org.deviceconnect.android.deviceplugin.host.provider.included" |
|
0 commit comments