Create permission for starting TTS service
This commit is contained in:
@@ -2,9 +2,16 @@
|
|||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="io.bartek">
|
package="io.bartek">
|
||||||
|
|
||||||
|
<permission
|
||||||
|
android:name="io.bartek.permission.TTS_HTTP_SERVICE"
|
||||||
|
android:description="@string/permission_http_server_description"
|
||||||
|
android:label="@string/permission_http_server_label"
|
||||||
|
android:protectionLevel="normal" />
|
||||||
|
|
||||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
||||||
<uses-permission android:name="android.permission.INTERNET" />
|
<uses-permission android:name="android.permission.INTERNET" />
|
||||||
<uses-permission android:name="android.permission.WAKE_LOCK" />
|
<uses-permission android:name="android.permission.WAKE_LOCK" />
|
||||||
|
<uses-permission android:name="io.bartek.permission.TTS_HTTP_SERVICE" />
|
||||||
|
|
||||||
<application
|
<application
|
||||||
android:allowBackup="false"
|
android:allowBackup="false"
|
||||||
@@ -25,7 +32,8 @@
|
|||||||
<service
|
<service
|
||||||
android:name=".service.ForegroundService"
|
android:name=".service.ForegroundService"
|
||||||
android:enabled="true"
|
android:enabled="true"
|
||||||
android:exported="true" />
|
android:exported="true"
|
||||||
|
android:permission="io.bartek.permission.TTS_HTTP_SERVICE" />
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".MainActivity"
|
android:name=".MainActivity"
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
<resources>
|
<resources>
|
||||||
<string name="app_name">TTS Server</string>
|
<string name="app_name">TTS Server</string>
|
||||||
|
|
||||||
|
<string name="permission_http_server_label">booting up TTS HTTP server</string>
|
||||||
|
<string name="permission_http_server_description">Allows application to run HTTP server which provides a TTS services.</string>
|
||||||
|
|
||||||
<string name="main_activity_run">Run</string>
|
<string name="main_activity_run">Run</string>
|
||||||
<string name="main_activity_stop">Stop</string>
|
<string name="main_activity_stop">Stop</string>
|
||||||
<string name="main_activity_prompt_to_run">Tap power on button to run the server</string>
|
<string name="main_activity_prompt_to_run">Tap power on button to run the server</string>
|
||||||
|
|||||||
Reference in New Issue
Block a user