- https://github.com/Benjamin-Loison
- Joined on
2022-10-16
Block a user
Make a
Shut Down mode able to restore running applications like Suspend after having provided a decryption password such that cannot steal memory content and potentially decryption token
Related to Benjamin-Loison/cinnamon/issues/178.
Interact with virtual display with
adb
adb shell uiautomator dump --help
UI hierchary dumped to: /sdcard/window_dump.xml
adb shell uiautomator --help
Output:
Usage…
Interact with virtual display with
adb
adb shell input -d 4 tap 977 707
does not need adb shell monkey.
Interact with virtual display with
adb
adb shell input -d keyboard tap 977 707
Output:
Exception occurred while executing '-d':
java.lang.IllegalArgumentException: Error: Invalid…
Interact with virtual display with
adb
adb shell input -h
Output:
Usage: input [<source>] [-d DISPLAY_ID] <command> [<arg>...]
The sources are:
touchnavigation
…
Interact with virtual display with
adb
adb shell input tap 977 707
uses actual display even if manually used last an app on the virtual one.
Interact with virtual display with
adb
adb shell input text test
works as wanted after using adb shell monkey.
Interact with virtual display with
adb
adb shell uiautomator dump
FILE=window_dump.xml
adb pull /sdcard/$FILE
xmllint --format $FILE
Interact with virtual display with
adb
adb shell uiautomator dump, tap and sending text.
Pointer location may help.
Would allow using the device at the same time as app interaction in the background, to send a Signal message…
Interact with virtual display with
adb
Change home folder without
root access
import os, pwd
pwd.getpwuid(os.getuid()).pw_dir
'/mnt/homes/@LH-CENSORED/61/loison_benjamin-1000004'
Source: [the Stack Overflow answer 3085545](https://stackoverfl…
Change home folder without
root access
from pathlib import Path
str(Path.home())
'/scratch/loison_benjamin'
Change home folder without
root access
os.path.expanduser('~user')
'~user'
os.path.expanduser('~USER')
'~USER'
os.path.expanduser('~$USER')
'~$USER'
Change home folder without
root access
os.environ['HOME']
'/scratch/loison_benjamin'
os.exp
Output:
Traceback (most recent call last):
File…
Change home folder without
root access
DuckDuckGo search Linux get user home folder.
eval echo ~$USER
/mnt/homes/@LH-CENSORED/61/loison_benjamin…