yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi Max 3 Guides, News, & Discussion] famaTV:
Hello,I couldn't see it in Magisk but Googled and downloaded it from this link

https://xdaforums.com/apps/magisk/module-camera2api-enabler-t3656651

I downloaded and installed the second attached file.

Installed and checked with Camera API probe and got the below, however, now it crashes when I change to front camera and still the front doesn't work.

Model:Phh-Treble with GApps
Manufacturer:unknown
Build:8.1.0
SDK:27
------------------------------------------
Camera ID: 0
Lens facing: Back
SupportLevel:Level_3
SupportLevel HR:Level_3
Manual exposure:1
Auto exposure:1
Auto exposure, always flash:1
Auto exposure, auto flash:1
Auto exposure, auto flash, red eye reduction:1
AE Lock:1
Manual focus:1
Auto focus:1
Auto focus macro:1
Auto focus continuous picture:1
Auto focus continuous video:1
Auto focus EDOF:0
White balance off:1
Automatic white balance:1
WB: cloudy day:1
WB: day:1
WB: fluorescent:1
WB: incandescent:1
WB: shade:1
WB: twilight:1
WB: warm fluorescent:1
AWB Lock:1
RawCapture:1
BurstCapture:1
------------------------------------------
Camera ID: 1
Lens facing: Front
SupportLevel:Level_3
SupportLevel HR:Level_3
Manual exposure:1
Auto exposure:1
Auto exposure, always flash:1
Auto exposure, auto flash:1
Auto exposure, auto flash, red eye reduction:1
AE Lock:1
Manual focus:1
Auto focus:0
Auto focus macro:0
Auto focus continuous picture:0
Auto focus continuous video:0
Auto focus EDOF:0
White balance off:1
Automatic white balance:1
WB: cloudy day:1
WB: day:1
WB: fluorescent:1
WB: incandescent:1
WB: shade:1
WB: twilight:1
WB: warm fluorescent:1
AWB Lock:1
RawCapture:1
BurstCapture:1
------------------------------------------
Camera ID: 2
Lens facing: Back
SupportLevel:Level_3
SupportLevel HR:Level_3
Manual exposure:1
Auto exposure:1
Auto exposure, always flash:0
Auto exposure, auto flash:0
Auto exposure, auto flash, red eye reduction:0
AE Lock:1
Manual focus:1
Auto focus:0
Auto focus macro:0
Auto focus continuous picture:0
Auto focus continuous video:0
Auto focus EDOF:0
White balance off:1
Automatic white balance:1
WB: cloudy day:1
WB: day:1
WB: fluorescent:1
WB: incandescent:1
WB: shade:1
WB: twilight:1
WB: warm fluorescent:1
AWB Lock:1
RawCapture:1
BurstCapture:1
------------------------------------------
Camera ID: 3
Lens facing: Back
SupportLevel:Level_3
SupportLevel HR:Level_3
Manual exposure:1
Auto exposure:1
Auto exposure, always flash:1
Auto exposure, auto flash:1
Auto exposure, auto flash, red eye reduction:1
AE Lock:1
Manual focus:1
Auto focus:1
Auto focus macro:1
Auto focus continuous picture:1
Auto focus continuous video:1
Auto focus EDOF:0
White balance off:1
Automatic white balance:1
WB: cloudy day:1
WB: day:1
WB: fluorescent:1
WB: incandescent:1
WB: shade:1
WB: twilight:1
WB: warm fluorescent:1
AWB Lock:1
RawCapture:1
BurstCapture:1
[Xiaomi Mi Max 3 Guides, News, & Discussion] jaflendrino:
so, no issues, all is working now ?

bluetooth is full, music and calls? auto brightness?

how can i do it?

Only double touch to wake screen dont work, isnt it?,
[Xiaomi Mi Max 3 Guides, News, & Discussion] MrColdbird:
VoLTE is still missing afaik, and battery statistics are worked according to OP.
[Xiaomi Mi Max 3 Guides, News, & Discussion] xgneilx:
For gcam.

https://xdaforums.com/showpost.php?p=77361996&postcount=14

For doze: as opasha said. In MIUI even if I whitelisted TB, etc... It's not running during doze mode.

Btw, you don't need to install doze. It's built-in feature since Android L but started working efficiently in Android M.

Not my work, but I've attached here the camera2api magisk module
[Xiaomi Mi Max 3 Guides, News, & Discussion] jngiag:
Steps (1) & (3) fixed the problem of brightness flickering during brightness adjustment and BT media and call using Havoc-OS 2.0 (Android 9.0) GSI (2018-10-18). I didn't try step (2). Nice work! :good:
[Xiaomi Mi Max 3 Guides, News, & Discussion] xgneilx:
Can you send me a link of that Havoc-OS 2.0 that you are using?
[Xiaomi Mi Max 3 Guides, News, & Discussion] xgneilx:
Added additional instruction for Havoc Pie
[Xiaomi Mi Max 3 Guides, News, & Discussion] Andyxmas:
I read the whole Thread but I have a few questions:

1. Is this Havoc a whole custom rom without MIUI? Since I used lineageos on my max2 I search for a nonmiui Rom for my max3.

2. Is there somewhere a whole installation tutorial? But I am on 8.10.18 miglobe rom (same as xiaomi.eu weekly). I think there is ARB. I don't want to brick the max3 :) or is it impossible because of ARB?

For the camera I tested a few cams. The best I found is:

https://www.celsoazevedo.com/files/android/google-camera/f/GoogleCamera_6.1.009.215420794-beta2.apk

Except slowmo all is working even the HDR+enhanced mode works. All other apks I tested crash with hdr+enhanced.

Slow motion I don't find a apk which don't crash. But I used slowmo never.
[Xiaomi Mi Max 3 Guides, News, & Discussion] nijel8:
Umhh... Current TWRP decryption bug won't make your data safe... One day one dev will get it fixed, believe me...
[Xiaomi Mi Max 3 Guides, News, & Discussion] famaTV:
Hi again,

If I have Treble ROM and there is an update from MIUI EU, is there anyway / any need to update? And if so, how can I do it without loosing the Treble ROM (the need to re-install all apps and configs, etc.)?

Thanks,
[Xiaomi Mi Max 3 Guides, News, & Discussion] Andyxmas:
I am from miui xiaomi.eu 08.10.11 to havoc 21.10 and now to 27.10

I think you don't have to update the miui. The last updates are all for some miui software tweaks without new firmware features. So update only the treble rom and that's all.
[Xiaomi Mi Max 3 Guides, News, & Discussion] jaflendrino:
in havoc, the screen dont turn on when i receiced new notifications, and there arent d2tw option. Any way to enable on xposed?
[Xiaomi Mi Max 3 Guides, News, & Discussion] shingers5:
sorry I am late to the party so please where can I download this rom and how to flash?
[Xiaomi Mi Max 3 Guides, News, & Discussion] Roykooiman:
Search on 'havoc'
[Xiaomi Mi Max 3 Guides, News, & Discussion] Andyxmas:
The screen on by new notification is in the settings>havoc tweaks>ambient display.

But it works only time to Time for me.
[Xiaomi Mi Max 3 Guides, News, & Discussion] shingers5:
I did and couldn't find hence why I asked. I know how xda works.mate

https://xdaforums.com/project-trebl...-development/gsi-havocos-v2-0-t3855601/page41

Is this the one I use and do I use A or AB version?
[Xiaomi Mi Max 3 Guides, News, & Discussion] opasha:
Yes, that's the one. For our device, use only A version.
[Xiaomi Mi Max 3 Guides, News, & Discussion] shingers5:
best flash method? twrp or fastboot? i am ok with either but wanted to know which ones creates less issues after flash.....also can you state a quick guide on how to flash on this device if thats ok

i gather:

extract img from rom zip and flash using twrp/fastboot

then load twrp and flash gapps

then flash magisk

reboot?

read about removing vendor.xml but not quite sure?

cheers in advance
[Xiaomi Mi Max 3 Guides, News, & Discussion] opasha:
[MENTION=1905782]jngiag[/MENTION]'s advice: This is what I have recorded after installation for my own reference:-

Flashing of Eu rom from 8.1/9.0 GSI rom (Mi Max 3)

-------------------------------------------------------------

