[ONE Q&A, Help & Troubleshooting] 96GTEM1015:
Official AOSP on One - Interesting situation, research and your help

XDA Team, this is my first thread here and I am coming here from the OPO forums where I have received some very helpful advice. I am consolidating my learning here and would need your help before I proceed to "operate on my phone." I know there are some experts that are on both forums and will recognize me and my situation ! I am hoping this 'noob friendly' thread will appreciate me posting this here.

Background:

I am an absolute newbie and need your help. I received an email from my tech support guys at work that said something like this " .... (App XYZ) supports non-rooted devices with Stock ROM (Official Google Android Versions)." I really want to use the OPO but unfortunately its current CM11 with which it came pre-installed is not allowing me to as I need to get a corporate app on my phone. The App is a custom enterprise app that acts like an app store for all apps pushed through my folks at work, eventually I will need a IBM Notes Traveler, Symantec Mobile Security Client (already works on OPO). I am assuming these checks are limited to my company's custom app. On checking with the folks at work I was told they look for the following to determine if they can allow the enterprise app installation.

> build-tags (look for Cyanogen, CyanogenMOD or any customROM) if found prevent install

> execution of Super user command, presence of SuperSU

> presence of BusyBox and Xposed

Can you folks tell me if there is a way to put "Official Google Android Versions" on my phone and unroot it back as if nothing happened?

My Research so far (thanks to tons of help from OPO forums):

Got the Official AOSP 4.4.4 ROM for OPO links from here {OPO Forum, XDA prevents me from posting link}

Found that I do not need to root the phone in the first place (huge win)

Found that thread has a bug between bacon and A001 naming confusion

Edited the updater-script to remove the first few lines that seemed to cause that error, but then read that did not work for everyone

Then, a flappified version of the same ROM with some newer features was developed by Flapjaxx on OPO forums

The challenge with the flappified version is it comes rooted by default (a NO-NO for my work apps)

Also heard some were facing issues with Official AOSP 4.4.4 ROM for OPO like Wifi, data settings, etc. These seem to be fixed with flappified, but then rooted.

I found a set of steps advised by one OPO forum senior:

Steps: Unlock bootloader - flash TWRP - copy the AOSP ROM to your One's /sdcard folder, or any folder within that such as Download (for easy access.) you can also just download it directly from your OPO and forget about copying it over from your PC. - Boot into TWRP - Go to Wipe, Advanced Wipe and select everything EXCEPT FOR Internal Storage and USB OTG, then confirm. - Go back to the main menu of TWRP and install the AOSP ROM + GApps - Wipe Dalvik / Cache - Reboot system

I found Gapps from here - downloadandroidrom > pa_gapps-modular-micro-4.4.4-20140629-signed.zip

I have Android SDK setup, have the latest TWRP image

Help Needed:

I need to get a plain vanilla (Nexus like) image of simple Android 4.4.4 (or anything else you can advise) running on this good OPO device, no root, no tampers, no unlocked bootloader, no super user, no xposed, no busybox, no customroms anywhere on the build tags.

Please help verify the steps/links I have posted above or point me to better ones

I am new to these flashing steps, thanks for your help in advance.