yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] 9Lukas5:
Ok, tried it. But this only increased the file about 64MB and the camera is still not working :/

What else do I need?

- repo init

- the roomservice xml as shown before

- sync

- build

L
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] sabar_op:
Not sure... I build the rom wirh official lineage source...no customize except device, vendor and kernel as I mentioned before.
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] 9Lukas5:
Any chance it broke between your last build and my current attempts? 🤔

Just to be sure: you don't have any uncommitted/unpushed changes in the device repo's by any chance?

I'll redo my complete build setup now to be sure 🤷‍♂️
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] 9Lukas5:
@sabar_op I started the stock build now with the newly initialized build environment.

The PRODUCT_SOONG_NAMESPACES line on breakfast & brunch has the following content:

PRODUCT_SOONG_NAMESPACES=device/xiaomi/platina vendor/xiaomi/platina hardware/qcom-caf/msm8998 vendor/qcom/opensource/data-ipa-cfg-mgr-legacy-um vendor/qcom/opensource/dataservices

Is there anything else for you running breakfast?

L
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] 9Lukas5:
@sabar_op alright I'm giving up for today and setting up my device without a working camera for now, until we can pin-point the difference in my build-env.

I did now the following:

- repo init -u https://github.com/LineageOS/android.git -b lineage-20.0

- added the following as roomservice.xml to ./.repo/local_manifests:

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="sabarop" fetch="https://github.com/sabarop/" />
<remote name="pixelexperience-vendor" fetch="https://gitlab.pixelexperience.org/android/vendor-blobs/" revision="thirteen" />

<project name="device_xiaomi_platina" path="device/xiaomi/platina" remote="sabarop" revision="lineage-20" />
<project name="vendor_xiaomi_platina" path="vendor/xiaomi/platina" remote="sabarop" revision="13" />
<project name="kernel_xiaomi_sdm660_clover" path="kernel/xiaomi/platina" remote="sabarop" revision="lineage-20-4.4" />
<project name="vendor_xiaomi-firmware" path="vendor/xiaomi-firmware" remote="pixelexperience-vendor" />
</manifest>

- repo sync --force-sync

- export USE_CCACHE=1

- export CCACHE_EXEC=/usr/bin/ccache

- source build/envsetup.sh

- breakfast platina

- brunch platina

I don't know, either something broke since your last build or there's something I got wrong in my environment.

Are all my remotes, projects and revisions in my roomservice set exactly as in yours and I'm not missing an entry in mine?

L
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] sabar_op:
Everything looks good....should grab the log if camera issue is still persist.
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] 9Lukas5:
Ok, so I got a logcat from the dirty install as well as from the clean one now, opening OpenCamera set to CameraApi 2.

Both have the same null pointer crash:

Spoiler content hidden.

See the full logs for both attached, I cleared the logcat beforehand then started it, opened and closed the camera

L
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] sabar_op:
Can you send the log before the crash log occurred? Better to get log when the phone is booted up then directly open the cam app. So we can see what makes that crash. Send me through pm.
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] sptk523:
Mr, my phone cannot use Google service, play store,service framwork.

from XiaoMi8 Lite.Lineage20

please help my,thank!
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] Virtuo64:
Don't boot the System after flashing the ROM. You have to flash Gapps first, directly after flashing the ROM.

If you already booted System before flashing Gapps:

Reboot to your custom recovery

Wipe like you clean install (cache, dalvik, data, system, vendor)

Flash ROM zip

Format Data

Flash Gapps

Flash Magisk (optional, only if you want to be rooted)

Reboot system
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] sptk523:
先生，我的手机无法使用 Google 服务、Play 商店、服务框架。

来自小米8青春版.天堂20

请帮助我，谢谢！

I see,Thank you are reply.
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] 9Lukas5:
@sabar_op quick question about the change in this commit:

platina: WifiOverlay: Disable WPA2 -> WPA3 upgrade. · sabarop/device_xiaomi_platina@d64dfd8

Our device doesn't simply support sae. Change-Id: Ibf8b9e363b4677cf2ab9590cc2ea1ba2341e29ca

github.com

<!-- Enable WPA2 to WPA3 auto-upgrade -->
<bool translatable="false" name="config_wifiSaeUpgradeEnabled">false</bool>

Once that comes into the stable branch, will this only affect WPA2/3 mixed networks, or will it make WPA3/SAE completely unavailable for our device? 🤔

As it says autoUpgrade I hope it's the former?

L
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] sabar_op:
Not test it as it's sill wip...I follow what xiaomi sdm660 device did...
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] 9Lukas5:
Hm ok, so will have to see when it's ready^^

I'm running a WPA3/SAE-only Wifi so, I'll definitely notice right away, if SAE get's disabled globally for the device :p

L
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] sabar_op:
The wip is ready...you can build it...everything looks ok, except not test for WPA3/SAE.
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] 9Lukas5:
Hm, ok two things I discovered by now (unrelated of being on the build with or without the new changes):

Camera often just doesn't take the picture. It focuses, but on trying to capture it just doesn't

The screenshot Btn-combo of Power+VolDown stops working. Comes back after reboot, but couldn't identify when/what triggers it to stop working

L
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] Virtuo64:
Same Problem here with the initial build. I use GCam from store.
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] 9Lukas5:
A new update can be found here on Androidfilehost

This is built with the recent changes @sabar_op included to the device trees and the January security updates.

As mentioned before, issues are as said above.

Two small differences to @sabar_op's builds: I've included the iOS emojis in my builds and the Rom is MicroG-ready which shouldn't change anything for people not using it, but makes life a lot easier for those who do

L
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] 9Lukas5:
Hey @sabar_op I've tried to get a log when taking a picture it didn't capture it. Went in and out of the camera repeatedly until it finally worked. Got somewhat lengthy, but I hope there's a pattern recognizable.

L
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] sabar_op:
Recently I update the device tree...let see whether it fix that issue.
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] 9Lukas5:
Hey @ all, I wanted to wait for a confirmation from sabar if I should leave another hint here, but seems he's busy.

For those using the build from the 11th January I uploaded: Could you check if you can be called?

This build was done with the newer device tree from sabar which seemed to work fine, until I discovered I couldn't get incoming calls. So, if you have the same issue you should grab the newest build 😬

The build from the 15th January is using the old device tree again, which also includes the mentioned commit from above.

In my experience this commit didn't make the camera issue go away, but a lot better.

L
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] Virtuo64:
Couldn't get calls too. Luckily you noticed. On your build from 15th January everything seems fine. Thanks!
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] therealprof:
That all sounds very promising. Are there plans to take over the maintainership of the official platina build?
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] oldfield:
hi, I think I have a solution to the camera not working. I tested on google camera and it works all weekend. I don't know how it will be in English but you have to go to the application settings in the permissions and allow "Modify system settings". It works for me :)
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] LKJEFoi234:
Finally got this installed. Adding instructions for my future use (or others).

Unlock Bootloader. You need to go to Xiaomi site and register an account, download software to PC and run it for it to unlock.

Dev Options --> USB Debugging, plus Mi Unlock option (log in with Xiaomi account, enable LTE data, etc.)

Flash twrp 3.2 (other versions weren't working for me). You might need to unplug all USB ports and try other ports if you are getting a 'write failed' error.

Boot to twrp, factory reset. Flash lineageos, magisk, gapps (BitGapps worked for me).

That's it. I had to install stock ROM because I messed up somewhere. But the above steps worked (didn't have to unlock bootloader again). Haven't tested anything, but very nice look and feel. I also installed Qualcomm and ADB USB drivers from some Xiaomi site, but probably no necessary (thought this would help for 'write fail' error when trying to flash twrp).
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] 9Lukas5:
The camera is working fine in the latest builds already as of my understanding and own experience. Preinstalled Camera App, OpenCamera (which I use) as well as other Apps incorporating camera functionality like messengers, QR-Code Apps, etc.

The issue I'm experiencing is that it doesn't always capture the picture if I press the shutter. So the question is: Did you ever experience it, that the camera tried but never actually took the picture with GCam?

Disclaimer: I'll sound very rude and direct now, so don't interpret too much into it. I'm german and we like to point out things rather directly instead of doing a lot of flower-power chit-chat around what buggs us^^

I know that the times when Members had to have at least 10 Posts on XDA globally before they even were able to post in threads of the development section are over and also that nearly no one really cares anymore, if the chatter going on in an development section thread is really development related.

But for heavens sake, could we at least please keep the stuff (directly) related to what a thread is about?

Having an unlocked bootloader is obviously a prerequisite to use the stuff offered here. Getting there is not in the support scope of this thread.

I appreciate that you wanted to archive what steps you took and make it accessible for others as well. No problem with that, just do us all a favor and find a fitting thread (or create a new one) in the Guides, News and Discussions Subforum of our device. That's what it is meant for.

L
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] LKJEFoi234:
My apologies. Thank you greatly for your developmental work on this. One issue I did come across from the OP instructions was the touchscreen not working with the twrp-3.7.0_12-0-platina.img file in the Downloads folder. So there was no way to 'swipe right to make modification'. Am I the only one that had that issue? Thanks again for your work on this project.

Edit: thanks so much @sabar_op for your development work. Apologies for filling up the thread with non-dev stuff.
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] 9Lukas5:
Just to not let any confusion come up: I'm also just a user in this thread^^

Sure, I have published my compiled builds of it lately, but the developer is sabar_op, who created the thread 👍

Seems so 🤔

For me the touch is working fine.

If you need more assistance on pinning down the issue you could drop me a private message (to keep the thread clean) with details on what you did by now and at which point exactly you're stuck.

L
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] sabar_op:
Thanks for the log... will see what can I to fix that issue...
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] panos196:
which gapps to install? I installed MindTheGapps
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] BakkaYU:
i've installed NikGapps
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] panos196:
NikGapps is better for mi 8 lite?
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] BakkaYU:
I don't know if it's the best, but I've used it with no problems.
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] 9Lukas5:
Hey all, in case I'll compile builds here and there again, what would you prefer emoji wise?

I started switching them back on Android 11 because I were missing some of the newer ones and took the chance to use the Apple ones as I thought they look overall a bit better.

But these were just my own private builds an I'm not feeling too strong about using the Apple ones atm, so what would you prefer to have built in?

Please leave a reaction on this post, let's say:

- :love: for the Google Emoji Font

- :ROFLMAO: for the Apple Emoji Font

See attached image for comparison:
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] lewismsc:
The camera crashes and stops working, please help, some solution
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] yerbakili:
+1
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] 9Lukas5:
My lights don't work, please come fix 🤠

But seriously: that's nowhere near a adequate bug report. Please, first try to narrow down when and under which circumstances the issue occurs. For the camera this e.g. means also testing maybe a few other Camera Apps as well, to make sure it's a general issue with the camera, not just with one specific camera app.

Then come here and provide information like:

- Which build you're running

- What camera App do you use

- Exact description of the issue

- Steps you take to reproduce it

For the camera: I regularly have the problem it doesn't take the picture when I press the shutter, so I have to close and reopen the camera a bunch of times, until it finally feels like taking the picture. But the preview itself and the camera overall is working fine.

This also isn't any news, but was discussed in this very thread already, so: Is your issue of "crashes and stops working" this, or is it something else?

Is it a permanent state or working fine until it sometime crashes and then stays broken until rebooted?

So, to sum it up again: Invest a little more time into own debugging/pinpointing and THEN be more specific in what you write here.

L
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] lewismsc:
Here is the explanation of the problem, on page 1 of this forum
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] 9Lukas5:
Ah, I see, alright 👍🏼

Hadn't on my mind that you're refering to a previous post of yours.

Looking through the posts on those 4 pages I can see the following:

- The stock camera app was discovered to have it's UI freezing often times.

- Third party camera apps where tried and found to have similar behavior

- The dev asked for a log multiple times

- It was tried if the newer device tree fixes it, but it didn't

Current state is (and hasn't changed anytime in the last weeks) that camera controls of various apps often freeze on taking a picture and you'll have to close & reopen the camera a bunch of times until it finally works.

Also, once the camera takes pictures, it does so fine multiple times for me until I close it again. I can reproduce this behavior with the stock camera app, OpenCamera and also in Signal.

That means your issue is already known with no quick fix for it in sight. But with close&reopen trial&error it's atleast possible to take pictures anyways.

The dev is currently working hard on bringing our device up to a newer kernel version. Once that's done these things can be reevaluated. Until then I'm afraid the current state is what it is and likely won't change^^

L
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] lewismsc:
Thanks my friend, I'll be attentive
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] LKJEFoi234:
Just an FYI, third party camera apps work for taking pictures. Jitsi Meet and other 3rd party messaging apps work for video calls.
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] 9Lukas5:
Hey folks,

Monthly security patches got merged to lineage-20, new build is up.

Switched back to the original Android Emojis.

Upstream-Changelog of general LineageOS

Download

L
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] LKJEFoi234:
Will this fix the camera issue? Also the folder says "MicroG Ready". Will the lineage-20.0-20230213-UNOFFICIAL-platina.zip file change to the MicroG version? Thank you
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] 9Lukas5:
I would have mentioned if there would be any chance the camera behavior changed, sorry.

It's just what the update notice said: the upstream LineageOS changes including the February Security Patch Level.

As for being MicroG ready: I mentioned that when I linked to the first build I uploaded here already: it shouldn't have any impact on users not interested in using MicroG, but makes it easily possible for those who are.

The effect you could see is if you have a look into Android permission mangement, you'll notice there is a new possible permission called Signature Spoofing.

MicroG is a drop-in replacement for the Google Services, aimed to replicate as many interfaces as possible in the most data protective way possible. This works for many things, but not all. So if you want to use it, be prepared that you'll encounter apps which won't work anymore with the real Google services.

If you want to know more, have a look here: MicroG Website

L
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] LKJEFoi234:
Awesome, thank you. I already installed BitGapps, not sure how I can remove it. But sounds like MicroG is definitely something I would use in the future.
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] 9Lukas5:
Yeah normally (or at least in my experience) switching to MicroG involves a factory reset, because I always had to make sure that MicroG is installed and fully working before I started installing other Apps, which register for Push-Notifications.

But: This is possibly just a bad experience from the past on my side?^^ I don't know.

Theoretically you could wipe the /system partition, reinstall the Rom, Root, etc., setup MicroG and see if after a day or two the important apps re-registered the Push-Notifications through MicroG 🤷‍♂️

If you want more details on my setup, you can reach out via private message 👋

L
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] yerbakili:
https://sourceforge.net/projects/xiaomi-platina/files/lineage-20.0-20230224-UNOFFICIAL-platina.zip/download

Thanks for the new version. Will you share the update notes?
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] yerbakili:
When I make a phone call, the loudspeaker is turned on directly. My voice does not go the other way. I can't hear anything from the handset.
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] sabar_op:
Changelog:

- February ASB update

- Latest update linegae source

- Fix camera sepolicy.
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] sabar_op:
Does it occurs in previous build?
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] yerbakili:
No, it happens with the last update you released. I also did a clean install, the problem persists.
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] sabar_op:
Uploaded experimental rom using 4.19 kernel with permissive mode, all hardware should work properly. Clean flash is always recommended. If anyone willing to try it and report back whats not working, please let me know.
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] lewismsc:
good, install the rom rom using 4.19 kernel, first error: it does not recognize the sd card, nor in recovery mode, and the camera still does not work
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] sabar_op:
Didn't test for sdcard...

Camera for now is work only for video recording... Use camera app in my sf will work taking a picture.
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] sabar_op:
Latest update : fix camera issue.
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] skipper2342:
Still doesn't work in latest 20230307 build😢, but camera works fine(y)
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] 9Lukas5:
Hey, just to clarify for me if the below is the behaviour you get on the 07th March build:

If you are in a call, the user interface shows the the speaker is disabled, but the sound comes actually from the bottom speaker.

Also the other party can't hear anything you say.

Once you enable the speaker in the dialer UI, the volume goes down a bit, but the sound keeps coming from the bottom speaker, but now the other party can hear you.

L
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] skipper2342:
Yes, this is exactly the behavior on the 20230307 build :confused: (and previous ones too)
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] sabar_op:
Does it occur only for phone dial or it happen for other app call as well?
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] yerbakili:
The same is true for Whatsapp.
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] skipper2342:
Other app call behave the same, I've even tested this in Motorola MyUI5 Dialer (Magisk module):rolleyes:
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] LKJEFoi234:
Wow, wtf did I do wrong? I could not install the latest update from TWRP (showed 0 mb internal storage and SD), so I did ADB Sideload. Now it only boots to TWRP lol.

Edit: I had TWRP 3.2.3-0 installed. Then I installed 3.7 from the OP and now the touchscreen doesn't work. Getting ready to smash this pos with a hammer. FML

Edit2: Here is the full log from (now trying PitchBlack Recovery) recovery when trying to install latest update. I get basically the same log when trying to install other versions now:

Count not mount /data and unable to find crypto footer.
Failed to mount '/data' (Invalid argument)
Unable to recreated /data/media folder.
Updating partition details...
Failed to mount '/data' (Invalid argument)
...done
Unable to mount storage
Failed to mount '/data' (Invalid arguement)
****************************************
PitchBlack Recovery: Welcome! ^_^
Maintained by PBRP Team
****************************************
Full SElinux support is present.
Unable to mount /data/media/PBRP/ .twrps
Encryption Status : unencrypted
Starting ADB sideload feature...
Installing zip file '/sideload/package.zip'
Detecting Current Package
- Detected Standard Package
Support MIUI Incremental package status: Disabled
Flashing MIUI V12.0.3.QDTMIXW firmware...
Target: Xiomi/platina/planina:10/QKQ1.190910.002/
V12.0.3.0.QDTMIXW:user/release-keys
Patching system image unconditionally...
Patching vendor image unconditionally...
*************************
Magisk addon.d failed
*************************
! Cannot find Magisk binaries - was data wiped or not decrypted?
! Relash OTA from decrypted recovery or reflash Magisk
script succeeded: result was [1.00000]
Formatting Cache using make_ext4fs...
failed to mount '/data' (Invallid argument)

Edit3: Well, I ended up doing a damn reformat. Now it installed fine. When will I frigin learn to backup prior to do anything? Lost everything again, but who cares?

Edit4: Touchscreen is not working. Yup, grabbing a damn hammer now.
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] sabar_op:
Thanks...I will switch my whatsapp to this device for testing purpose...

Can you try this config? Copy and replace these 2 files into vendor/etc (root required), reboot and please test the audio call.
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] sabar_op:
Let try above (possible) fix.
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] 9Lukas5:
Spoiler content hidden.

Maybe a warning would be good here: The encryption of the 4.4 and 4.19 kernel are incompatible with each other.

So, you can flash a 4.19 build over the 4.4 build, but it won't boot anymore and throw you into a recovery TWRP session.

To recover from there, you'll have to temporarily boot a recovery with working Sideload and reflash the latest 4.4 build, which is compatible with the existing encryption.

L
[Xiaomi Mi 8 Lite ROMs, Kernels, Recoveries, & Othe] sabar_op:
As my previous post...clean flash is always recommended and it means you will loose your data to do clean flash.

Touchscreen is working ok in twrp 3.7 and the rom.