[Alcatel 1 Guides, News, & Discussion] Ade1992:
Hi everyone, i'd like to share my foundings on rooting and installing Xposed Framework on Alcatel 1 5033F.

As you know, the only viable and fast booting GSI already rooted rom existing is AOSP 8.1 v32 from @phhusson (https://github.com/phhusson/treble_experimentations/releases/tag/v32). All other roms don't boot or are too slow to boot. I noticed for AOSP 9, it seems to be related to gapps. Since all su GSI come with gapps that was a nighmare. I really doubt with the current boot.img it will boot with any Android 10+ rom anyway.

Also, every attemps to build custom recovery or patch boot image resulted in bootloop since the preloader checks images signature.

The method only method i found to have root and Xposed was to use mtk-su !!!!! But for that we need a firmware prior to March 2020. In my case there was no firmware available online for 5033F so i had to settle with 5033D. By looking at mobile upgrade from Alcatel website, I noticed that all 5033 series are equivalent but you have to flash toghether some .img in orther to have drivers working properly or no upside down screen. I simply used the one of the 28th July 2019 found here https://alcatelfirmware.com/alcatel-1-5033d.

First it is recommended to unlock bootloader in case you have to flash the system. Go to the developper menu and unlock bootloader and then run "fastboot oem unlock". Then for the flashing instal mtkclien from here https://github.com/bkerler/mtkclient and all related dependencies. It is quite simple to use it. Don't forget to backup original partitions in case you want to go back (or download the firmware on internet). I noticed that mtkclient doesn't flash well systems so use fastboot method (fastboot flash system system.img).

In order to get mtk-su you need to flash at least vendor.img. That's where the vulnerable mediatek driver is. Nevertheless, to have wifi and bluetooth working i had to flash also boot.img. I believe they have to go toghether. For this version of vendor and boot, i had to flash the system.img because the original one won't boot anymore and recovery.img as it became upside down. And voilà, you can reboot to check that it works and lock bootloader "fastboot oem lock" since you won't be doing anything more on the partitions. I believe any vanilla to android 9 should be working. I also tried this one (https://xdaforums.com/t/aosp-9-0-0_r50-v121-microg-ufofficial-cve-nov-2019-arm32-64.3878115/) but for now i stayed on android 8.1 with stock rom. Remember that this device works with arm aonly (mostly).

Then to apply root you can use "mtk easy su" but since we need some soft reboot i used the automatedroot method (https://github.com/R0rt1z2/AutomatedRoot) combined with some update from mtk-su forum (https://github.com/R0rt1z2/AutomatedRoot) to have magisk 23. To make it easy, at the end, you just need the right Initd folder (file attached) and Init.d Scipts support. Since, this app does not work with apps anymore you will have to get a pro version on your own.

Follow the exact order to install it :

- Run Init.d app and lunch scrips on boot with no delay. Locate Initd folder with appropriate files in it already. Then run scripts and allow root on the app.

- Install magisk 23 apk (already in the Initd folder but can be found https://github.com/topjohnwu/Magisk). Launch it and apply supplementary installation as the app ask you to when you are online. It is mandatory otherwise it won't work. It will reboot.

- Now each time you boot you will need do run scripts on Init.d app while magisk is off and grand root with magisk to Init.d showing that magisk is running with root.

- Install the modules you want. You have to run Init.d at each reboot.

- For Xposed framework, you will need to do a soft reboot with the Xposed Manager as you need magisk to be already on before Xposed runs. I noticed riru makes an automatic soft boot but does weird things like disabling sd card and slow data transmission via USB. I stayed on classical Xposed framework since i'm on android 8.1. For that i used this version (https://github.com/HuskyDG/magisk-xposed) that i corrected it by changing a "mv" into a "cp -af" on the line of xposedbridge.jar that maked a bootloop as i saw long time ago on a forum. (Why the hell did they put a moved in the first place anyway ?!) I attached the file directly.

That's it ! It's annoying because we have to run init.d and soft reboot after each boot but that's the only way i found.

Optionnal: I like to use Smali Patcher as it gives all in one disableflag secure, hide mock locations and spoofing signature without Xposed Framework. You can used on magisk directly the zip file attached if you use the same stock rom (I don't think it requires a new one for other stock roms for 5033 but you never know).

PS: Don't forget to disable automatic updated on playstore as it can mess with your patched apps. Always keep a copy of you install files as they tend to disappear with time, especially legacy xposed ones...

I hope it helps you on your quest, i spent too much time fighting this battle against these f***ers of alcatel that bloqued patched boot.img and custom recovery.

EDIT: After some testing, turns out this vendor does not give me drivers for Camera/Flash on my 5033F so for now i'm not fully satisfied but that's not a big deal for me.

EDIT 2: Since i needed Xposed 93, i updated to magisk 24, installed Riru 25 and LSPosed 1.3.5 that do not block SD card. I don't even need to do soft reboot as Riru forces reboot when i launch root with init.d app.