yashsingh1/xdaforums huggingface dataset:
[Android] diliprocks1986:
Please help

including ./packages/apps/Launcher2/Android.mk ...

including ./packages/apps/Launcher3/Android.mk ...

including ./packages/apps/LegacyCamera/Android.mk ...

make: packages/apps/LegacyCamera/tests/Android.mk:10: fork: Cannot allocate memory

make: build/core/package_internal.mk:98: fork: Cannot allocate memory

make: build/core/package_internal.mk:111: fork: Cannot allocate memory

including ./packages/apps/ManagedProvisioning/Android.mk ...

make: packages/apps/ManagedProvisioning/Android.mk:8: fork: Cannot allocate memory

make: build/core/package_internal.mk:98: fork: Cannot allocate memory

make: build/core/package_internal.mk:111: fork: Cannot allocate memory

including ./packages/apps/Mms/Android.mk ...

make: packages/apps/Mms/Android.mk:9: fork: Cannot allocate memory

make: packages/apps/Mms/Android.mk:13: fork: Cannot allocate memory

make: build/core/package_internal.mk:98: fork: Cannot allocate memory

make: build/core/package_internal.mk:111: fork: Cannot allocate memory

make: build/core/package_internal.mk:111: fork: Cannot allocate memory

make: packages/apps/Mms/tests/Android.mk:24: fork: Cannot allocate memory

make: build/core/package_internal.mk:98: fork: Cannot allocate memory

make: build/core/package_internal.mk:111: fork: Cannot allocate memory

make: packages/apps/Mms/apptests/Android.mk:8: fork: Cannot allocate memory

make: build/core/package_internal.mk:98: fork: Cannot allocate memory

make: build/core/package_internal.mk:111: fork: Cannot allocate memory

including ./packages/apps/Music/Android.mk ...

make: packages/apps/Music/Android.mk:6: fork: Cannot allocate memory

make: build/core/package_internal.mk:98: fork: Cannot allocate memory

make: build/core/package_internal.mk:111: fork: Cannot allocate memory

make: packages/apps/Music/tests/Android.mk:10: fork: Cannot allocate memory

make: build/core/package_internal.mk:98: fork: Cannot allocate memory

make: build/core/package_internal.mk:111: fork: Cannot allocate memory

including ./packages/apps/MusicFX/Android.mk ...

make: packages/apps/MusicFX/Android.mk:6: fork: Cannot allocate memory

make: build/core/package_internal.mk:98: fork: Cannot allocate memory

make: build/core/package_internal.mk:111: fork: Cannot allocate memory

including ./packages/apps/Nfc/Android.mk ...

make: packages/apps/Nfc/Android.mk:10: fork: Cannot allocate memory

make: packages/apps/Nfc/Android.mk:13: fork: Cannot allocate memory

make: build/core/package_internal.mk:98: fork: Cannot allocate memory

make: build/core/package_internal.mk:111: fork: Cannot allocate memory

build/core/java.mk:265: *** packages/apps/Nfc: Target java module does not define any source or resource files. Stop.

#### make failed to build some targets (07:52 (mm:ss)) ####
[Android] fizbanrapper:
Usually means that you ran out of ram. Most frequently caused by running too many jobs, such as "make -j64", when you only have enough memory for "make -j2".
[Android] diliprocks1986:
still geting same error

still geting same error...:confused::confused:

after "make -j2"
[Android] saintxseiya:
Why are you using make?

---------- Post added at 12:08 PM ---------- Previous post was at 12:06 PM ----------

Another silly question maybe, what is the OTA zip, that is created with the build.

Second one, is it possible in some way to build Delta zips? i know that there is cyandelta, but i wanna know if it is possible to do this with my custom rom on buildtime?
[Android] antariksh:
Kinda noob question, I want to edit the 'android_packages_apps_Settings' (Settings app) repository to add/remove features. Just wanted to know if there is any method or procedure or any tools to edit this. Or do I have to just manually edit the files?

Tried importing this to Android Studio but couldn't get it to build anything as the packages were missing or in other repositories.
[Android] xenreon:
Yes the aosp app packages aren't Gradle based Android studio supported projects (they use make as you can see) so you gotta manually edit them and compile in the ROM project directory generally.

You're missing a module, grab whatever is between / and intermediates in the error and search for that (in a ROM you know doesn't give that error preferably) and then sync the repo that you think is the one required.
[Android] xenreon:
Use hastebin or some other paste service for posting logs (everybody), As for the error pretty sure it has been discussed in this thread several times before (also elsewhere on the internet) so search first.

Have you tried uninstalling and reinstalling Jack?
[Android] ashwini215:
I hope I am not the wrong thread, asking the wrong question (related to kernel compiling issues). :)

I compiled a kernel for Samsung J7 prime nougat (exynos 7870) kernel from source.

Compilation ended with some warnings and I went ahead with installing it on my device.

Now I am facing 2 Problems:-

1) device doesn't remember Wi-fi passwords after rebooting.

2) Blue tooth isn't working (Does not turn On).

I tried the securestorage=false method in the build prop for wifi but it's not working.

Only changes made in the kernel to make it permissive were :-

1) Change in /security/selinux - hooks.c file

Added :-

selinux_enforcing = 0;// enforcing ? 1 : 0;

2) Change in /security/selinux selinuxfs.c file

Added :-

new_value = 0;

before

if (new_value != selinux_enforcing) {

Also attaching the complete log.

Can somebody please help ?
[Android] albertoduqe:
Thanks.

You're right about hastebin and about devicesettings... For some reason they weren't there when I synced sources. Getting them.

I reseted jack and trying to build legend again now.

Sorry and thanks!
[Android] albertoduqe:
Update: the two builds went through finally :)

Legend is working fine and logcat didn't show errors or fatals... I am using it right now.

AimRom seems pretty ok too, camera and other sensors working, bluetooth, radio... Only bug I noticed is strange behaviour of notifications: they stay when minimizing quick settings or when pushing home button. I need to drag them up manually. Logcat shows a fatal that seems related to a libsomething.so

I will try and track it down and I can replace that file with the one in legend and see if it fixes it.

My question is: is that the only way to fix a bug like that? What should be the proper way to go? How to actually see and edit a .so file?

Thanks again guys!!!
[Android] ahmed gamal 1m:
Could I use the boot.img of say Android 4.4.4 for building a 7.0 Nougat based ROM?
[Android] Albe96:
Nope.You've to apply Nougat patches to boot nougat based ROM

---------- Post added at 09:21 PM ---------- Previous post was at 09:15 PM ----------

After reverting it the those are working?
[Android] albertoduqe:
Hi again!

So I keep trying to fix Xenon's camera for Lithium. I compared logs with Legend's and other LOS based roms that work ok and found the fatals and the debugg lines point at three .so files in system/lib64...

What I did, as I don't know how to exactly fix bugs and this is my first time, was going to xenon/out/target/product/lithium/system/lib64 and replaced the pointed files by the equivalent from Legend's build. I then run another build obviously without clearing the out directory.

It is running right now but my question is: is that the way to go?

I tried the same thing with AimRom (bug with notifications) and it did nothing... So my guess is that I am doing something wrong...

This kind of changes to fix a bug, must them be applied at the out directory as I am doing? Or at the sources' folders and files? If so, how on earth do you find the origin of a lib64/xxx.so file???

Thanks everybody!!!
[Android] NepoRood:
Check your vendor directory, under "proprietary", there should be a lib64 folder in there...
[Android] albertoduqe:
Thanks.

I was thinking it had to be vendor related but of course not sure.
[Android] KingCartman:
Hello everyone,

i am trying to compile RR 5.4.5 for the Motorola G5 Plus (potter). While compiling i get this error:

FAILED: /root/android/rr/out/target/product/potter/obj/SHARED_LIBRARIES/libreference-ril_intermediates/LINKED/libreference-ril.so
/bin/bash -c "prebuilts/clang/host/linux-x86/clang-2690385/bin/clang++ -nostdlib -Wl,-soname,libreference-ril.so -Wl,--gc-sections -shared -L/root/android/rr/out/target/product/potter/obj/lib /root/android/rr/out/target/product/potter/obj/lib/crtbegin_so.o /root/android/rr/out/target/product/potter/obj/SHARED_LIBRARIES/libreference-ril_intermediates/reference-ril.o /root/android/rr/out/target/product/potter/obj/SHARED_LIBRARIES/libreference-ril_intermediates/atchannel.o /root/android/rr/out/target/product/potter/obj/SHARED_LIBRARIES/libreference-ril_intermediates/misc.o /root/android/rr/out/target/product/potter/obj/SHARED_LIBRARIES/libreference-ril_intermediates/at_tok.o -Wl,--whole-archive -Wl,--no-whole-archive /root/android/rr/out/target/product/potter/obj/STATIC_LIBRARIES/libunwind_llvm_intermediates/libunwind_llvm.a /root/android/rr/out/target/product/potter/obj/STATIC_LIBRARIES/libcompiler_rt-extras_intermediates/libcompiler_rt-extras.a prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/lib/libatomic.a prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/../lib/gcc/arm-linux-androideabi/4.9/libgcc.a -llog -lcutils -lutils -lril -lrilutils -lcutils -lutils -lc++ -ldl -lc -lm -o /root/android/rr/out/target/product/potter/obj/SHARED_LIBRARIES/libreference-ril_intermediates/LINKED/libreference-ril.so -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--build-id=md5 -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--icf=safe -Wl,--hash-style=gnu -Wl,--no-undefined-version -Wl,--no-fix-cortex-a8 -target arm-linux-androideabi -Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin -Wl,--exclude-libs,libunwind_llvm.a -Wl,--no-undefined /root/android/rr/out/target/product/potter/obj/lib/crtend_so.o"
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin/ld: error: cannot find -lril
hardware/ril/reference-ril/reference-ril.c:2008: error: undefined reference to 'requestToString'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)

Does someone have a tip what the issue can be?
[Android] qiurigao:
[34/54] link out/soong/.bootstrap/soong-python/test/test

[35/54] test android/soong/python

[36/54] link out/soong/.bootstrap/soong-cc-config/test/test

[37/54] test android/soong/cc/config

FAILED: out/soong/.bootstrap/soong-cc-config/test/test.passed

out/soong/.bootstrap/bin/gotestrunner -p ./build/soong/cc/config -f out/soong/.bootstrap/soong-cc-config/test/test.passed -- out/soong/.bootstrap/soong-cc-config/test/test -test.short

panic: read /opt/8937: is a directory

goroutine 1 [running]:

android/soong/cc/config.setSdclangVars()

/opt/8937/build/soong/cc/config/global.go:206 +0x17bc

android/soong/cc/config.init.2()

/opt/8937/build/soong/cc/config/global.go:179 +0xcd6

android/soong/cc/config.init()

/opt/8937/build/soong/cc/config/tidy_test.go:42 +0x3cbb

main.init()

/opt/8937/out/soong/.bootstrap/soong-cc-config/test/test.go:64 +0x58

[38/54] link out/soong/.bootstrap/soong-java/test/test

[39/54] compile out/soong/.bootstrap/soong-cc/pkg/android/soong/cc.a

[40/54] compile out/soong/.bootstrap/soong-cc/test/android/soong/cc.a

ninja: build stopped: subcommand failed.

01:31:39 soong failed with: exit status 1
[Android] ashwini215:
After reverting it the those are working?[/QUOTE]

No, still the same problem.

Is this problem something to do with the warnings that come at the last during kernel compilation.

I have attached log.
[Android] pix106:
Hi,

in this security bulletin, i can see 5.1.1 in "updated AOSP versions" column of some tables.

When i "repo sync" my 5.1.1 AOSP source, i don't seem to get these securtity patches.

I'm syncing android-5.1.1_r38, are these patches merged in some other tag ?

Did i understand it wrong ?

Thanks !
[Android] DodoGTA:
Just because it's applicable to that version doesn't mean that a new tag will be released for that version
[Android] pix106:
Thanks.

