Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how i can give same signature matching #629

Open
AstinOfficial opened this issue Apr 30, 2024 · 1 comment
Open

how i can give same signature matching #629

AstinOfficial opened this issue Apr 30, 2024 · 1 comment

Comments

@AstinOfficial
Copy link

[Instrumentation] INSTRUMENTATION_STATUS: Error=Permission Denial: starting instrumentation ComponentInfo{io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner} from pid=22085, uid=2000 not allowed because package io.appium.uiautomator2.server.test does not have a signature matching the target io.appium.uiautomator2.server
[Instrumentation] INSTRUMENTATION_STATUS: id=ActivityManagerService
[Instrumentation] INSTRUMENTATION_STATUS_CODE: -1
[Instrumentation] java.lang.SecurityException: Permission Denial: starting instrumentation ComponentInfo{io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner} from pid=22085, uid=2000 not allowed because package io.appium.uiautomator2.server.test does not have a signature matching the target io.appium.uiautomator2.server
[Instrumentation] at android.os.Parcel.createExceptionOrNull(Parcel.java:3011)
[Instrumentation] at android.os.Parcel.createException(Parcel.java:2995)
[Instrumentation] at android.os.Parcel.readException(Parcel.java:2978)
[Instrumentation] at android.os.Parcel.readException(Parcel.java:2920)
[Instrumentation] at android.app.IActivityManager$Stub$Proxy.startInstrumentation(IActivityManager.java:5500)
[Instrumentation] at com.android.commands.am.Instrument.run(Instrument.java:532)
[Instrumentation] at com.android.commands.am.Am.runInstrument(Am.java:208)
[Instrumentation] at com.android.commands.am.Am.onRun(Am.java:85)
[Instrumentation] at com.android.internal.os.BaseCommand.run(BaseCommand.java:62)
[Instrumentation] at com.android.commands.am.Am.main(Am.java:54)
[Instrumentation] at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
[Instrumentation] at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:355)
[Instrumentation] Caused by: android.os.RemoteException: Remote stack trace:
[Instrumentation] at com.android.server.am.ActivityManagerService.startInstrumentation(ActivityManagerService.java:14641)
[Instrumentation] at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:2611)
[Instrumentation] at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2630)
[Instrumentation] at android.os.Binder.execTransactInternal(Binder.java:1280)
[Instrumentation] at android.os.Binder.execTransact(Binder.java:1244)
[Instrumentation] The process has exited with code 1
[AndroidUiautomator2Driver@4006 (d32c973e)] The instrumentation process cannot be initialized. Make sure the application under test does not crash and investigate the logcat output.

@KazuCocoa
Copy link
Member

Could you share the full Appium log and how to prepare the io.appium.uiautomator2.server.test/io.appium.uiautomator2.server packages?

Usually both have the same appium dev's signature
https://github.com/appium/appium-adb/tree/master/keys

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants