mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-10 19:47:12 +01:00
A raw `adb shell input tap` took no lease, so one session's tap landed in another session's app (2026-09-25). python_pkg.phone_guard classifies every adb call in a Bash command and, as the Claude Code PreToolUse hook, takes the matching phone_lease (one app / real screen / whole phone) or exits 2: key/text input without -d, input on another session's virtual display, or a lease still held elsewhere after 40 s. android_ui gains --display self|<id>: it drives only this session's phone_vd display under that app's lease, and every input carries -d. uiautomator sees display 0 only, so virtual-display trees come from a tiny instrumentation APK (A11yDump.java) built from source without Gradle. Prunes the oldest evidence artifact to stay under the 60-file cap. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WpA6wW2DKiovQADTdjWJoH
13 lines
654 B
XML
13 lines
654 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- A test-only APK with no app code of its own: `am instrument` runs A11yDump
|
|
with a UiAutomation, which can read the accessibility tree of every
|
|
display, virtual ones included (`uiautomator dump` sees display 0 only). -->
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
package="com.kuhy.a11ydump">
|
|
<uses-sdk android:minSdkVersion="30" android:targetSdkVersion="36" />
|
|
<application android:label="a11ydump" android:hasCode="true" />
|
|
<instrumentation
|
|
android:name="com.kuhy.a11ydump.A11yDump"
|
|
android:targetPackage="com.kuhy.a11ydump" />
|
|
</manifest>
|