Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

adb shell error : app_process not found

While trying to run simple adb commands such as adb shell pm im receiving the following error : /system/bin/pm[6] : app_process : not found. The device is not rooted, but it should run pm anyway. I wonder what is the problem, any idea would be appreciated.

like image 595
Itamar Avatar asked Aug 06 '26 08:08

Itamar


2 Answers

I noticed this problem after some update. As a workaround run this prior to pm command:

export PATH=$PATH:/system/bin/
like image 112
Martin Avatar answered Aug 08 '26 20:08

Martin


are you using scripts or bins in your vendor (partition)?

If so, env is based on vendor_sh, which is overridden by "vendor/bin:vendor/xbin". You can try "./vendor/bin/sh" and then "echo $ PATH" to verify.

If u export system/bin to vendor_sh before your "pm", I think it should work.

    cc_binary {
    name: "sh_vendor",
    defaults: ["sh-defaults"],
    stem: "sh",
    vendor: true,
    cflags: [
        // Additional flags for vendor variant
        "-UMKSH_DEFAULT_PROFILEDIR",
        "-UMKSHRC_PATH",
        "-UMKSH_DEFAULT_EXECSHELL",
        "-DMKSH_DEFAULT_PROFILEDIR=\"/vendor/etc\"",
        "-DMKSHRC_PATH=\"/vendor/etc/mkshrc\"",
        "-DMKSH_DEFAULT_EXECSHELL=\"/vendor/bin/sh\"",
        "-DMKSH_DEFPATH_OVERRIDE=\"/vendor/bin:/vendor/xbin\"",
    ],  
}
like image 38
kenjc bian Avatar answered Aug 08 '26 21:08

kenjc bian



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!