WahdanZ/SpockAdb

Request: add Actions to frequently used command

Nstd opened this issue ยท 13 comments

Nstd commented

The "Open Current Activity" command may be frequently used, If there's a related Action, we can bind a shortcuts to it.

I agree with you, I will consider it in the upcoming release

add in the latest version

Nstd commented

@WahdanZ Hi, after I update to v2.0.0, I can't open any activity now. And I got this exception:
image
part โ‘  is my packageName
part โ‘ก is the target Activity class name

Here is my AS version:
image

can you told me also the android version on the device or emulator you used

Nstd commented

can you told me also the android version on the device or emulator you used

device: realme x50 / RMX 2051 / realme UI v1.0
android 10

okay thanks, can you also confirm it happened with this project only or all projects you have

Nstd commented

okay thanks, can you also confirm it happened with this project only or all projects you have

I check the command result of dumpsys activity activities | grep mResumedActivity :

    mResumedActivity: ActivityRecord{e83a9d3 u0 com.haizitong.hzt.yuan/com.haizitong.minhang.codes.ui.activity.account.ActLoginMain2 t1229}

And I guess your test activity name in AndroidManifest.xml is not in full path, such as com.a.b/.MyActivity ?
So you just remove the char /

return shellOutputReceiver.toString().split(" ").find { it.contains("/") }?.replace("/", "")

But while in my app, all activities are name in full path.

oh good nice catch,
I'll fix this during my weekend, also you can create PR to fix this if you have enough time

Nstd commented

oh good nice catch,
I'll fix this during my weekend, also you can create PR to fix this if you have enough time

I fix it and send the PR. You can check it later.

thanks

Nstd commented

thanks

It's my pleasure. ๐Ÿ˜„

And I find another problem, the Open Current Fragment is no use.

Here's my dumpsys log:

log2.log

Nstd commented

thanks

It's my pleasure. ๐Ÿ˜„

And I find another problem, the Open Current Fragment is no use.

Here's my dumpsys log:

log2.log

@WahdanZ Will you paste the log which dumps from your app? Maybe our log is diffrent.

Nstd commented

Hi @WahdanZ , I made a fix of Open Current Fragment is no use #27 . And I don't know if the fix is fit your app or not. Please check it.