-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Termux app doesn't open when it's installed as a system app. #2445
Comments
Yes, that won't work. Termux needs to be installed to /data/data/com.termux/files/usr |
You would need to extract/overlay termux native libs in the |
Check or post android |
12-03 15:23:16.989 6220 6302 I Termux:TermuxInstaller: Moving prefix staging to prefix directory. 12-03 15:23:17.029 6472 6472 W com.termux: type=1400 audit(0.0:186): avc: denied { execute_no_trans } for path="/data/data/com.termux/files/usr/bin/login" dev="mmcblk0p25" ino=393156 scontext=u:r:priv_app:s0:c512,c768 tcontext=u:object_r:privapp_data_file:s0:c512,c768 tclass=file permissive=0 app=com.termux 12-03 15:23:17.029 6472 6472 W com.termux: type=1300 audit(0.0:186): arch=c00000b7 syscall=221 success=no exit=-13 a0=77682851d0 a1=774823e110 a2=77b823fd60 a3=20 items=0 ppid=6220 auid=4294967295 uid=10178 gid=10178 euid=10178 suid=10178 fsuid=10178 egid=10178 sgid=10178 fsgid=10178 tty=pts0 ses=4294967295 exe="/system/bin/app_process64" subj=u:r:priv_app:s0:c512,c768 key=(null) app=com.termux 12-03 15:23:23.779 6220 6220 W com.termux: type=1400 audit(0.0:188): avc: denied { ioctl } for path="socket:[42028]" dev="sockfs" ino=42028 ioctlcmd=5414 scontext=u:r:priv_app:s0:c512,c768 tcontext=u:r:system_server:s0 tclass=unix_stream_socket permissive=0 app=com.termux |
It android |
How to add apps in selinux whitelist?, any documentation, plz help |
Following should work to bypass
If termux is installed as a system app but not signed with platform key and is assigned the
If termux uses
In future android version, even more
If termux is installed as a system app and is signed with platform key and uses
If termux is installed as a system app and is signed with platform key but does not use
Note that if you patch the selinux policy, exemptions will be granted to all apps for the domain and not just termux, so use at your own risk! |
Same problem. |
Problem description
I installed Termux app as a system app in /system/app/Termux/Termux.apk and after rebooting, the app isn't opening, it closes every time showing notification 'Termux Crash Report'.
Copied Crash Report below
##Report Info
User Action:
crash report
Sender:
TermuxActivity
Report Timestamp:
2021-12-02 19:33:24 UTC
##Crash Details
Crash Thread:
Thread[Thread-3,5,main]
Crash Timestamp:
2021-12-02 19:33:18 UTC
Crash Message:
##Stacktrace
##Termux App Info
APP_NAME:
Termux
PACKAGE_NAME:
com.termux
VERSION_NAME:
0.117
VERSION_CODE:
117
TARGET_SDK:
28
IS_DEBUG_BUILD:
false
APK_RELEASE:
F-Droid
SIGNING_CERTIFICATE_SHA256_DIGEST:
228FB2CFE90831C1499EC3CCAF61E96E8E1CE70766B9474672CE427334D41C42
###Device Info
##Software
OS_VERSION:
3.18.140-ge398035aa645
SDK_INT:
30
RELEASE:
11
ID:
RQ3A.211001.001
DISPLAY:
lineage_a7y17lte-userdebug 11 RQ3A.211001.001 10037124
INCREMENTAL:
10037124
SECURITY_PATCH:
2021-11-05
IS_DEBUGGABLE:
0
IS_TREBLE_ENABLED:
false
TYPE:
user
TAGS:
release-keys
##Hardware
MANUFACTURER:
samsung
BRAND:
samsung
MODEL:
SM-A720F
PRODUCT:
lineage_a7y17lte
BOARD:
universal7880
HARDWARE:
samsungexynos7880
DEVICE:
a7y17lte
SUPPORTED_ABIS:
arm64-v8a, armeabi-v7a, armeabi
Steps to reproduce the behavior.
Install Termux as a system app, and open Termux app.
What is the expected behavior?
Run Termux app normally.
System information
The text was updated successfully, but these errors were encountered: