FORUMS
Remove All Ads from XDA

[PORT][BUILD][UNOFFICIAL] LineageOS 16 to daisy

39 posts
Thanks Meter: 77
 
By robotusr, Member on 30th September 2018, 09:07 PM
Post Reply Email Thread
Hi all!
Starting a new thread to make things more clear to all. We need help. Please, review this thread from page 4:
https://forum.xda-developers.com/mi-...t3835130/page4

I'm working in a port of LineageOS 16 to mi a2 lite (daisy).
Thanks to @LazyT @hossman and @davze for their help.

UPDATE:

At the moment we have a device tree and blobs. Uploaded to github.

Not flashed and tested by me yet.

Device:

https://github.com/robotusr/device_xiaomi_daisy (100% uploaded)
&
https://github.com/robotusr/device_x...msm8953-common (100% uploaded)

Proprietary files:

https://github.com/robotusr/propriet...r_xiaomi_daisy (100% uploaded)
&
https://github.com/robotusr/propriet...msm8953-common (100% uploaded)

File local_manifests/roomservice.xml

Code:
<?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:

-Init LineageOS repo with repo init -u https://github.com/LineageOS/android.git -b lineage-16.0
-repo sync
-Create roomservice file at local_manifests/roomservice.xml
-repo sync (this downloads all daisy device and proprietary files (also for msmscommon))
-Run . build/envsetup.sh
-Because we are bulding an unsupported device with Android 8.1 sources (at the moment), and there are some errors about LOCAL_SDK_VERSION (seems to be mandatory in Android 9) and some dependencies.

Edit file build/make/core/sdk_check.mk (make a backup first to use the original file in future builds).

Modify line whitelisted_modules :=
With this:

Code:
whitelisted_modules := framework-res__auto_generated_rro SystemUI__auto_generated_rro Bluetooth__auto_generated_rro Settings__auto_generated_rro
-export ALLOW_MISSING_DEPENDENCIES=TRUE
-lunch lineage_daisy-eng
-brunch daisy

Please, tell me if it builds ok for you.

Best regards,
Daniel
The Following 27 Users Say Thank You to robotusr For This Useful Post: [ View ] Gift robotusr Ad-Free
 
 
30th September 2018, 09:21 PM |#2  
Junior Member
Thanks Meter: 1
 
More
This is very promising.

Thank you all for the hard work <3
30th September 2018, 09:55 PM |#3  
Senior Member
Thanks Meter: 40
 
More
Thanks but need good twrp for that...
30th September 2018, 10:14 PM |#4  
monojp's Avatar
Senior Member
Flag Vienna
Thanks Meter: 54
 
More
Hey there,
if you need repos created on lineageos GitHub or other help just ask them via IRC. Luk made changes in the exchange repo for me for 15.1, I recommend him
The Following User Says Thank You to monojp For This Useful Post: [ View ] Gift monojp Ad-Free
30th September 2018, 10:24 PM |#5  
Junior Member
Thanks Meter: 0
 
More
Hy, can we use pixelrom as source ?
1st October 2018, 07:11 AM |#6  
LazyT's Avatar
Senior Member
Thanks Meter: 41
 
More
@robotusr
No sorry, I'm not working on it - only tried to help with your questions.
The Following User Says Thank You to LazyT For This Useful Post: [ View ] Gift LazyT Ad-Free
1st October 2018, 08:22 AM |#7  
robotusr's Avatar
OP Member
Zaragoza
Thanks Meter: 77
 
More
Quote:
Originally Posted by monojp

Hey there,
if you need repos created on lineageos GitHub or other help just ask them via IRC. Luk made changes in the exchange repo for me for 15.1, I recommend him

Great! I'll try to contact Luk. Thanks!

Quote:
Originally Posted by LazyT

@robotusr
No sorry, I'm not working on it - only tried to help with your questions.

Well, you helped me a lot!
The Following User Says Thank You to robotusr For This Useful Post: [ View ] Gift robotusr Ad-Free
1st October 2018, 11:53 AM |#8  
robotusr's Avatar
OP Member
Zaragoza
Thanks Meter: 77
 
More
Mounting vendor.img to create proprietary-files.txt is the only solution I've found. generate-blob-lists.sh script doesn't works.
Also I've change make files from cm to lineage (updated post #1)

Vendorimg contents:

Code:
drwxr-xr-x. 11 0 2000   4096 dic 31  2008 app
drwxr-xr-x.  4 0 2000   8192 dic 31  2008 bin
-rw-------.  1 0    0   3382 dic 31  2008 build.prop
-rw-r--r--.  1 0    0   1886 dic 31  2008 compatibility_matrix.xml
-rw-------.  1 0    0    614 dic 31  2008 default.prop
drwxr-xr-x. 19 0 2000   4096 dic 31  2008 etc
drwxr-xr-x.  3 0 2000   4096 dic 31  2008 firmware
drwxr-xr-x.  2 0 2000   4096 dic 31  2008 framework
drwxr-xr-x. 11 0 2000 114688 dic 31  2008 lib
drwxr-xr-x.  7 0 2000  12288 dic 31  2008 lib64
drwx------.  2 0    0  16384 dic 31  2008 lost+found
-rw-r--r--.  1 0    0  22941 dic 31  2008 manifest.xml
drwxr-xr-x.  2 0 2000   4096 dic 31  2008 media
drwxr-xr-x.  4 0 2000   4096 dic 31  2008 overlay
drwxr-xr-x. 11 0 2000   4096 dic 31  2008 package
drwxr-xr-x.  3 0 2000   4096 dic 31  2008 radio
drwxr-xr-x.  5 0 2000   4096 dic 31  2008 rfs
drwxr-xr-x.  2 0 2000   4096 dic 31  2008 speccfg
-rw-r--r--.  1 0    0  15446 dic 31  2008 ueventd.rc
This is the audio acdb section I've put in propietary-files.txt at the moment:

Code:
# Audio ACDB
vendor/etc/acdbdata/QRD/QRD_Bluetooth_cal.acdb
vendor/etc/acdbdata/QRD/QRD_General_cal.acdb
vendor/etc/acdbdata/QRD/QRD_Global_cal.acdb
vendor/etc/acdbdata/QRD/QRD_Handset_cal.acdb
vendor/etc/acdbdata/QRD/QRD_Hdmi_cal.acdb
vendor/etc/acdbdata/QRD/QRD_Headset_cal.acdb
vendor/etc/acdbdata/QRD/QRD_Speaker_cal.acdb
vendor/etc/acdbdata/adsp_avs_config.acdb
vendor/etc/acdbdata/QRD/QRD_workspaceFile.qwsp
Info from etc/acdbdata (oem rom):

Code:
etc/acdbdata/:
adsp_avs_config.acdb
MTP
QRD

etc/acdbdata/MTP:
msm8953-tasha-snd-card
MTP_Bluetooth_cal.acdb
MTP_General_cal.acdb
MTP_Global_cal.acdb
MTP_Handset_cal.acdb
MTP_Hdmi_cal.acdb
MTP_Headset_cal.acdb
MTP_Speaker_cal.acdb
MTP_workspaceFile.qwsp

etc/acdbdata/MTP/msm8953-tasha-snd-card:
MTP_WCD9335_Bluetooth_cal.acdb
MTP_WCD9335_General_cal.acdb
MTP_WCD9335_Global_cal.acdb
MTP_WCD9335_Handset_cal.acdb
MTP_WCD9335_Hdmi_cal.acdb
MTP_WCD9335_Headset_cal.acdb
MTP_WCD9335_Speaker_cal.acdb
MTP_WCD9335_workspaceFile.qwsp

etc/acdbdata/QRD:
QRD_Bluetooth_cal.acdb
QRD_General_cal.acdb
QRD_Global_cal.acdb
QRD_Handset_cal.acdb
QRD_Hdmi_cal.acdb
QRD_Headset_cal.acdb
QRD_Speaker_cal.acdb
QRD_workspaceFile.qwsp
I'm creating propietary-files.txt by hand. Please, be patient...

Regards,
Daniel.
The Following User Says Thank You to robotusr For This Useful Post: [ View ] Gift robotusr Ad-Free
1st October 2018, 02:00 PM |#9  
Junior Member
Thanks Meter: 1
 
More
greet ,good luck guys
1st October 2018, 06:43 PM |#10  
robotusr's Avatar
OP Member
Zaragoza
Thanks Meter: 77
 
More
Quote:
Originally Posted by alcopsy

Thanks but need good twrp for that...

It's not necessary to flash system.img (at the moment) using fastboot.
Obviously, we need a custom recovery to make rom backups and to flash other partitions.

I'm not a developer. Just learning to port a rom to my device.

Regards,
Daniel
The Following User Says Thank You to robotusr For This Useful Post: [ View ] Gift robotusr Ad-Free
1st October 2018, 07:14 PM |#11  
Senior Member
madagascar
Thanks Meter: 35
 
More
Quote:
Originally Posted by robotusr

It's not necessary to flash system.img (at the moment) using fastboot.
Obviously, we need a custom recovery to make rom backups and to flash other partitions.

I'm not a developer. Just learning to port a rom to my device.

Regards,
Daniel

We have to wait working TWRP ! TWRP by TWRPbuilder is not working, perhaps they should fix it.or we have to wait !that A/B partition make the devellopement not easy !
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes