[Android Q&A, Help & Troubleshooting] djvinniev77:
Hi Ulefone Armor 2 pals!

TL:DR - I made a flashable zip of stock rom (with some tweaks) - perfect for those who sort of brick their devices after TWRP install, or for reverting back to almost "stock"

So I've been tinkering around with this device for so long to try and get a custom rom built. So far the experience has been very educational at least. I'm not there with the custom rom (aim for Lineage, may be porting but I'll keep at it) but I did come up with something (selfishly it was for me because I'm sick of flashing and modifying and tweaking... )

I have managed to build up a Stock ROM (based out of 10/09 source) that is flashable via TWRP. YES! You heard it right!

For all those who already have unlocked bootloaders and installed Jemmini's TWRP recovery, this works to completely reinstall stock rom with the following tweaks:

It's running the modified boot.img courtesy of [MENTION=5404196]sumec100[/MENTION] suggestion to take stock boot.img and patch it with the magisk app.

The ROM has the build.prop edits to disable PTT, long press camera button and SOS

Since I modified with Magisk 14.3, this is already preinstalled. You just need to grab the latest Magisk APK and install, you should see that Magisk is 14.3, Safetynet passes! Tested Android Pay and added Debit Card!

There are some caveats to note:

for some reason after the ROM creation, the stock Google apps that were installed there fail to launch, so it fails to complete the out of box setup wizard. I found out that the fix for that is to also install the opengapps for 7.0 in the TWRP recovery before starting the ROM for the first time. It will give the warning that the apps are already installed and that you may have issues but so far for me, works great!

So, instructions:

Ensure you guys already unlocked the bootloader, wiped device on reboot then flashed Jemmini's TWRP.

I would copy the files over to a properly formatted SD card and install that to device, since at first boot to TWRP recovery the encryption is on and can't read the onboard storage... , but do with them as you wish.

Flash Armor2_DJVINNIEV77-signed.zip - REBOOT DEVICE

attempt setup steps, it will fail on detecting wifi. Reboot back to TWRP

Flash open_gapps-arm64-7.0-micro-20171205.zip

reboot.

When you get past the setup wizard, feel free to install the Magisk apk to ensure you get Root processed. You'll see 14.3 is already installed. Test out the other buttons on device, you will notice that everything except volume and power are not doing what they're originally intended to do (no more PTT, SOS or Camera on longpress). The camera button still works to take pics with stock camera (or any other camera that takes that function)

I urge anyone willing to try or want to test, please feel free to give this a shot and let me know how you make out. Make sure you have the SP Flash Tool handy to get you out of trouble if you mess up.. I'm fairly confident this rom will work for you though.

Download location:

https://mega.nz/#F!YixGDDJL!_X9S4tgtoPqH0F0GteP45Q

I have the ROM file, Magisk APK, and Opengapps 7.0 micro. - save these all to your device's external SD card and flash in TWRP.

Thanks guys!

PS: trying this on a 3rd time and I have issues myself. Please - anyone willing to test, understand what you're getting into. :)

New!!! Just wanted to note that I uploaded a newer version of this that has been deodexed with further build.prop tweaks. Rom is not rooted, and you can flash by itself without the need to flash in the opengapps package. Removed SOS and Zello apps, and buttons are free to reassign with button mapper. Since deodexed, it's a tad smaller in size (762 mb as opposed to 1.3 gb)

What's better is that, from my testing anyway, rom boots with no need to run magisk or anything else. Not sure how it works but it does. Rebuilt the stock with SuperR's kitchen.

Still found in same mega drive share

https://mega.nz/#F!YixGDDJL!_X9S4tgtoPqH0F0GteP45Q

Please feel free to download and test.