[Miscellaneous Android Development] bad.bid:
[IMG="Phone Image"]https://drop.ndtv.com/TECH/product_database/images/74201615439PM_635_panasonic_eluga_note.jpeg[/IMG]

I successfully ported TWRP to Panasonic Eluga Note (MTK6753) after a four day effort. Not a dev here. First time doing this.

<TLDR? skip this>

When I started using android in my HTC HD2, every ROM was pre rooted. I took it for granted.

So I get this cheapo MTK and breaking into it is like banging head against a wall!! I was frustrated with the battery drain: Device never sleeps since the last OTA!

So I learnt SP flash tools and downgraded. ( wiped nvram and created another mess in the process- which is a different story. I solved it)

I could spend this effort and time to stop that pesky "Panasonic" bootaudio too. And that's the first thing I deleted after I booted TWRP, even before rooting.

</TLDR? skipped this>

First things first, enable ADB, enable OEM unlock in developer options, and go to bootloader to unlock it <fastboot oem unlock> THIS WILL WIPE DATA!!

Second thing: Backup nvram.img by sp flash readback and learn how to flash it back (search XDA)- Sometimes you can learn from other's mistakes too! I spent a day and half writing back IMEI and WIFI Mac.

Process (if you don't trust me and want to reproduce the steps yourself)

1. Download stock firmware. (google knows)

2. Patch boot.img so that it doesn't overwrite TWRP with stock recovery on each boot (extract by Carliv Image kitchen and hash out the three lines 663, 664 and 665 mentioning "service flash_recovery /system/bin/install-recovery.sh" in init.rc). I created two copies in the same folder (boot.img, and boot-verified.img) and copied scatter into the same folder for flashing. That's what I saw in the firmware folder.

3. Port TWRP using Carliv Image Kitchen method. I downloaded TWRP from here https://xdaforums.com/android/software/twrp-porter-maker-mediatek-mt67xx-32-t3681861 but didn't use their method. It didn't work. The TWRP for this chip was stated as android N, but worked well.

4. Flash ported TWRP after copying scatter file to the Carliv Imagekitchen output folder and selecting that scatter in SP droid tools. I again created recovery.img and recovery-verified.img. Don't know if its needed that way. You could wait and flash boot and recovery together from the same folder.

5. That's it, you can enter custom recovery now. Get that pesky "panasonic" bootaudio off the system/media folder now! You can stay content after this or proceed to root.

<nandroid backup now, including Nvram and NVdata. Just in case>

6. Download Supersu zip flashable and flash it via TWRP. https://download.chainfire.eu/1113/SuperSU/UPDATE-SuperSU-v2.82-20170528234214.zip?retrieve_file=1 worked for me.

7. Reboot, check root!

If you're more daredevil,

8. Download Xposed flashable zip SDK23 and flash it. Download Xposed installer and copy it to SDcard too.

9. Reboot to recovery and flash the zip. Reboot, install xposed installer. Reboot again.

You're done!

I'll upload my boot.img and ported TWRP if anyone shows any interest in this.

Cheers!

(Bonus: this phone has built in IPtables support in the kernel! I used to flash custom kernel for this ability in other Stock ROMs. AFfirewall works "out of the box"- after rooting, of course!)

Edit: uploaded my modded boot.img and ported TWRP. find it here https://drive.google.com/file/d/1sM1BnyBUFN7PfncFcM7vzIet6gKt3G_L/view?usp=sharing

If you want to go the easy route, unzip the folder and flash it with sp flash. You'll be able to boot into recovery and do the other steps for rooting.

Rememer ONLY DOWNLOAD, don't format, or format and download, or anything!