[Android Software/Hacking General [Developers Only]] @sumit@007:
/*

* I am not responsible for bricked devices, dead SD cards,

*thermonuclear war,

or the current economic crisis caused by you following these

directions.

*YOU are choosing to make these modificiations, and

* if you point your finger at me for messing up your device, I willlaugh at you.

*/

**********************************************

I have readed lot about how to flash custom ROM or stock ROM on Android device readed some comments that many people wiped their internal storage while installing ROM.

i found a Very Safe and easy way to do this.

First of all you need these things.

1.Philz Touch recovery. OR TWRP.

For Your device

2.Flashify app from Play store

https://play.google.com/store/apps/details?id=com.cgollner.flashify

(For 1time process)

If you have PC then skip 2nd.

3.Only for PC users

https://xdaforums.com/showthread.php?t=2588979

If you have ADB installed skip this also.

After downloading follow my steps.

***********************

*Mobile users NO PC*

***********************

1. Place Your ROM in Sdcard .

Flash the downloaded philz touch recovery.img OR TWRP recovery with flashify to recovery partition..>

[Caution:->Do this carefully it can harm device if you didn't flashed right partition]

2.Boot to recovery.

3.Select Clean to install new ROM. (For Philz)

For TWRP :-> Click Wipe , Advanced wipe and Select Dalvik Cache, System, Data and Cache then swipe to wipe..

Wait for completing...

4. Select install zip and select install from external sdcard.

5. Find your ROM and flash.

if you want to install Gapps.

Flash the zip file of gapps after installation of ROM .

Done

**********************************************

*****************

*For PC USERS *

*****************

1.Download ADB and fastboot drivers.

(link is given above only for Windows)

if you are using linux you can find adb and fastboot in software manager App.

And

Philz Touch Recovery.img Or TWRP recovery.img

Place in a folder and open that folder press

Shift and Right click and select open in CMD. (Without selecting anything ((click on empty place inside folder)))

2.Open CMD / terminal.

Type:-> "adb reboot bootloader"

Without quotes abd Press Enter.

[Remember device connected with usb and usb debugging turned on)

3. Type :-> " fastboot flash recovery 'Name of your recovery"

in my case it is recovery.img

So example:-> "fastboot flash recovery recovery.img"

Without quotes and Press enter.

Flashing done..

(You can skip this step if you don't want to install Custom recovery in your phone.

Simply follow 4th step)

4. Type:-> fastboot boot recovery.img

Phone will boot into Recovery.

5.Select Clean to install new ROM. (For Philz)

For TWRP :-> Click Wipe , Advanced wipe and Select Dalvik Cache, System, Data and Cache then swipe to wipe..

Wait for completing...

6.Select install and select install form external sdcard.

Choose ROM and it will flash.

if you want to install Gapps.

Flash the zip file of gapps after installation of ROM .

Needed Any Further Help feel free to comment below.

And

if you find it useful Press Thanks button.

Credits:

[MENTION=4638083]Snoop05[/MENTION] for ADB

[MENTION=4446775]cgollner[/MENTION] for Flashify.