mirror of
https://github.com/nix-community/nix-on-droid-app.git
synced 2025-11-08 11:36:11 +01:00
termux service: allow to execute arbitrary commands for applications that have permission
This commit is contained in:
parent
500b275662
commit
593e70334e
2 changed files with 24 additions and 9 deletions
|
|
@ -14,6 +14,13 @@
|
|||
<uses-permission android:name="android.permission.VIBRATE" />
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
||||
|
||||
<permission
|
||||
android:name="com.termux.permission.TERMUX_SERVICE"
|
||||
android:icon="@drawable/ic_launcher"
|
||||
android:label="@string/termux_exec_permission_label"
|
||||
android:description="@string/termux_exec_permission_desc"
|
||||
android:protectionLevel="dangerous"/>
|
||||
|
||||
<application
|
||||
android:extractNativeLibs="true"
|
||||
android:allowBackup="true"
|
||||
|
|
@ -53,14 +60,6 @@
|
|||
android:resizeableActivity="true"
|
||||
android:label="@string/application_name" />
|
||||
|
||||
|
||||
<activity
|
||||
android:name="com.termux.styling.TermuxStyleActivity"
|
||||
android:noHistory="true"
|
||||
android:exported="false"
|
||||
android:theme="@style/StylingAppTheme" >
|
||||
</activity>
|
||||
|
||||
<activity
|
||||
android:name="com.termux.filepicker.TermuxFileReceiverActivity"
|
||||
android:label="@string/application_name"
|
||||
|
|
@ -117,7 +116,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" />
|
||||
|
||||
|
|
@ -129,6 +133,14 @@
|
|||
|
||||
<meta-data android:name="com.sec.android.support.multiwindow" android:value="true" />
|
||||
|
||||
<!-- Termux:Styling -->
|
||||
<activity
|
||||
android:name="com.termux.styling.TermuxStyleActivity"
|
||||
android:noHistory="true"
|
||||
android:exported="false"
|
||||
android:theme="@style/StylingAppTheme" />
|
||||
|
||||
<!-- Termux:Widget -->
|
||||
<receiver
|
||||
android:name="com.termux.widget.TermuxWidgetProvider"
|
||||
android:label="@string/shortcut_widget_name" >
|
||||
|
|
@ -148,6 +160,7 @@
|
|||
<action android:name="android.intent.action.CREATE_SHORTCUT" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
<activity
|
||||
android:name="com.termux.widget.TermuxLaunchShortcutActivity"
|
||||
android:noHistory="true"
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@
|
|||
<resources>
|
||||
<string name="application_name">Termux</string>
|
||||
<string name="shared_user_label">Termux user</string>
|
||||
<string name="termux_exec_permission_label">Termux:Execute</string>
|
||||
<string name="termux_exec_permission_desc">Allows application to execute arbitrary shell commands within Termux.</string>
|
||||
<string name="new_session">New session</string>
|
||||
<string name="new_session_failsafe">Failsafe</string>
|
||||
<string name="toggle_soft_keyboard">Keyboard</string>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue