Android installing apk to device gives [SEGMENTATION FAULT]

混江龙づ霸主 提交于 2019-12-05 11:55:00

Found out the reason. (a quite stupid one)

I forgot to enable "Security Settings -> Unknown Sources"

Harshal Agrawal

I encountered the same problem.

Waiting for device.
Target device: samsung-gt_n7100-4df180b77e139fdd
Uploading file
    local path: C:\Users\Harshal\AndroidStudioProjects\MyFirstApp\CurrentAffairs\app\build\outputs\apk\app-debug.apk
    remote path: /data/local/tmp/com.softcode.anupreet.currentaffairs
Installing com.softcode.anupreet.currentaffairs
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.softcode.anupreet.currentaffairs"
Segmentation fault

I downloaded the 'Terminal Emulator' app on my device and ran the below two commands, it was a success.

su -o pm install -r "/data/local/tmp/com.softcode.anupreet.currentaffairs"
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!