-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Unable to install bootstrap #2168
Comments
Where did you get the Termux APK file? |
f-droid |
Copy the complete error from menu on top right (3 dots) and post that and not screenshots. |
@Ftwrr it would be better if you posted the full error so that I can see the full path and is it always the same path or different every time? However, also try the debug build apk for https://github.com/termux/termux-app/releases/tag/v0.117 You also need to uninstall termux and all plugins you have already installed from F-Droid before installing debug build. |
Report InfoUser Action: Bootstrap ErrorError Code:
StackTraces
Termux App InfoAPP_NAME: Device InfoSoftwareOS_VERSION: HardwareMANUFACTURER: |
debug build apk not working |
Thanks for testing. Are you willing to test more builds if I send them? For now do this. When If you can't seem to open left drawer (because of gesture navigation), press home button, then long press on termux launcher icon and select |
Also when you are in the failsafe session before running |
yes |
:/ $ mkdir -p /data/data/com.termux/files/usr-staging/bin; echo $? |
Transcript
Termux App InfoAPP_NAME: Device InfoSoftwareOS_VERSION: HardwareMANUFACTURER: |
Have you ever rooted your device? Also send output for |
Also are you trying to run app in work profile (or secondary user)? |
@agnostic-apollo Work profile and secondary user accounts are normally detected by installer code. So remaining cases are incorrect modes/ownership or missing |
Secondary user is (hence the brackets), but not work profile. It seems to need a different check as per here. Sub comments also say even that isn't working on xiaomi. Who knows maybe secondary user is faulty on some devices too. You can create work profiles with Island app. I will have to test to check things out. The missing directory should be fixable with a call to |
Technically, it is a separate user profile. I didn't tried it with work profile created by Google Services (never used such and currently don't have possibility to test it), but a one created with Shelter application was detected correctly.
This will not work for Samsung devices with Secure Folder which binds |
I see, assuming that check is working on the realme device above, then that would leave ownership/permission or missing directory issue.
If termux "mostly" works for a such a "user profile" case, then wouldn't it be better to remove the profile check and do it based on |
Check is working for Island app as well on android 11 avd. |
You can't rely on Since my Samsung device now uses a custom ROM, Knox functionality has gone and I can't do further tests. But as I wrote, P.S. That's more like off-topic. Secure Folder support is another issue, not this one. |
…tion and provide better info when running as secondary user/profile Termux will check if termux files directory `/data/data/com.termux/files` has rwx permission access before installing bootstrap or starting terminal. Missing permission will automatically be set if possible. The `/data/data/com.termux` directory will also be created if it did not already exist, like if android did not already create it. Users will now also be shown a crash notification if they attempt to start termux as a secondary user or in a work profile with info of the "alternate" termux files directory `/data/user/<id>/com.termux` set by android and the profile owner app if running under work profile (not secondary user). A notification will also be shown if the termux files directory (not "alternate") is not accessible. Related #2168
So I tested it out and created a work profile in android 10 rooted avd and then ran
Yeah, checking for Basically, its possible to add restricted support for multiple users for rooted users or where bind mount is done by default by the OS like in Samsung's case. I didn't add that support yet since that would require more time, cause users should be shown a prompt for that and if they want to accept the risks, also a shared preference for the choice and possibly a warning in termux settings about the restricted termux, and that @termux won't be obligated to provide much support for broken stuff. As for current issue, @Ftwrr still hasn't sent the output for The build will also show the secondary user/work profile info on bootstrap installation failure. Note that Secondary UserWork Profile |
Looking more closely into aosp code, |
… accessible and fix comment The `/data/data/com.termux` directory will not be created if it did not already exist and android did not already create it instead of as mentioned in 6fa4b9b. Check #2168 (comment)
Another potential reason for failure could be that the OP's android creates the
|
Install |
@BlackKDX 0.118+ (i.e. 0.119) is not released yet. Install from github in the meanwhile, see wiki: https://github.com/termux/termux-app/wiki/Termux-on-android-5-or-6 |
…tion and provide better info when running as secondary user/profile Termux will check if termux files directory `/data/data/com.termux/files` has rwx permission access before installing bootstrap or starting terminal. Missing permission will automatically be set if possible. The `/data/data/com.termux` directory will also be created if it did not already exist, like if android did not already create it. Users will now also be shown a crash notification if they attempt to start termux as a secondary user or in a work profile with info of the "alternate" termux files directory `/data/user/<id>/com.termux` set by android and the profile owner app if running under work profile (not secondary user). A notification will also be shown if the termux files directory (not "alternate") is not accessible. Related termux#2168
… accessible and fix comment The `/data/data/com.termux` directory will not be created if it did not already exist and android did not already create it instead of as mentioned in 6fa4b9b. Check termux#2168 (comment)
…tion and provide better info when running as secondary user/profile Termux will check if termux files directory `/data/data/com.termux/files` has rwx permission access before installing bootstrap or starting terminal. Missing permission will automatically be set if possible. The `/data/data/com.termux` directory will also be created if it did not already exist, like if android did not already create it. Users will now also be shown a crash notification if they attempt to start termux as a secondary user or in a work profile with info of the "alternate" termux files directory `/data/user/<id>/com.termux` set by android and the profile owner app if running under work profile (not secondary user). A notification will also be shown if the termux files directory (not "alternate") is not accessible. Related termux#2168
… accessible and fix comment The `/data/data/com.termux` directory will not be created if it did not already exist and android did not already create it instead of as mentioned in 6fa4b9b. Check termux#2168 (comment)
for #2168 (comment). You can mount it for Termux in other users separately, I used this module https://github.com/HuskyDG/magic_proc_monitor |
… accessible and fix comment The `/data/data/com.termux` directory will not be created if it did not already exist and android did not already create it instead of as mentioned in 6fa4b9b. Check termux/termux-app#2168 (comment)
The text was updated successfully, but these errors were encountered: