AdvancedSharpAdbClient icon indicating copy to clipboard operation
AdvancedSharpAdbClient copied to clipboard

App start & app status

Open MagischerOtter opened this issue 3 months ago • 5 comments

What can we do for you?

await client.StartAppAsync("com.my.app"); Doesnt start the app. I have also tried the command: adb -s 192.168.0.36:5556 shell monkey -p com.daerigame.magicknight 1 Output: bash arg: -p bash arg: com.daerigame.magicknight bash arg: 1 args: [-p, com.daerigame.magicknight, 1] arg: "-p" arg: "com.daerigame.magicknight" arg: "1" data="com.daerigame.magicknight" ** SYS_KEYS has no physical keys but with factor 2.0%.

And if i start the app by hand & use GetAppStatus it returns running in background but i can clearly see its running in foreground

My Andoird device is redroid with android 13

MagischerOtter avatar Oct 31 '25 20:10 MagischerOtter

It check foreground by dumpsys activity activities | grep mResumedActivity. It seems that not working on some mode.

wherewhere avatar Nov 01 '25 00:11 wherewhere

ok, that good to know. Is there anything i can do abou the StartApp, something i can change to fix it?

MagischerOtter avatar Nov 01 '25 05:11 MagischerOtter

It always works fine on my device. #90

https://github.com/user-attachments/assets/16fae796-da16-4b1a-93f4-e2c3fef133dd

wherewhere avatar Nov 01 '25 06:11 wherewhere

I test it on a other device and there is work too, but not where i need it to work. Always used version 3.4.14

MagischerOtter avatar Nov 01 '25 07:11 MagischerOtter

I have no idea. And the start app is a debug way. You can find another adb shell command and execute it by ExecuteRemoteCommand. Such as am start -n $package/$activity.

wherewhere avatar Nov 01 '25 09:11 wherewhere