yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi Pad 4 Questions & Answers] frandavid100:
Thanks a lot, that did the trick. UI is working as expected now.

There seems to be another problem though: encryption. I need it in order to use my work account, and when I try to encrypt the tablet I get a "time remaining: 00:00" message, so I don't know if it's actually doing something. Does encryption even work with this ROM?
[Xiaomi Mi Pad 4 Questions & Answers] AndyYan:
I'm assuming no, since earlier NexusRunner already verified that the device won't even boot until encryption is disabled. Too bad if it's mandatory for what you do...
[Xiaomi Mi Pad 4 Questions & Answers] frandavid100:
Oh well :(

By the way, I've also started having another problem where, once the screen turns off and back on, there's no brightness at all. The screen is so dark that I can barely see anything, and only if there's a lot of light in the room.

I would swear that it worked fine before I edited build.prop, and the problem persists even if I wipe and reinstall LOS.

Has this happened to you guys?

EDIT: It seems that removing this line from build.prop fixes the issue: "persist.sys.qcom-brightness=4095"
[Xiaomi Mi Pad 4 Questions & Answers] AndyYan:
Thing is, that line is needed for brightness change to work properly... And what you described didn't happen to me either at least up till today.
[Xiaomi Mi Pad 4 Questions & Answers] frandavid100:
That's weird, because my tablet's brightness seems to work perfectly without the line.
[Xiaomi Mi Pad 4 Questions & Answers] NexusRunner:
I vaguely remember a time when encryption works... It stuck on that 00:00 message for a while then it's encrypted...

I think it's when I was installing official Resurrection Remix GSI, I flashed Magisk-v16.7.zip instead of Disable_DM-Verity_FEC_v1.zip and went on format /data in TWRP, then it's successfully encrypted on first boot. I always flash Disable_DM-Verity_FEC_v1.zip afterwards, because I hate that wait time, and sometimes I don't want to install magisk right away.

So yes I think encryption is working. YMMV, but I even guess your pad is already encrypted.
[Xiaomi Mi Pad 4 Questions & Answers] AndyYan:
Drag the brightness slider - does it not mess up the brightness and make it jump all around?
[Xiaomi Mi Pad 4 Questions & Answers] frandavid100:
Nope. It works fine. If I drag it right, the brightness goes up. If I drag it left, the brightness goes down.

Oh, by the way. I've noticed double tap to wake doesn't work either... is there a build.prop line for that? Is the tablet able to do it?
[Xiaomi Mi Pad 4 Questions & Answers] Tysovwik:
Deleted

---------- Post added at 08:51 AM ---------- Previous post was at 08:42 AM ----------

What do you think, when kernel source will be open by xiaomi to this device (both WiFi and LTE version)? 1-3-6 months? Or it could be never happen?
[Xiaomi Mi Pad 4 Questions & Answers] rioru:
God, this scrolling tearing is annoying. Could it be due to CPU governor switching frequences when touching the screen and slow scrolling? I don't know...
[Xiaomi Mi Pad 4 Questions & Answers] AndyYan:
They vowed to do it within 3 months.
[Xiaomi Mi Pad 4 Questions & Answers] rioru:
Do you guys know how to display every CPU core load on the overlay?
[Xiaomi Mi Pad 4 Questions & Answers] AndyYan:
I just tried removing that line on my own device and the result is the screen flashes heavily while I drag the slider, plus the end brightness isn't proportional to where the slider it, same as what NexusRunner described.

DT2W is a feature I never use, and one that's often missing on ROMs for other devices as well, so I just didn't think of it...

Try PerfMon, though I heard you'd also have to disable SELinux for it to work.

I don't sense screen tearing here. Do you mean on MIUI or on GSI?
[Xiaomi Mi Pad 4 Questions & Answers] frandavid100:
So we have the same device, running the same ROM, but tweaking the same line will cause wildly different results from each other?

That's so weird. Any idea why it might be?

From what I've seen, the device has it. Should I ask in the ROM's thread, in case it's simply not implemented?
[Xiaomi Mi Pad 4 Questions & Answers] AndyYan:
I know this device has it, I just didn't even think of touching it.

On other devices I've used it requires device-specific effort to fix so I doubt it. Definitely ask PHH about it if you feel necessary though, any info is better than no info.
[Xiaomi Mi Pad 4 Questions & Answers] rioru:
No, I'm on MIUI. And not screen tearing, but scrolling tearing or clutter or jitter or whatever you call it, I showed the video of the spikes earlier. I wonder maybe it has to do with CPU governor which changes frequencies too often.

I'm kinda newbie in Android development stuff so I have no idea what this SELinux thing is, but I still haven't unlocked my bootstrap loader yet, so I can't do that anyway.
[Xiaomi Mi Pad 4 Questions & Answers] AndyYan:
Thing is since GSIs are using the stock kernel the governors and stuff will be the same. I'd put the blame on MIUI's own bloat.
[Xiaomi Mi Pad 4 Questions & Answers] frandavid100:
Thanks, I just asked. I'll keep you guys informed if I learn something new, in case someone wants to use it.

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

Oh, by the way. Since you guys mentioned SELinux. Is there any way to disable the Trust notification you get every time you reboot, about having reduced security?
[Xiaomi Mi Pad 4 Questions & Answers] AndyYan:
Swipe the notification halfway to the right, tap the gear icon and disable that notification. Works for any other notif you want gone too.
[Xiaomi Mi Pad 4 Questions & Answers] bradputt:
i finally unlocked my bootloader today, played with flashing rom the whole day.....

installed phh's LOS treble rom, symptoms are the same as what you guys are reporting (flickering), wifi needs to manual connect every reboot.

installed phh's AOSP treble rom, no problem with screen, wifi connects every reboot.

but i can't connect to PC when i select mount as storage.

anyone with the same problem?
[Xiaomi Mi Pad 4 Questions & Answers] rioru:
Is there a way to return from GSI back to MIUI? And how do you do that?
[Xiaomi Mi Pad 4 Questions & Answers] AndyYan:
Just flash a full ROM from fastboot.

Theoretically you only need to flash the partitions you touched (system, vendor, boot, etc.), but since the user data isn't compatible anyway, it doesn't save you much trouble.
[Xiaomi Mi Pad 4 Questions & Answers] rioru:
Thanks, and where can I get the full ROM?
[Xiaomi Mi Pad 4 Questions & Answers] AndyYan:
IIRC there's no international release yet? Get the Chinese releases here.

"开发版" = Beta, "卡刷包" = recovery-flashable (not sure how well TWRP handles it), and "线刷包" = fastboot-flashable.

That does remind me though, you can try flashing that recovery-flashable package via TWRP, but since during flashing GSI you will move to unencrypted data, it'll stay that way unless you format /data. Not sure what implications this might have for MIUI.
[Xiaomi Mi Pad 4 Questions & Answers] AndyYan:
Oh yeah, something just came on my mind - add this to build.prop to enable lockscreen rotation:

LOS does have a built-in toggle for lockscreen rotation, but thing is, it only works when auto-rotation is ON. When you want to *lock* the entire device in landscape, the lockscreen will stubbornly stay portrait. The line above fixes that. I use landscape view a lot so I find this very helpful.
[Xiaomi Mi Pad 4 Questions & Answers] frandavid100:
Ok, after using this GSI (and others) for a couple days, I'm getting the following bugs:

1. Double tap to wake and pick up to wake don't work.

2. Encryption doesn't work either.

3. MTP doesn't work. When I plug the tablet to my PC, it doesn't see it.

4. The notification LED doesn't work.

I've asked and (from what I've heard) 1 and 4 do work on other Xiaomi devices, but I don't know about 2 and 3.

I'm not sure what to do, I'd really like to get those working.
[Xiaomi Mi Pad 4 Questions & Answers] AndyYan:
MTP doesn't always work on first try but it does work, else it would be a PITA to move files (via TWRP).

To me the GSI experience is just right, with just enough core features working and others worked around (brightness, clock) or have negligible impact (DT2W). I even see the lack of encryption as a perk. Turns out I'm the minority here...
[Xiaomi Mi Pad 4 Questions & Answers] bradputt:
MTP works? How come i can't get it to work on my pad?

Yes it's very troublesome to boot into recovery everytime i want to transfer files into the internal storage.

Is your external storage working too?
[Xiaomi Mi Pad 4 Questions & Answers] AndyYan:
It does, though as I said not always on 1st try.

Sometimes weirdly it'd default to "supply power", and when that happens I would have to switch mode multiple times (and probably toggle USB debugging) to make the storage show up on PC.

I don't have an SD card on hand; NexusRunner said that SD card works but exFAT is not supported.
[Xiaomi Mi Pad 4 Questions & Answers] Ralfioni:
Why not use ADB? MTP is a slow a$$ buggy protocol anyways.
[Xiaomi Mi Pad 4 Questions & Answers] Ralfioni:
Guys, after more than 100 replies in this thread, I feel like keeping a summary of the findings won't hurt. I've updated the OP. Please let me know if I'm missing anything.
[Xiaomi Mi Pad 4 Questions & Answers] stefanero313:
Did you guys flash vbmeta.img aswell?

Also no matter what I do, I usually end up with a bootloop. I installed AOSP treple and then Lineage .. :(

I downloaded the version for Slot A only, and flashed it via TWRP, flashed the no-verify zip mentioned in first post - no luck...
[Xiaomi Mi Pad 4 Questions & Answers] AndyYan:
I was feeling adventurous and tried the ported Android P GSI, but that didn't boot, and believe me I've tried it on another device (Mix 2) so I know the steps. Just putting this here so others get the idea.

Also [MENTION=3388356]Ralfioni[/MENTION] in your summary the brightness prop setting can also be put into build.prop:
[Xiaomi Mi Pad 4 Questions & Answers] Ralfioni:
You formatted /data and flashed "Universal DM-Verity and ForceEncrypt Disabler"?

Thanks, I changed the bullet so it becomes more clear.
[Xiaomi Mi Pad 4 Questions & Answers] AndyYan:
Sure I did. It boots halfway (brightness/LED initialized), looping at the Google logo.
[Xiaomi Mi Pad 4 Questions & Answers] Ralfioni:
Regarding adaptive brightness, has anyone tried this?

https://xdaforums.com/project-trebl.../overlay-enable-night-light-adaptive-t3741965
[Xiaomi Mi Pad 4 Questions & Answers] Ralfioni:
Which GSIs have you guys been testing? The phh builds seem to be rather outdated.

RR Official (July 23): https://xdaforums.com/project-trebl...pment/gsi-resurrection-remix-o-6-1-0-t3811299

RR phh (June 28): https://xdaforums.com/project-trebl...opment/resurrection-remix-phh-treble-t3767688

Pixel Experience Official (July 14): https://xdaforums.com/project-trebl...e-development/8-1-0-pixel-experience-t3796011

AOSP phh (July 3): https://xdaforums.com/project-trebl...-development/experimental-phh-treble-t3709659

LOS phh (June 27): https://xdaforums.com/project-treble/trebleenabled-device-development/lineage-phh-treble-t3767690
[Xiaomi Mi Pad 4 Questions & Answers] AndyYan:
I build my own image (small changes on top PHH's LOS), but if you look at the PHH repos there haven't been much changes recently so June or July is perfectly ok.
[Xiaomi Mi Pad 4 Questions & Answers] Ralfioni:
But what about the changes in RR and LOS? They change stuff every day, don't they?
[Xiaomi Mi Pad 4 Questions & Answers] AndyYan:
Userspace feature changes/additions are few and far between if you ask me...
[Xiaomi Mi Pad 4 Questions & Answers] Ralfioni:
Really? I'm not a dev, but the change log indicates lots of activity - even if you disregard the device specific changes: https://www.lineageoslog.com/15.1
[Xiaomi Mi Pad 4 Questions & Answers] AndyYan:
I flipped through some pages, it's like 90% of these commits belong to some sort of device related repo (device_/kernel_/hardware_)... Those that aren't device-specific are mostly under-the-hood and can't be noticed by users either.
[Xiaomi Mi Pad 4 Questions & Answers] Xelfmade:
I agree with you. The daily changes aren't so important. A build from June/July is perfectly fine and more than any Samsung Smartphone ever gets with software updates. ?
[Xiaomi Mi Pad 4 Questions & Answers] ermacwins:
Any idea why it didnt work?
[Xiaomi Mi Pad 4 Questions & Answers] ferdinandpc:
Hi, I installed the RR GSI firm and did the build.prop changes but rotation doesn't run.
[Xiaomi Mi Pad 4 Questions & Answers] stefanero313:
Hi,

maybe some of you folks also run in this stupid problem when magisk is installed and CTS fails, this solves it, just thought I share, because I was going nuts for the last days and flashed every treble rom I found :-S

https://github.com/phhusson/treble_experimentations/issues/116

BR
[Xiaomi Mi Pad 4 Questions & Answers] GBouerat:
After flashing a GSI image from TWRP,

TWRP said "no os installed" when I reboot my Mi Pad 4, is it normal ?

And my device is stuck on Android Logo (or lineage OS) when booting ...

What can I do to repair it and how ? thx

EDIT : I finally succeeded
[Xiaomi Mi Pad 4 Questions & Answers] pieriv59:
How did you do ?
[Xiaomi Mi Pad 4 Questions & Answers] pieriv59:
Can someone explain me how to install RR Rom step by step from the beginning. Many thanks.
[Xiaomi Mi Pad 4 Questions & Answers] Imoseyon:
Flashed Pixel Experience. Thanks to the OP, almost everything works. So far the only thing that doesn't work is Camera. I miss face unlock from Miui but other than that no complaints using Treble/AOSP.

EDIT: never mind, the camera works fine now. Might be because i enabled Camera2 API, not sure.
[Xiaomi Mi Pad 4 Questions & Answers] Tysovwik:
Double tap to wake works ?

Magnet wake up works (original case) ?
[Xiaomi Mi Pad 4 Questions & Answers] bradputt:
Wow Imoseyon, any kernel for this device in the future?

I loved your leankernel .
[Xiaomi Mi Pad 4 Questions & Answers] arkansis:
Please, make a custom rom thread in dev section with attached files.
[Xiaomi Mi Pad 4 Questions & Answers] P.Kosunen:
https://github.com/MiCode/Xiaomi_Kernel_OpenSource/issues/925

Kernel sources coming within month, no releases before that i assume.
[Xiaomi Mi Pad 4 Questions & Answers] Imoseyon:
double tap to wake does not work. Sorry i don't have a case. Also brightness control is wonky as reported earlier.

Haha thanks, it's been years since I did any kernel development. Just too busy with work and family...
[Xiaomi Mi Pad 4 Questions & Answers] bradputt:
Hey no problem man, of course family comes first !
[Xiaomi Mi Pad 4 Questions & Answers] GhostInAbox:
Is it possible to pass safety net using lineage?
[Xiaomi Mi Pad 4 Questions & Answers] stefanero313:
https://github.com/phhusson/treble_experimentations/issues/116

this is needed on any GSI
[Xiaomi Mi Pad 4 Questions & Answers] ph0t0gr4ph3r:
Could we get something step by step put together for the less adventurous ??
[Xiaomi Mi Pad 4 Questions & Answers] Hero2457:
I know this is unrelated to the thread's topic, but did anyone buy their tablet from HK Goldway on AliExpress? I wanna buy the tablet from them but I want to be sure I'll be able to unlock the bootloader and flash the Chinese ROM over it. I've asked them if they'd be willing to leave the Chinese ROM on it but they've only told me that the tablet will come with their custom ROM.
[Xiaomi Mi Pad 4 Questions & Answers] GBouerat:
I started a little installation guide : https://github.com/GBouerat/xiaomi_mi_pad_4
[Xiaomi Mi Pad 4 Questions & Answers] kheradon59:
Superb GBouerat,

Is it possible to add in the guide the way to modify the /system/build.prop and /vendor/build.prop
[Xiaomi Mi Pad 4 Questions & Answers] P4M30:
I ordered from HK goldway. It arrived with unlocked bootloader and mokee ROM. No big deal, I just downloaded the official ROM and flashed it myself. Who is crazy enough to use a custom ROM that they didn't at least install themselves?
[Xiaomi Mi Pad 4 Questions & Answers] Imoseyon:
Just wanted to share the /vendor/build.prop entries that seem to work well for me with the Treble ROMs.

ro.sf.lcd_density=320

ro.build.characteristics=tablet

persist.camera.HAL3.enabled=1

persist.sys.qcom-brightness=4095

No major surprises here since most were called out individually in the first post, but now they're easy to copy and paste. :)
[Xiaomi Mi Pad 4 Questions & Answers] NexusRunner:
For HDR+, which GCam mod are you using? I installed Arnova's v7beta9 and it's working fine. Also tried Arnova's v8.1 v8.2 with no luck, got fc on app start.

Just in case someone likes using tablet in dark like I do. The minimum brightness on GSI is a lot higher than stock MIUI. So I personally set persist.sys.qcom-brightness to 4256, this way I can get some lower than lowest brightness when I slide to right beyond the brightest setting. I'm also using an app called "brightness tweak" to manually adjust minimum brightness.
[Xiaomi Mi Pad 4 Questions & Answers] rioru:
Does anyone know what's all the fuss about the so called "AntiRollBack" issue (like here https://xdaforums.com/redmi-note-5-pro/how-to/faq-questions-answered-t3816185) and does it affect Xiaomi Mi Pad4?

After typing the

fastboot getvar anti

command I got

anti: 1.

Any thoughts on that?
[Xiaomi Mi Pad 4 Questions & Answers] Hero2457:
Anyone test the Pie GSI? Only one person has tested it https://xdaforums.com/project-treble/trebleenabled-device-development/aosp-9-0-phh-treble-t3831915
[Xiaomi Mi Pad 4 Questions & Answers] AndyYan:
Make that 2 ( [MENTION=1942309]frandavid100[/MENTION] ). Unfortunately if WiFi's borked then it's of no practical value.

From what I've read from the Note 5 forums, ARB actually affects us AOSP-based ROM users very lightly, since we only need to touch the firmware once in a while, and usually update (instead of downgrade). It's the MIUI gang that are screwed hard, since they can't go back if a new build isn't satisfactory.
[Xiaomi Mi Pad 4 Questions & Answers] frandavid100:
It's working now, tho. It's a pretty useable ROM actually.
[Xiaomi Mi Pad 4 Questions & Answers] dopefish1337:
Something else broken as well? Did you install it on your mi pad4?
[Xiaomi Mi Pad 4 Questions & Answers] frandavid100:
Nothing show stopping, at least nothing that I've noticed.
[Xiaomi Mi Pad 4 Questions & Answers] AndyYan:
Really? Cool, basically preps us for other GSIs to come. AOSP is too bare to my (and probably many others') taste.
[Xiaomi Mi Pad 4 Questions & Answers] trozmagon:
Anyone else having problem with GSI locking up shortly after boot? I haven't been able to perform prop edits because of it.

Edit: nevermind, I re-flashed everything last night and now it's blistering fast with no issues!
[Xiaomi Mi Pad 4 Questions & Answers] kheradon59:
Hi,

I have a strange behaviour when flashing treble image.

When I launch the Disable_Dm-Verity_FEC the first time, I have an error. I have to launch it a second time to succeed.

Is someone had the same thing ?
[Xiaomi Mi Pad 4 Questions & Answers] Grici2701:
Which GSI do you guys recommend? I think Pixel Experience would be a nice choice. Can somebody share his findings with it? Thanks!
[Xiaomi Mi Pad 4 Questions & Answers] Goldi6:
I want to unlock bootloader on MiPad 4 but I have to wait 720 hours? This is one month, is this possible? I thought 3 days or 2 weeks. But one month?
[Huawei P20 Questions & Answers] AlexCleric:
Hi. :)

My question is are there any custom rom available for P20? If yes, where to download from and how to install?
[Huawei P20 Questions & Answers] g_oral:
There is no and this month is the last when you can get bootloader unlock key from huawei. The comunity is dead
[Huawei P20 Questions & Answers] Kaherdin:
Treble will atleast make it possible to flash custom ROMs, if you get the unlock code in time
[Xperia Z4/Z3+ Q&A, Help & Troubleshooting] gile78-gaga89:
how to fix google account???telephone is factory reset

problem its resolved;

https://www.youtube.com/watch?reload=9&v=d_-k5UbQ8nc
[Moto Z2 Play  Questions & Answers] peppet:
Hello, i've a strange issue in oreo. I rooted phone with magisk, all' seems ok but, if i try to delete system apps by file manager or recovery It seems to be impossibile. Another issue using adaway. It can't write host file on etc. Any other with this problem? Thanks

http://ilmiodiarioprivato.altervista.org
[Moto Z2 Play  Questions & Answers] lMendi:
Yup

Yes, for some reason many users reports the same problem, after a lot of research i found a method to root and enable /system modifications:

This method works with April and June patch, need a clean oreo installation.

• Flash or boot TWRP.

• Backup Boot and System.

• *IMMEDIATELY* restore Boot and System.

• Flash Magisk (v16) normally.

• Reboot

Done.

No bootloop, no commands, just that.

TWRP I used:

https://xdaforums.com/showpost.php?p=74758587&postcount=1

Magisk:

https://xdaforums.com/showpost.php?p=68966662&postcount=1
[Moto Z2 Play  Questions & Answers] The Analog Kid:
Which Z2 Play version was this method used for?

Also... No wipe, format data after TWRP install? As I can see this is pretty much the [MENTION=3813670]Junior Passos[/MENTION] 'method' (call it 'method' cause steps have to be compiled throughout his TWRP thread) save for the 'format data' step. Did you missed formatting data, or it was actually not required for you?
[Moto Z2 Play  Questions & Answers] The Analog Kid:
Just for the record... Did you have actually performed the method suggested here by [MENTION=2175824]imend[/MENTION]i? Was it successful? Any issues found? Problem solved? You could make a more useful thread out of this for everyone, by also posting your following experience (after a given suggestion or solution) and not just your problem. This is just a... Suggestion.
[Moto Z2 Play  Questions & Answers] peppet:
Sorry, Yes i've the same issue but i still don't perform the solution but, when i'll flash a new rom i'll try and report

http://ilmiodiarioprivato.altervista.org
[Android Q&A, Help & Troubleshooting] XtraWater:
Hello guys

I'm hope it's ok to ask my question. Otherwise please forgive me my ignorance.

I would like to install a custom rom to my old Galaxy S5 device. Its' the intl. version. I experimented with customs rom before, but finally ended up with the stock rom.

It should be stable, autoupdate and Google Play should work. Any suggestions?

Also it would be great when there is a new android version. Right now I'm on the stock rom 6.01. Since I have to do a hard reset anyway I would use a custom rom. Hard reset is actually not correct. Since it's rooted I guess it's safer to install a rom, instead of to do a reset.

Thank you.

Edit: I tried resurrection earlier this Year. Autoupdate wasn't possible and Google Play (Gapps package) didn't work. Google Play crashed permanently.
[Android Q&A, Help & Troubleshooting] XtraWater:
Nobody?
[Verizon LG V10] RJamesS:
Any progress

Different circumstances but same problem with my lg g5....volume keys broke too.... Any progress or did u pull out the mortar?