You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `tasker_package_utils` file should be placed in termux `bin` directory `/data/data/com.termux/files/usr/bin` and it should have `termux``uid:gid` ownership and have executable `700` permission before it can be run in the termux terminal without specifying its path.
51
+
1. Copy the file to termux bin directory:
52
+
Either `cd` to the download/extraction directory and run following commands
Or use a file browser like root explorer to copy the file to the termux bin directory.
59
+
60
+
2. Set correct ownership and permission:
61
+
Either run following commands to set them automatically, requires su binary to be in `$PATH`.
62
+
63
+
```
64
+
export termux_bin_path="/data/data/com.termux/files/usr/bin"; export owner="$(stat -c "%u" "$termux_bin_path")"; for f in tasker_package_utils; do if [ -f "$termux_bin_path/$f" ]; then su -c "chown $owner:$owner \"$termux_bin_path/$f\" && chmod 700 \"$termux_bin_path/$f\""; fi; done;
65
+
```
66
+
67
+
Or manually set them with your file browser. You can find `termux``uid` and `gid` by running the command `id -u` in a non root shell in termux or by checking the properties of the termux `bin` directory from your file browser.
7
68
##
8
69
9
70
10
-
### **`tasker_package_utils script:`**
71
+
### tasker_package_utils Script Usage
11
72
12
-
You can run the script placed in the current directory without setting the ownership and permission by running the command `bash tasker_package_utils`.
73
+
You may optionally run the script placed in the current directory without setting the ownership and permission by running the command `bash tasker_package_utils`.
13
74
If you are not running the script in termux, set the shebang of the script correctly (the first line of the script).
14
75
15
-
##### Usage:
76
+
-**`tasker_package_utils`**
77
+
78
+
##### Help:
16
79
17
80
```
18
81
Usage:
@@ -34,10 +97,10 @@ Use \"tasker_package_utils command [ -h | --help ]\" for more help about a comma
34
97
35
98
-**`tasker_package_utils convert_system_priv`**
36
99
37
-
##### Usage:
38
-
39
100
**`tasker_package_utils convert_system_priv`** command is used to convert tasker user app to system privileged app.
40
101
102
+
##### Help:
103
+
41
104
```
42
105
tasker_package_utils convert_system_priv command is used to convert tasker user app to system privileged app.
**`tasker_package_utils uninstall`** command is used to to uninstall tasker. The tasker system privileged apk will also be removed provided that `tasker_package_utils convert_system_priv` command was used to install it as a system privileged app.
122
185
123
-
##### Usage:
186
+
##### Help:
124
187
125
188
```
126
189
tasker_package_utils uninstall command is used to uninstall tasker.
**`tasker_package_utils perms`** command is used to manage tasker package permissions. This command supports the script to be run directly on the device itself in a root shell like in termux or to be run over adb.
150
213
151
-
##### Usage:
214
+
##### Help:
152
215
153
216
```
154
217
tasker_package_utils perms command is used manage tasker package permissions.
- Convert Tasker user app to system privileged app.
317
+
-Uninstall Tasker
318
+
-Grant/Revoke/List Tasker package permissions.
319
+
-Run Commands in a root shell on the device or over adb with or without root.
257
320
##
258
321
259
322
260
-
### Install Instructions For Termux In Android:
323
+
### Planned Features
261
324
262
-
The `tasker_package_utils` file should be placed in termux `bin` directory `/data/data/com.termux/files/usr/bin` and it should have `termux` uid:gid ownership and have executable `700` permission before it can be run in the termux terminal without specifying its path.
263
-
1. Copy the file to termux bin directory:
264
-
Either `cd` to the download/extraction directory and run following commands
325
+
- Convert Tasker system privileged app to user app.
Or use a file browser like root explorer to copy the file to the termux bin directory.
329
+
### Issues
271
330
272
-
2. Set correct ownership and permission:
273
-
Either run following commands to set them automatically, requires su binary to be in `$PATH`.
331
+
`-`
332
+
##
274
333
275
-
```
276
-
export termux_bin_path="/data/data/com.termux/files/usr/bin"; export owner="$(stat -c "%u" "$termux_bin_path")"; for f in tasker_package_utils; do if [ -f "$termux_bin_path/$f" ]; then su -c "chown $owner:$owner \"$termux_bin_path/$f\" && chmod 700 \"$termux_bin_path/$f\""; fi; done;
277
-
```
278
334
279
-
Or manually set them with your file browser. You can find `termux` `uid` and `gid` by running the command `id -u` in a non root shell in termux or by checking the properties of the termux `bin` directory from your file browser.
335
+
### Worthy Of Note
336
+
337
+
`-`
338
+
##
339
+
340
+
341
+
### FAQs And FUQs
342
+
343
+
Check [FAQs_And_FUQs.md](FAQs_And_FUQs.md) file for the **Frequently Asked Questions(FAQs)** and **Frequently Unasked Questions(FUQs)**.
344
+
##
345
+
346
+
### Changelog
347
+
348
+
Check [CHANGELOG.md](CHANGELOG.md) file for the **Changelog**.
280
349
281
-
You may optionally run the script placed in the current directory without setting the ownership and permission by running the command `bash tasker_package_utils`.
Copy file name to clipboardExpand all lines: tasker_package_utils
+19-15Lines changed: 19 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -14,12 +14,13 @@
14
14
#bash version: 4.0 or higher
15
15
#credits: -
16
16
#license: MIT License
17
-
version=1.0
17
+
version=0.1.0
18
18
19
19
20
-
##### Install Instructions For Termux In Android:
21
20
22
-
#The `tasker_package_utils` file should be placed in termux `bin` directory `/data/data/com.termux/files/usr/bin` and it should have `termux` uid:gid ownership and have executable `700` permission before it can be run in the termux terminal without specifying its path.
21
+
### Install Instructions For Termux In Android:
22
+
23
+
#The `tasker_package_utils` file should be placed in termux `bin` directory `/data/data/com.termux/files/usr/bin` and it should have `termux` `uid:gid` ownership and have executable `700` permission before it can be run in the termux terminal without specifying its path.
23
24
#1. Copy the file to termux bin directory:
24
25
# Either `cd` to the download/extraction directory and run following commands
25
26
#
@@ -41,7 +42,9 @@ version=1.0
41
42
#You can run the script placed in the current directory without setting the ownership and permission by running the command `bash tasker_package_utils`.
42
43
#If you are not running the script in termux, set the shebang of the script correctly (the first line of the script).
43
44
44
-
#Usage:
45
+
46
+
47
+
### Usage Examples:
45
48
46
49
#Convert tasker user app to system privileged app in normal mode
47
50
#this will uninstall tasker and you will loose all tasker data and desktop shortcuts
@@ -114,7 +117,8 @@ version=1.0
114
117
#bash tasker_package_utils perms list | grep READ_LOGS
115
118
116
119
117
-
#define user modifiable variables start
120
+
121
+
### Set User Modifiable Variables Start
118
122
119
123
#set permissions to grant or revoke
120
124
#the permissions_list contains all permissions declared by tasker till version '5.9.rc.3'
0 commit comments