yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi A2 Lite Questions & Answers] robotusr:
SOLVED

Got it!

Seems that something has changed from lineageos 15.x to 16.

First step:

-Initialize LineageOS 16 repo

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

-repo sync

-Be sure to have all daisy mk files in path (you can download later from my git when checked that all is fine and working)

-Extract blobs (with extract-file.sh with root, no need to cp or move files) or extract them from vendor.img (then, move to vendor/xiaomi/daisy/proprietary). I'll upload blobs later to a free site. Searching...

Second step:

-If you've run . build/envsetup.sh before, make clean && make clobber

-Create file .repo/local_manifests/roomservice.xml

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="robotusr/proprietary_vendor_xiaomi" path="vendor/xiaomi" />
<project name="robotusr/android_device_xiaomi_daisy" path="device/xiaomi/daisy" />
</manifest>

Do not add remote github value, at the moment, to roomservice.xml

. build/envsetup.sh

repo sync (wait some time, be patient).

lunch lineage_daisy-eng

Wait :)

Please, be patient. First I must check that all is working after flashing. Then I'll upload all and update first post.

Thanks to all!!
[Xiaomi Mi A2 Lite Questions & Answers] hossman:
Nice work!
[Xiaomi Mi A2 Lite Questions & Answers] Jordan~Kurniawan:
great news

thank you so much

im sure gonna test this as soon as it comes up
[Xiaomi Mi A2 Lite Questions & Answers] foudroid:
Ready to test and report bugs !!!

How is the devellopement of a working TWRP ???
[Xiaomi Mi A2 Lite Questions & Answers] robotusr:
Not flashed and tested by me yet, but i've uploaded blobs and mk files to github for you.

Device:

https://github.com/robotusr/device_xiaomi_daisy (100% uploaded)

&

https://github.com/robotusr/device_xiaomi_msm8953-common (100% uploaded)

Proprietary files:

https://github.com/robotusr/proprietary_vendor_xiaomi_daisy (100% uploaded)

&

https://github.com/robotusr/proprietary_vendor_xiaomi_msm8953-common (100% uploaded)

New local_manifests/roomservice.xml file

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="robotusr/device_xiaomi_daisy" path="device/xiaomi/daisy" remote="github" />
<project name="robotusr/device_xiaomi_msm8953-common" path="device/xiaomi/msm8953-common" remote="github" />
<project name="robotusr/proprietary_vendor_xiaomi" path="vendor/xiaomi/daisy" remote="github" />
<project name="robotusr/proprietary_vendor_xiaomi_msm8953-common" path="vendor/xiaomi/msm8953-common" remote="github" />
</manifest>

Steps to build:

-You know, repo init, repo sync

-Create roomservice file (delete old roomservice files)

-Run . build/envsetup.sh

-repo sync

-lunch lineage_daisy-eng

-brunch daisy

Please, tell me if it builds ok for you.

Regards,

Daniel
[Xiaomi Mi A2 Lite Questions & Answers] robotusr:
As you can see lunch lineage_daisy-eng is working fine!!! :)
[Xiaomi Mi A2 Lite Questions & Answers] flat_eric75:
Great work Men!

I look forward to see if it's really working!

Keep on the good job!
[Xiaomi Mi A2 Lite Questions & Answers] robotusr:
Well, this is a common error I think...

[976/976] including vendor/xiaomi/msm8953-common/Android.mk ...
vendor/xiaomi/msm8953-common/Android.mk: error: SystemUI__auto_generated_rro: Must specify LOCAL_SDK_VERSION or LOCAL_PRIVATE_PLATFORM_APIS,
build/make/core/sdk_check.mk:21: error: done.
14:29:05 ckati failed with: exit status 1

#### failed to build some targets (02:22 (mm:ss)) ####

Added LOCAL_SDK_VERSION := current in vendor/xiaomi/msm8953-common/Android.mk, no luck. At the moment :)
[Xiaomi Mi A2 Lite Questions & Answers] robotusr:
Found the solution and build continues

Edit file build/make/core/sdk_check.mk

Modify line whitelisted_modules :=

Add all modules that trow

this error

: Must specify LOCAL_SDK_VERSION or LOCAL_PRIVATE_PLATFORM_APIS

Example:

whitelisted_modules := framework-res__auto_generated_rro SystemUI__auto_generated_rro Bluetooth__auto_generated_rro Settings__auto_generated_rro

And so on....

Regards,

Daniel
[Xiaomi Mi A2 Lite Questions & Answers] JimmyCash030:
dude I believe in you and i am ready for the actual testing! android one is a mess, so we need LOS... :)
[Xiaomi Mi A2 Lite Questions & Answers] robotusr:
Well, this can be done by anyone. I'm reading and reading, examining files...

This is just the beginning. I'm modifying files to be able to finish the build. It's a port. We can use some repos or files but modify is needed at the core.

As you can see here, ALLOW_MISSING_DEPENDENCIES=true not works for all. Some extra files are needed from other repos. Omitting certain dependencies can make the rom not booting.

hardware/qcom/bt-caf/tools/hidl_client/Android.mk: error: libbt-hidlclient (SHARED_LIBRARIES android-arm) missing vendor.qti.hardware.fm@1.0 (SHARED_LIBRARIES android-arm)
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
system/update_engine/Android.mk: error: update_engine_sideload (EXECUTABLES android-arm64) missing bootctrl.msm8953 (STATIC_LIBRARIES android-arm64)
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
system/update_engine/Android.mk: error: update_engine_sideload (EXECUTABLES android-arm64) missing libgptutils (STATIC_LIBRARIES android-arm64)
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
build/make/core/main.mk:850: error: exiting from previous errors.

This is an example of ALLOW_MISSING_DEPENDENCIES=true not working. But this is ok, because without this files rom won't boot.

Searching......

EDIT:

I've asked for help three times in lineageos/dev , no help from "developers" :(

I don't know why. Well, at the moment I'm stuck in dependencies. I don't have time now to search.

Tomorrow....
[Xiaomi Mi A2 Lite Questions & Answers] fake__knv:
Thanks man! Syncing sources now :D

Edit: Sync got broken lul I think there is a problem with my ubuntu installation. How much is the size of the los16 source [MENTION=9394408]robotusr[/MENTION]?
[Xiaomi Mi A2 Lite Questions & Answers] HaoZeke:
I just started a device tree repo as well, I was wondering how this is a port..
[Xiaomi Mi A2 Lite Questions & Answers] robotusr:
LineageOS sources are about 40GB...

It's not a port yet. Build has fatal errors and I'm triying to solve it. Only device tree and blobs are ready at the moment.

I've never do that before. I'm not a dev. Because of it I've asked for help.

Regards

EDIT:

Dependencies repo sync --force-sync

repo sync -f doesn't works :eek:

Shared project LineageOS/android_hardware_qcom_audio found, disabling pruning.
Shared project LineageOS/android_hardware_qcom_audio found, disabling pruning.
Shared project LineageOS/android_hardware_qcom_audio found, disabling pruning.
Shared project LineageOS/android_hardware_qcom_audio found, disabling pruning.
Shared project LineageOS/android_hardware_qcom_audio found, disabling pruning.
Shared project LineageOS/android_hardware_qcom_audio found, disabling pruning.
Shared project LineageOS/android_hardware_qcom_audio found, disabling pruning.
Shared project LineageOS/android_hardware_qcom_audio found, disabling pruning.

and so on.....

:silly:
[Xiaomi Mi A2 Lite Questions & Answers] robotusr:
Hi!

I've found the reason about dependencies errors. In Android.mk on msm8953-common vendor files. Those files are already in daisy vendor path (lib). Modifying mk files now. I'll tell you soon how to get a clean build when I finish it.

Regards!
[Xiaomi Mi A2 Lite Questions & Answers] foudroid:
:svetius:
[Xiaomi Mi A2 Lite Questions & Answers] HaoZeke:
I believe the standard approach here is to diverge the vendor files into a `common` and a `daisy` folder, similar to the way the devices are handled.
[Xiaomi Mi A2 Lite Questions & Answers] robotusr:
Yes, that's the point. I'm working on that.

Sorry I'm in holidays until monday.

Regards,

Daniel.
[Xiaomi Mi A2 Lite Questions & Answers] HaoZeke:
Sure, not a problem, take your time :)

I'm working on trees as well, will compare notes soon!
[Xiaomi Mi A2 Lite Questions & Answers] robotusr:
Seems to be easy and it's "true". We need to merge values from PRODUCT_COPY_FILES += in BoardConfigVendor.mk (I think)...

But it's a lot of work...
[Xiaomi Mi A2 Lite Questions & Answers] wertus33333:
Lineage 15

Nearly finished building (99%) just can't find any solution for this error: https://pastebin.com/qKcaf1UH

Vendor: https://github.com/DaisyRomz/proprietary_vendor_xiaomi_daisy

Device: https://github.com/DaisyRomz/device_xiaomi_daisy

Kernel: https://github.com/MiCode/Xiaomi_Kernel_OpenSource/tree/daisy-o-oss

Tried changing partition size/deleting it/using vendor image /do not use vendor image/ mka dist / defining ext4 explicitly/ not defining ext4

Any help is appreciated
[Xiaomi Mi A2 Lite Questions & Answers] Gentilsatan:
Hi

Thanks for your work, any solution for "the error" ? Any one helped you ?
[Xiaomi Mi A2 Lite Questions & Answers] reujea0:
First line 173 your recovery fails. I think it is related to your system. What are the specs of your server, do you have enough free space?
[Xiaomi Mi A2 Lite Questions & Answers] wertus33333:
How do you see that the recovery fails? (want to be able to find the eror by myself next time ;))

Made recovery image: /home/oreo/los/out/target/product/daisy/boot.img --------
[ 99% 925/927] Package target files: /...eage_daisy-target_files-1cb09a2929.zip
FAILED: /home/oreo/los/out/target/product/daisy/obj/PACKAGING/target_files_intermediates/lineage_daisy-target_files-1cb09a2929.zip

For me it looks like recovery image (well, the ramdisk attached to bootimg) finishes building but there is a misconfiguration for system partition size or some wrong fstab entries causing the packaging of system.img to fail.

I'm building on virtualbox on a 1tb hd (500gb+free, but have to check virtualdiskimage) 10gb ram (for vb), 16 total, i7-4790 (4 cores reserved for vb)

Thx for the help anyways!

edit: trying to build with stock recovery (instead of twrp) now. Also freed some disk space (more than 50gb left tho)

edit2:

I did it! Here is the link. This is UNTESTED and probably WONT WORK (just used original unchanged mi kernel source) but i am bad with debugging a running android (if anyone can show me.. ;)) so i upload it here and the community can test, debug and maybe help aswell. If you do not know how to debug android/ how to completely recover from anything, DONT FLASH THIS!

edit3: it is not working (just reboots into fastboot again and again, which can only be solved by booting twrp with fastboot again and rebooting recovery) will try to generate a system.img tomorrow...
[Xiaomi Mi A2 Lite Questions & Answers] foudroid:
Nice work !just make it boot.
[Xiaomi Mi A2 Lite Questions & Answers] wertus33333:
I will try to ;). But not this weekend (i need my phone) and i'm no dev (i will need help in debuging). But if anyone wants to test you can try to extract&flash system&boot with this. Just backup everything with twrp and copy it to a computer before (especially your /data backup). Then get logs with adb (if it boots that far) or TWRP (you have to "fastboot boot TWRP.img") and tell me if and how far it boots. Afterwards you can just flash newest official rom (flash_all_except_storage.sh/.bat with fastboot), twrp and restore your /data backup. With that i would already know some things and could start working from there on monday.
[Xiaomi Mi A2 Lite Questions & Answers] blue4:
Error 1 in TWRP
[Xiaomi Mi A2 Lite Questions & Answers] wertus33333:
Ok, I tried flashing system.img but fastboot says "FAILED (remote: size too large)" (though my system.img is smaller than original one...) then i tested flashing the zip with twrp/Lineageos recovery (built into my boot.img) got an error again: "kdownloadoperationexecution error". I think this are some A/B device errors or some misconfiguration in device tree. If noone knows a solution for those errors i will search on myself but this can take time...
[Xiaomi Mi A2 Lite Questions & Answers] speedstarrr:
Hi all folks

Anybody tested with redmi 6 pro

Because boot devices looking same hw
[Xiaomi Mi A2 Lite Questions & Answers] wasg:
My LG G2 can finally retire

Pdaf camera and battery!
[Xiaomi Mi A2 Lite Questions & Answers] robotusr:
Sorry guys, my cat was very sick and finally died.

I think that partition size is not correctly set. I'll take a look on that.

Thank you!
[Xiaomi Mi A2 Lite Questions & Answers] thorin0815:
I'm very sorry to hear about your cat. Take all the time you need.
[Xiaomi Mi A2 Lite Questions & Answers] root_freedom:
any news ?

Hi,
[MENTION=9394408]robotusr[/MENTION], sorry for your cat, take your time

Anybody else tried something that is currently working ? in my side i can't pass through the "FAILED (remote: size too large)" error...

Maybe a charitable soul succeed in the building and flashing process and can help us, give us some advices, or give us a packaged working image ?

(PS : I'm personally testing this on a friend A2 lite and i'm waiting this to work to buy my own A2 lite, this device is just perfect for my needs physically and technically speaking, but I just can't use any Gapps or AOSP ROMS, it's against my mindset)

Thank you in advance,

Regards,
[Xiaomi Mi A2 Lite Questions & Answers] reujea0:
The tree on github is not even up to date, it gives a ****load of bootctrl errors, I need to fix them first then I can build further...
[Xiaomi Mi A2 Lite Questions & Answers] wertus33333:
My condolences, take all the time you need.

My tree on github is up-to-date (builds but does not work on device). It is Lineage 15.1 tho... (vendor for android p not released yet).

Yes, the problem was the vendor partition being included in system.img but vendor is a sepparate img... I am building with some (not yet uploaded to github) changes right now (but slow pc). I also think i made some mistakes by creating the vendor tree, therefore don't expect too much ;).
[Xiaomi Mi A2 Lite Questions & Answers] skyline91:
Sorry to hear that.

I'm coming from MI A1 and maintainer for Los is flex1911 so maybe you could ask him to help, since hardware is very similar.
[Xiaomi Mi A2 Lite Questions & Answers] wertus33333:
[MENTION=5120185]flex1911[/MENTION]

Can you help here?

Sources:

Kernel

Device

Vendor

Help would be appreciated but if you're busy with tissot, don't mind this. Also, i'm quite new to this so excuse my commiting/noob style on github ;)

generated

system.img (flashable)

vendor.img (flashable)

boot.img (flashable, working lineage recovery inside)

los zip (error7 Kdownloadopenerror)

Userdata.img NOT NEEDED!

Flash with fastboot or fastboot image script (from original original rom, just replace images) if you flash sepparately with fastboot remember to always flash _a and _b (e.g. "flash system_a path" "flash system_b path")

edit: Links updated

edit2: boots to lineage bootscreen, logs with adb obtainable. Need help to debug logs as i have no idea on what to do with them (yet). i will try but if someone could help me it would speed everything up.
[Xiaomi Mi A2 Lite Questions & Answers] iforgotmylogin:
Dumb question/suggestion probably, but would all the different "versions" of the phone make a difference with LOS compatibility?

Some have different screens (with and without double-tap to wake), various memory/storage configurations; 4gb/64gb, 3gb/32gb, and I've even seen 4gb/32gb for sale on some places.

It might be something to bear in mind.
[Xiaomi Mi A2 Lite Questions & Answers] wertus33333:
Maybe some small bugs (which can be easily fixed with logs) but nothing mayor.
[Xiaomi Mi A2 Lite Questions & Answers] irfaniphank2:
can you share your build ?
[Xiaomi Mi A2 Lite Questions & Answers] wertus33333:
If you would go 1 page back and read the last entry on that page, you'd find all the sources and flashable images ;). It's a debugable ENG build, booting to lineageos bootlogo and then looping. Need help with debuging (logcat to source code, how to find out where in the source the error is?)
[Xiaomi Mi A2 Lite Questions & Answers] bberx123:
[MENTION=9394408]robotusr[/MENTION] why am I getting this error after adding the roomservice.xml in the .repo/local_manifests and doing repo sync?

fatal: Couldn't find remote ref refs/heads/lineage-16.0
fatal: Couldn't find remote ref refs/heads/lineage-16.0
fatal: Couldn't find remote ref refs/heads/lineage-16.0
error: Cannot fetch robotusr/proprietary_vendor_xiaomi_msm8953-common
error: Cannot fetch robotusr/device_xiaomi_msm8953-common
error: Cannot fetch robotusr/device_xiaomi_daisy
[Xiaomi Mi A2 Lite Questions & Answers] reujea0:
I had the same, just git clone them directly
[Xiaomi Mi A2 Lite Questions & Answers] ada12:
I see kernel source is available for mi a2 so is better for me to wait pie kernel source mi a2 lite for build good tree, vendor for make good lineage 16 build...
[Xiaomi Mi A2 Lite Questions & Answers] wertus33333:
Well, we have a working device, kernel and vendor tree for los 15.1, everything here.

Boots to lineage bootlogo (kernel boots), logcat is obtainable (but idk how to read it, help if you ask in those build chats/forums = 0, google/github finds nothing related--> if you can help here, i'm happy to share it but i wont spam the thread with it).

If we get this to work we can only just upgrade the necessary files to pie (and the things u normally have to upgrade to pie) and we have los 16 (please correct me if i'm wrong).

Also, as far as i know, lineage kernel is based on caf (and we have caf pie kernel source) with some additions and therefore you would have to use lineage msm8953 kernel source and adjust it for daisy (import/(re)write drivers and find a working combination for defconfig/config). A lot of work is already done here (from other xiaomi msm8953 devices) and can be adapted.

As always, please correct me if i got sth wrong .
[Xiaomi Mi A2 Lite Questions & Answers] ada12:
Ok Thanks for Nice info I am dev so I can help... For read LOG you can from Linux easy ( ex : arch Linux, Ubuntu...) Just open log in Terminal or read in txt file...
[Xiaomi Mi A2 Lite Questions & Answers] wertus33333:
Lol. The problem was not how to open the log (can do that with every texteditor xD) the problem is how to go from a line in logcat to the right file/setting/etc in the rom source.

Lineage 15.1 is running now, bluetooth, wlan, all the apps, audio are working (selinux disabled!). The problem is ril (phone keeps crashing) and fixing selinux to work with enforcing kernel. I sent you the (huge) bugreport per pn.
[Xiaomi Mi A2 Lite Questions & Answers] wertus33333:
Los15.1 working :D just use my system.img and boot.img to replace boot.img, system.img and system_other.img (replace this with my system.img too) in "V9.6.11.0.ODLMIFF_8.1/images" folder (download the V9.6.11.0.ODLMIFF_8.1 build from xiaomi) and use the flash_all script. After this directly reboot to recovery (vol up + power), wipe data (factory reset), reboot and give it time to boot ;).

-ALPHA STATE

-Selinux still permissive

-You are loosing ALL your data on your phone by flashing this!

-please supply bugreports if sth is not working correctly (it's an eng build so debuging is enabled everywhere)

-wifi not working,

2637 E BatteryExternalStatsWorker: no controller energy info supplied for wifi
[Xiaomi Mi A2 Lite Questions & Answers] irfaniphank2:
make standalone Thread maybe? :confused: but thanks for your effort
[Xiaomi Mi A2 Lite Questions & Answers] wertus33333:
well, i compiled overnight and only had time to make a short post. Standalone thread will come after work :p
[Xiaomi Mi A2 Lite Questions & Answers] reujea0:
The kernel source code for piebis out ofr the a2 lite.
[Xiaomi Mi A2 Lite Questions & Answers] ada12:
you can make a thread for your rom ? for fix error wifi we need all source!!! ( tree,kernel,vendor link github ) thanks.
[Xiaomi Mi A2 Lite Questions & Answers] wertus33333:
Made a thread about 6 days ago, sorry for not telling you, thought you'd see it on first page. thread is here..

I hovever, won't continue lineageos (only had problems since rebranding from cyanogen) so i'd be happy if someone like you could pick this up? Omnirom builds, boots to bootlogo, throws logs so i will continue here.

edit:

To fix wifi: i think either the simlinks defined in Android.mk (devicetree) are wrong or i forgot to link/copy some necessary modules from vendor/original_system. Examine vendor/etc/wifi and system/etc/wifi on a stock 8.1 rom, compare to my vendor and create the necessary links in device/Android.mk (if in vendor) or copy the files from stock rom and add them in vendor tree (copy to system/ not to target_out_vendor_path/ of course).
[Xiaomi Mi A2 Lite Questions & Answers] GitDaisy:
Errors, errors everywhere...

So, i tried to build Ressurection remix 7.0 (lineage based rom). But it fails due to some bootctrl errors, there are some news about this error ?

Here is log:

[ 99% 1044/1045] glob vendor/rr/overlay/common/**/*
ninja: error: '/home/zmianek/RR/out/target/product/daisy/obj/STATIC_LIBRARIES/bootctrl.msm8953_intermediates/export_includes', needed by '/home/zmianek/RR/out/target/product/daisy/obj/EXECUTABLES/update_engine_sideload_intermediates/import_includes', missing and no known rule to make it
14:31:48 ninja failed with: exit status 1
[Xiaomi Mi A2 Lite Questions & Answers] misakim3i:
[1027/1030] including vendor/qcom/opensource/data-ipa-cfg-mgr/Android.mk ...

build/make/core/base_rules.mk:260: error: vendor/qcom/opensource/data-ipa-cfg-mgr/hal: MODULE.TARGET.SHARED_LIBRARIES.liboffloadhal already defined by device/xiaomi/msm8953-common/data-ipa-cfg-mgr/hal.

07:51:24 ckati failed with: exit status 1

#### failed to build some targets (35 seconds) ####
[Xiaomi Poco F1 Questions & Answers] Iam_Sahil:
Someone please port the stock poco camera app for AOSP Rom.
[Xiaomi Poco F1 Questions & Answers] lemint:
Seconded - it's pretty much the only thing I miss from stock :)
[Xiaomi Poco F1 Questions & Answers] bala g dbz:
Stock camera apk for custom roms

Please someone port the stock camera apk of poco f1 to custom roms
[Xiaomi Poco F1 Questions & Answers] gie62001:
Already been done. All credits to the developer - https://xdaforums.com/poco-f1/themes/port-t3879357
[P3300, MDA Compact III  Accessories] weblance:
Hi,

Is there any good programs that I can use to sync my Artemis calendar and contacts to my computer? I've used M$ Outlook, but recently I did a clean Windows install and I can't find the Outlook disc.

So if you have a good alternative to sync my contacts, calendar and also, if possible, SMS and emails, I'd like to hear from you.

Thanx in advance!

/Carl
[P3300, MDA Compact III  Accessories] awenthong:
Hi, you can sync with Active Sync and save your contact to Outlook Express
[P3300, MDA Compact III  Accessories] ritto:
i have sync calendar, cantacts and tasks with free exchange server at mail2web.com.

I am quite happy with this way because when i have to hard reset my 3300 on the trip i can sync my all contacts back through gprs in few minutes on air and without any PC.
[P3300, MDA Compact III  Accessories] xanadu:
1, birdiesync (20 USD) syncyng contacts, emails and calendar with Thunderbird and Lightning

2, TBexport (free) export contacts to Thunderbird csv file
[P3300, MDA Compact III  Accessories] jombala:
FinchSync (http://www.finchsync.com) : free and working perfectly ...
[P3300, MDA Compact III  Accessories] reyals:
For those who are not using Outlook for calendar sync, here's a way :

Use Google Calendar and GMobileSync