yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] kirito9:
Final TWRP with SD Card and OTG support. Also included crypto.

Device tree: https://github.com/AndroidMediatekRecoveryDevelopment/android_device_infocus_epic1

EDIT: New TWRP build with dm-verity and encryption disabled thanks [MENTION=5169465]DespairFactor[/MENTION].
[Android Q&A, Help & Troubleshooting] DespairFactor:
Fastboot flash my boot img, flash twrp to recovery, boot recovery, do not mount as read/write and then move supersu to sdcard and flash supersu.
[Android Q&A, Help & Troubleshooting] DespairFactor:
When you guys get device tree we can remove verity from system, I believe this is what is stopping you from booting after mounting system as read/write. The device tree would be needed for custom roms. If anyone needs my help any further, feel free to mention or quote me.
[Android Q&A, Help & Troubleshooting] mujammil786:
can u tell how to generate device tree?
[Android Q&A, Help & Troubleshooting] Bornstud:
Yeah how we shall get device tree from device??

Is their any tool to get it?

---------- Post added at 04:14 PM ---------- Previous post was at 04:12 PM ----------

Try latest twrp of [MENTION=5515628]kirito9[/MENTION] and flash SuperSU for root.
[Android Q&A, Help & Troubleshooting] Mafioso:
Now that have mounted my system to read/write, do you know of anyway to revert it back ?

I don't have system.img file from the vendor to flash it back via fastboot :(
[Android Q&A, Help & Troubleshooting] kirito9:
There's already a device tree which I based this twrp recovery, would that work?
[Android Q&A, Help & Troubleshooting] DespairFactor:
you could use it as a base, but it's missing quite a bit. Easiest way would be to find a device with similar hardware and add in stuff specific to your device. You will also need to dump your blobs and stuff.
[Android Q&A, Help & Troubleshooting] mujammil786:
Leco le2 pro has same spec. Can we use device tree of that phone?
[Android Q&A, Help & Troubleshooting] DespairFactor:
You can try and add stuff to fix what doesn't work.
[Android Q&A, Help & Troubleshooting] kirito9:
Yeah it has those, I removed them because TWRP didn't need it. So the base I took for mt6797 I can share to you.
[Android Q&A, Help & Troubleshooting] DespairFactor:
Sure, I also sent you a PR on github
[Android Q&A, Help & Troubleshooting] kirito9:
I'll check it.

---------- Post added at 12:03 PM ---------- Previous post was at 11:51 AM ----------

This is the device tree I cloned from : https://github.com/denis7043/nikel. Seems the files are pulled from the device to create the vendor.
[Android Q&A, Help & Troubleshooting] DespairFactor:
You can try to use that, but the kernel and vendor files would need to be swapped, generally you dump and stock image and deodex. Basically if you can use that with your changes and swap the proprietary stuff to what is on your device.
[Android Q&A, Help & Troubleshooting] kirito9:
Ahh ok, I don't have this device tho lol, I was just helping out with TWRP. I never built for mt6797 before so I wanted to try :D.
[Android Q&A, Help & Troubleshooting] mujammil786:
readback

can u readback ur device and upload backup some where i think i bricked my device.
[Android Q&A, Help & Troubleshooting] Bornstud:
How ur devices bricked?

Coz have u flash twrp build by Kirito9

And then allowed it for system Modification?

---------- Post added at 02:43 AM ---------- Previous post was at 02:40 AM ----------

Is it possible to get device tree from Rooted Device?

If yes then I can get it for further development.
[Android Q&A, Help & Troubleshooting] mujammil786:
no with out allowing i flashed supersu and device got stuck at boot animation.

can u give me twrp backup of ur phone only system,boot and recovery cuz i dont want to goto service centre.
[Android Q&A, Help & Troubleshooting] Bornstud:
Try flashing boot.img given by despairfactor in fastboot mode.

By following cmd

fastboot flash boot noveritynoencrypt.img (uploaded by [MENTION=5169465]DespairFactor[/MENTION]

It may help u other wise I will upload my twrp backup tonight.
[Android Q&A, Help & Troubleshooting] mujammil786:
I tried its not working
[Android Q&A, Help & Troubleshooting] Mafioso:
Are you able to boot TWRP ( power off phone, then power on with vol up key pressed)

If you are, then we might be able to help by uploading TWRP backup of our phone. Let us know.
[Android Q&A, Help & Troubleshooting] Mafioso:
Also did you wipe dalvik, cache, data and internal storage via TWRP. If not, do it and then reboot.
[Android Q&A, Help & Troubleshooting] DespairFactor:
Can anyone with a stock device dd their partitions?
[Android Q&A, Help & Troubleshooting] Mafioso:
Phone rooted. Thanks to all those who participated. Updated first post with guide and credits :highfive:
[Android Q&A, Help & Troubleshooting] Mafioso:
We have stock firmware in nb0 format. Will it help ?

It has all the images but not sure how to extract it. There is nb0-utils which extracts these but however in our case it fails after extracting 2-3 files (because of 2gb file limitation, i'm guessing)
[Android Q&A, Help & Troubleshooting] DespairFactor:
I think using this guide, it will help fix any bricks.

https://xdaforums.com/showthread.php?t=2450045
[Android Q&A, Help & Troubleshooting] DespairFactor:
Honestly, I would say pull all. You never know what you need until you need it
[Android Q&A, Help & Troubleshooting] mujammil786:
I tried by factory data reset by flashing modified boot image but it's not booting. before flashing SuperSU my system was encrypted I think bcz of that its not booting. Anyway I can access twrp and fastboot if u r able to upload twrp backup plz post link here...thanks in advanced........
[Android Q&A, Help & Troubleshooting] Bornstud:
Sorry Brother, I am outside right now.

By the way which partition should we take back up?

Coz,If possible I will upload it tonight.

---------- Post added at 12:23 PM ---------- Previous post was at 12:19 PM ----------

Brother, I have backup of Boot,Recovery and System file

But size of this backup is around 2GB,

And I didn't have that much connectivity right now to upload such backup.
[Android Q&A, Help & Troubleshooting] Mafioso:
I will try to upload it tonight.
[Android Q&A, Help & Troubleshooting] Mafioso:
As DespairFactor mentioned, we need all. However, I think userdata image will also contain all your apps and private so before pulling it out, you need to reset to factory state.
[Android Q&A, Help & Troubleshooting] kirito9:
Taken from here. So I guess the cm14.1 worked and the vendor tree is up. All we would have to do now is modify the device and vendor trees.
[Android Q&A, Help & Troubleshooting] Mafioso:
That's great. So if we give you the partition image you can develop it right? We can also provide you with testing support.
[Android Q&A, Help & Troubleshooting] Mafioso:
Here is TWRP backup, for the phone:

https://drive.google.com/file/d/0B3nbpuZKeYAZVEJVVVZ6YUFVZVE/view?usp=sharing

Google which partition need to be restored as Im not sure all of them are required or if they can cause any problems..

Let us know how it goes...All the best..
[Android Q&A, Help & Troubleshooting] kirito9:
Yep, it's possible but there are a lot of bugs so it's not stable in any way.
[Android Q&A, Help & Troubleshooting] mujammil786:
device booted successfully thanks for ur help.
[Android Q&A, Help & Troubleshooting] Mafioso:
I have uploaded all partitions of our phone here (except nvram and userdata)

https://drive.google.com/file/d/0B3nbpuZKeYAZZjRkQzl2NGY5ZWM/view?usp=sharing
[Android Q&A, Help & Troubleshooting] Bornstud:
Is it possible to port any ROM for this device?:)
[Android Q&A, Help & Troubleshooting] Mafioso:
yes. The biggest hurdle to start was root and twrp, now since that is done, devs can port roms.

BTW did you try dual sim+microSD card mod, so as to enable all the 3. Is it working on our phone?
[Android Q&A, Help & Troubleshooting] mujammil786:
Im using it from 1st week :p
[Android Q&A, Help & Troubleshooting] Bornstud:
No I didn't try it but all say that the chance of that mode is very rare.:mad:

---------- Post added at 03:31 PM ---------- Previous post was at 03:31 PM ----------

How did u do this?
[Android Q&A, Help & Troubleshooting] Mafioso:
cool. I will try it soon :highfive:

Also did you heat the sim to remove the IC or some other method? Also did you paste the sim onto memory card or were you able to manage with double side tape?
[Android Q&A, Help & Troubleshooting] mujammil786:
Do not paste it leave it as it is. There is lots of guides on youtube;)
[Android Q&A, Help & Troubleshooting] Mafioso:
Added Mods section in second post. Viper4Android and Xposed working on our phone :)
[Android Q&A, Help & Troubleshooting] Bornstud:
Yeah I have already flashed Xposed file and added some mods

But now if any one build a ROM like lineage or MIUI than it will be great for us.

I am now tired with this inLife UI.:p
[Android Q&A, Help & Troubleshooting] Bharath7:
Many thanks to mujammil786, Bornstud, DespairFactor, kirito9, Mafioso and all others who made this possible. I have a Problem though. After i complete Step 4e- fastboot reboot my phone doesn't boot normally in orange state instead it boots into twrp. Then i reflashed stock recovery, now the phone boots normally but when i flash twrp recovery it boots into twrp and when i try advance wipe i get the error "unable to mount storage full selinux". What i did wrong?
[Android Q&A, Help & Troubleshooting] Mafioso:
There are 2 versions of twrp in post 65, which one you had flashed was it first one (twrp-3.0-3.0-epic1.img.zip) or second one (twrp-3.0.3-0-epic1-noveritynoencrypt.zip) ?

Also when your phone normally booted after flashing stock recovery, did it factory reset ?
[Android Q&A, Help & Troubleshooting] Bharath7:
noveritynoencrypt and yes it did factory reset
[Android Q&A, Help & Troubleshooting] Mafioso:
not sure then. Try to flash TWRP once more, see if the phone boots normally or again it does the same thing ?
[Android Q&A, Help & Troubleshooting] Bharath7:
I tried it, phone restarts two times in orange state and automatically enters twrp instead of normal boot.
[Android Q&A, Help & Troubleshooting] Bornstud:
First flash stock recovery.

Then

Flash noveritynoencrypt.img

By following command.

fastboot flash boot noveritynoencrypt.img (a file name)

In fast boot mode.

Then restart phone as usual.

If You succeeded then flash latest twrp.
[Android Q&A, Help & Troubleshooting] Bharath7:
Thanks Bornstud, it worked. This is what i did

1. Flashed stock recovery

2. Flashed noveritynoencrypt. img

3. Phone successfuly booted, so flashed twrp

4. Uninstalled and reinstalled mtk drivers

5. Enabled usb debugging once again in phone, it was off!

6. adb reboot recovery

7.Sucess!!!

Thank you very much:):good:
[Android Q&A, Help & Troubleshooting] Bornstud:
Whether u got root access or not?
[Android Q&A, Help & Troubleshooting] Bharath7:
Ya I got it :good:
[Android Q&A, Help & Troubleshooting] bigrammy:
Firmware Info

Hi [MENTION=690456]Mafioso[/MENTION] [MENTION=5515628]kirito9[/MENTION]

I do not have the Infocus Epic 1 but I do have the Infocus ZM1 aka m808 m560 v5.

In the ZM1 thread we have been lucky enough to have a link to what seems like a legitimate Infocus developer who stores beta/dev ROM's there.

Until recently we have only ever seen ZM1 Roms and these were developed all the way through to the "official" MM release so we had MM months before it was released.

Sadly for us ZM1 guys :crying: but Joy for you guys :victory: it seems he/she has taken over development of ROM's for the Epic 1 code name NE1

So our loss is your gain it would seem so enjoy :o

Everything above the ZM1-518Q-0-00WW-A03_Signed.zip is for the NE1 I think.

Quickest and easiest way to download is for someone to have a mobile baidu account.

Link Here.

http://yun.baidu.com/wap/share/home?uk=4144950315&third=0

Hope This helps :o
[Android Q&A, Help & Troubleshooting] Bornstud:
Okie but it seems it may be stock ROM.

If any development in custom ROM uploaded then I will test it.
[Android Q&A, Help & Troubleshooting] bigrammy:
Of course They are I said "legitimate Infocus developer" Beta ROM's and not custom one's.

Infocus and OEM's do not do Custom ROM's :laugh:

Without the source code your going to have a difficult time developing proper custom roms and the best you can hope for are some ports based on stock kernels. I am not sure which android version your device is on but you will likely find that you get the kernel updates in that link first.

Infocus (Focaltech) are a premium company and produce some of the best Mediatek devices and ROM's I have seen they are complicated but very Fast smooth stable at least for the ZM1 that is.

I would recommend customising the stock Roms rather than flashing some broken port until you get your hands on the source code that is. ;) :fingers-crossed:
[Android Q&A, Help & Troubleshooting] Bornstud:
Yeah..

Right now I have customized my ROM that can better for me.

But as I like to have somewhat vanila ROM like CM(now Lineage), AOSP that have theme engine for different look.

So that I am now learning to compile or port custom ROM for this device.
[Android Q&A, Help & Troubleshooting] bigrammy:
Good luck with that one :fingers-crossed:

If you workout a fool proof method please let me know as not had much luck with porting roms for the ZM1 :crying:

So far for the zm1 Only one RR rom by [MENTION=7958441]drei.liter.milch[/MENTION] that actually booted. :)
[Android Q&A, Help & Troubleshooting] drei.liter.milch:
Oh, im feeling very pleased Sir :o

But this was no sorcery at all.. Just had the luck these both roms fitted.. I tried at least five roms and three methods which were provided as 100% noob proof and working..

And as you know, it still has major malfunctions yet :crying:
[Android Q&A, Help & Troubleshooting] Mafioso:
Thanks for the headsup, i'll take a look at the folder, although i have to create a baidu account somehow.

You are right, stock rom even on infocus epic 1 is quite good and stable, but it suffers from idle battery drain somewhere, loses as much as 10-15% overnight :(

Through using amplify via xposed, i'm able to bring it to down 3% but i'm thinking we might be able to achieve better battery through some more modding. Let's see how it goes.
[Android Q&A, Help & Troubleshooting] bigrammy:
It seems He/she is already many builds ahead of your firmware version of 1210 so give some of the newer builds a try :fingers-crossed:

The latest is NE1-1301-0-000C-A01.7z.

The battery can sometimes take a little while to settle after data wipes etc so give it a week before judging it. Also removing all the Junk app's helps quite a bit Themes etc etc ;)

For Info:

Any SUT firmware like SUTL1_NE1-1270-0-000C-A01 needs the SUT L tool (Software Update Tool) to flash them. You can get it from

Here with instructions also use google for searching how to use it.

The .7z firmware's will be SPflashtool version and .zip are generally flashable via recovery
[Android Q&A, Help & Troubleshooting] Mafioso:
We are unable to use SPFlashtool on our phone, it gives an error STATUS_BROM_CMD_SEND_DA_FAIL (0xC0060003) whenever we try to do a readback. Not sure if we will be able to flash anything, if readback is giving an error.

Also download speed coming from baidu is very slow, like 10-15kb/s :( Any way to speed it up? my connection normally reaches till 500-1024kB/s

By the way how you know our current version is 1210 ? The build number on my phone is 00IN_1_280?
[Android Q&A, Help & Troubleshooting] bigrammy:
No idea as I do not have the phone to do any testing. But if the .7z's are in SPFlashtool format ie: Scatter and a bunch of .img's then I am sure it's compatible You may need to use the Latest version of SPFlashtool or find a device that has a working SPFlashtool version on the same SoC as yours mt6737 I think. :confused:

1. On your PC login to your Baidu network disk.

2. Make a new folder by right clicking in the blank area see screenshots

3. Go to the firmware downloads link and then choose "Save to Baidu network disk" choose your new folder.

4 Go back to Baidu network disk and place a tick to select the New folder then download the folder.

It will create a .zip of the folder and start downloading it to your PC.

Speeds are very slow and fail to complete a lot of the time Baidu like many others just want you to pay for a Premium account so just be patience.

I was working off the stock firmware you posted which was 1210. :o
[Android Q&A, Help & Troubleshooting] bigrammy:
Wrong Device it seems

Hi [MENTION=690456]Mafioso[/MENTION]

I downloaded the latest NE1 and it seems it is not for the Epic 1 after all :eek:

The first time I viewed one of the NE1 downloads the build.prop said "Epic" but this latest one says Unknown :eek:

ro.product.model=Unknown
ro.product.brand=Unknown
ro.product.name=Unknown
ro.product.device=Unknown

So it seems this may be for a New Device or not yet released. :o

Apologies to all for any false hope.....
[Android Q&A, Help & Troubleshooting] Mafioso:
I was finally able to download SUTL1_NE1-1270-0-000C-A01_001_eng_log.zip by keeping it on overnight, however its not for our device. I tried unpacked nb0 file using nb0-utils, the scatter file present inside it is NE1-0-1270-MT6737M_Android_scatter and not MT6797 which is our chipset, so its for different device probably a budget one, as you also found.

No issues, Thanks for trying to help :)
[Android Q&A, Help & Troubleshooting] Bornstud:
How I should get META-INF folder for this device.

As I have crafted a ROM but it can't be possible without this file.
[Android Q&A, Help & Troubleshooting] XN Logos:
hii, here i create a tool to make your work more easy, unpack repack nb0 ROM,

https://xdaforums.com/general/general/tool-unpack-repack-nb0-rom-t3495091
[Android Q&A, Help & Troubleshooting] mujammil786:
its not working:confused:
[Android Q&A, Help & Troubleshooting] mujammil786:
and other thing nb0 file is present in unpack folder
[Android Q&A, Help & Troubleshooting] Bornstud:
Yeah..it didnt work for me.

I had follow all ur step. But didnt work for me.

I am not able to get system file.
[Android Q&A, Help & Troubleshooting] Mafioso:
I had already tried it back then, it doesn't work for us. Actually the nb0-util.jar which you also are using in back for extraction isn't able to extract more than 2gb files I have read on some other forum. As the system.img file is more than 2gb for us also, it fails.

[MENTION=6596270]Bornstud[/MENTION] dude how is the rom dev going on? any success?
[Android Q&A, Help & Troubleshooting] Bornstud:
No Brother.

Had ported 2 rom for this device

But didnt work. First i have to update-script and meta-inf folder for our device. Than again check it.

Currently i am getting error of invalid zip. So i think first we need correct meta-inf folder and update-script thereon.
[Android Q&A, Help & Troubleshooting] Mafioso:
hmmm no idea about this :(

BTW have you guys bought any after market screen protector for this phone yet?

I bought tempered glass one from eBay, its of wrong size :( The one's available on amazon also mention wrong size in review.

Also did you guys notice that truecaller keeps recording calls from hidden number on this phone? Not sure if it's just me :confused:
[Android Q&A, Help & Troubleshooting] mujammil786:
There's meta inf folder in update zip
[Android Q&A, Help & Troubleshooting] Bornstud:
No i have an ordered but i notice it of wrong size then i returned it.

---------- Post added at 05:09 PM ---------- Previous post was at 05:08 PM ----------

Oh thanks brother.

No i will get it.
[Android Q&A, Help & Troubleshooting] mujammil786:
[MENTION=690456]Mafioso[/MENTION] and [MENTION=6596270]Bornstud[/MENTION] do u facing same problem my phone gets switch off at 32% sometime at 24%..

And today i noticed first time charging rapidly on lock screen did u seen it before????
[Android Q&A, Help & Troubleshooting] mujammil786:
Charging rapidly
[Android Q&A, Help & Troubleshooting] Bornstud:
I didnt face any issue like this.

But battery draining problem is their.

When i sleep,

it was 75% and when i wakeup its 63%
[Android Q&A, Help & Troubleshooting] mujammil786:
And what about rapid charging
[Android Q&A, Help & Troubleshooting] Bornstud:
I didn't check it.

I will check it when battery level is goes to 5%.
[Android Q&A, Help & Troubleshooting] Mafioso:
I'm also not facing this problem. However, I have noticed more than couple of times that phone switched off by morning if phone has less than 25% charge in night, which is kind of strange since the phone lose not more than 10-12% charge overnight. And many times ive taken the phone to under 10% in day, so its not like phone doesn't go below 10% either.

And yeah, that charging rapidly is something new, haven't seen it before. Is it on stock charger & cable? or are you using a different one?
[Android Q&A, Help & Troubleshooting] mujammil786:
I was using stock charger and cable but now its gone:confused:
[Android Q&A, Help & Troubleshooting] Bornstud:
yeah.. i also didnt find any "Rapid Charging" at battery level of 5%

have you xposed your phone and installed moded with rapid charge app or fast charge app.?
[Android Q&A, Help & Troubleshooting] mujammil786:
Nop
[Android Q&A, Help & Troubleshooting] mujammil786:
Our device doesn't have support for doze:( doesn't have sensor for doze.....
[Android Q&A, Help & Troubleshooting] Bornstud:
Does substratum support our device?

I had tried to install same but didn't get support

I had installed few themes and successfully applied it.

But after rebooting device I get stock theme.

Does anybody had hand on that?
[Android Q&A, Help & Troubleshooting] Bharath7:
I faced battery problem when I turned on power saver, my battery lost 10 to 12 percent overnight, When I turned off power saver my battery lost only 5 to 6 percent. If your power saver is on turn it off and check and also turn off contacts blacklist and check.
[Android Q&A, Help & Troubleshooting] Bornstud:
Yeah its true.

Stock ROM is not that much optimised ROM

Instead of use Power Save Option.

I prefer to use amplify or greenify to stop an activity.
[Android Q&A, Help & Troubleshooting] mujammil786:
My phone turned off at 55% when i turned it on it was showing 50% battery can u please upload your twrp backup of only system??
[Android Q&A, Help & Troubleshooting] Bornstud:
I have made lots of modification in system.

I Have applied lots of xposed module.

Whether it will be okie?
[Android Q&A, Help & Troubleshooting] mujammil786:
Will be good :svetius:
[Android Q&A, Help & Troubleshooting] mujammil786:
i have made 7.1 rom zip i successfully flashed it but its stuck on boot animation .

well i got boot animation of android 7.1:D
[Android Q&A, Help & Troubleshooting] Mafioso:
Updated second post with TWRP backup :)

Wow, cool dude :highfive: Hope it boots soon :victory:

Which rom did you take as base? is it one ofapollo vernee lite?
[Android Q&A, Help & Troubleshooting] mujammil786:
Yes mad rom i think

---------- Post added at 07:35 PM ---------- Previous post was at 07:30 PM ----------

is it a same backup u have uploaded earlier bcoz i think u r facing the same problem of battery......:confused:
[Android Q&A, Help & Troubleshooting] Mafioso:
Yes, same one. But I'm not facing much battery problem though. I discovered phone has week 0-10% range. It switches off anytime in that range like it can go to 10 -> 0 in like 5-7 minutes with screen on.

> 10% I haven't faced phone switching off.
[Android Q&A, Help & Troubleshooting] mujammil786:
i m using the same rom u have uploaded earlier. :rolleyes: i have requested bornstud to upload twrp backup of his phone i want to try his phones backup....

---------- Post added at 04:27 PM ---------- Previous post was at 04:26 PM ----------

Do u think that this is hardware related problem or software related.??
[Android Q&A, Help & Troubleshooting] Mafioso:
It seems a physical battery problem to me, but i guess only way to be sure is either use some other backup or better still try to go complete stock by restoring the phone through SUT and see if problem persists.
[Android Q&A, Help & Troubleshooting] mujammil786:
I think no one will.be able to use sut on our phone:eek: