nix-community / nix-on-droid

Nix-enabled environment for your Android device. [maintainers=@t184256,@Gerschtli]
https://nix-on-droid.unboiled.info
MIT License
1.16k stars 64 forks source link

Is there something like termux-open-url with nix-on-droid? #118

Open bbigras opened 3 years ago

bbigras commented 3 years ago

https://github.com/termux/termux-packages/blob/master/packages/termux-tools/termux-open-url

I don't seem to have the "am" command.

Gerschtli commented 3 years ago

You can try and play around with the am script available in standard termux installation.

$ cat /data/data/com.termux/files/usr/bin/am
#!/data/data/com.termux/files/usr/bin/sh
export CLASSPATH=/data/data/com.termux/files/usr/libexec/termux-am/am.apk
unset LD_LIBRARY_PATH LD_PRELOAD
exec /system/bin/app_process / com.example.termuxam.Am "$@"

But it seems to rely on the apk to be available anywhere..