[Miscellaneous Android Development] essayn:
Tried everything some weeks ago: wiping, formatting, repairing, change filesystem, overwriting, QDloader, flashing aso..I´ve .red and watched so much textes and videos since never before in my life. Made nights to days and reverse... in my holiday, where normallly I have to chill from work...but no, I have to puzzling with my phone. :laugh:

Good thing is: I feel like a pro after all these tryings and also done some flashings, rootings and revisons of stock-/custom fw for my friends already. Mayne I´ll start a business. Hmmm...

JK, actually I´ve done a good job with several devices but I just wanted to much with the nx510j. So sooner or later it´ll be fixed, when I have more time for it. Now I´ve ordered a real cheap phone called XGody Y10Plus from ebay, which will be here in 2-3 days, will use it until my Z11 will be delivered. :) So need a CR for the XGody aswell. :D Nah, will just root it and use Apex or Nova-Launcher on it. Should be fine enough.

Well, nice try at least though. If you are bored, may some day... ;D But a big Thanks you have earned from me nevertheless! So Thank you, mate.

Ah, btw [MENTION=535343]all[/MENTION], I just c&P my Fastboot and ADB command-lists in the spoiler below.

I hope, they´ll help some guys outhere.

These commands are literally all you need to do almost everything with your devices.

Of course you have to replace nx510j with nx512j or whatever your device and recoveryname is.

Some entries could be doubled but that´s just a "dirty" c&p of my lists.^^ Enjoy:

Fastboot

fastboot flash recovery TWRPrecovery3.0.0.0.img (fastboot flash recovery twrp_nx510j_v5_f2fs_dianlujitao.img)

fastboot flash boot boot.img

fastboot flash cache cache.img

fastboot flash userdata userdata.img

fastboot flash system system.img

fastboot reboot

fastboot oem unlock

fastboot-windows.exe oem lock

fastboot devices

fastboot oem unlock-go

fastboot oem lock-go

fastboot oem device-info

fastboot -i 0x19d2 flash recovery NX510J_TWRP_3.0.2-0.img cwmrecovery.img NX510J_TWRP_3.0.2-0.img

fastboot reboot

fastboot boot twrp_nx510j.img.

fastboot flash boot boot.img

fastboot format userdata oder fastboot -w

fastboot oem device-info

flash-all

fastboot erase boot —-> to erase kernel or boot.img

fastboot erase recovery —-> to remove recovery.img

fastboot erase system —-> to removed all system folder

fastboot erase userdata —-> to remove all data/….

----------------------------------------------------------------------------------------

Steps To Install Stock Rom Via Fastboot Mod-

install correct adb and fastboot Driver on pc

in phone go to setting/about phone/ type 7-8 time build number/back/developer option and enable Device Debugging

Now Connect Your Device into pc via usb cable

extract Your Downloaded Rom In Adb Folder

go to adb folder open cmd here in adb folder and type command

adb reboot bootloader

your Device Booted in fastboot if your Device is bootloop don't worry press volume down and power button same time to boot into fastboot

then type bellow Command{your Rom Must extracted in adb folder and in img or bin format}

first flash preloader through below command

fastboot flash preloader preloader.bin{preloader.bin is your preloader file Name}

Then flash boot by this command

fastboot flash boot boot.img {check Rom if boot in bin format then type .bin on place of .img}

then flash recovery by this command

fastboot flash recovery recovery.img

Then Flash system by this command

fastboot flash system system.img

then flash other partitions with same process

ex fastboot flash {here Partition name}{here partion file name with format} then hit enter

ex. fastboot flash userdada userdata.img

----------------------------------------------------

fastboot getvar product

fastboot getvar product

fastboot flash partition gpt_both0.bin

fastboot flash tz tz.mbn

fastboot flash sbl1 sbl1.mbn

fastboot flash rpm rpm.mbn

fastboot flash aboot emmc_appsboot.mbn

fastboot flash hyp hyp.mbn

fastboot flash tzbak tz.mbn

fastboot flash sbl1bak sbl1.mbn

fastboot flash rpmbak rpm.mbn

fastboot flash abootbak emmc_appsboot.mbn

fastboot flash hypbak hyp.mbn

fastboot erase boot

fastboot flash modem NON-HLOS.bin

fastboot flash system system.img

fastboot flash cache cache.img

fastboot flash userdata userdata.img

fastboot flash recovery recovery.img

fastboot flash boot boot.img

fastboot flash persist persist.img

fastboot flash sec sec.dat

fastboot flash splash splash.img

fastboot reboot

Device will reboot automaticaly, and my android is come back ?

Install OTA firmware

fastboot update update.zip

FLASH…

fastboot flash recovery recovery.img —> to install recovery.img from PC to your android

show your phone product :

Fastboot getvar product —> it will show your product device

wipe or delete Partition :

Fastboot erase ….. partition you wont remove…

example if i wont wipe system, my command is fastboot erase system

if you wont erase data, command type is fastboot erase userdata

update <filename> reflash device from update.zip

flashall flash boot + recovery + system

flash <partition> [ <filename> ] write a file to a flash partition

erase <partition> erase a flash partition

format <partition> format a flash partition

getvar <variable> display a bootloader variable

boot <kernel> [ <ramdisk> ] download and boot kernel

flash:raw boot <kernel> [ <ramdisk> ] create bootimage and flash it

devices list all connected devices

continue continue with autoboot

reboot reboot device normally

reboot-bootloader reboot device into bootloader

help show this help message

options:

-w erase userdata and cache (and format if supported by partition type)

-u do not first erase partition before formatting

-s <specific device> specify device serial number or path to device port

-l with "devices", lists device paths

-p <product> specify product name

-c <cmdline> override kernel commandline

-i <vendor id> specify a custom USB vendor id

-b <base_addr> specify a custom kernel base address

-n <page size> specify the nand page size. default: 2048

-S <size>[K|M|G] automatically sparse files greater than size. 0 to disable

adb shell su setprop sys.usb.config diag,adb

fastboot reboot edl

adb reboot edl​

ADB

adb shell "cd /data/local && mkdir tmp"

adb reboot recovery

adb sideload

adb sideload C:\Users\Username\Desktop\ROOT\customROM.zip

fastboot flash recovery nx510j_twrp_recovery2.8.6.0.img

adb devices

adb reboot recovery

Function: Reboot your phone into recovery mode.

adb reboot-bootloader

Function: Reboot your phone into bootloader mode.

adb push [source] [destination]

e.a : adb push SuperSu-v2.78.zip /data/media/0

Function: Copy files from your computer to your phone.

adb pull

Function: Copy files from your phone to your computer.

The yin to to push's yang, the pull command in ADB allows you to copy files from your phone to your computer. When pulling files, you can choose to leave out the destination parameter. In that case, the file will be copied to the folder on your computer where ADB itself lives. You can then move it to wherever you'd prefer like normal.

adb install [source.apk]

Function: Remotely install APKs on your phone.

adb shell [command]

Function: Open or run commands in a terminal on the host Android device.

adb backup

Function: Create a full backup of your phone and save to the computer.

adb restore

Function: Restore a backup to your phone.

The corollary to the previous command, adb restore allows you to point to an existing backup file and restore it to your device. So, for example, type "adb restore C:\[restorefile].zip" and your phone will shortly be back to normal.

adb sideload

Function: Push and flash custom ROMs and zips from your computer.