offensive-security / nethunter-LRT

The Nethunter Linux Root Toolkit is a collection of bash scripts which install Nethunter onto a supported device.
304 stars 95 forks source link

NetHunter .zip failing to transfer to SD if MTP is not enabled #9

Open xillwillx opened 8 years ago

xillwillx commented 8 years ago

Installing Kali Linux Nethunter Unable to locate zip file '/sdcard/kaliNethunter.zip'. Installing zip file '/sdcard/kaliNethunter.zip' Checking for MD5 file... Skipping MD5 check: no MD5 file found Failed to map file '/sdcard/kaliNethunter.zip' Error installing zip file '/sdcard/kaliNethunter.zip' Done processing script file Installing Kali Linux Nethunter DONE! Rebooting into Kali Linux Nethunter Everything is installed. Phone should be booting up! Enjoy

MTP was not enabled I ended up transferring the .zip manually but should add a check to see if file transferred successfully before rebooting to flash.

erichiggins commented 8 years ago

I just came across this same error and I'm not quite sure how to resolve it. The device I'm using (Nexus 7 2013 WiFi) doesn't have an SD card, so that directory might never exist. According to the Developer Settings, MTP is currently enabled.

erichiggins commented 8 years ago

Quick update: Looks like my issue was caused because I also copied the .shasum file into the /kaliNethunter directory. The install script only expects there to be a single .zip file in there, but uses /* to copy from the directoy to /sdcard/kaliNethunter.zip on the device.