Android installing apk on device gives [SEGMENTATION FAULT]

I have a problem. When I try to deploy (Debug or Run) my application with AndroidStudio, I get the following error in RunLog

Waiting for device.
Target device: samsung-galaxy_nexus-WOVCBUF6BAGENRTO
Uploading file
    local path: C:\Users\Abracadabra\Desktop\......\app\build\outputs\apk\app-debug.apk
    remote path: /data/local/tmp/xxx.xxx.app
Installing xxx.xxx.app
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/xxx.xxx.app"

Segmentation fault

It works great when I try to deploy it to a genymotion virtual machine. It just doesn't work on my real device. It worked before, but I cleared some folders there using rootExplorer, for example, I deleted a folder called ".Idea". Maybe it was a big mistake? Is this the reason she is no longer working?

By the way, logcat works great for the rest of the phone.

Thanks for any help!

PS I also installed a new android using the CWM recovery tool and destroyed all user data and cache -> it didn’t help.

P.P.S , apk /data/local/tmp . rootExplorer. :/

P.P.P.S: "adb install", .

, , .

+4
2

. ( )

" → "

+2

.

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

" " : .

su -o pm install -r "/data/local/tmp/com.softcode.anupreet.currentaffairs"
+1

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


All Articles