]> gitweb.stoutner.com Git - PrivacyCell.git/blobdiff - app/src/main/AndroidManifest.xml
Add a realtime monitoring service. https://redmine.stoutner.com/issues/750
[PrivacyCell.git] / app / src / main / AndroidManifest.xml
index a510530d9d551cd8b545baa2ec77d5a1ea9274ec..4400b2cac5c197a51eeda5354d1b95a84ede72bc 100644 (file)
     <!-- Required to read cell network information. -->
     <uses-permission android:name="android.permission.READ_PHONE_STATE" />
 
+    <!-- Required to display a realtime notification icon. -->
+    <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
+
+    <!-- Required to start the realtime notification icon at boot. -->
+    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
+
     <!-- Support Chromebooks that don't have a touch screen. -->
     <uses-feature android:name="android.hardware.touchscreen" android:required="false" />
 
@@ -39,7 +45,7 @@
         android:supportsRtl="true"
         android:theme="@style/Theme.PrivacyCell" >
 
-        <!-- PrivacyCellActivity.  The label uses the short name so that it isn't truncated under the icon in the launcher on most phones.
+        <!-- Privacy Cell Activity.  The label uses the short name so that it isn't truncated under the icon in the launcher on most phones.
             `android:launchMode="singleTask"` makes the app launch in a new task instead of inside the task of the program that sends it an intent.
             It also makes it reuse an existing Privacy Cell activity if available instead of launching a new one. -->
         <activity
             android:label="@string/settings"
             android:screenOrientation="fullUser"
             android:parentActivityName=".activities.PrivacyCellActivity" />
+
+        <!-- Realtime Monitoring Service. -->
+        <service android:name=".services.RealtimeMonitoringService" />
+
+        <!-- On Boot Completed Receiver. -->
+        <receiver
+            android:name=".receivers.OnBootCompletedReceiver"
+            android:exported="true" >
+
+            <intent-filter>
+                <action android:name="android.intent.action.BOOT_COMPLETED" />
+            </intent-filter>
+        </receiver>
     </application>
 </manifest>
\ No newline at end of file