why do i get a Segmentation fault error when i exe

2020-03-24 06:35发布

my device:htcg14 rooted

i can exec pm on emulator.

But my device does not work. Before I exec "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 exec su,then exec pm,i get an 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...

2条回答
放我归山
2楼-- · 2020-03-24 06:51

Upgrade your su binary - go to SuperUser app and check for updates. If that doesn't solve your problem then use some other app like SuperSU.

查看更多
干净又极端
3楼-- · 2020-03-24 07:08

In your established shell session, either remote or local, ensure the LD_LIBRARY_PATH envar is set:

/ # export LD_LIBRARY_PATH=/system/lib
查看更多
登录 后发表回答