cuckoo-droid icon indicating copy to clipboard operation
cuckoo-droid copied to clipboard

adb.py install_sample don't work

Open migel571 opened this issue 6 years ago • 4 comments

It prints out the message "installing sample on emulator: pm install" + path "and stops at this. Wait for the analysis to end and create a report, but does not install the application on the device." What can be the reason for this error? Can use "proc = subprocess.Popen" (["/ system / bin / pm", "install", path], stdout = subprocess.PIPE, stderr = subprocess.PIPE) ". And another question about "Dropped Files" - they never exist!

migel571 avatar May 18 '18 13:05 migel571

@migel571 Is adb installed in your system?

krishnadev6 avatar May 23 '18 08:05 krishnadev6

@krishnadev6 yes! sometimes it is installed application on the device. sometimes it is not installed. and I did not find any regularities.

migel571 avatar May 23 '18 18:05 migel571

That's the problem with os.popen. It did same for me, sometimes it works and sometime it doesn't. You have to replace it with subprocess.popen. Have a look at #53

wickywaka avatar May 23 '18 23:05 wickywaka

Have a look here, you have to make same kind of change as shown in this video for install too: https://www.youtube.com/watch?v=HRBIZaA5N-w

wickywaka avatar May 27 '18 22:05 wickywaka