Recently Written · git

subread-overlay

Shows the lines of an .srt over any Android media player, in time with it. Tap a word to look it up.

git clone https://github.com/equwal/subread-overlay

Log | Files | Refs


app/src/main/AndroidManifest.xml (2495 bytes)

1 <?xml version="1.0" encoding="utf-8"?>
2 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3     xmlns:tools="http://schemas.android.com/tools">
4 
5     <!-- The subtitle line is drawn over the media player. No network permission: nothing leaves the device. -->
6     <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
7 
8     <!-- The apps that can take a word: dictionaries, translators, flash card apps. And the SubRead apps, to open them when they are installed. -->
9     <queries>
10         <package android:name="space.subread.app" />
11         <package android:name="space.subread.anki" />
12         <intent>
13             <action android:name="android.intent.action.PROCESS_TEXT" />
14             <data android:mimeType="text/plain" />
15         </intent>
16     </queries>
17 
18     <application
19         android:allowBackup="true"
20         android:icon="@drawable/icon"
21         android:label="@string/app_name"
22         android:supportsRtl="true"
23         android:theme="@android:style/Theme.DeviceDefault.Light.NoActionBar">
24 
25         <activity
26             android:name=".MainActivity"
27             android:exported="true">
28             <intent-filter>
29                 <action android:name="android.intent.action.MAIN" />
30                 <category android:name="android.intent.category.LAUNCHER" />
31             </intent-filter>
32         </activity>
33 
34         <!--
35             Android gives the play position of other apps only to a notification listener.
36             This service reads no notification. The system keeps it running, so the overlay
37             needs no foreground service and no notification of its own.
38         -->
39         <!--
40             Gives the position of the player to a reader app, and takes play, pause and seek from
41             it. KOReader with the SubRead plugin uses this. See PlayerProvider.
42         -->
43         <provider
44             android:name=".PlayerProvider"
45             android:authorities="${applicationId}.player"
46             android:exported="true"
47             tools:ignore="ExportedContentProvider" />
48 
49         <service
50             android:name=".MediaListener"
51             android:exported="true"
52             android:label="@string/listener_label"
53             android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE">
54             <intent-filter>
55                 <action android:name="android.service.notification.NotificationListenerService" />
56             </intent-filter>
57         </service>
58     </application>
59 </manifest>