offensive-security/nethunter-LRT

flash-all.sh missing?

jackassplus opened this issue · 2 comments

./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 unzip is installed
unzip FOUND
Checking if unzip is installed ...DONE

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

CHECKING PRE-REQUISITES ...DONE

Creating tmp dir _extracted
Creating tmp dir _extracted ...DONE

Extracting stockImage/ElementalX-N7-5.16.zip
Archive: stockImage/ElementalX-N7-5.16.zip
creating: _extracted/META-INF/
inflating: _extracted/META-INF/CERT.RSA
inflating: _extracted/META-INF/CERT.SF
inflating: _extracted/META-INF/MANIFEST.MF
creating: _extracted/META-INF/com/
creating: _extracted/META-INF/com/google/
creating: _extracted/META-INF/com/google/android/
creating: _extracted/META-INF/com/google/android/aroma/
inflating: _extracted/META-INF/com/google/android/aroma-config
inflating: _extracted/META-INF/com/google/android/aroma/agreement.txt
inflating: _extracted/META-INF/com/google/android/aroma/changelog.txt
inflating: _extracted/META-INF/com/google/android/aroma/elementalx.png
creating: _extracted/META-INF/com/google/android/aroma/fonts/
inflating: _extracted/META-INF/com/google/android/aroma/fonts/big.png
extracting: _extracted/META-INF/com/google/android/aroma/fonts/small.png
creating: _extracted/META-INF/com/google/android/aroma/icons/
extracting: _extracted/META-INF/com/google/android/aroma/icons/agreement.png
extracting: _extracted/META-INF/com/google/android/aroma/icons/alert.png
inflating: _extracted/META-INF/com/google/android/aroma/icons/apex.png
extracting: _extracted/META-INF/com/google/android/aroma/icons/apps.png
extracting: _extracted/META-INF/com/google/android/aroma/icons/back.png
extracting: _extracted/META-INF/com/google/android/aroma/icons/battery_aosp_blue.png
extracting: _extracted/META-INF/com/google/android/aroma/icons/battery_aosp_green.png
extracting: _extracted/META-INF/com/google/android/aroma/icons/battery_blue.png
extracting: _extracted/META-INF/com/google/android/aroma/icons/battery_blue_no.png
extracting: _extracted/META-INF/com/google/android/aroma/icons/battery_gauge.png
extracting: _extracted/META-INF/com/google/android/aroma/icons/battery_gauge_wide.png
inflating: _extracted/META-INF/com/google/android/aroma/icons/battery_green.png
extracting: _extracted/META-INF/com/google/android/aroma/icons/battery_vertical.png
inflating: _extracted/META-INF/com/google/android/aroma/icons/battery_white.png
inflating: _extracted/META-INF/com/google/android/aroma/icons/battery_white_stock.png
inflating: _extracted/META-INF/com/google/android/aroma/icons/confirm.png
extracting: _extracted/META-INF/com/google/android/aroma/icons/customize.png
inflating: _extracted/META-INF/com/google/android/aroma/icons/default.png
extracting: _extracted/META-INF/com/google/android/aroma/icons/device.png
extracting: _extracted/META-INF/com/google/android/aroma/icons/fbhome.png
extracting: _extracted/META-INF/com/google/android/aroma/icons/finish.png
inflating: _extracted/META-INF/com/google/android/aroma/icons/htc.png
extracting: _extracted/META-INF/com/google/android/aroma/icons/info.png
extracting: _extracted/META-INF/com/google/android/aroma/icons/install.png
extracting: _extracted/META-INF/com/google/android/aroma/icons/installbutton.png
inflating: _extracted/META-INF/com/google/android/aroma/icons/keyb.png
extracting: _extracted/META-INF/com/google/android/aroma/icons/license.png
extracting: _extracted/META-INF/com/google/android/aroma/icons/menu.png
extracting: _extracted/META-INF/com/google/android/aroma/icons/next.png
extracting: _extracted/META-INF/com/google/android/aroma/icons/nova.png
extracting: _extracted/META-INF/com/google/android/aroma/icons/personalize.png
inflating: _extracted/META-INF/com/google/android/aroma/icons/security.png
extracting: _extracted/META-INF/com/google/android/aroma/icons/signal_att.png
inflating: _extracted/META-INF/com/google/android/aroma/icons/signal_highdef.png
inflating: _extracted/META-INF/com/google/android/aroma/icons/signal_stock.png
inflating: _extracted/META-INF/com/google/android/aroma/icons/signal_white.png
extracting: _extracted/META-INF/com/google/android/aroma/icons/update.png
extracting: _extracted/META-INF/com/google/android/aroma/icons/weather_sense4.png
extracting: _extracted/META-INF/com/google/android/aroma/icons/weather_stock.png
inflating: _extracted/META-INF/com/google/android/aroma/icons/weather_thick.png
inflating: _extracted/META-INF/com/google/android/aroma/icons/weather_weezle.png
inflating: _extracted/META-INF/com/google/android/aroma/icons/welcome.png
creating: _extracted/META-INF/com/google/android/aroma/ttf/
inflating: _extracted/META-INF/com/google/android/aroma/ttf/Roboto-Regular.ttf
inflating: _extracted/META-INF/com/google/android/update-binary
inflating: _extracted/META-INF/com/google/android/update-binary-installer
inflating: _extracted/META-INF/com/google/android/updater-script
creating: _extracted/boot/
inflating: _extracted/boot/abootimg
inflating: _extracted/boot/cmdline.cfg
inflating: _extracted/boot/edit_ramdisk.sh
inflating: _extracted/boot/elementalx.sh
inflating: _extracted/boot/elex.zImage
inflating: _extracted/boot/init.elementalx.rc
inflating: _extracted/boot/max_oc.sh
creating: _extracted/config/
inflating: _extracted/config/buildconfig.sh
inflating: _extracted/config/busybox
inflating: _extracted/config/elementalx.conf
inflating: _extracted/config/systemcheck.sh
creating: _extracted/system/
creating: _extracted/system/lib/
creating: _extracted/system/lib/hw/
inflating: _extracted/system/lib/hw/power.msm8960.so
Extracting stockImage/ElementalX-N7-5.16.zip ...DONE

cd to _extracted
cd to _extracted ...DONE

Rebooting into bootloader
Rebooting into bootloader ...DONE

Flashing stock ROM
!!!! DONT UNPLUG THE DEVICE !!!!
./stockNexusFlash.sh: line 50: ./flash-all.sh: No such file or directory
Flashing Stock ROM ...DONE

Deleting tmp dir _extracted
Deleting tmp dir _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

upon reboot, no image...

Extracting stockImage/ElementalX-N7-5.16.zip ...DONE

As you can see, the script is looking for a STOCK NEXUS GOOGLE IMAGE, the images released by google have a fixed structutre and includes the "flash-all.sh" script.

You should not flash the elemental kernel with this script, intall the kernel zip via TWRP, then continue with the nehunter zips.

BR

Jaime

I see. Thanks!