PDA

View Full Version : Problem with twrpFlash.sh script



lukecz13
2016-01-10, 00:47
Hello,
I having issue with one of the installation script provided with Kali NetHunter Linux Root Toolkit.

I flashed stock Android 6.0 just fine and also it flashes the TWRP recovery but it fails to push SuperSU and Nethunter zip to the phone (Nexus 5).

Because the stock installation script worked I think I have set up everything correctly.
---------------------------------------------------------------------------------------------------------------------------------
Here is copy from command line:
---------------------------------------------------------------------------------------------------------------------------------
root@kali ~/Nethunter $ ./twrpFlash.sh
NETHUNTER LINUX FLASH (TWRP, SuperSU and Kali Nethunter)

CHECKING PRE-REQUISITES

Checking if adb is installed
adb FOUND
Checking if adb is installed DONE

./twrpFlash.sh: 29: ./twrpFlash.sh: cannot open 1.0.32: No such file
./twrpFlash.sh: 29: ./twrpFlash.sh: [[: not found
You are using the latest version of ADB 1.0.31
Checking if fastboot is installed
fastboot FOUND
Checking if fastboot is installed DONE

Adb connection check
ADB device detected.
Adb connection check DONE

Checking TWRP image existence
Dir twrpImage/ has files
Checking TWRP image existence DONE

Checking SuperSu existence
Dir superSu/ has files
Checking SuperSu existence DONE

Checking Kali Nethunter zip existence
Dir kaliNethunter/ has files
Checking Kali Nethunter zip existence DONE

CHECKING PRE-REQUISITES DONE

Sending Kali Nethunter zip to the device
*here I get giant ADB prompt help with all the commands*

Sending Kali Nethunter zip to the device DONE

Sending SuperSu zip to the device
*here again I get prompted wiith help of ADB commands*

Sending SuperSu zip to the device DONE

Rebooting into bootloader
Rebooting into bootloader DONE

Flashing TWRP image
target reported max download size of 1073741824 bytes
sending 'recovery' (14694 KB)...
OKAY [ 0.577s]
writing 'recovery'...
OKAY [ 1.133s]
finished. total time: 1.710s
Flashing TWRP image DONE

Booting into TWRP (20 secs dont worry)
downloading 'boot.img'...
OKAY [ 0.577s]
booting...
OKAY [ 0.117s]
finished. total time: 0.694s
Booting into TWRP DONE

Installing SuperSU
Unable to locate zip file '/sdcard/supersu.zip'.
Installing '/sdcard/supersu.zip'...
Checking for MD5 file...
Skipping MD5 check: no MD5 file found
E:Failed to sysMapFile '/sdcard/supersu.zip'
E:Error installing zip file '/sdcard/supersu.zip'
Done processing script file
Installing SuperSU DONE!

Installing Kali Linux Nethunter
Unable to locate zip file '/sdcard/kaliNethunter.zip'.
Installing '/sdcard/kaliNethunter.zip'...
Checking for MD5 file...
Skipping MD5 check: no MD5 file found
E:Failed to sysMapFile '/sdcard/kaliNethunter.zip'
E: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
--------------------------------------------------------------------------------------------------------------------------------------------


It looks like the command for pushing files is incorrect somehow or it fails. Maybe that is why I get prompt with ADB help in the middle of the script.

Can you assist me ?

BeNe
2016-01-10, 08:40
Please remove the "-p" from the adb push command at line 50 & line 55 in the twrpFlash.sh and try it again.

Like this:

echo "Sending Kali Nethunter zip to the device"
adb push $nhZip $sdnh
sleep 3
echo "Sending Kali Nethunter zip to the device DONE\n"

echo "Sending SuperSu zip to the device"
adb push $superSuZip $sdSupersu
sleep 3
echo "Sending SuperSu zip to the device DONE\n"

I should need some minutes to push the big Nethunter.zip to your device.

lukecz13
2016-01-10, 19:05
Thank you, it helped. :)