1. Recovery -> Wipe -> factory reset -> install -> eu_rom.zip -> flash

2. Reboot

3. Recovery -> install -> magisk -> flash

4. Reboot

Flashing of 8.1 GSI rom from Eu rom (Mi Max 3)

--------------------------------------------------------

1. Install latest TWRP or RedWolf Recovery

2. Download GSI (RR or AICP-mordiford)

3. Recovery -> Wipe -> factory reset -> install -> xx.img (select "image" instead of "zip" option) -> flash

4. -> install -> open_gapps (nano) -> flash (only pico version will work for AICP)

5. Reboot

6. Recovery -> install -> magisk -> flash

7. Reboot

Flashing of 8.1 GSI rom from 8.1 GSI rom (Mi Max 3)

-------------------------------------------------------------

1. Recovery -> Wipe -> factory reset

2. -> install -> xx.img (select "image" instead of "zip" option) -> flash

3. -> install -> open_gapps (nano) -> flash

4. Reboot

5. Recovery -> install -> magisk -> flash

6. Reboot

Flashing of 9.0 GSI rom from 9.0 GSI/Eu rom (Mi Max 3)

-------------------------------------------------------------------

1. Recovery -> Wipe -> factory reset

2. -> install -> xx.img (select "image" instead of "zip" option) -> flash -> reboot

3. Recovery -> install -> open_gapps (pico/nano) -> flash -> reboot -> disable "pixel setup" in App Setting

4. Recovery -> install -> magisk -> flash

5. Reboot

My SD card has no problem at all. I have formatted it in recovery and adb (format userdata). I am not too sure if that make a difference. :)
[Xiaomi Mi Max 3 Guides, News, & Discussion] shingers5:
started with MIUI global 10.1.1.0

downloaded Havoc 2710.18 build for Aonly

installed normal TWRP via fastboot then redwolf via install image to recovery in TWRP

booted into redwolf

wipe factory/data reset

flash Havoc IMG via flash image option to System

reboot recovery then flashed pico gapps

reboot recovery flash Magisk 17.3 zip

reboot

stuck at android boot logo flashing wipe and grey but no boot at all. guess the enforcing kernel on MIUI 10 global might be the issue. will flash eu miui version and try again
[Xiaomi Mi Max 3 Guides, News, & Discussion] opasha:
Yeah, global seems to be causing everyone headaches, which is why I've advised everyone against it. Eu is the better option. It works with TWRP and root without issues. Global doesn't seem to like TWRP and root. Don't know why nor do I care.
[Xiaomi Mi Max 3 Guides, News, & Discussion] Andyxmas:
When you want Google Assistant to unlock your phone and battery stats then I recommend you to install the nano Gapps.

Further when you stuck in Android boot logo you have forgot to Fastboot format userdata. This was the solution for me.

Also because I was on other rom than xiaomi.eu this are my steps that bring me havoc:

Flash the original China dev via miflash (no lock Bootloader option tick). Because the original China dev Fastboot Rom recreate the original Partitions.

Start the system until welcome Screen(don't know why but it was one solution)

Then in Fastboot mode: Fastboot format userdata (this was the step I forgot so no boot)

Then flash newest original twrp in Fastboot.

Direct boot into twrp (when not direct boot to twrp the original recovery will be reinstall)

Then install xiaomi.eu newest because ARB in the new original China dev

Start system until welcome screen.

Reboot to recovery

Factory reset

Reboot to recovery

Install havoc arm64aonly from 27.10

Reboot recovery

Install gapps

Reboot to system.

After first setup.

Reboot recovery

Install magisk 17.3

Reboot to system

I have these steps find out by 4h of trying and always stuck in Android logo. And now I am very happy for a week or so with Android pie.
[Xiaomi Mi Max 3 Guides, News, & Discussion] shingers5:
I did these steps

Install latest EU ROM

Boot in recovery red wolf

Wipe factory reset

Flash havoc IMG to system

Reboot recovery flash gapps

Reboot system

Booted up in no time at all

Can't add manual APN for virgin UK and no 4g on Vodafone UK

Ambient light doesn't work so set manual will look at fix here

Gonna install magisk now
[Xiaomi Mi Max 3 Guides, News, & Discussion] xgneilx:
updated OP. added links and some fixes
[Xiaomi Mi Max 3 Guides, News, & Discussion] xgneilx:
Try the vendor zip in the OP if it fixes your bt concern on 3rd party apps.
[Xiaomi Mi Max 3 Guides, News, & Discussion] PianoMonkey:
What do you mean? I did use the vendor folder fix, it doesn't work for Bluetooth calls from 3rd party apps, only phone calls.

If someone calls me using my phone number, I can hear and talk with Bluetooth

If somebody calls me with WhatsApp, audio doesn't go through Bluetooth
[Xiaomi Mi Max 3 Guides, News, & Discussion] xgneilx:
What I mean is just that. Use the vendor zip in the OP, that I've updated couple of hours ago.
[Xiaomi Mi Max 3 Guides, News, & Discussion] shingers5:
First major bug for me anyway

WiFi tethering crashed settings app and forced a random reboot

I was able to turn it on and change the password

It allowed me to connect but didn't ask for password

I was able to use it but when I switched it off the settings app force closed and system crashed then rebooted

Any fix would be great thanks

Battery life is immense as I've only used 11% from 100% in over 12 hrs. For what it is now its not bad at all. Some graphic glitches with the nav bar back button and if turn on gestures and hide nav bar they don't work.
[Xiaomi Mi Max 3 Guides, News, & Discussion] PianoMonkey:
Still doesn't work for me, but thank you for your help and work!

To clarify, I'm running AICP-Mordified, and I used your new Vendor zip and extracted all the contents inside the etc folder, into my Vendor/etc, including the audio folder (with 1 file inside)

I then set their permissions to 644 (all read, owner write)

Rebooted phone, but didn't notice any changes after testing with TextNow and the American/Canadian dialer test number 1-800-444-0800

As soon as the automated message started playing, phone switched to speaker phone
[Xiaomi Mi Max 3 Guides, News, & Discussion] xgneilx:
Thanks for this. Maybe it only works for havoc then.
[Xiaomi Mi Max 3 Guides, News, & Discussion] PianoMonkey:
Must be

I'm currently waiting in Xposed to work on Pie before jumping ship
[Xiaomi Mi Max 3 Guides, News, & Discussion] shingers5:
The brightness flickering set to 4095 didn't fix that issue and after adding that framework-res auto apk adaptive brightness doesnt work well. I just set manually for now. BT audio no a biggy for me right now
[Xiaomi Mi Max 3 Guides, News, & Discussion] xgneilx:
What is your ROM and type of Gapps installed?
[Xiaomi Mi Max 3 Guides, News, & Discussion] shingers5:
Havoc 27.10

Pico gapps
[Xiaomi Mi Max 3 Guides, News, & Discussion] opasha:
Try one plus gestures and hide nav bar (they are from the same dev) in the playstore. Works very well and highly customizable. I'm using it in miui. You'll need to lock one plus gestures in Recents if it doesn't stay put.
[Xiaomi Mi Max 3 Guides, News, & Discussion] shingers5:
Do you mind send me link for oneplus gesture? Don't you like the standard miui ones?
[Xiaomi Mi Max 3 Guides, News, & Discussion] opasha:
Just type one plus gestures. You'll see the first and third app I mentioned by the same dev. If you need help configuring it, let me know. Here are my settings.

Standard miui gestures are a joke compared to the level of customization one plus gives.

Edit: it did not post all my images. I re-uploaded them.
[Xiaomi Mi Max 3 Guides, News, & Discussion] xgneilx:
That's weird. How about you add persist.qcom-brightness 4095 line in vendor's build.prop? It worked for me when I was still in 10/27 and probably most people who are in 10/27 now will confirm.
[Xiaomi Mi Max 3 Guides, News, & Discussion] Craggers75:
Anyone having problems with titanium backup? On a batch restore it partially completes with error X number elements failed. I've tried doing a single app restore but still the same outcome.
[Xiaomi Mi Max 3 Guides, News, & Discussion] xgneilx:
Never encountered that on 10/21 or 10/27 havoc.
[Xiaomi Mi Max 3 Guides, News, & Discussion] shingers5:
I've got them but it doesn't work. I did as you said but the trigger area is not responding. Its enable but the gestures not working
[Xiaomi Mi Max 3 Guides, News, & Discussion] opasha:
You need to go to accessibility settings and allow it to draw over other apps.
[Xiaomi Mi Max 3 Guides, News, & Discussion] shingers5:
First thing it asks you to do and I did

Will try it again later
[Xiaomi Mi Max 3 Guides, News, & Discussion] pejji:
hi friends, I'm currently on miui global stable 10.0.1.0, officially unlocked bootloader and installed orange fox recovery and obviously ARB is enabled on my Chinese device.

Is it safe to flash any treble or non miui-based roms on my device?

If so which android P rom you advise to install that has less bugs and issues as a daily driver?

thanks.
[Xiaomi Mi Max 3 Guides, News, & Discussion] Roykooiman:
Havoc is pretty stable with the config edits etc
[Xiaomi Mi Max 3 Guides, News, & Discussion] shingers5:
You need to flash the EU stock ROM as the global miui won't boot the ROM. I had same as you and that's what I had to do.
[Xiaomi Mi Max 3 Guides, News, & Discussion] shingers5:
To be honest this ROM transforms this phone and takes it to another level. I have the hotspot no password bug and it freezes when try to turn off, also had the flickering screen issue so used manual brightness so that's sorted. All else seems to be fine from what I've used. The camera seems a bit moody but I like this ROM. Battery life is good for me even better than stock and so far no major hiccups. I don't use BT audio so wasn't affected by that.

Solid ROM just needs a dev to take it and refine it. Add in the fixes and make it more device specific. Thanks again
[Xiaomi Mi Max 3 Guides, News, & Discussion] shingers5:
47 hrs gone still 17% left and almost 10 hrs screen on time. That's not bad
[Xiaomi Mi Max 3 Guides, News, & Discussion] pejji:
flickering screen solved for me by adding the line: persist.sys.qcom-brightness=4095 at the end of the file : /vendor/default.prop

another thing , i cant find double tap to wake anywhere in settings
[Xiaomi Mi Max 3 Guides, News, & Discussion] MrColdbird:
I'd have long switched but I'm heavily dependent on VoLTE for reception in my region and Bluetooth audio is a must have for me as I make use of a Bluetooth headset for both audio consumption and work calls.

It might be fine for you to ignore these issues, but for some of us with spotty 2g/3g coverage, VoLTE is the only way of doing voice calls.
[Xiaomi Mi Max 3 Guides, News, & Discussion] shingers5:
My comments were based on my experience and we all have different ones. You can post yours as well as I did mine. I didn't mean it in any way that play down your issues just that to me they are not that important based on my own experience.

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

Will try that one with the .sys added to see if that helps

Update

That did the trick mate thanks. No flickering but everything much dimmer now have to put manual on 50 to get where I was at 22.
[Xiaomi Mi Max 3 Guides, News, & Discussion] MrColdbird:
I didn't mean to imply you did.

I actually quite agree with you. All this ROM needs is some device specific rebranding / preconfiguring and it should be good to go.
[Xiaomi Mi Max 3 Guides, News, & Discussion] xgneilx:
Thans for this. How can i miss the .sys in my revised post. Thanks again.
[Xiaomi Mi Max 3 Guides, News, & Discussion] xgneilx:
Updated OP. Included link for my latest tested working on havoc gcam with night sight
[Xiaomi Mi Max 3 Guides, News, & Discussion] xgneilx:
For those who want to upgrade the to the latest EU but wanted to keep current Treble (System and Data)...

1. Backup Data, System (including image), and Vendor (including image) in TWRP.
2. Wipe Cache, Dalvik, Data, and System.
3. Reboot to recovery
4. Install latest Xiaomi EU ROM (make sure to mount all partitions)
5. Reboot to recovery
6. Restore Data, and System from backup
7. Reboot to recovery
8. Install gapps
9. Install magisk
10. Clear Cache and Dalvik
11. Reboot to System

Note: If the latest update doesn't have the Vendor fixes, you need to apply the same fixes as indicated here in the OP.
[Xiaomi Mi Max 3 Guides, News, & Discussion] Roykooiman:
****TT, can someone maybe help me?

I've followed these steps to install Havoc:

"Flash the original China dev via miflash (no lock Bootloader option tick). Because the original China dev Fastboot Rom recreate the original Partitions.

Start the system until welcome Screen(don't know why but it was one solution)

Then in Fastboot mode: Fastboot format userdata (this was the step I forgot so no boot)

Then flash newest original twrp in Fastboot.

Direct boot into twrp (when not direct boot to twrp the original recovery will be reinstall)

Then install xiaomi.eu newest because ARB in the new original China dev

Start system until welcome screen.

Reboot to recovery

Factory reset

Reboot to recovery

Install havoc arm64aonly from 27.10

Reboot recovery

Install gapps

Reboot to system.

After first setup.

Reboot recovery

Install magisk 17.3

Reboot to system"

And it tries to boot but after a few seconds a message comes up saying: "Encryption unsuccessful"

It then says: "To resume using your phone you need to perform a factory reset", which I did.

Reboot, and again the same message. Anyone experienced the same?

EDIT: Been trying various methods for a few hours now but the "Encryption successful" message keeps coming up. Really hoping someone has a fix as I can't do anything with my phone now.
[Xiaomi Mi Max 3 Guides, News, & Discussion] xgneilx:
When I encountered that, I did the following...

1. From EU, install magisk.

2. Boot to recovery and wipe data, system, cache, and dalvik

2. Convert the data partition to f2fs

3. install the havoc img to system

4. reboot recovery

5. install gapps

6. wipe cache and dalvik

7. reboot system.

Note: Magisk has already modified the boot.img even before I flash havoc.
[Xiaomi Mi Max 3 Guides, News, & Discussion] xgneilx:
For those who can't fix BT media and call using Vendor-2018-11-05.zip in OP, while on Havoc 10/21 and EU 10.0.6.0, I have attached in OP a separate vendor zip (vendor-etc-2018-11-09.zip) that worked for me, but I haven't checked the difference with the older zip. Don't have time to check. I am just sharing what worked for me.
[Xiaomi Mi Max 3 Guides, News, & Discussion] PianoMonkey:
Tested latest with AICP, crashes with HDR+ Enhanced

Do you have a link to the old one (5.3 for Redmi6Pro I believe?)

It's not the same as the MGC_5.3.015_B-S-G-based_v.1.0.7_TlnNeun.apk on the Google Camera Mod thread because that one also crashes
[Xiaomi Mi Max 3 Guides, News, & Discussion] xgneilx:
Try the 5.3 here... https://www.celsoazevedo.com/files/android/google-camera/dev-tolyan009/
[Xiaomi Mi Max 3 Guides, News, & Discussion] PianoMonkey:
Didn't work, but you had previously linked this one that was ported for Redmi Note 5 Pro that worked for me (except slow-motion)
[Xiaomi Mi Max 3 Guides, News, & Discussion] Roykooiman:
Thanks. Will try this! But even on EU it gave the encryption unsuccessful message. Did u clean flash EU with fastboot?
[Xiaomi Mi Max 3 Guides, News, & Discussion] xgneilx:
Nope. I use fastboot only on China Dev ROM, then flashed EU using TWRP (Mounting all partition).
[Xiaomi Mi Max 3 Guides, News, & Discussion] Roykooiman:
Can u maybe send the link for the Chinese Dev Rom? As I want to make sure that I use the right one. Hmm, mounting partitions, didn't do that when flashing. Should try that. Thanks.
[Xiaomi Mi Max 3 Guides, News, & Discussion] xgneilx:
https://xdaforums.com/mi-max-3/how-to/rom-official-recovery-fastboot-roms-mi-t3827503

If you still don't have any data on your storage partition and is willing to start clean, my suggestion is to flash fastboot of China 10.0.6.0, then afterwards, flash EU 10.0.6.0 on it. Make sure to mount all partitions when flashing EU.
[Xiaomi Mi Max 3 Guides, News, & Discussion] shingers5:
Almost a week now and still going good. Battery is solid 2 days plus of medium to heavy use is amazing. Most works as expected and the things that don't work are for me not a deal breaker
[Xiaomi Mi Max 3 Guides, News, & Discussion] Roykooiman:
This bt audio fix. Doesn't work me.