-
Notifications
You must be signed in to change notification settings - Fork 164
Open
Description
What The Problem Is
@.Date.20251226T021307+0000.Type.Video.Origin.Android.Emulator.-.Resizable_Experimental_2.5554.webm
How To Reproduce
-
#!/usr/bin/env sh settings put global enable_freeform_support 1 && \ settings put secure force_resizable_activities 1 && \ curl https://github.com/farmerbb/Taskbar/releases/download/207/Taskbar-6.2.2.apk && \ pm install ./Taskbar-6.2.2.apk && \ adb shell monkey -p com.farmerbb.taskbar 1
-
At
cmd activity start --user 0 -a android.intent.action.VIEW -n com.farmerbb.taskbar/com.farmerbb.taskbar.activity.MainActivity -f 0 com.farmerbb.taskbar, applychecked="true"toresource-id="com.farmerbb.taskbar:id/the_switch":#!/usr/bin/env bash adb exec-out uiautomator dump /dev/tty \ | sed 's/></>\n</g' \ | awk ' /class="android.widget.Switch"/ && /resource-id="com.farmerbb.taskbar:id\/the_switch"/ && /clickable="true"/ && match($0, /bounds="\[([0-9]+),([0-9]+)\]\[([0-9]+),([0-9]+)\]"/, b) { cx = int((b[1] + b[3]) / 2) cy = int((b[2] + b[4]) / 2) system("adb shell input tap " cx " " cy) exit } '
-
Access "Freeform Mode":
#!/usr/bin/env bash adb exec-out uiautomator dump /dev/tty \ | sed 's/></>\n</g' \ | awk ' /class="android.widget.TextView"/ && /resource-id="android:id\/title"/ && /text="Freeform mode"/ && match($0, /bounds="\[([0-9]+),([0-9]+)\]\[([0-9]+),([0-9]+)\]"/, b) { cx = int((b[1] + b[3]) / 2) cy = int((b[2] + b[4]) / 2) system("adb shell input tap " cx " " cy) exit } '
-
Enable "Freeform window support":
#!/usr/bin/env bash adb exec-out uiautomator dump /dev/tty \ | sed 's/></>\n</g' \ | awk ' /class="android.widget.TextView"/ && /resource-id="android:id\/title"/ && /text="Freeform window support"/ && match($0, /bounds="\[([0-9]+),([0-9]+)\]\[([0-9]+),([0-9]+)\]"/, b) { cx = int((b[1] + b[3]) / 2) cy = int((b[2] + b[4]) / 2) system("adb shell input tap " cx " " cy) exit } '
-
Invoke an application via Taskbar's overlay.
My Environment
-
The Application
versionCode=207 versionName=6.2.2
-
The OS
[ro.build.version.release]: [16] [ro.build.display.id]: [sdk_gphone16k_x86_64-userdebug 16 BE4B.251210.005 14574095 dev-keys]
Footnotes
-
#!usr/bin/env sh kdotool windowsize "$(sleep 2; kdotool getactivewindow)" $(adb shell wm size | awk -F'[ x]' '/Physical size:/ { printf "%d %d\n", $3/2, $4/2 }')
RokeJulianLockhart
Metadata
Metadata
Assignees
Labels
No labels
