这是indexloc提供的服务,不要输入任何密码
Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
android:installLocation="internalOnly"
android:sharedUserId="com.termux"
android:sharedUserLabel="@string/shared_user_label" >

<permission android:name="com.termux.permission.TERMUX_SERVICE"
android:label="@string/termux_permission_label"
android:description="@string/termux_permission_description"
android:icon="@drawable/ic_launcher"
android:protectionLevel="dangerous"/>

<uses-feature android:name="android.hardware.touchscreen" android:required="false" />
<uses-feature android:name="android.software.leanback" android:required="false" />
Expand Down Expand Up @@ -111,7 +117,12 @@

<service
android:name="com.termux.app.TermuxService"
android:exported="false" />
android:exported="true"
android:permission="com.termux.permission.TERMUX_SERVICE">
<intent-filter>
<action android:name="com.termux.service_execute" />
</intent-filter>
</service>

<receiver android:name=".app.TermuxOpenReceiver" />

Expand Down
3 changes: 3 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,7 @@
<string name="file_received_title">Save file in ~/downloads/</string>
<string name="file_received_edit_button">Edit</string>
<string name="file_received_open_folder_button">Open folder</string>

<string name="termux_permission_label">Termux Service Permission</string>
<string name="termux_permission_description">Allows application to execute arbitrary shell commands within Termux.</string>
</resources>