简体   繁体   中英

frida -U -n "packagename" is giving a failure to spawn frida, unable to find process with the name

I am trying to connect with frida to a certain application and its gives me the following error:

Failed to spawn: unable to find process with the name 
"com.androidpentesting.securestore"

This happens after i write this command:

frida -U -n "com.androidpentesting.securestore"

Can somebody help me out?

  • the application is installed and is running on the emulator
  • same frida version on both sides

Unfortunately for Frida the Name of an app is not the package name (called Identifier by Frida) but the label shown to the user.

You can see the app list and the app Name recognized by Frida by executing

frida-ps -Ua

Example output

 PID  Name      Identifier
----  --------  ---------------------------------
2799  Gmail     com.google.android.gm
2814  Messages  com.google.android.apps.messaging
2218  Settings  com.android.settings

So you have the choice to identify the app by it's name ( -n parameter) or PID ( -p parameter) but the package-name does not work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM