Benjamin_Loison commented on issue Benjamin_Loison/adb#52 2025-11-07 20:29:38 +01:00
inotifywait
FILE=libinotifytools.so
curl https://packages.termux.dev/apt/termux-main/pool/main/i/inotify-tools/inotify-tools_4.25.9.0_aarch64.deb 
Benjamin_Loison commented on issue Benjamin_Loison/adb#52 2025-11-07 20:02:54 +01:00
inotifywait
FILE=libc++_shared.so
dpkg --fsys-tarfile libc++_28c-1_aarch64.deb 
Benjamin_Loison commented on issue Benjamin_Loison/adb#52 2025-11-07 19:53:42 +01:00
inotifywait

Google search tar extract in current folder.

Benjamin_Loison commented on issue Benjamin_Loison/adb#52 2025-11-07 19:53:25 +01:00
inotifywait
file libc++_28c-1_aarch64.deb
libc++_28c-1_aarch64.deb: Debian binary package (format 2.0), with control.tar.xz/, data compression xz

DuckDuckGo search *Linux extract…

Benjamin_Loison commented on issue Benjamin_Loison/adb#52 2025-11-07 19:39:19 +01:00
inotifywait

The Unix Stack Exchange answer 61464:

tar -xvf libc++_28c-1_aarch64.deb data/data/com.termux/files/usr/lib/libc++_shared.so
Benjamin_Loison commented on issue Benjamin_Loison/adb#52 2025-11-07 19:26:32 +01:00
inotifywait

I checked that:

adb shell touch /data/local/tmp/my_file
adb shell ls -lh /data/local/tmp/
Output:
total 4
drwxrwxrwx 3 shell shell 4.0K…
Benjamin_Loison commented on issue Benjamin_Loison/adb#52 2025-11-07 19:23:35 +01:00
inotifywait

I would like my setup to resist reboots for #29.

adb shell touch /data/local/my_file
touch: '/data/local/my_file': Permission denied
Benjamin_Loison commented on issue Benjamin_Loison/adb#29 2025-11-07 16:28:56 +01:00
Emulate scrollable screenshot

DuckDuckGo search Bash function return.

The Stack Overflow answer 17336953 helps.

Benjamin_Loison commented on issue Benjamin_Loison/adb#29 2025-11-07 15:53:30 +01:00
Emulate scrollable screenshot

\d and \\d do not work in the following.

Bash script:
REGEX="\[([0-9]+),([0-9]+)\]\[([0-9]+),([0-9]+)\]"
bounds='[12,34][56,78]'
if [[ $bounds =~…
Benjamin_Loison commented on issue Benjamin_Loison/adb#29 2025-11-07 15:25:58 +01:00
Emulate scrollable screenshot
xmlstarlet select --template --value-of '//node[@text="Screenshot"]/@bounds' input.xml
[712,415][808,434]

DuckDuckGo and Google search Linux grep to variables and…

Benjamin_Loison reopened issue Benjamin_Loison/adb#15 2025-11-07 14:40:27 +01:00
Take screenshot with a unique file name
Benjamin_Loison commented on issue Benjamin_Loison/adb#15 2025-11-07 14:40:22 +01:00
Take screenshot with a unique file name
~/.bashrc:
# Being able to no write top and bottom, but still also have common code with a `take_screenshot` function would be nice.
take_app…
Benjamin_Loison commented on issue Benjamin_Loison/adb#15 2025-11-07 14:29:21 +01:00
Take screenshot with a unique file name

Related to Benjamin-Loison/android/issues/309#issuecomment-3502576023.

Could add function to ~/.bashrc.

Benjamin_Loison commented on issue Benjamin_Loison/adb#55 2025-11-07 13:44:43 +01:00
Set and get clipboard content

Termux is a workaround to some extent, see Benjamin-Loison/termux-api/issues/32.

Benjamin_Loison commented on issue Benjamin_Loison/adb#55 2025-11-07 13:43:16 +01:00
Set and get clipboard content

I don't want to install an app for this purpose.

Benjamin_Loison opened issue Benjamin_Loison/adb#55 2025-11-07 13:42:17 +01:00
Set and get clipboard content
Benjamin_Loison opened issue Benjamin_Loison/adb#54 2025-11-07 13:28:01 +01:00
adb shell input keyevent KEYCODE_NOT_EXISTING_QNHMRR does not return anything
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.