Install New ROM
Please ensure you have the ADB and Fastboot tools aleardy.
1.Setup [ADB Udev Rule] File
we can download file from web and restart service.
sudo wget -O /etc/udev/rules.d/51-android.rules https://raw.githubusercontent.com/NicolasBernaerts/ubuntu-scripts/master/android/51-android.rules
sudo chmod a+r /etc/udev/rules.d/51-android.rules
sudo service udev restart
2.Check ADB and fastbook tools can work. check adb tools
adb devices
show like that message below
List of devices attached
015d41d465240604 device
check fastboot tools
adb reboot bootloader
fastboot -l devices
show like that message below
015d41d465240604
fastboot usb:1-1
3.Download *.img from web-site ex: Nakasi Nexus 7 (2012 wi-fi) Android 5.1.1 OR more file please extract files
4.Burn ROM into device
*. Go to extract files folder
Typeing command
adb reboot bootloader
fastboot oem unlock
sh flash.all.sh
or burn your AOSP images (SOLUTION 1) (This is better to me)
fastboot oem unlock
fastboot -w flashall
or burn your AOSP images (SOLUTION 2)
fastboot oem unlock
fastboot -w -p flashall
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img
fastboot flash cache cache.img
fastboot flash userdata userdata.img
fastboot reboot