Help by building LineageOS 16 - Moto G5 Questions & Answers

i'm building lineage OS 16 for moto g5 cedric, so and now i get this failure:
Code:
glob kernel/motorola/msm8937/include/**/*
ninja: error: 'prebuilts/lineage-sdk/api/9.txt', needed by '/media/.../AndroidSource/lineage16/out/target/common/obj/PACKAGING/checkpublicapi-lineage-last-timestamp', missing and no known rule to make it
20:38:36 ninja failed with: exit status 1
I have no folder in prebuilts with the name "lineage-sdk" , I have only a folder "sdk" but in this api folder is missing 9.txt too there are only a 9.xml.
I hope anyone help me.

Always search github.com
I presume you are missing this repo
https://github.com/LineageOS/android_prebuilts_lineage-sdk
git clone it to android/prebuilts/lineage-sdk

TheFixItMan said:
Always search github.com
I presume you are missing this repo
https://github.com/LineageOS/android_prebuilts_lineage-sdk
git clone it to android/prebuilts/lineage-sdk
Click to expand...
Click to collapse
Thanks, i don't can check them now, but i think that is the solution, why is https://github.com/LineageOS/android_prebuilts_lineage-sdk not in the source of lineage or have i made a failure by downloading the source?

lucki1000 said:
Thanks, i don't can check them now, but i think that is the solution, why is https://github.com/LineageOS/android_prebuilts_lineage-sdk not in the source of lineage or have i made a failure by downloading the source?
Click to expand...
Click to collapse
I've no idea - I've not build it
You can always do a
repo sync --force-sync
To force overwrite any changes or to download any repos that didn't download due to an error etc

TheFixItMan said:
I've no idea - I've not build it
You can always do a
repo sync --force-sync
To force overwrite any changes or to download any repos that didn't download due to an error etc
Click to expand...
Click to collapse
Okay now I have this:
Code:
error: frameworks/base/libs/hwui/Android.bp:1:1: "hwui_defaults" depends on undefined module "skia_deps"
Thanks for any help.

lucki1000 said:
Okay now I have this:
Code:
error: frameworks/base/libs/hwui/Android.bp:1:1: "hwui_defaults" depends on undefined module "skia_deps"
Thanks for any help.
Click to expand...
Click to collapse
I don't build roms but I'd check your android sdk and build environment
This is what it's referring to but I'm not the person to help you set up a build environment
https://android.googlesource.com/platform/frameworks/base/+/master/libs/hwui/Android.bp

lucki1000 said:
Okay now I have this:
Code:
error: frameworks/base/libs/hwui/Android.bp:1:1: "hwui_defaults" depends on undefined module "skia_deps"
Thanks for any help.
Click to expand...
Click to collapse
Brother, How did you solve this problem "undefined module skia_deps"?

@lucki1000
Hello. I have stumbled upon this too. Here's the link with the fix on xda:
https://forum.xda-developers.com/lineage/help/lineageos-16-0-mka-command-error-t4099789

Related

[Q] Missing files in ./exctract-files.sh from CM

Hey,
I am trying to build CM for the first time and I have a quick question.
When I run ./extract-files.sh I am missing these 2 files -
remote object '/system/vendor/lib/egl/libplayback_adreno.so' does not exist
remote object '/system/vendor/lib/libtime_genoff.so' does not exist
I am running the latest CM build on my phone, so it's weird that these files don't exist...
Can I build CM without these?
Can I find them online and just put them is the proper place?
(I found libplayback_adreno over here - https://github.com/ModdedPA/proprietary_vendor_asus_flo/tree/master/proprietary/lib/egl
Does it matter that it is for a differnt device, or is the driver the same?)
Thank you
David 617 said:
Hey,
I am trying to build CM for the first time and I have a quick question.
When I run ./extract-files.sh I am missing these 2 files -
remote object '/system/vendor/lib/egl/libplayback_adreno.so' does not exist
remote object '/system/vendor/lib/libtime_genoff.so' does not exist
I am running the latest CM build on my phone, so it's weird that these files don't exist...
Can I build CM without these?
Can I find them online and just put them is the proper place?
(I found libplayback_adreno over here - https://github.com/ModdedPA/proprietary_vendor_asus_flo/tree/master/proprietary/lib/egl
Does it matter that it is for a differnt device, or is the driver the same?)
Thank you
Click to expand...
Click to collapse
Why don't you just repo it from the CM11 tree? And build it in a normal way.. repo sync etc and just brunch/lunch to compile the rom?
Grab the missing blobs from here https://github.com/TheMuppets/proprietary_vendor_htc. This is the repo that CM use and update.
nerotix said:
Why don't you just repo it from the CM11 tree? And build it in a normal way.. repo sync etc and just brunch/lunch to compile the rom?
Click to expand...
Click to collapse
Repo from the cm11 tree? Not sure what that means. If his current ROM doesn't have all of the proprietary files or the extract script is incorrect then running the extract script won't finish. He needs to pull them from the repo himself and add them. Or add the muppets repo to a local manifest so they are pulled when syncing.
task650 said:
Grab the missing blobs from here https://github.com/TheMuppets/proprietary_vendor_htc. This is the repo that CM use and update.
Click to expand...
Click to collapse
Thanks.
I was following the instructions from here - http://wiki.cyanogenmod.org/w/Build_for_m8
delete
task650 said:
Grab the missing blobs from here https://github.com/TheMuppets/proprietary_vendor_htc. This is the repo that CM use and update.
Click to expand...
Click to collapse
I have grabbed them from there but I'm not getting any kind of audio after booting up my build. any idea why?
linezero said:
I have grabbed them from there but I'm not getting any kind of audio after booting up my build. any idea why?
Click to expand...
Click to collapse
I had the same problem. What I did was that I commented out both of those files in proprietary.txt in the same directory where extract-files.sh resides, ran the extract-files.sh and manually downloaded libtime_genoff.so from TheMuppets repo to the appropriate directory in the source tree.
I left out the libplayback_adreno.so and the build was successful, and the sound is now all fine. I have no idea what the problem is, but this seems to fix it.
EDIT: I also just ran a diff between my current tree and the files on TheMuppets repo and everything is the same except EasyAccessService.apk with the extracted one having MD5 sum of 857e281624403b51937da8d4bf821769 and the one on the repo d3858ce10861106ae2bf90d554838445.
EDIT2: Hmm, seems like build looks for libtime_genoff.so under vendor/lib but the file ends up under /system/lib on device. Changing the path in proprietary.txt lets extract script to run fine, but then the build fails!
oxplot said:
I had the same problem. What I did was that I commented out both of those files in proprietary.txt in the same directory where extract-files.sh resides, ran the extract-files.sh and manually downloaded libtime_genoff.so from TheMuppets repo to the appropriate directory in the source tree.
I left out the libplayback_adreno.so and the build was successful, and the sound is now all fine. I have no idea what the problem is, but this seems to fix it.
EDIT: I also just ran a diff between my current tree and the files on TheMuppets repo and everything is the same except EasyAccessService.apk with the extracted one having MD5 sum of 857e281624403b51937da8d4bf821769 and the one on the repo d3858ce10861106ae2bf90d554838445.
EDIT2: Hmm, seems like build looks for libtime_genoff.so under vendor/lib but the file ends up under /system/lib on device. Changing the path in proprietary.txt lets extract script to run fine, but then the build fails!
Click to expand...
Click to collapse
mine was an issue with cyanogenmod source they have reverted the commit back. more over did you do lunch?
linezero said:
mine was an issue with cyanogenmod source they have reverted the commit back. more over did you do lunch?
Click to expand...
Click to collapse
brunch
When was the commit reverted? I don't see any recent ones related to this.
oxplot said:
brunch
When was the commit reverted? I don't see any recent ones related to this.
Click to expand...
Click to collapse
http://review.cyanogenmod.org/#/c/71827/
linezero said:
http://review.cyanogenmod.org/#/c/71827/
Click to expand...
Click to collapse
I see, but that doesn't fix the extract-files script.

Need Device tree

Hey people ,
Can someone provide a relevant Xiaomi Redmi 1s device tree so I can start building customs ROM's for this device....
hackerzrulez007 said:
Hey people ,
Can someone provide a relevant Xiaomi Redmi 1s device tree so I can start building customs ROM's for this device....
Click to expand...
Click to collapse
Here is The Device tree :
https://github.com/armani-dev/android_device_xiaomi_armani
and here vender tree :
https://github.com/armani-dev/proprietary_vendor_xiaomi
Getting error while compiling AOSP with the armani device tree
I cloned these repos in device/ and vendor/ directories respectively.
I then ran . build/envsetup.sh which ran but gave this.
including device/android_device_xiaomi_armani/vendorsetup.sh
sh: 0: Can't open device/xiaomi/armani/patches/apply.sh
I anyways went ahead and hit lunch and then this happened when i passed cm_armani-userdebug as the selection.
Which would you like? [aosp_arm-eng] cm_armani-userdebug
build/core/product_config.mk:222: *** Can not locate config makefile for product "cm_armani". Stop.
** Don't have a product spec for: 'cm_armani'
** Do you have the right repo manifest?
I am trying to compile android lollipop with this device tree. Will this work? and if it can then where am I doing wrong?
praveenpuglia said:
I cloned these repos in device/ and vendor/ directories respectively.
I then ran . build/envsetup.sh which ran but gave this.
including device/android_device_xiaomi_armani/vendorsetup.sh
sh: 0: Can't open device/xiaomi/armani/patches/apply.sh
I anyways went ahead and hit lunch and then this happened when i passed cm_armani-userdebug as the selection.
Which would you like? [aosp_arm-eng] cm_armani-userdebug
build/core/product_config.mk:222: *** Can not locate config makefile for product "cm_armani". Stop.
** Don't have a product spec for: 'cm_armani'
** Do you have the right repo manifest?
I am trying to compile android lollipop with this device tree. Will this work? and if it can then where am I doing wrong?
Click to expand...
Click to collapse
these device tree won't work for cm12 ie lolipop
there are patch, which should be done before compiling rom
Can you tell me more ? I am not trying to build cm lollipop..i am trying to build AOSP stock rom. I just want to know if the cm 11 device tree can be used to conpile AOSP rom!
praveenpuglia said:
Can you tell me more ? I am not trying to build cm lollipop..i am trying to build AOSP stock rom. I just want to know if the cm 11 device tree can be used to conpile AOSP rom!
Click to expand...
Click to collapse
Won't work. Will need heck loads of patches and dirty hacks and display and media repos should be taken from armani-dev.
kD said:
Won't work. Will need heck loads of patches and dirty hacks and display and media repos should be taken from armani-dev.
Click to expand...
Click to collapse
What about using those device trees for cm12?
praveenpuglia said:
What about using those device trees for cm12?
Click to expand...
Click to collapse
As said earlier won't work
Actually OP need 1st step guide with current repo .... I think

How to Build AOSB from source

I am wanting to build AOSB from source with newer CM 11 as base
How do I build it repo is https://github.com/AOSB?page=1
Many thanks hope someone can help please
anttaz said:
I am wanting to build AOSB from source with newer CM 11 as base
How do I build it repo is https://github.com/AOSB?page=1
Many thanks hope someone can help please
Click to expand...
Click to collapse
Assume you have setup build environment.
1. Repo init AOSB source
2. [email protected] device/htc/endeavoru, device/htc/tegra3-common, vendor/htc, kernel/htc to appropriate path.
3. Modify .mk file in device/htc/endeavoru per AOSB
Hint : maybe you also need more missing repo in AOSB from CM..especially wifi stuff
yes ubuntu build environment set up just need to know how to build. I am a bit of a newbie to Android, Many thanks for the response
audahadi said:
Assume you have setup build environment.
1. Repo init AOSB source
2. [email protected] device/htc/endeavoru, device/htc/tegra3-common, vendor/htc, kernel/htc to appropriate path.
3. Modify .mk file in device/htc/endeavoru per AOSB
Hint : maybe you also need more missing repo in AOSB from CM..especially wifi stuff
Click to expand...
Click to collapse
yes ubuntu build environment set up just need to know how to build. I am a bit of a newbie to Android, Many thanks for the response
Read some guide to understand a bit about build process.XDA university @ CM wiki have lot of resources.
repo init -u https://github.com/AOSB/android.git -b cm-11.0
They have crap commit for newbie to build..hope that link work.
After you have all device tree setup properly.
.build/envsetup.sh && brunch endeavoru
audahadi said:
Read some guide to understand a bit about build process.XDA university @ CM wiki have lot of resources.
repo init -u https://github.com/AOSB/android.git -b cm-11.0
They have crap commit for newbie to build..hope that link work.
After you have all device tree setup properly.
.build/envsetup.sh && brunch endeavoru
Click to expand...
Click to collapse
404 this is not the page you are looking for?
audahadi said:
Read some guide to understand a bit about build process.XDA university @ CM wiki have lot of resources.
repo init -u https://github.com/AOSB/android.git -b cm-11.0
They have crap commit for newbie to build..hope that link work.
After you have all device tree setup properly.
.build/envsetup.sh && brunch endeavoru
Click to expand...
Click to collapse
Read up I just don't get the device tree part of it now?
anttaz said:
Read up I just don't get the device tree part of it now?
Click to expand...
Click to collapse
Compare with other AOSB devices..what they change @ needed to compile for AOSB.
audahadi said:
Compare with other AOSB devices..what they change @ needed to compile for AOSB.
Click to expand...
Click to collapse
Well no luck as no other devices have a guide on building and asking the chefs of the ROMs on xda and on official asob site no response other than yourself. So still none the wiser
audahadi said:
Compare with other AOSB devices..what they change @ needed to compile for AOSB.
Click to expand...
Click to collapse
I have the manifest xml now will this help in the building process?
anttaz said:
I have the manifest xml now will this help in the building process?
Click to expand...
Click to collapse
Should be similar to this
http://wiki.cyanogenmod.org/w/Endeavoru_Info
Honestly..their source is crap..can't find much information to help you with. Just use another rom..
audahadi said:
Should be similar to this
http://wiki.cyanogenmod.org/w/Endeavoru_Info
Honestly..their source is crap..can't find much information to help you with. Just use another rom..
Click to expand...
Click to collapse
Many thanks for all your help anyways. Much appreciated

delete

Delete this thread
Well, i suddenly visited Mipad sub-forum on XDA and i saw this...
What? You just rename repository from android_device_nvidia_shieldtablet to android_device_xiaomi_mocha...
And it is ALL what you did ???? OMG. No comments. Facepalm.
So i spent 1 hour of my life to make a mocha bring up.
https://github.com/vickdu31/android_device_xiaomi_mocha/pull/1/files
Also you should merge commits which will update selinux to kernel sources.
+ Do not forget about upstream patches.
Cherry-pick it from
https://github.com/CyanogenMod/android_kernel_nvidia_shieldtablet
If YOU continue do nothing, you will receive no result.
tank0412 said:
Well, i suddenly visited Mipad sub-forum on XDA and i saw this...
What? You just rename repository from android_device_nvidia_shieldtablet to android_device_xiaomi_mocha...
And it is ALL what you did ???? OMG. No comments. Facepalm.
So i spent 1 hour of my life to make a mocha bring up.
https://github.com/vickdu31/android_device_xiaomi_mocha/pull/1/files
Also you should merge commits which will update selinux to kernel sources.
+ Do not forget about upstream patches.
Cherry-pick it from
https://github.com/CyanogenMod/android_kernel_nvidia_shieldtablet
If YOU continue do nothing, you will receive no result.
Click to expand...
Click to collapse
Don't blame him. There is a will and intention of him to cook a rom. Everybody needs help and everybody was a beginner.
Yeah I have been pretty busy at school and other stuff so I don't have time, and still I have to learn couple things, I pulled the request, thanks.
I did this in this time : http://gbatemp.net/threads/release-haxchi-installer-1-1-noob-friendly.448890/
I think there is no big hurry and I am really busy at the moment, my point is to get more people working and ofcourse I have to start working on it asap !
There are people working
They just don't open a thread without having done anything because that's not really development
Harrynowl said:
There are people working
They just don't open a thread without having done anything because that's not really development
Click to expand...
Click to collapse
Can't find anyone working on it.. Is there any thread, forum or group or anything where people work ? Even on github I didnt find anything
vickdu31 said:
Can't find anyone working on it.. Is there any thread, forum or group or anything where people work ? Even on github I didnt find anything
Click to expand...
Click to collapse
Yes, it could be great to join your effort to not repeat same work.
Regards.
vickdu31 said:
Can't find anyone working on it.. Is there any thread, forum or group or anything where people work ? Even on github I didnt find anything
Click to expand...
Click to collapse
@Harrynowl is working as far as I know. I'm too but very busy lately.
Status !!?
vickdu31 said:
I create this thread to gather all potential developpers to join me and try to build a CM13.0 (at least a build that boot) for our Mi Pad.
I don't have much experience or knowledge yet but who knows, maybe we can get bootable build soon or later.
To all users : Do not expect anything from this thread in a while.
Current situation :
Just created the device tree from Nexus and Xiaomi sources.
To do right now :
- Totally modify the Device Tree (this is from nexus 9)
- Modify kernel to be able to try to even build something
Here are the device tree :
Device Tree (from cm13 Nexus 9) : https://github.com/vickdu31/android_device_xioami_mocha
Kernel Tree (from Xiaomi KK) : https://github.com/vickdu31/android_kernel_xiaomi_mocha
Vendor Tree (old Xiaomi KK) : https://github.com/vickdu31/android_vendor_xiaomi_mocha
I think I cannot do everything all by myself within 6+ month so any help is very welcome just as pull requests.
XDA:DevDB Information
working on Mi Pad, ROM for the Xiaomi Mi Pad
Contributors
vickdu31
ROM OS Version: 6.0.x Marshmallow
ROM Kernel: Linux 3.10.x
Based On: CyanogenMod
Version Information
Status: Testing
Created 2016-11-21
Last Updated 2016-11-26
Click to expand...
Click to collapse
Any progress to look forward to ?
Required help
Can some one guide me through the process of building the rom i already downloaded the cm 13 source. Searched many forums but not able to understand the process how to build for mocha @tank0412 @vickdu31 @Harrynowl
Rohit99 said:
Can some one guide me through the process of building the rom i already downloaded the cm 13 source. Searched many forums but not able to understand the process how to build for mocha @tank0412 @vickdu31 @Harrynowl
Click to expand...
Click to collapse
OMG.
Are you seriously?
. build/envsetup.sh
lunch
*enter number of mochas lunch combo"
You cannot build with these device sources because they are broken
Error while building
tank0412 said:
OMG.
Are you seriously?
. build/envsetup.sh
lunch
*enter number of mochas lunch combo"
Click to expand...
Click to collapse
Got this error while building using command
Code:
brunch mocha
including vendor/cm/vendorsetup.sh
build/core/product_config.mk:234: *** Can not locate config makefile for product "cm_mocha". Stop.
Device mocha not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Repository for mocha not found in the CyanogenMod Github repository list. If this is in error, you may need to manually add it to your local_manifests/roomservice.xml.
build/core/product_config.mk:234: *** Can not locate config makefile for product "cm_mocha". Stop.
** Don't have a product spec for: 'cm_mocha'
** Do you have the right repo manifest?
Click to expand...
Click to collapse
added repos in local_manifest.xml and roomservice.xml
Update :
i was able to brunch but stuck at this error
make: *** No rule to make target 'kernel/xiaomi/mocha/arch/arm/configs/cyanogenmod_mocha_defconfig', needed by '/home/uttara/rom/script/out/target/product/mocha/obj/KERNEL_OBJ/.config'. Stop.
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
@tank0412 please help
Rohit99 said:
Got this error while building using command
Code:
brunch mocha
added repos in local_manifest.xml and roomservice.xml
Update :
i was able to brunch but stuck at this error
@tank0412 please help
Click to expand...
Click to collapse
OMG. Are you seriously?
Put kernel sources to 'kernel/xiaomi/mocha/
It was writtent in the error!
No comments....
And rename defconfig of mocha to cyanogenmod_mocha_defconfig
tank0412 said:
OMG. Are you seriously?
Put kernel sources to 'kernel/xiaomi/mocha/
It was writtent in the error!
No comments....
And rename defconfig of mocha to cyanogenmod_mocha_defconfig
Click to expand...
Click to collapse
@tank0412 I'm very sorry for disturbing you this is my first build so please help, should i rename tegra_defconfig bcoz there is no file named defconfig
Rohit99 said:
@tank0412 I'm very sorry for disturbing you this is my first build so please help, should i rename tegra_defconfig bcoz there is no file named defconfig
Click to expand...
Click to collapse
Oh, GOD.
Check this:
https://github.com/vickdu31/android_kernel_xiaomi_mocha/pull/1/files
And turn on logic
Im working on other projects now, I don't have time at all, I can pull commits, I was thinking about closing this thread but since we can talk I can keep it open, but a discusion thread would be more apropriate
vickdu31 said:
Im working on other projects now, I don't have time at all, I can pull commits, I was thinking about closing this thread but since we can talk I can keep it open, but a discusion thread would be more apropriate
Click to expand...
Click to collapse
@vickdu31 you can close the thread i have created a new thread CM13

General Manifest FIle

Hello Fellow developer and programmer, I'm building a custom by using Ressurection Remix as a base, While I'm initializing the repo an error occurred, How to solve that. The Error is repo is not reccoginzsed as an internal or external command, I have installed the repo, thanks for the reading the post
LMGTFY - Let Me Google That For You
For all those people who find it more convenient to bother you with their question rather than to Google it for themselves.
bfy.tw
Deadshot0x7 said:
Hello Fellow developer and programmer, I'm building a custom by using Ressurection Remix as a base, While I'm initializing the repo an error occurred, How to solve that. The Error is repo is not reccoginzsed as an internal or external command, I have installed the repo, thanks for the reading the post
Click to expand...
Click to collapse
Download repo and make executable. Basic stuff man. Google as suggested above.
William.trem said:
Download repo and make executable. Basic stuff man. Google as suggested above.
Click to expand...
Click to collapse
thanks btw I'm new to custom rom
Deadshot0x7 said:
thanks btw I'm new to custom rom
Click to expand...
Click to collapse
I'm working on porting one myself. Repo is available within the Ubuntu apt-get repository. That can be a simpler way to install. However I'd suggest the curl & chmod method method for the latest binary as well as getting good experience.
Source control tools | Android Open Source Project
source.android.com
Downloading the Source | Android Open Source Project
source.android.com
2 sec to google
Follow the instructions to add the repository, then do an initial repo sync, I hope you have plenty of drive space cos some roms can take up many GB
The manifest instructions even link you to the guide for setting up git and repo
Ubuntu is usually the best platform for this, it might work in Windows subsystem for Linux but I've never tried so couldn't tell you.
Haven't built a rom for a while but you used to add device tree urls in .repo/local_manifests/roomservice.xml, it's probably still done the same way. (.repo is a hidden folder by default so, in Ubuntu, you would press CTRL+H to get it to show up)
If you don't know how to install repo then you will likely need to do a LOT of reading before you can even think of firing off a build.
djsubterrain said:
Follow the instructions to add the repository, then do an initial repo sync, I hope you have plenty of drive space cos some roms can take up many GB
The manifest instructions even link you to the guide for setting up git and repo
Ubuntu is usually the best platform for this, it might work in Windows subsystem for Linux but I've never tried so couldn't tell you.
Haven't built a rom for a while but you used to add device tree urls in .repo/local_manifests/roomservice.xml, it's probably still done the same way. (.repo is a hidden folder by default so, in Ubuntu, you would press CTRL+H to get it to show up)
If you don't know how to install repo then you will likely need to do a LOT of reading before you can even think of firing off a build.
Click to expand...
Click to collapse
Currently having success within WSL v1 Ubuntu.

Categories

Resources