offensive-security/nethunter-LRT

I get error "Unfortunately, Nethunter has stopped" after installation completes.

noxferatu opened this issue · 3 comments

(I also posted this issue here: https://forums.kali.org/showthread.php?31055-After-fresh-install-I-get-error-quot-Unfortunately-Nethunter-has-stopped-quot )

Every time the install completes, I only get the error "Unfortunately, Nethunter has stopped"

I've gone through the steps multiple times. Nethunter 2 was working on this Nexus 10 previously.

I've tried the first release of Android 5.1.1 (LMY47V) and the latest release (LMY49J) with the same results.

Script output:

~/nethunter-LRT on master
$ ./stockNexusFlash.sh
NETHUNTER LINUX FLASH (STOCK NEXUS GOOGLE IMAGES)

NOTE: THIS WILL FACTORY RESET THE DEVICE (15 secs to cancel using 'ctrl + c')

CHECKING PRE-REQUISITES

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

Checking if fastboot is installed
fastboot FOUND
Checking if fastboot is installed DONE

Adb connection check
ADB device detected.
Adb connection check DONE

Checking if tar is installed
tar FOUND
Checking if tar is installed DONE

Checking stock image existence
Dir stockImage/ has files
Checking stock rom existence DONE

CHECKING PRE-REQUISITES DONE

Creating tmp dir _extracted
Creating tmp dir _extracted DONE

Extracting stockImage/mantaray-lmy47v-factory-91a865a6.tgz
x mantaray-lmy47v/
x mantaray-lmy47v/bootloader-manta-mantamf01.img
x mantaray-lmy47v/image-mantaray-lmy47v.zip
x mantaray-lmy47v/flash-all.bat
x mantaray-lmy47v/flash-all.sh
x mantaray-lmy47v/flash-base.sh
EXTACTING stockImage/mantaray-lmy47v-factory-91a865a6.tgz DONE

cd to _extracted
cd to _extracted DONE

Rebooting into bootloader
Rebooting into bootloader DONE

Flasing Stock Rom
!!!! DONT UNPLUG THE DEVICE !!!!
< waiting for any device >
erasing 'boot'...
OKAY [ 0.024s]
finished. total time: 0.025s
******** Did you mean to fastboot format this partition?
erasing 'cache'...
OKAY [ 0.103s]
finished. total time: 0.103s
erasing 'recovery'...
OKAY [ 0.029s]
finished. total time: 0.029s
******** Did you mean to fastboot format this partition?
erasing 'system'...
OKAY [ 0.449s]
finished. total time: 0.449s
******** Did you mean to fastboot format this partition?
erasing 'userdata'...
OKAY [ 0.428s]
finished. total time: 0.428s
sending 'bootloader' (1280 KB)...
OKAY [ 0.170s]
writing 'bootloader'...
OKAY [ 0.108s]
finished. total time: 0.278s
rebooting into bootloader...
OKAY [ 0.001s]
finished. total time: 0.001s
< waiting for any device >
archive does not contain 'boot.sig'
archive does not contain 'recovery.sig'
archive does not contain 'system.sig'
archive does not contain 'vendor.img'
Creating filesystem with parameters:
Size: 29783752704
Block size: 4096
Blocks per group: 32768
Inodes per group: 8192
Inode size: 256
Journal blocks: 32768
Label:
Blocks: 7271424
Block groups: 222
Reserved block group size: 1024
Created filesystem with 11/1818624 inodes and 158176/7271424 blocks
Creating filesystem with parameters:
Size: 553648128
Block size: 4096
Blocks per group: 32768
Inodes per group: 6768
Inode size: 256
Journal blocks: 2112
Label:
Blocks: 135168
Block groups: 5
Reserved block group size: 39
Created filesystem with 11/33840 inodes and 4363/135168 blocks
--------------------------------------------
Bootloader Version...: MANTAMF01
Baseband Version.....: no modem
Serial Number........: R32--------
--------------------------------------------
checking product...
OKAY [ 0.001s]
checking version-bootloader...
OKAY [ 0.001s]
sending 'boot' (4930 KB)...
OKAY [ 0.643s]
writing 'boot'...
OKAY [ 0.126s]
sending 'recovery' (5496 KB)...
OKAY [ 0.727s]
writing 'recovery'...
OKAY [ 0.126s]
erasing 'system'...
OKAY [ 0.153s]
sending 'system' (656838 KB)...
OKAY [ 85.937s]
writing 'system'...
OKAY [ 16.275s]
erasing 'userdata'...
OKAY [ 0.367s]
sending 'userdata' (139141 KB)...
OKAY [ 18.192s]
writing 'userdata'...
OKAY [ 3.541s]
erasing 'cache'...
OKAY [ 0.095s]
sending 'cache' (10372 KB)...
OKAY [ 1.358s]
writing 'cache'...
OKAY [ 0.280s]
rebooting...

finished. total time: 127.830s
Flasing Stock Rom DONE

Deleting tmp dir _extracted
Deleting _extracted DONE

The device should be rebooting, once it is booted,
do the initial setup, enable developer options and USB debugging again.

Next step is flashing TWRP && superSU && Kali Nethunter using twrpFlash.sh script


~/nethunter-LRT on master
$ ./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

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
Transferring: 684614479/684614479 (100%)
7566 KB/s (684614479 bytes in 88.354s)
Sending Kali Nethunter zip to the device DONE

Sending SuperSu zip to the device
Transferring: 4288330/4288330 (100%)
5785 KB/s (4288330 bytes in 0.723s)
Sending SuperSu zip to the device DONE

Rebooting into bootloader
Rebooting into bootloader DONE

Flashing TWRP image
< waiting for any device >
sending 'recovery' (9296 KB)...
OKAY [ 1.212s]
writing 'recovery'...
OKAY [ 0.201s]
finished. total time: 1.413s
Flashing TWRP image DONE

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

Installing SuperSU
Installing zip file '/sdcard/supersu.zip'
Checking for MD5 file...
Skipping MD5 check: no MD5 file found

*****************
SuperSU installer
*****************
- Mounting /system, /data and rootfs
- Extracting files
- System mode
- Disabling OTA survival
- Removing old files
- Creating space
- Placing files
- Restoring files
- Post-installation script
- Unmounting /system
- Done !
Done processing script file
Installing SuperSU DONE!

Installing Kali Linux Nethunter
Installing zip file '/sdcard/kaliNethunter.zip'
Checking for MD5 file...
Skipping MD5 check: no MD5 file found

Starting AROMA INSTALLER version 3.00
(c) 2013-2015 by amarullz.com

AROMA INSTALLER Finished...

Done processing script file
Installing Kali Linux Nethunter DONE!
Rebooting into Kali Linux Nethunter
error: no devices found
Everything is installed. Phone should be booting up! Enjoy

Does the error occur when you start the device or when you try running it? It may be a simple uninstall/reinstall apk from https://images.offensive-security.com/latest.apk if it's just a problem with the app.

@binkybear, I've encountered this on boot and when attempting to run it.

Installed latest apk and it is running now.