yashsingh1/xdaforums huggingface dataset:
[Android] TimSchumi:
No, you need to do the following:

cd ~/android/lineage/external/chromium-webview
git fetch [url]http://www.github.com/LineageOS/android_external_chromium-webview[/url] cm-14.1
git cherry-pick <Commit SHA1>
[Android] DiamondJohn:
That worked perfectly. Thanks. But I was a little surprised that it downloaded 1GB to get <100MB in actual file changes (that only I knew). It looks to me if it downloaded everything in preparation to cover itself, not knowing which commit I was going to cherry pick.
[Android] ZeNiXxX:
hi all and [MENTION=4153704]Haze028[/MENTION]

is there a way to add an script to the rom ? I'm building zenity for oneplus 3 and i would like to add a script to the rom which is runs on first boot, is there a way to manage that ?
[Android] DiamondJohn:
Does the phone have to actually be booted? could it be run as part of the updater-script.
[Android] ZeNiXxX:
On first boot of ROM run once a script, that turns off auto generating tousands of log files in "/data/system/dropbox" folder. I suppose, this files are generated by Android system for regular upload to Google, in any case, particulating in software impove program or not.

it is possible to decrase log from 1000 to 1 single file, by two commands:

content insert --uri content://settings/global --bind name:s:dropbox_max_files --bind value:i:1

settings put global dropbox_max_files 1

thats my goal
[Android] DiamondJohn:
Have you tested it? and have you tested if it works if you run it in recovery? If it "sticks" when run in recovery, then you could simply run it during the install script, and then it would also catch a dirty flash.

I didn't know it could be done this way. I personally use a bootscript to clear that and a few other folders.I will have to give this a go when I get a chance.
[Android] theHari08:
Please help... Compiling for first time

Generating TOC: /home/hari08/XenonHD-n-full-20170629/out/target/common/obj/JAVA_LIBRARIES/sdk_v9_intermediates/classes.jar.toc
file is invalid or corrupted (missing end of central directory record)
Unable to open Zip file /home/hari08/XenonHD-n-full-20170629/out/target/common/obj/JAVA_LIBRARIES/sdk_v9_intermediates/classes.jar: Input/output error
build/core/prebuilt_internal.mk:428: recipe for target '/home/hari08/XenonHD-n-full-20170629/out/target/common/obj/JAVA_LIBRARIES/sdk_v9_intermediates/classes.jar.toc' failed
make: *** [/home/hari08/XenonHD-n-full-20170629/out/target/common/obj/JAVA_LIBRARIES/sdk_v9_intermediates/classes.jar.toc] Aborted
make: *** Waiting for unfinished jobs....
make: Leaving directory '/home/hari08/XenonHD-n-full-20170629'
[Android] somadsul:
Looks like source not synced well, sync again & clean build if still you got error then post this issue in github rom source
[Android] theHari08:
Thank you.. I'll try.
[Android] DJKristy:
I am getting this error

pls help

/home/rahul/cm/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/rahul/cm/out/target/product/mint2g/obj/ETC/sepolicy.recovery_intermediates/policy_recovery.conf

DumpPublicKey: /home/rahul/cm/out/target/product/mint2g/obj/PACKAGING/ota_keys_intermediates/keys <= build/target/product/security/testkey.x509.pem build/target/product/security/cm.x509.pem build/target/product/security/cm-devkey.x509.pem

device/samsung/mint2g/sepolicy/audioserver.te:2:ERROR 'unknown type audioserver' at token ';' on line 14219:

#line 1 "device/samsung/mint2g/sepolicy/audioserver.te"

allow audioserver rootfs:lnk_file { getattr };

checkpolicy: error(s) encountered while parsing configuration

external/sepolicy/Android.mk:112: recipe for target '/home/rahul/cm/out/target/product/mint2g/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery' failed

make: *** [/home/rahul/cm/out/target/product/mint2g/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery] Error 1

make: *** Waiting for unfinished jobs....

java -jar /home/rahul/cm/out/host/linux-x86/framework/dumpkey.jar build/target/product/security/testkey.x509.pem build/target/product/security/cm.x509.pem build/target/product/security/cm-devkey.x509.pem > /home/rahul/cm/out/target/product/mint2g/obj/PACKAGING/ota_keys_intermediates/keys

make: Leaving directory '/home/rahul/cm'

#### make failed to build some targets (02:55:15 (hh:mm:ss)) ####
[Android] HarshOne:
Any solution for this error?

Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/home/harshone/android/lineage/out/target/product/m8/obj/KERNEL_OBJ/usr', needed by '/home/harshone/android/lineage/out/target/product/m8/obj/STATIC_LIBRARIES/libsdcard_intermediates/sdcard.o', missing and no known rule to make it
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/home/harshone/android/lineage'

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

:confused::confused::confused:
[Android] RealAkito:
This tutorial work great for me!
[Android] Priyanuj Dutta:
Confused.

Screenshots for CyanogenMod please. Not understanding where to write what.
[Android] knight182:
Compiling for first time...

Please help!!

[44/44] bootstrap /home/vishwaspatel654/franken/out/soong/.minibootstrap/build.ninja.in

[4/4] cp /home/vishwaspatel654/franken/out/soong/.bootstrap/bin/bpglob

[867/868] glob vendor/qcom/opensource/interfaces/wifi/supplicant/1.0/Android.bp

[56/56] /home/vishwaspatel654/franken/out/soong/.boots...ld /home/vishwaspatel654/franken/out/soong/build.ninja

/home/vishwaspatel654/franken/out/build-liquid_Z00T.ninja is missing, regenerating...

build/core/combo/TARGET_linux-arm.mk:43: warning: cortex-a53 is armv8-a.

build/core/combo/TARGET_linux-arm.mk:45: warning: TARGET_2ND_ARCH_VARIANT, armv7-a-neon, ignored! Use armv8-a instead.

build/core/binary.mk:40: warning: ebtables uses deprecated kernel header dependency path.

build/core/binary.mk:40: warning: libtinycompress_vendor uses deprecated kernel header dependency path.

build/core/binary.mk:40: warning: libtinycompress uses deprecated kernel header dependency path.

frameworks/av/camera/cameraserver/Android.mk:18: warning: Target has integrated cameraserver into mediaserver. This is weakening security measures introduced in 7.0

build/core/binary.mk:40: warning: libbt-vendor uses deprecated kernel header dependency path.

build/core/binary.mk:40: warning: libqcomfm_jni uses deprecated kernel header dependency path.

build/core/binary.mk:40: warning: keystore.msm8916 uses deprecated kernel header dependency path.

build/core/binary.mk:40: warning: libwifi-hal-qcom uses deprecated kernel header dependency path.

build/core/binary.mk:40: warning: libwifi-hal-qcom uses deprecated kernel header dependency path.

build/core/binary.mk:40: warning: libQWiFiSoftApCfg uses deprecated kernel header dependency path.

build/core/binary.mk:40: warning: libcryptfs_hw uses deprecated kernel header dependency path.

build/core/binary.mk:40: warning: librmnetctl uses deprecated kernel header dependency path.

build/core/binary.mk:40: warning: sockev uses deprecated kernel header dependency path.

frameworks/base/packages/SettingsLib/common.mk: error: ZenfoneDoze (APPS android-arm64) missing org.lineageos.platform.internal (JAVA_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.

frameworks/av/services/audiopolicy/Android.mk: error: libaudiopolicyservice (SHARED_LIBRARIES android-arm64) missing libaudiopolicymanager (SHARED_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.

frameworks/av/services/audiopolicy/Android.mk: error: libaudiopolicyservice (SHARED_LIBRARIES android-arm) missing libaudiopolicymanager (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.

build/core/main.mk:747: error: exiting from previous errors.

10:36:53 ckati failed with: exit status 1

#### failed to build some targets (01:32 (mm:ss)) ####
[Android] DiamondJohn:
A couple of suggestions.

1. Paste your log on a hosting service such as www.hastebin.com It allows for a lot more of the log than would be polite in a forum thread.

2. Past the whole log (on hastebin or such), or at least as much as you can from the end up. I personally have found the most pertinent info of the log is found between the "FAILED:" and the end.

3. A lot of people will ask for a link to your sources to better assist you, so include links to your github sources.

4. paste your question in the following thread, its a lot more active.

https://xdaforums.com/chef-central/android/guide-android-rom-development-t2814763

I am no gun dev, but to me, with the short log you have posted, the following line would be my target in any web search

[B]frameworks/base/packages/SettingsLib/common.mk[/B]: error: [B]ZenfoneDoze[/B] (APPS android-arm64) [B]missing[/B] org.lineageos.platform.internal (JAVA_LIBRARIES android-arm64)

Check if there is a reference to ZenfoneDoze in frameworks/base/packages/SettingsLib/common.mk:confused:

But really, try the other thread.;)
[Android] beats4x:
This guide is awesome (: thank you for the time and effort put into creating this.

i was able to successfully get a few builds up and running, even as far as using the linaro toolchain. The next thing i want to try is cherry picking a few different features from other roms so i can eliminate the need for gravity box. I have the source from PA 4.0, and want to cherry pick a few things like active display, longpress lockscreen ring for torch, staus bar brightness slider, etc.

If i understand you correctly, i need to fork the repository that holds the features that i want to cherry pick into my github account, then fetch the commit from there? So step by step:

cd into the directory where changes will be made

fork the repository with the features i want to my github account

add the remote repository

fetch "name of repository"

then git cherry-pick the commit id?

Thanks in advance for any help (:
[Android] Haze028:
fetch "name of repository"

then git cherry-pick the commit id?

Thanks in advance for any help (:[/QUOTE]

Thanks, I probably need to fix it up/add to it... But it still works.

What you should probably do is...

Fork the repo from pa you want to edit.

Remove pa repo and add your github version in local manifest

Outside your working folder clone the repo from your github

Cherry pick commits.

Push changes to your github

Sync repo in working folder

Build

That's how I would do it...... Maybe not the best way but it works.
[Android] beats4x:
Awesome, I'll give it a try later today and see how it goes. Thanks for the help

Sent from my Nexus 7 2013
[Android] beats4x:
Could i also use the clone method you stated in the OP?
[Android] Haze028:
Yes... Same clone method... Just do it from outside your working directory, then change your local manifest in your working directory and sync
[Android] Dhwanik:
Hi bro

i really liked ur tutorial on aosp building

ur tutorial is the only tutorial which shows how to add and delete apk's

I want to add custom Boot animation into AOSP source, i have bootanimaton.zip

can u guide me on how to add it to source???

i am building 4.4.2 build on nexus 7 2012

please do reply
[Android] Cuanhog:
Thanks for info

Thanks for the great rite-up
[Android] divyamg28:
thnkx for this amazing guide!!
[Android] siracuervo:
You rock man! I started developing with your guide. Thks a lot

Enviado desde mi XT910
[Android] ancidroide:
Hi,I'm syncing repo from 13 hours but it is stuck from 2 hours on:

Resolving deltas: 100% (589891/589891), done.deltas: 30% (176970/589891)
From https://github.com/AOKP/frameworks_base
* [new branch] jb -> aokp/jb
* [new branch] jb-broke -> aokp/jb-broke
* [new branch] jb-mr1 -> aokp/jb-mr1
* [new branch] jb-mr2 -> aokp/jb-mr2
* [new branch] kitkat -> aokp/kitkat
* [new tag] Build-2 -> Build-2
* [new tag] Build-3 -> Build-3
* [new tag] Build-4 -> Build-4
* [new tag] Build-5 -> Build-5
* [new tag] Milestone-1 -> Milestone-1
* [new tag] jb-mr1_build-1 -> jb-mr1_build-1
* [new tag] jb-mr1_build-4 -> jb-mr1_build-4
* [new tag] jb-mr1_build-6 -> jb-mr1_build-6
* [new tag] jb-mr1_milestone-1 -> jb-mr1_milestone-1
* [new tag] jb-mr1_milestone-2 -> jb-mr1_milestone-2
* [new tag] jb-mr2_milestone-1 -> jb-mr2_milestone-1

Anything went wrong?

What I have to do now?

P.S Thanks a lot for the guide...
[Android] Haze028:
I don't see anything wrong in the text you coppied... Try just running repo sync again... something may have just locked up and will go through fine this time...

Repo should just fail if it doesn't work so I think re-running repo sync may solve your issue.

if it still locks up on you.. look through your output more, there should be something letting you know what happened.
[Android] ancidroide:
I tried but it remains still stuck...I don't know what I have to do now...Do You think I have to close the terminal?
[Android] Haze028:
I'd close the terminal then open a new one and retry... If not delete your working folder... Reinit and resync..... Look up higher on your output for a fatal warning or anything that would give an idea what's up...
[Android] ancidroide:
I found something...

Many times the terminal restituted this:

curl: (22) The requested URL returned error: 404
Server does not provide clone.bundle; ignoring
[Android] Haze028:
that's normal, you'll see that come up for every repository it grabs.

I havn't seen repo just hang there before... at least not for the hours that your's has.

you may need to delete your working directory, re-do the 'repo init -u...' in a new directory and try to 'repo sync' again. I can't see any reason why it wouldn't sync up for ya, so trying again may be your only option here.
[Android] ancidroide:
Oh OK...thanks a lot for your help...I will try...

EDIT:

I changed my mind ... I preferred tobuild the slimkat because AOKP got me so many problems... after repo sync can I directly compile?
[Android] calikevin:
Excellent guide, very well worded and formatted. I do have a few questions though as I'm using a device that is not officially supported by the ROMs I'd like to build. I'm using the HTC Vivid/holiday and I think the only official custom ROM we have is CM10.1. How would I go about building SlimBean KK4.4 for the holiday? We do have kernel and other device specific repos thanks to TeamHydra, would those be of any use?

I was able to get the holiday listed in the lunch menu for slim, but I think I missed something along the way..

68. slim_holiday-userdebug

Which would you like? [aosp_arm-eng] 68
build/core/product_config.mk:236: *** _nic.PRODUCTS.[[device/htc/holiday/slim.mk]]: "device/htc/msm8660-common/bcm_hcd.mk" does not exist. Stop.
Device holiday not found. Attempting to retrieve device repository from SlimRoms Github (http://github.com/SlimRoms).
Repository for holiday not found in the SlimRoms Github repository list. If this is in error, you may need to manually add it to .repo/local_manifests/slim_manifest.xml
build/core/product_config.mk:236: *** _nic.PRODUCTS.[[device/htc/holiday/slim.mk]]: "device/htc/msm8660-common/bcm_hcd.mk" does not exist. Stop.

** Don't have a product spec for: 'slim_holiday'
** Do you have the right repo manifest?

Here is what my slim_manifest.xml looks like-

<?xml version="1.0" encoding="UTF-8"?>
<manifest>

<remote name="holiday"
fetch="git://github.com/" />

<project path="kernel/htc/holiday" name="Team-Hydra/android_kernel_htc_msm8960" remote="holiday" revision="cm-11.0" />
<project path="device/htc/holiday" name="Team-Hydra/android_device_htc_holiday" remote="holiday" revision="cm-11.0" />
<project path="vendor/htc/holiday" name="Team-Hydra/android_vendor_htc" remote="holiday" revision="cm-11.0" />

</manifest>
[Android] Haze028:
Thanks.

I took a quick look at the repos you are using... Seems you also need this one https://github.com/Team-Hydra/android_device_htc_msm8660-common

Hopefully that's all you need to get going. If you run into other issues after you add that repo to device/HTC/msm8660-common let me know and I'll try to get ya building
[Android] Haze028:
I've not built slim ROM before. ALL Roms require some setup to add your device to the source(unless its an officially supported device)

Take a look at the other devices which are already set to build and use how they added It as a template for adding your device
[Android] Mustafa Mubashir:
i am unable to install basic pakages which are required before builting roms,

i think the problem is that i installed Ubuntu 12.04 directly instead of setting it in virtual box?

whenever i install pakages it says E:unable to locate or similar errors...
[Android] xboxfanj:
Aosp has a good guide for 12.04. Source.Google.com

Under initializing.
[Android] Haze028:
No, doesn't have anything to do with virtual box. I build on my native Linux mint machine. Native or virtual doesn't matter in that regard.

What is the actual full error you are getting? Ctrl+shift+c to copy from a terminal window
[Android] Mustafa Mubashir:
okay i will report you as soon as possible when i will boot to Ubuntu...
[Android] Mustafa Mubashir:
for e.g this is an error while installing java.

sudo apt-get install oracle-java6-installer

Reading package lists... Done

Building dependency tree

Reading state information... Done

Some packages could not be installed. This may mean that you have

requested an impossible situation or if you are using the unstable

distribution that some required packages have not yet been created

or been moved out of Incoming.

The following information may help to resolve the situation:

The following packages have unmet dependencies:

oracle-java6-installer : Depends: java-common (>= 0.24) but it is not installable

Recommends: gsfonts-x11 but it is not installable

E: Unable to correct problems, you have held broken packages.
[Android] Haze028:
Just did a little googling, as I hadn't seen that error before. Try typing 'dpkg --get-selections | grep hold' to get a list of held packages. Then 'echo "package_name install"|sudo dpkg --set-selections' to remove the hold on the package.

Hopefully that will help/correct issue. Let me know...

Edit: are you working off an existing Ubuntu installation or fresh install?
[Android] calikevin:
Alright so I added the repo you mentioned to the slim_manifest, so it looks like this now-

<?xml version="1.0" encoding="UTF-8"?>
<manifest>

<remote name="holiday"
fetch="git://github.com/" />

<project path="kernel/htc/holiday" name="Team-Hydra/android_kernel_htc_msm8960" remote="holiday" revision="cm-11.0" />
<project path="device/htc/holiday" name="Team-Hydra/android_device_htc_holiday" remote="holiday" revision="cm-11.0" />
<project path="vendor/htc/holiday" name="Team-Hydra/android_vendor_htc" remote="holiday" revision="cm-11.0" />
<project path="vendor/htc/holiday" name="Team-Hydra/android_device_htc_msm8660-common" remote="holiday" revision="cm-11.0" />

</manifest>

but when I go and run lunch again I still get some errors-

build/core/product_config.mk:236: *** _nic.PRODUCTS.[[device/htc/holiday/slim.mk]]: "device/htc/msm8660-common/bcm_hcd.mk" does not exist. Stop.
Device holiday not found. Attempting to retrieve device repository from SlimRoms Github (http://github.com/SlimRoms).
Repository for holiday not found in the SlimRoms Github repository list. If this is in error, you may need to manually add it to .repo/local_manifests/slim_manifest.xml
build/core/product_config.mk:236: *** _nic.PRODUCTS.[[device/htc/holiday/slim.mk]]: "device/htc/msm8660-common/bcm_hcd.mk" does not exist. Stop.

** Don't have a product spec for: 'slim_holiday'
** Do you have the right repo manifest?

What do you think I'm missing?
[Android] xboxfanj:
Tells you exactly what you're missing: bcm_hcd.mk in 8660 common.
[Android] Haze028:
Sorry I didn't notice before... Keep the path the same as the repo names... So.... Device/HTC/msm8660-common

See where that gets ya
[Android] calikevin:
Thank you Captain Obvious, I can read also. Any idea what that means or how to fix it? Is 8660 common a folder that needs a file named bcm_hcd.mk? Do I need to create this file myself, and if so what goes in it?

Alright, I edited a few lines to correspond with the repo names, it still comes back with the same error as before. Is there anything else you can think of that I may need to change in the manifest? Thanks again!

<?xml version="1.0" encoding="UTF-8"?>
<manifest>

<remote name="holiday"
fetch="git://github.com/" />

<project path="kernel/htc/msm8960" name="Team-Hydra/android_kernel_htc_msm8960" remote="holiday" revision="cm-11.0" />
<project path="device/htc/holiday" name="Team-Hydra/android_device_htc_holiday" remote="holiday" revision="cm-11.0" />
<project path="vendor/htc" name="Team-Hydra/android_vendor_htc" remote="holiday" revision="cm-11.0" />
<project path="vendor/htc/msm8660-common" name="Team-Hydra/android_device_htc_msm8660-common" remote="holiday" revision="cm-11.0" />

</manifest>
[Android] Haze028:
Your build failed here.... Its looking for a prebuilt kernel.

Either need to prebuild one or change a few files to tell it to build inline.

You'll need to fine where its trying to copy the prebuilt kernel... Most likely in device.mk look for `local kernel=`

And delete the lines.

Then in your boardconfig.Mk you'll need to add a few lines to have it look for the kernel source and build it..... I'm on my phone so I'll edit this post later with appropriate lines.

Edit: you'll need these two line in boardconfig.Mk once you've deleted the prebuilt kernel lines from device.Mk

TARGET_KERNEL_SOURCE := kernel/HTC/holiday

TARGET_KERNEL_CONFIG := Device_defconfig

Change the bold device to the name of the defconfig you are using....maybe holiday_defconfig?

Edit2: just a FYI if you see 'no rule to make' that is saying that your source is calling for file it states but cannot find it where its looking. So in this case it was looking for the prwbuilt kernel but couldn't find one as you're going to be building inline kernel.
[Android] xboxfanj:
Wasn't trying to be rude, some people legitimately ask me things like that, but I really just wanted you to see if the folder was there, which it wasn't. If there's no rule to make boot.IMG, it looks like you may have the wrong kernel source. I believe holiday is 8660, so you need the source corresponding with that. The manifest has 8960.
[Android] calikevin:
Yea you're correct about the kernel, I just happened to notice that after attempting the first build, I changed it to 8660 and started another build right before I passed out. Haven't had a chance to check on it yet.

I appreciate the help, and sorry for any attitude I gave. Is it necessary to git clone every repo I have sourced in manifest?
[Android] Haze028:
Adding repos to your local manifest will sync(clone) them every time you run a 'repo sync'

I would delete any of them you did a git clone for before doing a repo sync. To avoid any conflicts.... The repo sync will download them again
[Android] calikevin:
Sorry, can you explain to me the best way to delete the repos I have already? Should I save the slim_manifest file that I have modified with my repo sources in it? And how would I go about re-initializing the repo and re-syncing everything? Is it best to just delete the entire directory and recreate, start from scratch again?
[Android] Haze028:
Just delete the device/HTC folder

Instead of editing the slim manifest you should create a local_manifest.XML in .repo/local_manifests

Look at the local manifest part if the guide
[Android] calikevin:
My local_manifest.xml already has the correct repos in it as well. I just deleted the device/htc folder and tried to run repo sync with this error coming up-

fatal: duplicate path device/htc/holiday in /home/calikevin/holidayroms/.repo/manifest.xml

I know I have never edited this file either, and just to make sure I ran nano on it to loo through and I don't see the path it mentions in there at all..