Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

Package installer crashes #13

Open
pressRtowin opened this issue Aug 4, 2023 · 3 comments
Open

Package installer crashes #13

pressRtowin opened this issue Aug 4, 2023 · 3 comments

Comments

@pressRtowin
Copy link

This didn't happen on Revancify so not sure if it's a Revancify x issue or termux monet issue (as I was using vanilla termux previously), but after patching, I can no longer install the app from termux. Upon selecting the package installer, it immediately crashes. Installing via selecting the moved file manually from a file manager works fine.

@pressRtowin
Copy link
Author

Seems to be because the install option links to the file in the internal termux directory instead of the copy of the file made, and this: https://wiki.termux.com/wiki/Sharing_Data

@pressRtowin
Copy link
Author

pressRtowin commented Aug 4, 2023

Running
value="true"; key="allow-external-apps"; file="/data/data/com.termux/files/home/.termux/termux.properties"; mkdir -p "$(dirname "$file")"; chmod 700 "$(dirname "$file")"; if ! grep -E '^'"$key"'=.*' $file &>/dev/null; then [[ -s "$file" && ! -z "$(tail -c 1 "$file")" ]] && newline=$'\n' || newline=""; echo "$newline$key=$value" >> "$file"; else sed -i'' -E 's/^'"$key"'=.*/'"$key=$value"'/' $file; fi
resolved this issue for now, but Revancify X should be configured so this functions as expected out of the box.

@markaabo
Copy link

markaabo commented Aug 4, 2023

I have the same problem :(

@pressRtowin where/how do I run the line of code you said fixed it :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants