yashsingh1/xdaforums huggingface dataset:
[Android] pix106:
So adb is now run at boot time.

I had the same problem, as a workaround I copied the sh from built rom to /system/bin dir, in the same mk script that copies the init files.

If you find a better way of dealing with this, tell us :)
[Android] HritikSH:
Sorry but I was unable to understand what should I do can you please elaborate the steps
[Android] pix106:
During build, "sh" binary, which is missing in your final build "at boot time", is built in out/target/product/.../system/bin.

As a workaround, you can copy the "sh" binary from there to your device tree, and add a line in one of the .mk files of your device so it's copied in /system/bin during build, so you can connect using adb to understand why, and what other things are missing (blobs, libs....).

For example, that's what i did there : https://github.com/Cyanogenmod-for-...1fbad8e7dd2d6922cc1/full_Tab2A710F.mk#L38-L40
[Android] HritikSH:
Thank you for giving your valuable time on me.

But I have checked my system/bin file and all the scripts including logcat where there then why is this happening
[Android] pix106:
yes, but it does not mean /system partition is mounted, so it may not be accessible =>that's why i had to copy sh binary to /system/bin, which is a subdirectory of /, not of /system partition

There may be a cleaner way though
[Android] HritikSH:
Thanks for your patience but I have an i3 laptop which takes nearly 11 hrs to build the whole rom so if I modify the .mk it will be a longer wait.

So my question is , Is there a way to mount system very early by modifying init.rc

Thanks again [MENTION=3064479]pix106[/MENTION]
[Android] pix106:
I suppose so, but I'm no expert about init files, I have been struggling with CM13 boot on mt8127 for ages to get it to boot... and it still doesn't :)

You don't need to do a clean build everytime, you can sometimes just delete files in the out dir and run a new build.

You can also build less projects, you don't need to build email apps and a few other ones. Add a few remove-project in your local manifest and repo sync.

You must have a bad config, 11h is way too long imho, even with an i3, but it depends on RAM and storage too.

Use the -j option to make command, twice the number of cores.

And most of all use ccache, at least 15GB.

Search about this, it'll help you a lot I think.

With a 7 years old i5 750 + 8GB RAM + old SSD + Ubuntu 14.04, first clean build of CM12.1 takes 1h30 to 2h, and then next ones take about 30minutes thanks to ccache.
[Android] HritikSH:
Thanks mate for all your help and info got my phone to give me logcat by using the boot.img from stock rom. Now the error comes for

OpenGL ES implementation not found

I guess copying those lib from stock will work.

On the work now:)

Again thanks for your help
[Android] pix106:
Nice.

Remember using other rom's boot.img is a workaround, not a solution :)
[Android] HritikSH:
Guys now I was my phone Micromax A99 get passed Boot-Logo but it never shows boot animation and shows a black screen and is stuck there forever.:(

Here's my logcat, I guess there is some kind of failure due to libc.so. But I'm not sure.

Please Help Me Out........

Edit: Done with this logcat.;)
[Android] pix106:
You already fixed your boot img ? :)

I think you need to do this first, adding files from your stock bootimg, and using them from RC files (that's where I'm not good at, I did not get how it works for now...)

After a quick look at your log, I think you need to fix

mounts, as /data seems unreachable (tombstones can't be created).

And search about all the missing .so files, blobs or built from source.

At the beginning of your build, build process lists files that are used as blobs, which can be built from sources.

And all binaries that are missing such as 6620_launcher etc...

You should also give us the link to your device tree, on github.
[Android] HritikSH:
Will try to fix the system as you said.:laugh:

And here is the link for the device tree that I have ported for my device:

https://github.com/Al3XKOoL/android_device_wiko_rainbow

And link for the vendor tree that I have ported for my device Micromax A99:

https://github.com/Al3XKOoL/android_vendor_wiko_rainbow
[Android] mamutal91:
Hi all

I got this error when I try to build AOSP for mido (Redmi Note 4)... Anyone know how to fix?

Thanks
[Android] aoleary:
Unable to push to my git branch

Hi all.

I'm try to push some changes to my device tree branch for the Citrus-CAF ROM.

I'm using this guide: https://xdaforums.com/showthread.php?t=1903393

I am trying to push to the "citrus" branch of https://github.com/aoleary/android_device_lge_d855

Here is what I executed:

[COLOR="Lime"]antoin@OL[/COLOR][COLOR="MediumTurquoise"]:~/ccaf$[/COLOR] cd device/lge/d855
[COLOR="lime"]antoin@OL[/COLOR][COLOR="MediumTurquoise"]:~/ccaf/device/lge/d855$[/COLOR] git remote add github git@github.com:aoleary/android_device_lge_d855.git
[COLOR="lime"]antoin@OL[/COLOR][COLOR="mediumturquoise"]:~/ccaf/device/lge/d855$[/COLOR] git commit -m "Citrus-ify the D855"
[detached HEAD b89ab4a] Citrus-ify the D855
3 files changed, 9 insertions(+), 2 deletions(-)
rename lineage.mk => citrus.mk (79%)
[COLOR="lime"]antoin@OL[/COLOR][COLOR="mediumturquoise"]:~/ccaf/device/lge/d855$[/COLOR] git branch citrus
[COLOR="lime"]antoin@OL[/COLOR][COLOR="mediumturquoise"]:~/ccaf/device/lge/d855$[/COLOR] git push github citrus
Username for 'https://github.com': aoleary
Password for 'https://aoleary@github.com':
remote: Permission to LineageOS/android_device_lge_d855.git denied to aoleary.
fatal: unable to access 'https://github.com/LineageOS/android_device_lge_d855/': The requested URL returned error: 403

Why the f*** is it trying to access "LineageOS/android_device_lge_d855" when I am trying to push to "aoleary/android_device_lge_d855"?
[Android] FSadino:
git remote add github https://github.com/aoleary/android_device_lge_d855
[Android] aoleary:
Hi. Unfortunately that doesn't change anything...

antoin@OL:~/ccaf/device/lge/d855$ git remote add github https://github.com/aoleary/android_device_lge_d855
fatal: remote github already exists.
antoin@OL:~/ccaf/device/lge/d855$ git push github citrus
Username for 'https://github.com': aoleary
Password for 'https://aoleary@github.com':
remote: Permission to LineageOS/android_device_lge_d855.git denied to aoleary.
fatal: unable to access 'https://github.com/LineageOS/android_device_lge_d855/': The requested URL returned error: 403
antoin@OL:~/ccaf/device/lge/d855$
[Android] NepoRood:
If you used local manifest to pull in your device:

git checkout {your branch}

Scratch that, can't checkout if you've already made commits, sorry.

git remote -v (will show all your remotes)
[Android] DodoGTA:
Change the name of the remote you're trying to create with "git remote add <remote name> <remote URL>"
[Android] FSadino:
You have to read instead of copy/paste....

antoin@OL:~/ccaf/device/lge/d855$ git remote add github https://github.com/aoleary/android_device_lge_d855
fatal: [B]remote github already exists[/B].

choose another name for remote or delete it before you add
[Android] aoleary:
I wanted to update the existing branch that I had created.

So what eventually worked for me was:

antoin@OL:~/ccaf$ cd device/lge/d855
antoin@OL:~/ccaf/device/lge/d855$ git remote add citrus https://github.com/aoleary/android_device_lge_d855.git
antoin@OL:~/ccaf/device/lge/d855$ git add .
antoin@OL:~/ccaf/device/lge/d855$ git commit -m "Citrus-ify the D855"
[detached HEAD b89ab4a] Citrus-ify the D855
3 files changed, 9 insertions(+), 2 deletions(-)
rename lineage.mk => citrus.mk (79%)
antoin@OL:~/ccaf/device/lge/d855$ git push -u citrus HEAD:citrus
Username for 'https://github.com': aoleary
Password for 'https://aoleary@github.com':
Counting objects: 5, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 803 bytes | 0 bytes/s, done.
Total 5 (delta 3), reused 0 (delta 0)
remote: Resolving deltas: 100% (3/3), completed with 3 local objects.
To https://github.com/aoleary/android_device_lge_d855.git
ad8c037..b89ab4a HEAD -> citrus

Thanks for your help :good:
[Android] aaaaaaziskurnia:
I'm trying to port to my Zenfone 4 Max. Any help with RIL?

Captured the logcats too long so I've uploaded to my gDrive. Here's the log:

https://drive.google.com/file/d/1s2g2aeA4x7GZpgWtmqNQx_-7IPzsOhyq/view?usp=drivesdk

My deivce tree:

https://github.com/aaaaaaziskurnia/android_device_asus_X00I

My rebased kernel:

https://github.com/aaaaaaziskurnia/android_kernel_asus_msm8937-caf

Thanks.
[Android] kozmo21:
Try messing with Xmx in .bashrc and also in /prebuilts/sdk/tools/ jack-admin.

I have the same setup, except I had even less RAM (4GB) and used swap, and was getting the same times of 1 hour 30 min clean, and 30 for update with ccache building LOS14.1 and RR. I then changed those settings and got it to cut the time in half... 45 min and 16 min.

I've since upgraded to 16GB and got it to 28 min for clean and 12 min for update. This old i5-750 just keeps going for me. I was just about to build a new computer, but getting the extra RAM made me rethink that. Oh yeah, I also have it OC a little too, nothing extreme though.

Try to adjust the #'s up and down till you find the sweet spot. Going too low will trigger the "out of memory error". I think I had to go down to 3G in jack-admin when I had 4G of RAM and I set the .bashrc to 2G? I've cranked them way up with 16GB. Like I said, just experiment with different #'s

Just wanted to let people know that you can build with old computers with low RAM. Not ideal, but it can be done without taking forever to build.

Good luck :good:
[Android] Alviss2108:
Is impossible to config device tree from Cyanogen Mod to Aosp source? I built rom Cyanogen Mod for Samsung E500h sucessfully.

Now i want to build Aosp rom for Samsung E500H to research.
[Android] FSadino:
if it were impossible, cyanogenmod/lineage did not exist...

Can't help you with that
[Android] pix106:
You need to fork your cm device tree, and make changes in your new device tree to suit aosp, such as replace the device name from cm_yourdevice to aosp_yourdevice, remove or replace cm makefiles inheritance for its aosp equivalent makefiles, etc...
[Android] Alviss2108:
i forked and built it. But i can't flash rom to device, it's error when flash system to rom.
[Android] pix106:
... Which error... ?
[Android] Alviss2108:
The system didn't flash to device. When i reboot, the twrp recovery show notification "No OS installed"

it's my recovery log : https://hastebin.com/romosusudo.sql

My updater-script : https://hastebin.com/emowukovok.sql
[Android] pix106:
This is the same for my aosp builds, TWRP says no os is installed before reboting, but system was installed and it boots fine.
[Android] Alviss2108:
You are lucky. When i reboot, my rom can't boot to system, it boot to odin mode :(
[Android] pix106:
Are you sure that /system path that is in install script really exists in TWRP ? "/dev/block/bootdevice/by-name/system" ?

I'd try with the same format as shown in TWRP log.
[Android] Alviss2108:
I didn't see anything in /dev/block/bootdevice/by-name/system. What should i do next?
[Android] pix106:
When TWRP is running, you checked this from adb shell, isn't it ?

"nothing in" => does it exist ? Was /system mounted ?

You can change the value in install script, manualy, and give it a try.

And/or find in which file (fstab i suppose) you have this value set, and try to replace it with a /dev/block/mmbclkXXXXX form.
[Android] Alviss2108:
I use terminal in twrp and can't cd to "/dev/block/bootdevice/by-name/system"/. Thank for your support. I will try it.
[Android] HritikSH:
Which device you are using??

Because in my case for mtk 6582 device I have file called dumchar_info which give the partition details.

It is located at /proc/dumchar_info

Try ls in proc and give some files a try.
[Android] RGlestman:
I have tried this command in Ubuntu 17.10 but not in Ubuntu 16.04 in Linux mint and in all the error does not work .. Anyone else gone through THIS? can someone help me?

Java Installation Completes￼

2)Installation Of Required Tools

Enter The Following Command*

Code:

sudo apt-get install git-core gnupg ccache lzop flex bison gperf build-essential zip curl zlib1g-dev zlib1g-dev:i386 libc6-dev lib32ncurses5 lib32z1 lib32bz2-1.0 lib32ncurses5-dev x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 lib32z-dev libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc readline-common libreadline6-dev libreadline6 lib32readline-gplv2-dev libncurses5-dev lib32readline5 lib32readline6 libreadline-dev libreadline6-dev:i386 libreadline6:i386 bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev lib32bz2-dev libsdl1.2-dev libesd0-dev squashfs-tools pngcrush schedtool libwxgtk2.8-dev python

Note : If you get error like broken dependencies then use the following command and then use above command.￼

Enviado de meu Z2 Plus usando Tapatalk
[Android] Alviss2108:
My device is Samsung E500H, using msm8916 and don't see dumchar_info in /proc folder
[Android] HritikSH:
Then try cat /proc/partitions
[Android] Alviss2108:
This is result from /proc/partitions

shell@e53g:/proc $ cat /proc/partitions
major minor #blocks name

179 0 15388672 mmcblk0
179 1 15360 mmcblk0p1
179 2 58816 mmcblk0p2
179 3 512 mmcblk0p3
179 4 32 mmcblk0p4
179 5 2048 mmcblk0p5
179 6 512 mmcblk0p6
179 7 512 mmcblk0p7
179 8 512 mmcblk0p8
179 9 3072 mmcblk0p9
179 10 16 mmcblk0p10
179 11 10768 mmcblk0p11
179 12 10240 mmcblk0p12
179 13 14336 mmcblk0p13
179 14 3072 mmcblk0p14
179 15 3072 mmcblk0p15
179 16 13312 mmcblk0p16
179 17 15360 mmcblk0p17
179 18 5121 mmcblk0p18
179 19 7159 mmcblk0p19
179 20 3072 mmcblk0p20
179 21 8 mmcblk0p21
179 22 8192 mmcblk0p22
179 23 9216 mmcblk0p23
179 24 2457600 mmcblk0p24
179 25 204800 mmcblk0p25
179 26 61440 mmcblk0p26
179 27 12476396 mmcblk0p27
179 32 4096 mmcblk0rpmb
179 64 15351808 mmcblk1
179 65 15347712 mmcblk1p1
[Android] HritikSH:
CyanogenMod11 Stuck In BootLoop

Ok so now I have my Micromax A99 stuck in BootLoop it shows the boot animation and again displays that boot animation.:(

I can't understand what's the problem now I have checked and adb shell is working properly.

Here's the part of logcat where the logs are ended :

D/BootAnimation( 1061): [BootAnimation checkExit 695]exitnow=0
D/BootAnimation( 1061): [BootAnimation movie 850]i=1,r=2,j=34,lastFrame=67255178083(67255 ms),file=10035.jpg
D/BootAnimation( 1061): [BootAnimation movie 853]glBindTexture,i=1,r=2,j=34,frame.tid=82,name=10035.jpg
D/BootAnimation( 1061): [BootAnimation showBitmap 1221]frame index: 82
D/BootAnimation( 1061): [BootAnimation showBitmap 1228]max wait time: 0
D/BootAnimation( 1061): [BootAnimation showBitmap 1271]cleanCache: 0
D/BootAnimation( 1061): [BootAnimation movie 894]after glDrawArrays
D/BootAnimation( 1061): [BootAnimation movie 918]5,delay=15
V/SurfaceFlinger( 1042): [void android::SFWatchDog::markStartTransactionTime(uint32_t)] name=SurfaceFlinger, index=0, time = 67262016775
V/SurfaceFlinger( 1042): [void android::SFWatchDog::unmarkStartTransactionTime(uint32_t)] name=SurfaceFlinger, index=0, time = 0
V/SurfaceFlinger( 1042): [void android::SFWatchDog::markStartTransactionTime(uint32_t)] name=SurfaceFlinger, index=0, time = 67262449545
V/SurfaceFlinger( 1042): [void android::SFWatchDog::unmarkStartTransactionTime(uint32_t)] name=SurfaceFlinger, index=0, time = 0
D/BootAnimation( 1061): [BootAnimation checkExit 695]exitnow=0
D/BootAnimation( 1061): [BootAnimation movie 850]i=1,r=2,j=35,lastFrame=67276161083(67276 ms),file=10036.jpg
D/BootAnimation( 1061): [BootAnimation movie 853]glBindTexture,i=1,r=2,j=35,frame.tid=83,name=10036.jpg
D/BootAnimation( 1061): [BootAnimation showBitmap 1221]frame index: 83
D/BootAnimation( 1061): [BootAnimation showBitmap 1228]max wait time: 0
D/BootAnimation( 1061): [BootAnimation showBitmap 1271]cleanCache: 0
D/BootAnimation( 1061): [BootAnimation movie 894]after glDrawArrays
D/BootAnimation( 1061): [BootAnimation movie 918]5,delay=14

And my complete logcat is big that's why I have uploaded it to drive, here's the link:

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

Please someone take some time and help me!!!!!
[Android] HritikSH:
Sorry for late reply was just working on the rom as mentioned and still same condition.

Just see what it is in your update script and try mounting the system as said by [MENTION=3064479]pix106[/MENTION]

Cat /proc/partitions

And cat/proc/mount are there for your reference
[Android] pix106:
how did you fix adb, sh binary ? If you did something else than the hack i gave you, i may be interested...

I see no audio in this log, i don't know if this is a problem or if android gui can be started with no audio.

From what i remember when my rom was at the same stage as yours (ie bootanimation... but nothing else) :

Maybe there is a permission problem, with NVRam or other, and/or some missing permissions xml files (see your device.mk).

Maybe some blobs are missing, see the init scripts you got from stock rom bootimage, and check them for missing binaries (i.e init script calls a binary that is not in your build, such as 6620_loader etc...).

Try "service list" to see what services are running, this may give you a clue.
[Android] HritikSH:
I have seen stock init.rc script and they had commented the import statement for init.mt6582.rc and there was no init.mt6582.rc in stock boot image.

Then in boot.img for CyanogenMod I have removed the comment and now I could access adb. But still it was not going upto the CyanogenMod boot animation.

Hence I had modified the stock boot.img by adding init.mt6582.rc, init.cm.rc and init.superuser.rc and remove the comment from import statement of init.mt6582.rc

Then I could boot upto boot animation of CyanogenMod.

But when I have checked init.rc from stock and CM boot.img they were same is it okay?

And I could access cache and data through adb shell when I used CM boot.img which is not going upto boot animation

But for the modified stock boot.img I could only access system through adb shell.

And I have also merged the stock lib folder with mine as well as done same with bin folder then I don't think there should be some problems with blobs or binaries.

As well as I have also merged the vendor folder from stock.

And I am not understanding what should I do with permissions that you are telling me to do. Can you please some knowledge of yours on this.

And I have also tried removing bootanimation.zip from /system/media the it gets stuck on animation with android written in text. But where it came from I have deleted the bootanimation.zip?

Please tell me.....

And again thank you my friend for being so generous on sharing your knowledge.
[Android] nit_in:
getting error in compilation

I am getting this error again and again for AntHalService and BasicDreams

kindly help.

I have tried building with and without jack but getting same error
[Android] pix106:
if they are stricly same, imho you should use CM one, built with rom.

Fully merged ??? Stil imho, this is a bad idea, only a few needed libs should be used as blobs.

The less "prebuilts" files you use, the better.

In the beginning of your build log, you'll find some lines telling you what files are used as blobs but can be built from source. This list mus be huge in your case :)

You'll next ask : how to chose ? :) => search google, xda, github, and experiment... :)

i'm not *telling* you anything, i'm giving some things to search on google, github etc... :)

Look at the device tree i linked before (for your sh missing problem), look at the files, you'll see how i got cm12.1 to build with my tablet.

You'l find some line to copy xml files, about permissions, from android source to the build.

But, i insist, i'm no expert, i have knowledge in linux administration and development in other languages but none in java or C development => that's why i try things, with a lot of searches, feeling, and a bit of randomness... :)

And search...

i don't see why bootanimation.zip should be removed, this has nothing to do with your system not starting : there is enough "loaded" to show bootanimation, but surfaceflinger and/or other necessary services die, so system is not fully booting.
[Android] HritikSH:
Got my CM 11 to boot though with camera,sound recorder and wifi hotspot problem. I will try and fix them ;)

But I am very grateful for your help, thank you very much my friend [MENTION=3064479]pix106[/MENTION].

Just asking out of curiosity I have seen a CM 12 rom where there was implementation of zygote.

But in my case(booting CM 11) there is no implementation of zygote but I guess for dalvik, zygote is necessary for sharing the VMs. Is this correct?:confused:
[Android] Athipathirathana:
How to add certain apps like pixel launcher2,pixel live wallpapers and other apps built in while compiling ROMs ! Am building viper OS nougat
[Android] FSadino:
This can be used as example:

https://github.com/FSadino/packages_apps_Evolve/commit/90f0f7af31e87757ab2ee03839e9224adf55fce1

https://github.com/FSadino/omni_android_build/commit/9e259a602fd7f27fb179a867f6aad41aed9a45bb
[Android] Arjun KalyanRam:
Should v have to just repo sync the needed apps in the corresponding path ? Like android_packages_apps_xxxxx
[Android] Ripudamankaushik:
Hello people I am trying to build a rom but I am stuck at the bootanimation and I have been tryinn to fix it for a very long time ......The display crashes due to some libqservice/mm-pp-daemon error ......can anybody plz help me out here is the full loghttps://drive.google.com/open?id=1dnMuhTwTS3JZYNYoPwaQ2sHaBlGhhl8k
[Android] BlueFlame4:
I might be a little late to the party but in case you (or someone else with the same error) still needs help: keytool is not defined in your PATH. Probably your JAVA_HOME or PATH is broken. Check both :)
[Android] LilBlinx:
I going furious right now because of this error which I cannot solve. Any hints along the way?

Disabling ART_BUILD_TARGET_DEBUG
Disabling ART_BUILD_HOST_DEBUG
build/core/binary.mk:37: hal3-test-app uses kernel headers, but does not depend on them!
build/core/binary.mk:1229: external/deqp/Android.mk: libdeqp: Unused source files: \
build/core/binary.mk:1229: external/deqp/Android.mk: libdeqp: Unused source files: \
build/core/binary.mk:37: modetest uses kernel headers, but does not depend on them!
build/core/binary.mk:1229: external/pdfium/third_party/pdfiumbigint.mk: libpdfiumbigint: Unused source files: bigint/BigInteger.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc bigint/BigUnsignedInABase.cc
build/core/binary.mk:1229: external/pdfium/third_party/pdfiumbigint.mk: libpdfiumbigint: Unused source files: bigint/BigInteger.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc bigint/BigUnsignedInABase.cc
./external/speex/Android.mk:56: TODOArm64: enable neon in libspeex
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
find: ‘/home/android/citrus/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates’: No such file or directory
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
build/core/base_rules.mk:183: *** vendor/qcom/opensource/data-ipa-cfg-mgr/ipacm/src: MODULE.TARGET.EXECUTABLES.ipacm already defined by device/xiaomi/mido/data-ipa-cfg-mgr/ipacm/src.
build/core/ninja.mk:166: recipe for target '/home/android/citrus/out/build-citrus_mido.ninja' failed
make: *** [/home/android/citrus/out/build-citrus_mido.ninja] Error 1
make: Leaving directory '/home/android/citrus'

#### make failed to build some targets (46 seconds) ####