Why am I getting a segmentation error error when I execute "pm" on an Android device?

my device: htcg14 is rooted

I can run pm on the emulator.

But my device is not working. Before doing su, it works fine.

shell@android :/ $ pm usage: pm list packages [-f] [-d] [-e] [-s] [-e] [-u] [FILTER] pm list permission-groups pm list permissions [-g] [-f] [-d] [-u] [GROUP] 

But when I execute su, then exec pm, I get the error below. Why?

 shell@android :/ $ su su shell@android :/ # pm pm [1] + Stopped (signal) pm shell@android :/ # pm pm [2] + Stopped (signal) pm [1] - Segmentation fault pm shell@android :/ # busybox pm busybox pm pm: applet not found [2] + Segmentation fault pm 1| shell@android :/ # 

how can i execute pm? help ...

+4
source share
2 answers

Update the su binary - go to the SuperUser app and check for updates. If this does not solve your problem, use another application, such as SuperSU .

+2
source

In an established shell session, remote or local, verify that the EN_LIBRARY_PATH parameter is set:

 / # export LD_LIBRARY_PATH=/system/lib 
+7
source

Source: https://habr.com/ru/post/1433277/


All Articles