While the other answer correctly states a way to force a (very) soft reboot, I'd like to add some in-depth details (which may not make sense to everyone :).
WHAT IS HOT / WARM REBOOT?
In order to answer your question we need to define what a hot (or warm) reboot is on an Android device. Terms cold (or hard) boot and warm (or soft) boot are more associated ...
if device is rooted you can kill the gui process from root shell, it will restart immediately. terminal app and all subprocesses are killed too, but adb shell processes will survive. all current mounts remain intact (even manual mounts) device is not fully rebooting
Filesystem level write access to physically external SD card without rooting phone is not possible since pre-KK days. However apps can always (with or without Storage permission) read and write to their private directories on shared storages. So you can move files to /storage/extSdCard/Android/data/.
On Android 6+ external SD card is visible at /storage/[...
I am not sure if you can starting an intent with a relative file name. Better use the absolute file name and use am start to view the file:
am start -a android.intent.action.VIEW -d file:///storage/emulated/0/mypdf.pdf -t application/pdf
The link you have provided is not setting up SOCKS but a transparent proxy i.e. it takes TCP/UDP traffic and SOCKSify it before sending through shadowsocks tunnel. But you need to make your traffic SOCKS-aware before directing towards SOCKS proxy. Either configure individual apps (which have built-in support for SOCKS) or enforce proxy system-wide ...
I have made a not so elegant way to do this but any one who can improve upon this or give an better solution should do so.
I'm using gist by Github for broadcasting my battery percentage first to a private file, tried using ix.io which is what I usually use but pkg install ix didn't work on Android terminal the config.guess threw and error saying unable to ...
adb push "$file" "$dest"
adb shell am start \
-a android.intent.action.ATTACH_DATA \
-c android.intent.category.DEFAULT \
-d file://"$dest" \
-t 'image/*' \
-e mimeType 'image/*'
This was the method I used, file= declares the variable for bash, use the file path of ...
Setting and enabling hotspot (software access point) is possible by calling methods setWifiApConfiguration and startSoftAp of wifi service. But at least since Android 8, the former requires permission OVERRIDE_WIFI_CONFIG while the latter requires NETWORK_STACK. Both permissions have Protection Level signature, not to be used by third party apps. Neither adb ...
As shown here, you can use these commands:
am start -a com.llamalab.automate.intent.action.START_FLOW -d content://com.llamalab.automate.provider/flows/13/statements/1
am start -a com.llamalab.automate.intent.action.START_FLOW -d content://com.llamalab.automate.provider/flows/13/statements/1 -n com.llamalab.automate/.StartServiceReceiver
I have noticed that fullscreen option was missing, I have looked at recent commits and it looks that it was removed from sources.
Since it hasn't been mentioned why it was removed, here's the commit https://github.com/termux/termux-app/commit/de4f334e24a0676aa21d577f229dfaa4f595f9a0
From Fullscreen / immersive mode option is gone https://github.com/...