Benjamin_Loison commented on issue Benjamin_Loison/linux#11 2025-11-06 17:59:15 +01:00
Make computer behave like a (Bluetooth/USB) keyboard to copy-paste secrets for instance

Thanks to webcam could read a QR code being TOTP (to avoid someone able to read the QR code to leverage it later, but maybe can fake the hardware clock, but then face encryption) with more entropy.

Benjamin_Loison commented on issue Benjamin_Loison/adb#52 2025-11-05 22:29:46 +01:00
inotifywait
diff data/data/com.termux/files/usr/bin/inotifywait ~/inotifywait

does not return anything, same for libinotifytools.so.

dpkg -S $PREFIX/lib/libc++_shared.so
l…
Benjamin_Loison commented on issue Benjamin_Loison/adb#52 2025-11-05 22:02:31 +01:00
inotifywait

Wikipedia: Termux (1316517983) correctly denotes termux.dev as Website.

Benjamin_Loison commented on issue Benjamin_Loison/adb#52 2025-11-05 22:01:33 +01:00
inotifywait
command-not-found
command-not-found: command not found
dpkg -L command-not-found
Output:
/.
/data
/data/data
/data/data/c…
Benjamin_Loison commented on issue Benjamin_Loison/adb#53 2025-11-05 20:45:01 +01:00
Set default folder
stty
Output:
speed 38400 baud; line = 0;
-brkint -imaxbel iutf8
Benjamin_Loison commented on issue Benjamin_Loison/adb#53 2025-11-05 20:44:00 +01:00
Set default folder

DuckDuckGo and Google search vs # shell*, * vs # shell user vs root and shell prefix user vs root.

The Unix Stack Exchange answer 291733 helps.

Benjamin_Loison commented on issue Benjamin_Loison/adb#53 2025-11-05 20:38:33 +01:00
Set default folder
stty raw -echo ; ( echo "ls" && cat ) 
Benjamin_Loison commented on issue Benjamin_Loison/adb#53 2025-11-05 20:37:43 +01:00
Set default folder
time ./adb-cmd exit
Output:
spawn adb shell
FP4:/ $ exit

real	0m10,107s
user	0m0,013s
sys	0m0,023s

Changing # with…

Benjamin_Loison commented on issue Benjamin_Loison/adb#53 2025-11-05 20:31:17 +01:00
Set default folder
man expect
Output:
EXPECT(1)                                               General Commands Manual                                             …
Benjamin_Loison commented on issue Benjamin_Loison/adb#53 2025-11-05 20:29:35 +01:00
Set default folder
adb shell 'bash'
Output:
whoami
shell
whoami
shell
expect
Output:
Command…
Benjamin_Loison commented on issue Benjamin_Loison/adb#53 2025-11-05 20:15:51 +01:00
Set default folder
Shell:
benjamin_loison@benjamin-loison-framework:~$ adb shell
FP4:/ $ bash
shell@FP4 / $ exit
exit
127
Benjamin_Loison commented on issue Benjamin_Loison/adb#53 2025-11-05 20:14:18 +01:00
Set default folder

DuckDuckGo search Linux SSH interactive but execute a command first.

I don't want ~/.bashrc like solutions.

Benjamin_Loison opened issue Benjamin_Loison/adb#53 2025-11-05 20:13:07 +01:00
Set default folder to /sdcard/
Benjamin_Loison commented on issue Benjamin_Loison/adb#51 2025-11-05 20:08:18 +01:00
adb shell input text misses some characters
May help the issue:
-----BEGIN PGP MESSAGE-----

hF4DTQa9Wom5MBgSAQdAHao6SBWzUQaAbcB1sU5/VojnbXTbbPREIm5tuPkVYgcw
6S2XnGtVOtOtrlfw91HMk6Df6PaVuhn1gymNn/gR1D…
Benjamin_Loison commented on issue Benjamin_Loison/adb#51 2025-11-05 20:07:36 +01:00
adb shell input text misses some characters

Related to #5.

Benjamin_Loison commented on issue Benjamin_Loison/adb#51 2025-11-05 20:07:15 +01:00
adb shell input text misses some characters
Output:
...
shell:
 shell [-e ESCAPE] [-n] [-Tt] [-x] [COMMAND...]
     run remote shell command (interactive shell if no command given)
     -e: choose…
Benjamin_Loison commented on issue Benjamin_Loison/adb#52 2025-11-05 20:00:43 +01:00
inotifywait
adb shell 'hostname && echo a && \
    hostname && echo b'
Output:
localhost
a
localhost
b
Bash…
Benjamin_Loison commented on issue Benjamin_Loison/adb#47 2025-11-05 19:53:56 +01:00
history reset on exit

For reference: arrow up.

Benjamin_Loison commented on issue Benjamin_Loison/adb#40 2025-11-05 13:46:44 +01:00
Get and toggle *Show layout bounds* with adb
It helps the issue:
-----BEGIN PGP MESSAGE-----

hF4DTQa9Wom5MBgSAQdAuZnNvjvK3bSf7g/j7kb2RptiL85R2QFedMAbu228YhAw
DizJDC+2bfXjarKZXHSHv5pIGgYwcL3KjBGDfsfI5n…