So, do you know where it has been updated and how to sync it ? Table header on security bulletin says "updated AOSP version" not "applicable to" :), there must be somewhere to get this updated source code, isn't it ?
[Android] DiamondJohn:
Kanging?

I've successfully build a few ROMs for my device and I share my builds here on XDA.

All my builds are LineageOS based, and as part of my build, I replace a few standard LineageOS apps with ones from other ROMs. For example, in my ResurectionRemix build, I replace LineageOS's music player Eleven, with OmiRom's music player Phonograph.

I do specifically give mention / references to these changes in the threads where I post the builds for my ROMs.

Is this taking from a number of different ROMs (found on GitHub) to piece together my version of a ROM OK? or do I need to attain explicit permissions from someone to "Kang" these repositories on GitHub? ironically, the last ROM I built using this technique was to modify the apps included in AOKP.
[Android] DodoGTA:
You have to cherry-pick the relevant commits
[Android] xenreon:
Keeping the original commit authorship is enough, that's why it's open source.
[Android] pix106:
Ok, if I got it well, I actually have to cherry pick all commits before these ones ? Isn't there a "master" branch somewhere ?
[Android] DodoGTA:
You have to cherry-pick the relevant security patch-related commits (They can be found in the security bulletins) that are of a newer security patch than the one specified in build/core/version_defaults.mk (Example: If one wants to go from April 2016 to January 2017 security patch, then one has to cherry-pick commits from the May, June, July... 2016 security patch) and bump the security patch level accordingly

And AOSP has a master branch, but it's bleeding-edge (and that's not what you want in this case)
[Android] ichiato:
I am trying to build aicp from source for an unsupported device and I keep getting this error when building

ninja: error: '/Volumes/android/aicp/out/target/product/j3x3g/obj/KERNEL_OBJ/usr', needed by '/Volumes/android/aicp/out/target/product/j3x3g/obj/SHARED_LIBRARIES/libtinyalsa_intermediates/mixer.o', missing and no known rule to make it

. full log attached. Any help would be appreciated
[Android] manishvermaa:
I am getting this error while building DU for oneplus 3t. Any help will be appriciated.

ninja: error: '/home/manish/DU/out/target/product/oneplus3/kernel', needed by '/home/manish/DU/out/target/product/oneplus3/boot.img', missing and no known rule to make it
20:00:38 ninja failed with: exit status 1
make: *** [build/core/main.mk:21: run_soong_ui] Error 1

Full log:

https://hastebin.com/aqegiruqur.pl
[Android] ichiato:
where in your device tree is your recovery.fstab and kernel located ?
[Android] virsys:
Good morning :)

I used this guide to create a ROM for my tablet (gt510wifi). The rom compiles just fine, but it isn't booting on the device. TWRP flashes the rom without any issues. The tablet is stuck on the bootlogo and not rebooting. The rom (rr) is rooted with Magisk. Is knox preventing my phone from booting? I'm new to this..

Can you give me a hint?? Is there a log deep inside of my tablet?

Thanks :)
[Android] pix106:
ok, thanks a lot !

I hoped there was a "5.1.1 master", from which a new tag hadn't been created after the r38... :)

I'll try to do this, but as i never cherry-picked i'm affraid of the dependencies... and i'll have to cherry-pick dozens of commits... i'll discover if they are easy to deal with :)

And i didn't mention that, for now, my unpublished AOSP rom for Tab2 A7-10F (MT8127) reboots randomly "after a while", with a device tree that is very close to the one i used for CM12.1 and which works with no reboot.

Thanks again !
[Android] albertoduqe:
Hi again you all!!

I sorted out the fatal signals I was getting with LegendRom for Lithium. They were related to NFC.

I solved them temporarily replacing and adding missing NFC files and folders directly yo /out/target/lithium/system, getting them from an RR build.

In the meantime, I added the missing sources to local_manifest (pointing to the three repos I found in LineageOS, LineageOS/android_vendor_nxp-nfc_opensource_XXX), and to lithium's dependencies, but when I run another build the "missing" files are not there.

I do not want to bother you guys with the list of files affected, but my guess is that the main missing thing is the folder NQNfcNci in system/vendor/app and its inner lib folder and apk file.

My question is, what am I missing? I mean, the source for that folder and apk is there in the Android.mk, in my working-tree/vendor/nxp-nfc/opensource/Nfc...

My only guess is that I must make clobber and clear the out folder, run a clean build and maybe then it's all pulled to its place, but I don't know if I am in the right path at all...

Thanks!!!
[Android] Infect_Ed:
https://github.com/LineageOS/android_vendor_nxp-nfc_opensource_Nfc/tree/lineage-15.0

https://github.com/LineageOS/android_vendor_nxp-nfc_opensource_libnfc-nci/tree/lineage-15.0

https://github.com/LineageOS/android_vendor_nxp-nfc_opensource_frameworks/tree/lineage-15.0

You need all three of these
[Android] ZVNexus:
Trying to build Dirty Unicorns v12 for the HTC One (M9) (Verizon).

https://hastebin.com/wobatalelu.vbs

Have looked this up but all I can find is just other people's hastebins pertaining to the same error. From reading it, it looks like its missing a Java library? I have a hard time reading errors.

How would I go about obtaining a Java library?
[Android] xenreon:
Either sync lineagesdk (check los GitHub) or remove whatever is asking for it.
[Android] ZVNexus:
I originally thought to remove GestureHandler, (the thing that was requested the library but couldnt be found), but I need that. Thanks a lot for the lineagesdk thing!
[Android] albertoduqe:
Yeah I got them synced and in place and referenced by in the device.dependencies, etc. Well, branch cm;14.1 in my case.

Still not creating the expected files and dirs when building but as I said I hadn't tried clean build. I'll see today.

Thanks for the reply!!!
[Android] albertoduqe:
Well I've been trying some more stuff in my test-builds and believed I had this NFC issue solved but no. Last Legend zip works ok and gives me no grave errors or problems, but then after like a day of using it as daily driver I noticed some NFC errors in the logs I hadn't seen before. I checked settings and yep: NFC enabled but shadowed, cannot switch it on or off.

I have the three lineage sources for "android_vendor_nxp-nfc_opensource_xxx" synced and referenced in dependencies. Also "LineageOS/android_packages_apps_Nfc" is of course called from manifest.xml

I've also added PRODUCT_PACKAGES in device.mk like:

# NFC

PRODUCT_PACKAGES += \

com.android.nfc_extras \

com.nxp.nfc.nq \

nfc_nci.nqx.default \

NQNfcNci \

NfcNci \

nqnfcee_access.xml \

nqnfcse_access.xml \

Tag

And from searching around I even added the PRODUCT_PACKAGE NfcNci to build/target/product/generic_no_telephony.mk

I am not sure if any of these things are correct or what I am missing, but final build's still laking NfcNci.apk in system/app/NfcNci

Anybody can help me here?

My guess is I am not doing something very basic like a "product_copy_files" somwhere or the like but I can't seem to manage to solve it.

Thanks a lot!
[Android] bmrobin:
Nice post

Thanxx
[Android] Qiangong2:
I have been trying to build a kernel for my mediatek device for a while now. I was given an incomplete kernel source and now it does not build when I use "make zImage".

It always gets stuck at xt_tcpmss.c with this error:

net/netfilter/xt_tcpmss.c: In function 'tcpmss_mt':
net/netfilter/xt_TCPMSS.c:64:26: error: dereferencing pointer to incomplete type
return (mssval >= info->mss_min &&
^
net/netfilter/xt_tcpmss.c:65:19: error: dereferencing pointer to incomplete type
mssval <= info->mss_max) ^ info->invert;
^
net/netfilter/xt_tcpmss.c:65:36: error: dereferencing pointer to incomplete type
mssval <= info->mss_max) ^ info->invert;
^
net/netfilter/xt_tcpmss.c:73:13: error: dereferencing pointer to incomplete type
return info->invert;
^
net/netfilter/xt_tcpmss.c: At top level:
net/netfilter/xt_tcpmss.c:85:23: error: invalid application of 'sizeof' to incomplete type 'struct xt_tcpmss_match_info'
.matchsize = sizeof(struct xt_tcpmss_match_info),
^
net/netfilter/xt_tcpmss.c:93:23: error: invalid application of 'sizeof' to incomplete type 'struct xt_tcpmss_match_info'
.matchsize = sizeof(struct xt_tcpmss_match_info),
^
scripts/Makefile.build:257: recipe for target 'net/netfilter/xt_TCPMSS.o' failed

There are no other errors.

Here is my kernel source (due to issues with travis-ci, the true stock branch is stock2 and dev is "stock"): https://github.com/Qiangong2/android_kernel_blu_d790q

The xt_tcpmss.c file is identical with other 3.18 mt6580 kernel sources. So why do I keep getting this error?
[Android] quake73:
Take a look at: http://androidxref.com/kernel_3.18/xref/include/uapi/linux/netfilter/xt_tcpmss.h

Your kernel version lacks some fields in struct xt_tcpmss_match_info....Try adding them to your header file then run the build again. I hope it helps.
[Android] Qiangong2:
Thanks! The build finishes successfully now
[Android] doors666:
I did some more research on this. All the other libraries from the linker line exist. The culprit is libminui, which is not included in the linker line contains the functions that are missing. The minui library exists in out/target/product/sanders/obj/STATIC_LIBRARIES/libminui_intermediates/libminui.a. I can not find the makefile that is calling the link line. Could some one please tell me how or where to find the makefile that generates this linker line. Find and grep didnot help. I tried changing some of the makefiles in the vendor tree and add libminui, but that didnt help.

How can I pass a debug setting to make to print more information. I call time brunch sanders usually.
[Android] quake73:
Try adding LOCAL_SHARED_LIBRARIES += libminui in the android.mk file (in vendor/lineage/charger, under the line LOCAL_SRC_FILES := healthd_board_lineage.cpp)

EDIT:

or perhaps LOCAL_STATIC_LIBRARIES += libminui
[Android] doors666:
Thanx, I tried this. I still get the same error. No libminui still in the link line. That file is probably used for compilation and not for making shared libs.
[Android] quake73:
I took a look around the mk files and what worked for me was simply adding WITH_BLISS_CHARGER := false in my boardconfig file. I build BlissROM, in your case it would be WITH_LINEAGE_CHARGER := false. That way, it will omit the custom charger and should continue building. I'm not sure of the consequences, maybe it will lose some custom charging animations and images. You may try that, at least until you find a proper fix, hope it helps.
[Android] doors666:
Oh, thank your, thank you, thank you.... that worked.

Guess what I found already there USE_CM_CHARGER:=false... guess someone just forgot to change that...:)
[Android] payne:
hello guys

could someone please help me with this error? the code seems to be correct?

system/core/run-as/run-as.cpp:168:30: error: use of undeclared identifier 'AID_USER_OFFSET'

if ((UID_MAX - info.uid) / AID_USER_OFFSET < (uid_t)userId) {

^

system/core/run-as/run-as.cpp:173:22: error: use of undeclared identifier 'AID_USER_OFFSET'

uid_t userAppId = (AID_USER_OFFSET * userId) + info.uid;

^

2 errors generated.
[Android] Qiangong2:
When I try to build twrp with the minimal manifest here: https://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni/tree/twrp-6.0

It always fails at:

including ./frameworks/native-caf/services/sensorservice/Android.mk ...
including ./frameworks/native-caf/services/surfaceflinger/Android.mk ...
including ./frameworks/native/Android.mk ...
build/core/base_rules.mk:157: *** frameworks/native/cmds/dumpstate: MODULE.TARGET.STATIC_LIBRARIES.libdumpstate.default already defined by frameworks/native-caf/cmds/dumpstate. Stop.

I can't seem to find this error elsewhere, how do I fix it?
[Android] DiamondJohn:
Building TWRP has its own thread. https://xdaforums.com/showthread.php?t=1943625