yashsingh1/xdaforums huggingface dataset:
[Microsoft Surface Duo Guides, News, & Discussion] OneMorePhoneUser:
Maybe something is possible in EDL mode with QFIL tool?
[Microsoft Surface Duo Guides, News, & Discussion] Strokln:
I had a similar error too but all partitions were wiped, I created 5 partitions from the partition recovery guide.

mkpart ssd 6s 7s

mkpart persist ext4 8s 8199s

mkpart metadata ext4 8200s 12295s

mkpart frp 12296s 12423s

mkpart misc 12424s 12679s

mkpart userdata ext4 51.9MB 240GB

logout

mke2fs -t ext4 /dev/block/sda6

exit

Flash to 94%, firmware works but the phone does not see sensors like accelerometer, proximity sensor.

Where can i find a solution
[Microsoft Surface Duo Guides, News, & Discussion] linlin2az:
https://www.coolapk.com/feed/40148034?shareKey=MWRiM2ViZjE2Mzk1NjRlOWQyOTY~&shareUid=362792&shareFrom=com.coolapk.market_12.5.4
[Microsoft Surface Duo Guides, News, & Discussion] linlin2az:
persist.img - 蓝奏云

文件大小：32.0 M|

wwc.lanzouw.com
[Microsoft Surface Duo Guides, News, & Discussion] linlin2az:
数据恢复软件，硬盘分区工具，系统备份软件 - DiskGenius官方网站

DiskGenius是专家级数据恢复软件，集数据恢复、硬盘分区、系统备份还原等多种功能于一身的超级工具软件

www.diskgenius.cn
[Microsoft Surface Duo Guides, News, & Discussion] st3wart:
Can someone please make a flash_all partitions file? My duo has been wiped of all partitions. I cannot get into recovery mode. Only bootloader. If I knew how I would to try it out. Or if anyone has any other suggestions.
[Microsoft Surface Duo Guides, News, & Discussion] itzParsaYC:
You can only use the edl mode.

Open the phone and short the two test points on motherboard to get into edl mode then flash the phone with tools
[Microsoft Surface Duo Guides, News, & Discussion] st3wart:
What tools?
[Microsoft Surface Duo Guides, News, & Discussion] itzParsaYC:
Can be any tools, you can find these on xda
[Microsoft Surface Duo Guides, News, & Discussion] TechX1991:
EDL files are not available for the surface duo. You'd have to hope to somehow get into twrp and create the partitions manually with diskpart
[Microsoft Surface Duo Guides, News, & Discussion] itzParsaYC:
what about auth flash?
[Introductions] Gamal Nasser:
Greetings you all.

i'm a new member of the plateform.

i'm from Cameroon.

I'm presently using a Huawey phone. and it's with the help of some members that i'm now really enjoyed my device.

02 weeks ago, i bought the phone (from Germany) with GMS already installed. but i mistakenly deleted some apps, making the GMS not to operate again. So in my research of solutions, i have to follow this page. But i couldn't really understand all what was explained. Now that i found a solution with @badmania98 , I am happy to be part of the family.

Thanks to the family for the great work.

good to know that there a place where you can have solutions when you face some issues.
[Introductions] galaxys:
Welcome to XDA and enjoy the forums! 🙂📱💻⌚

Cheers
[Introductions] Gamal Nasser:
THANKS
[Samsung Galaxy A30s Questions & Answers] vicmod:
hi guys, please help me. I first installed TWRP 3.4.0 and it worked fine, then I updated it to 3.5.1 via download mode and now it freezes and reboots after a minute or so that it's on, making it impossible for me to flash anything. do you know how to fix it? thx in advance.
[Samsung Galaxy A30s Questions & Answers] Jatin Verma x821:
just flash one of the older version and use it.
[Samsung Galaxy A30s Questions & Answers] vicmod:
well I could but I wanted to install pixel experience 12 and the guy who posted the thread about it said that the version of TWRP must be 3.5.1
[Samsung Galaxy A30s Questions & Answers] TimeSpy:
I ran a couple of roms on the older version just fine i later updated to the 3.5.1, did u make sure to flash via Odin to the AP slot also where did u download the 3.5.1 twrp
[Samsung Galaxy A30s Questions & Answers] vicmod:
yes i downloaded it via odin in the ap slot. maybe it's the website where i downloaded it, i don't remember if it was media fire but it's not the official TWRP website
[Samsung Galaxy A30s Questions & Answers] TimeSpy:
Could be maybe try to re download make sure you have the correct Odin settings in place

https://xdaforums.com/t/twrp-updated-3-5-0-twrp-a30s-3-5-0-a307x-unnoficial.4152437/
[Samsung Galaxy A30s Questions & Answers] TimeSpy:
https://xdaforums.com/t/samsung-a30s-sm-a307fn-twrp-and-root.4304119/
[Samsung Galaxy A30s Questions & Answers] vicmod:
ok thanks :)
[Xiaomi 13] loipuru:
LineageOS is a free, community built, aftermarket firmware distribution of Android 13, which is designed to increase performance and reliability over stock Android for your device.

LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. You will need to provide your own Google Applications package (gapps). LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

Working:

Audio, Bluetooth

Ril

USB

NFC

Fingerprint

Camera

VOLTE

Not working / Partially :

Fast charging (i still looking on the issues)

perf (it's broken outside stock rom)

Notes :

this rom based on OS1.0.3.0.UMCMIXM

there's might be more bug, as this rom is considering on beta for now

Downloads : https://drive.google.com/file/d/1olGisYKtmHXlwHpRrYz_rvwMsaI9Mskb/view?usp=sharing

Donations : https://paypal.me/lolipuru

Device tree :

Kernel Source: https://github.com/lolipuru/kernel_xiaomi_sm8550-temp

Kernel Modules: https://github.com/lolipuru/kernel_xiaomi_sm8550-modules-temp

Devicetree (Dtbo): https://github.com/lolipuru/device_xiaomi_sm8550-devicetrees

Fuxi device tree : https://github.com/lolipuru/device_xiaomi_fuxi
[Xiaomi 13] ZG_DEV:
Niceeeeee 🎉🙂
[Xiaomi 13] Zel06:
Pro k60p wen? 😆
[Xiaomi 13] Cedric1223:
Great Job
[Xiaomi 13] ZhiYuanZhao:
Nice！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！
[Xiaomi 13] gatobolso1:
nice work!!

thank you!!
[Xiaomi 13] YXY0912:
Awesome ！
[Xiaomi 13] fermateus:
Thank you!
[Xiaomi 13] keaheng:
Great job.

Does miui camera app work?
[Xiaomi 13] Zel06:
Yes. It's says camera working
[Xiaomi 13] keaheng:
It might be aosp camera
[Xiaomi 13] loipuru:
aosp is working and gcam (might) be working

not miui camera, i don't have device to port it myself also
[Xiaomi 13] Aquariuslt:
Nice work,

I've flashed at 08-16, in my case below feature is not working

- bluetooth (manual open and then auto turn off)
[Xiaomi 13] loipuru:
aye, i haven't got this problem report to me so yea. will look later
[Xiaomi 13] Jellyshadow:
great!
[Xiaomi 13] Fsds:
我捐赠了 10 美元，希望对您有所帮助，非常感谢您开发小米 13 的 LOS

Mod Edit: English Translation Below

I donated $10, hope it helps, thank you very much for developing LOS for Mi 13
[Xiaomi 13] Fsds:
I flashed this rom and found the following issues:

1. At present, some software (for example: coolapk, wechet) cannot be opened normally, and the error display stops responding.

2. The system animation will be obviously stuck,

3. Fingerprint unlocking will only be recognized twice during the entry process. It cannot be recognized normally.

4. My bluetooth can be used normally.

5. The animation opened by the application will instantly cover the screen during the interruption process.

6. When using gapps, it cannot be flashed normally. (known issue)

7. When entering the secondary menu in the setting interface, a red border will appear around the screen.

During the two-hour experience, these are the main findings.
[Xiaomi 13] loipuru:
1. coolapk is well known issues, (i think it might related to model name where it look as fuxi, instead of actual chinese model name as 2211133C)

2.there's still a lot of prebuilt blobs, which is make boot time more longer than expected, (gonna take a while for that)

3. it is issues on fuxi blobs, which render fod_press to accept twice, before it return as 1 forever (looking for solution right now)

4. this have issues on some people, idk what the main cause but most of the issues are happened on newer firmware

5. im not sure on this tbh, maybe some video or images

6. this rom is erofs, which is slightly hard to install gapps

7. red border is come from eng build, which is normal

if possible, try open coolapk, qq or wechat and send me a logcat
[Xiaomi 13] NOSS8:
For gapps, try Magisk Gapps.
[Xiaomi 13] warlord2045:
Does esim works?
[Xiaomi 13] loipuru:
no, not in this build

already did implement but it have issues when you disable sim
[Xiaomi 13] warlord2045:
Looking to buy this phone as next primary phone due to the Leica lens camera.
[Xiaomi 13] AleRinaldi:
Woah, seems like I bought the right phone for one time if someone is already working on LineageOS, I always end up with unsupported devices 🥲

Keep up the great work! I'm really willing to use it as soon as it will be stable, since this is my only phone 👍
[Xiaomi 13] Yugu Jiang:
Hi,does this ROM can be applied on my Mi13?

Its MIUI version is TMCCNXM,I bought it in the local shop.

Are you Chinese?

Excuse me,how to flash it???

It made me mad

Hi,I just flashed it

I found that QQ can be oped normally but WeChat and Coolapk can't

Here's the screen shot :
[Xiaomi 13] ysy950803:
Nice!
[Xiaomi 13] Yugu Jiang:
Hi!New appertain!The app Taobao can't run normally as well!
[Xiaomi 13] ParaN3xus:
Great!
[Xiaomi 13] loipuru:
new build is on testing right now

fix bt, fingerprint, and camera on some cases.

also introduced esim

might release in few hours or before 1 sep (due to i having trip to go)
[Xiaomi 13] loipuru:
for chinese app most of them (as i talk with some chinese developer) it require selinux as enforcing which isn't possible for now. it need to rewrite from scratch
[Xiaomi 13] Pi.mp3:
You are doing god's work. Sent you 10€ as well, hope it helps. Do you think that at some point in the future it'll be possible to pass securitynet with this rom?
[Xiaomi 13] loipuru:
i don't know that snet still a thing on newer released devices, but sure. i might look at it later on
[Xiaomi 13] loipuru:
08/29 changlog:

- fixup bluetooth hals

- fixup camera crash on some people (gcam works fine)

- fixup some blobs, fp (udfps is working now), cleanup unused blobs from stock dump

- introduce eUICC (esim), it might be buggy but better than nothing for now

- this build shipped with gapps, non gapps will come later

new bug:

- fingerprint unlock on AOD is not working (fixed)

- IR sensor is not working (no one know how to fix it yet)

- keyguard margin is too low, which i'll fix later

ongoing issues:

- chinese app still not working (due to running as permissive)

- volte

for crowdfunding, it's 265.32 / 650$ now (thanks everyone for supporting this), if i can get device development will be a lot faster. (donation link is on my signature)
[Xiaomi 13] marcel112:
Guys, if the donation goal is reached the dev can work much faster to sort issues, and build bug free
[Xiaomi 13] Illenium1:
Thank u and Great work! I´m waiting for the stable version :)
[Xiaomi 13] jawadshahids1:
Bricked my FUXI CHINA. Now have No IMEI and Device is in boatloop. Can I get NANDROID backup from you?

Translation

把我的福熙中国变砖了(XIOAMI 13)。现在没有 IMEI，设备处于循环状态。我可以从你们那里得到 NANDROID 备份吗？
[Xiaomi 13] loipuru:
eh, what did you do first. (also, i don't have device)
[Xiaomi 13] loipuru:
new build this week will got delay for few days

moving to userdebug + enforcing now, and need to clean up few things

all chinese apps works fine, but no biometric auth yet
[Xiaomi 13] jawadshahids1:
deleted fsg, modem, modemst1 and modemst2 and flashed full rom without flashing backup of these partitions which corrupted NV data.
[Xiaomi 13] loipuru:
sad, i don't have device to send you that either.
[Xiaomi 13] YXY0912:
Can you open source the code repository? I can help you develop and debug
[Xiaomi 13] lanstang:
Holding my mi 13 and waiting
[Xiaomi 13] loipuru:
well, i missed for long

here's update : https://drive.google.com/drive/folders/1Li5TBokuiW6SNk7WYFJ6ZFquibtg9K5l?usp=sharing

changelog:

- move to userdebug, and selinux enforcing

- fixup auto-brightness (not perfect like PA, but good enough to use)

- ims / sms fixup (with full stock hals) volte is available now

- use custom vibration hal

- some minor improvement

bugs:

- brightness isn't perfect yet, and it reset during reboot

- do not disable esim, since it'll unable to re-enable again

- hotspot not working when wifi is on

- dolby atmos isn't working yet, need to rewrite sepolicy

for someone who want to donate for buying device: (466.08/650$)
[Xiaomi 13] davos2:
Thank you very much! I'll try a dirty flash tomorrow after I take a backup. (Already donated!). Cheers dave.

Dirty flash was fine! Brightness and SMS appear working fine, much better than before and I also tested hotspot without WiFi. I don't immediately see other bugs yet, I'll keep looking. Thank you! Dave
[Xiaomi 13] kfluous:
fans from china.

I really want to donate for you, but I don't have the overseas card binding for PayPal payment.

I saw that the ROM has changed from [Alpha] to [Beta], so tonight I will flash in this ROM and give you more feedback.

thanks for all your working!!!!!!
[Xiaomi 13] ev3rm0re:
Fans from china

I just registered a PayPal account and donate a little for you (I'm a student and don't have much money😭), hope this will help a little

thanks for your excellent work !
[Xiaomi 13] kfluous:
?????

but why can you using a overseas card
[Xiaomi 13] kfluous:
yesterday i clean flash this rom. All things is in the right place except XIAOMI Camera.

This app will FC after installing
[Xiaomi 13] ev3rm0re:
I'm just using my ICBC card and it's valid, I don't know why😂
[Xiaomi 13] ZhiYuanZhao:
so great job! Can it install XiaoMi carema?That is important for me.
[Xiaomi 13] marcel112:
no, custom on mi 13 cant use, none off them at the moment
[Xiaomi 13] hypern0va:
Awesome job! Any chance of this getting official? It'd be great.
[Xiaomi 13] Fsds:
Sorry, I haven't been online for a long time, I haven't seen the relevant message, because of work reasons, I can't flash the ROM with 13 at the moment, and I will flash it back again when I have the opportunity later.
[Xiaomi 13] Fsds:
Yes, but sorry, forums are rarely online and do not see message notifications.
[Xiaomi 13] Fsds:
You can try to find the ROM of Xiaomi Mi 13 in xiaomirom.com, if it can't be solved, you need the image of this device, please leave a message to me, I can try to help. If it cannot be solved, you may need to contact after-sales service.
[Xiaomi 13] covecove1:
does it work on xiaomi 13 lite?
[Xiaomi 13] TechnicalSigma:
Sorry, new member here. Searched, but didn't find anything. What does fuxi mean? It is a codename for a version of Xiaomi 13 or what? How do I know if my Xiaomi 13 is fuxi or not?
[Xiaomi 13] dopefish1337:
No. Different device. Different chipset.

Yes. This is the codename for the Xiaomi 13. See https://xiaomiui.net/all-xiaomi-codenames-5137/
[Xiaomi 13] TechnicalSigma:
Thanks!
[Xiaomi 13] GaGaGa.Girl:
Donate $5 to support your work ,I really need a near perfect 3rd party ROM that is not based on MIUI, keep working ,thank you, love from china ♥.
[Xiaomi 13] loipuru:
well, some updates:

some issues got fixed, but aod issues & missing battery usage still present

next build will be android 14 so it gonna take some time (due to keymaster issues which cause rom refuse to boot with encryption)
[Xiaomi 13] loipuru:
thanks 😘
[Xiaomi 13] saniye:
I want to ask some questions, when is the next update date? Because miui has become quite slow recently, I want to switch to lineages os. Also, can the current beta version be used daily? Does the package without vanilla have the full Google framework? Thank you in advance for your answers.☺️
[Xiaomi 13] loipuru:
i already included both non-gapps / gapps (i'll try getting ext4 works later)

for eta: until lineage was merged all a14 changes, so i can't say for sure

there's alternative rom like crdroid, ancient which based on my up-to-date dt
[Xiaomi 13] Krullendhaar:
Hi,

First of all, thank you for all your effort. Very much appreciated.

Second, would this custom ROM (with very little changes) also work on the Xiaomi 13 Pro and XIaomi 13 Ultra?
[Xiaomi 13] RoachLin:
Many thanks to you! Love from China!

I paid about 95 THB to you just now.

My phone with MIUI EU version was broken when I flashed LSPosed 1.9.2. I flash lineage OS and it seems good enough for me to use. There are still some bugs, but they won't affect my daily use too much. Hope that you can make it much better in the future.
[Xiaomi 13] loipuru:
both pro / ultra are on wip (i didn't become maintainer for that, but involve with some development)

there's pixel experience for 13 ultra as well
[Xiaomi 13] loipuru:
some bugs i already fixed, but right now i waiting for los android 14 source code to be merge

if it take too long, i might release a13 build in 1 - 2 weeks
[Xiaomi 13] RoachLin:
Got it. I want to ask how can I update the OS? Just use "adb sideload xxx.zip"? Will it format all the data or not?
[Xiaomi 13] ronnz98:
Are build instructions available and the vendor files (I could not successfully extract from LineageROM)?
[Xiaomi 13] Veiranx:
To dirty flash, usually you'd just flash it the same way you would if you were initially installing it.

I did my initial install via TWRP and it works great so far.
[Xiaomi 13] FuMeiChina:
TikTok cannot be refreshed and Telegram cannot be used.
[Xiaomi 13] Krullendhaar:
@loipuru Do you have the device? The Xiaomi 13? Or are you still relying on testers? How much of a donation do you need to buy the device? Xiaomi is not popular where I live (Europe) and second hand I can buy one relatively cheap.

Also, what would happen to the development for this device if Xiaomi does not update kernel sources? From my understanding, Xiaomi does release the kernel source but never updates these sources when an android update is available. Is this true, and does this mean porting lineageOS 21 based on android 15 might be difficult? Or do we have proper OSS kernels such that development for this device can last much longer (like for example the Poco F1 and F3)?

Also, is official lineageOS support for the Xiaomi 13 reasonable? I currently have the Xiaomi Mi 9T Pro, but it never got official LineageOS support. According to the dev, this is due to missing kernel/driver/firmware/whatever (not an expert).

The Xiaomi 13 seems to be the only phone that has the snapdragon 8 gen 2 AND a flat screen that has a strong development scene.
[Xiaomi 13] RoachLin:
I use clash, and set Telegram proxy to 127.0.0.1, port: 7890
[Xiaomi 13] FuMeiChina:
I can’t log in, how do I set up a proxy?
[Xiaomi 13] RoachLin:
at the up right corner in the login page
[Xiaomi 13] FuMeiChina:
I set it up but it still doesn’t work. Thank you anyway.
[Xiaomi 13] loipuru:
los 21 based on android 14*

for money, i having around 500$, which is almost hit the goal (xiaomi 13 here have vary price, so i can't say)

for kernel, yes. it's somehow true but i think it isn't an issues (because more user, more developer, more request to xiaomi for complete kernel source)

for lineageos, if that case. i can stay on unofficial support (which will be good to me due to i can add more useful apps, like miuicamera)

for android 14, we managed to get onto boot animation on socrates on evox (which adapt from my fuxi device tree), but lineage os source code still wip

if it take too long, i might release android 13 build for now
[Xiaomi 13] centered:
Hi sorry If I am asking a dumb question. But how do I iknow if custom rom is open source or not?
[Xiaomi 13] loipuru:
here's rom source code: https://github.com/LineageOS/
[Xiaomi 13] centered:
Unless i am mistaken isnt that just for lineageOS? How do I see if the one you developed specifically for Xiaomi 13 is open sourced?

Again sorry for asking thes type of question i am very new to custom roms world.

Thanks!
[Xiaomi 13] Jeik:
The kernel source is provided, the device tree is available, the vendor tree is available, the rom's source itself is also available. After it's all compiled, a zip like the one in the download link is provided.

If you are asking how you can confirm if that zip is truly made with what was mentioned, you can go google how to extract all the things out of a flashable rom zip. After you do that, you can in theory start comparing files that were e.g. in the vendor tree with the things from the zip.

Or you can make a build for yourself to be 100% certain that you are installing what is being provided through source code/trees. There are also guides online for that (Google is your friend).
[Xiaomi 13] loipuru:
most of the device tree side (except vendor, due to filesize too large to upload on gh) are provide on first page (to follow xda rules, i need to provide at least kernel source code)
[Xiaomi 13] Krullendhaar:
Step by step installation guide:

1. Download latest ADB from google: https://developer.android.com/studio/releases/platform-tools

2. Download the lineageos zip and TWRP recovery image. Store these in the same folder as the ADB stuff

3. Plug in your Xiaomi phone into your pc. If on windows, make sure windows updates are enabled to download the latest drivers from Xiaomi. In windows 10 you might have to go to settings > updates and manually click on installing additional driver updates

4. In windows 10, go to the folder where you saved the adb. Click on the file path (the bar in the top that looks like "C/users/John/Documents..."), type "cmd" and press enter. This will open the command prompt in that folder. Check if adb works by running "adb". If you get no error, adb works correctly.

5. Enable usb debugging under developer options on your Xiaomi. Connect phone to pc with cable, open command prompt in the adb folder, type "adb devices" to check if adb sees your device. If you get no error, your adb works and sees your phone. If you get an error, you did not install the driver from windows settings as described in step 3.

6. Type "adb reboot bootloader". This will boot your phone into fastboot mode. Once phone is in fastboot mode, open device manager in windows to check if there are missing drivers. If you see something called "Android" with a warning sign, then you are missing the google-usb driver. Download them from https://developer.android.com/studio/run/win-usb and save them in any folder you want. While still connected in fastboot mode, right click on the "Android" entry with the warning sign in the device manager, choose "manually install driver" and browse to the google-usb driver. Now the warning sign in device manager should be gone (see picture below).

​

7. Now we can begin with the actual installation. In command prompt type "fastboot flash recovery_ab <twrp_file_name>.img" (Tip: start typing the first few letters of the file name and then press tab to autocomplete). This will install TWRP in both partitions. Type "fastboot reboot recovery" to boot into TWRP. In TWRP go to the wipe section and "swipe to factory reset". Then, in the wipe section click on advanced, select "format data" and type yes. Type "fastboot reboot recovery" to boot into TWRP. Move the files you want to install from your PC to your phone. This can simply be done with the file explorer on your PC, because your phone should be connected in MTP mode. FYI: at this point you can still back out by simply rebooting into system. This will launch MIUI (but fully reset because you performed factory reset and formatted the data). In TWRP go to install, select the .zip, tick the checkbox that says "reflash twrp after install" and flash the .zip. In the output it tells you in which slot this was installed (slot A or B). Switch to that slot. Reboot again into recovery and perform a factory reset. Finally you press reboot to boot into system. Please note that the first boot can take long.
[Xiaomi 13] centered:
I see, thanks for the info!
[Xiaomi 13] Kamigouki:
Hello. I am a huge fan of LOS and have used it on several phones.

I just got my Xiaomi 13 and tried to install the vanilla LOS and NikGapps full, but while installing NikGapps, it says there is zero space available, and it skips everything.

I flashed TWRP, factory reset, sideloaded LOS, and the tried to sideload NikGapps. Do I need to reboot back into recovery or factory reset after installing LOS for NikGapps to install?
[Xiaomi 13] loskiq:
@loipuru will there be an official release on the LineageOS website?