yashsingh1/xdaforums huggingface dataset:
[Android General] zelendel:
You really dont know what is going to happen to it. The source for say the nexus 6 dies this year. Last year was the last time that the base code will be updated. None of the nexus devices will see code up dates past last year. Even the famed Nexus 6p chipset will not be updated and team aurora has not touched that chipset in a long time. Hell I dont even know a team that supports even the nexus 6 anymore. Well outside of Los but there is a reason for that. Los is really just bad example.

---------- Post added at 06:32 PM ---------- Previous post was at 06:22 PM ----------

XDA was always the way it is. You had to do your research. I made the mistake of asking a question without researching to first time here. I was flamed to the point that I didnt post again for over a month. But by then I had learned what I needed to and I came back to thank them.

Now as for your statement. This is completely not true. Not to long ago I bet my non tech sons $50 each if they could show me a working android build and they had 48 hours. Well they came back in less the 18 with a rom and when asked what devices thy could build for, it turned out to be all of the ones Los supports.

As for the kitchen. There have always been things like that for those that are lazy. There will always be those that takes the work of others and claim it to be theirs.
[Android General] lucki1000:
Thanks, I have add it to my device mk, but i get again a failure with dex2oat.

log attached.
[Android General] lukaspieper:
Added the file. Do I have to reference it in my device tree somehow?

The behavior of the problem has also changed a bit. The problem is that a change in the USB state is not detected. For example, with the latest build I connected the charger first and then started the device. The OS then displayed the indicator for charging in the battery icon and the LED was lit. When I unplugged the cable, only the LED went off, the battery icon still shows charge. When I plugged the cable back in, the LED lit up again. But if I start the tablet without charging cable and only plug it in when the OS is running, it won't charge. I could observe the same behavior with ADB and MTP. During boot the USB status is recognized once and then not updated anymore.

I'll try to capture the behavior in multiple logs, I haven't been able to do that today. But maybe you already have an idea with my description, e.g. which component is responsible for recognizing the USB status.

Thank you very much.
[Android General] psychem:
i was trying to follow your youtube video on building twrp using minimal manifest. kind of stuck here

=
root@mx:~/losTWRP# mka recoveryimage
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=9
TARGET_PRODUCT=omni_onyx
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.9.146-antix.1-amd64-smp-x86_64-Debian-GNU/Linux-9-(stretch)
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=PQ1A.190105.004
OUT_DIR=/root/losTWRP/out
============================================
[1/1] /root/losTWRP/out/soong/.minibootstrap/min...p /root/losTWRP/out/soong/.bootstrap/build.ninja
[38/39] glob prebuilts/ndk/stl.bp
[75/75] /root/losTWRP/out/soong/.bootstrap/bin/soong_build /root/losTWRP/out/soong/build.ninja
FAILED: /root/losTWRP/out/soong/build.ninja
/root/losTWRP/out/soong/.bootstrap/bin/soong_build -t -l /root/losTWRP/out/.module_paths/Android.bp.list -b /root/losTWRP/out/soong -n /root/losTWRP/out -d /root/losTWRP/out/soong/build.ninja.d -o /root/losTWRP/out/soong/build.ninja Android.bp
error: frameworks/av/media/libmedia/Android.bp:117:1: "libmedia_midiiowrapper" depends on undefined module "libsonivox"
error: external/perfetto/test/cts/Android.bp:1:1: "CtsPerfettoTestCases" depends on undefined module "libandroid"
error: system/hardware/interfaces/net/netd/testutils/Android.bp:17:1: "VtsHalNetNetdTestUtils" depends on undefined module "libandroid_net"
error: external/libbrillo/Android.bp:253:1: "libbrillo-test-helpers" depends on undefined module "libcurl"
error: tools/apkzlib/Android.bp:17:1: "apkzlib_zip" depends on undefined module "ext"
error: tools/apkzlib/Android.bp:17:1: "apkzlib_zip" depends on undefined module "framework"
error: tools/apkzlib/Android.bp:17:1: "apkzlib_zip" depends on undefined module "okhttp"
error: tools/apkzlib/Android.bp:17:1: "apkzlib_zip" depends on undefined module "guava"
error: frameworks/av/media/extractors/midi/Android.bp:1:1: "libmidiextractor" depends on undefined module "libsonivox"
error: frameworks/av/drm/mediadrm/plugins/clearkey/default/Android.bp:17:1: "libdrmclearkeyplugin" depends on undefined module "libjsmn"
error: build/make/tools/zipalign/Android.bp:7:1: "zipalign" depends on undefined module "libzopfli"
error: frameworks/av/media/libmedia/Android.bp:151:1: "libmedia" depends on undefined module "libsonivox"
error: frameworks/av/media/extractors/ogg/Android.bp:1:1: "liboggextractor" depends on undefined module "libvorbisidec"
error: tools/apkzlib/Android.bp:26:1: "apkzlib" depends on undefined module "guava"
error: tools/apkzlib/Android.bp:26:1: "apkzlib" depends on undefined module "apksig"
ninja: build stopped: subcommand failed.
23:25:49 soong bootstrap failed with: exit status 1

#### failed to build some targets (14 seconds) ####
[Android General] lukaspieper:
Try that command:

export ALLOW_MISSING_DEPENDENCIES=true

Then "mka recoveryimage" again.
[Android General] AlaskaLinuxUser:
I'll have to see the logs, but I am a bit stumped on this one.

Yes this is the right command. Keep in mind that this is the only situation where allow missing dependencies should be used. :good:
[Android General] DJABHipHop:
Is there a way to use repo sync to download all your video series at once from git lab as you would a rom I have a server and want to know how + Quick question if I use repo sync as another user on the same machine im fine to do so right?
[Android General] manushamil:
That's understandable never mind that can you help me with this error "device/samsung/qcom-common/doze/Android.mk:37: frameworks/base/packages/SettingsLib/common.mk: No such file or directory

make: *** [/home/husky/lineage_os/out/build-lineage_jfltexx.ninja] Error". I did search for the line but that brought me to github.

Thanks.
[Android General] DJABHipHop:
Question did you pull & read your tombstones file for more info on the bluetooth problem & the rest of your errors,

Did you pull a dmesg as well
[Android General] rajesh@xda:
How to do both job (tombstones and dmesg) on android. is it same as taking logcat.?
[Android General] DJABHipHop:
Try these

adb shell dmesg >> [B] to that ever folder you want[/B]/dmesg.txt

adb pull data/tombstones [B] to that ever folder you want[/B]

logcat displays error you as tombstones is what the name imply death meaning something on your device is deemed dead by the os.

I also recommend this video as well pull and reading tombstones https://www.youtube.com/watch?v=qMc8Nj7yArA

One last thing see if your missing any file related your problem in your device tree.
[Android General] AlaskaLinuxUser:
So, as we've seen, we search the output for the words "error" or "failed" and we see this:

bootable/recovery/twinstall.cpp:196:67: error: format specifies type 'size_t' (aka 'unsigned int') but the argument has type 'long long' [-Werror,-Wformat]

LOGINFO("has_legacy_properties: mmap (size=%zu) failed: %s!\n", finfo.st_size, strerror(errno));

~~~ ^~~~~~~~~~~~~

%lld

So, you need to find the twinstall.cpp file, line 196, space 67 where will be the above line. It is using c++ and is specifying that it should be an unsigned int, but is receiving a long. You will have to do one of three things:

1. remove this line and hope that fixes it (not best option, but is an option since it is a line about logging info).

2. Edit this line to accept the long instead of the unsigned int.

3. Edit the lines proceeding it to feed it an unsigned int instead of a long variable.

What are you building for? Where is your tree you are using? Perhaps I can take a look. Details, lots of details will be helpful. :laugh:
[Android General] psychem:
im building for oneplus x onyx using device kernel vendor and twrp manifest from github.com/Yumemichi

basically i want to add aroma support to the twrp recovery which is missing from yumemichi twrp 9 recovery.

i have initialized the repo in lostwrp folder and downloaded the minimal manifest for twrp then added all the folders from yumemichi github to their places as below

lostwrp/device/oneplus/onyx/

lostwrp/device/oppo

lostwrp/device/twrp

lostwrp/kernel/oneplus/onyx

lostwrp/vendor/oneplus/onyx

where do i place the contents of device_oneplus_onyx-twrp-9.0.zip? in lostwrp/TeamWin or lostwrp/device/twrp or merge it with lostwrp/device/oneplus/onyx/ or merge it in lostwrp/bootable/recovery/? currently i have added them to lostwrp/device/oneplus/onyx

i removed the line 196 as you said and got this output

ninja: no work to do.
[1/1] /root/losTWRP/out/soong/.bootstrap/bin/soong_build /root/losTWRP/out/soong/build.ninja
/root/losTWRP/out/build-aosp_arm-cleanspec.ninja is missing, regenerating...
/root/losTWRP/out/build-aosp_arm.ninja is missing, regenerating...
[4/153] including bootable/recovery/Android.mk ...
/bin/bash: line 0: test: -ge: unary operator expected
bootable/recovery/gui/Android.mk:170: warning:
****************************************************************************
Could not find ui.xml for TW_THEME:
Set TARGET_SCREEN_WIDTH and TARGET_SCREEN_HEIGHT to automatically select
an appropriate theme, or set TW_THEME to one of the following:
landscape_hdpi landscape_mdpi portrait_hdpi portrait_mdpi watch_mdpi
****************************************************************************
bootable/recovery/gui/Android.mk:171: error: Theme selection failed; exiting.
23:24:31 ckati failed with: exit status 1

#### failed to build some targets (24 seconds) ####

root@mx:~/losTWRP#
[Android General] AlaskaLinuxUser:
Yes, you could make a manifest just like you do for Android and put all of my repositories in it, I suppose.

As for another user, remember you put the repo tool in your bin in your home folder, so another user will get permission denied if you try to use it. However, you can download the repo tool for that user again, it is a very small file, and will work fine then. :good:

Great question, so does this file exist?

frameworks/base/packages/SettingsLib/common.mk

If it does not, you need to either find it and put it in, or remove the call for it in device/samsung/qcom-common/doze/Android.mk on line 37. :good:
[Android General] AlaskaLinuxUser:
First, to fix your build error:

in your board config make file, add this line:

TW_THEME := portrait_hdpi

Then your theme will be set and the build can continue.

However, you are building the wrong thing. If you build what you have there, you are building generic arm, which will not work on or for your device.

If you unzipped the onyx-twrp zip file, you would put it here: dev/oneplus/onyx

You should run the commands like this:

$ cd ~
$ cd lostwrp
$ . build/envsetup.sh
$ lunch lineage_onyx-eng
$ mka recoveryimage

Then it should say you are building for onyx. :good:

P.S. because lineage/cm changed right at Nougat, you may need to type

lunch cm_onyx-eng
[Android General] psychem:
i had those files unizipped at dev/oneplus/onyx

The TW theme command worked.

instead of lunch lineage_onyx-eng i did brunch onyx and it started the build

the build completed successfully and flashed without error on the phone but phone could not boot into recovery.

---------- Post added at 12:38 AM ---------- Previous post was at 12:31 AM ----------

this might be relevant i got this error after brunch onyx but went ahead with mka recoveryimage because the error didnt seem relevant

ninja: no work to do.
ninja: no work to do.
No need to regenerate ninja file
No need to regenerate ninja file
ninja: error: '/root/losTWRP/out/host/linux-x86/bin/aapt', needed by '/root/losTWRP/out/target/product/onyx/obj/APPS/Chromium_intermediates/oat/arm/package.odex', missing and no known rule to make it
00:36:49 ninja failed with: exit status 1

#### failed to build some targets (3 seconds) ####
[Android General] manushamil:
There is no folder called packages in frameworks/base.

The files does exist here https://android.googlesource.com/platform/frameworks/base/+/nougat-release. Is it okay if i get it from that address.
[Android General] rajesh@xda:
I am new to git and need to know some basic about git.!

Suppose i have two device trees ( one with VoLTE support and one doesnt ) for same device and i have commit changes.

Tree 1 : " https://github.com/rajesh-xda/device-yu-tomato-aex.git " with volte commit id " 32094409dbac38642964c6976df422772d584f93 "

i need to apply that commit here " https://github.com/rajesh-xda/android_device_yu_tomato.git "

How to do this job.?
[Android General] AlaskaLinuxUser:
That missing bit is okay for building TWRP. What happens when you try to boot into recovery? Does it kick you back to fastboot? Or just hang? :confused:

Yes, but go ahead and grab the whole folder. You will probably need other things in there, too. :cowboy:

If you jump on my gitlab, you will see in the BLU Life XL upgrade series that I have several videos coming out about how to apply commits from a different repo to your repo.

https://gitlab.com/alaskalinuxuser/hd_blu_life_xl_upgrades

Videos 12 and 13 will help you. :good:
[Android General] psychem:
[MENTION=7026648]AlaskaLinuxUser[/MENTION] Just hangs, stuck at the oneplus bootlogo. I reboot using the long press power button.
[Android General] AlaskaLinuxUser:
Fancois,

I was building custom roms long before I knew any C or C++ or Java programming. So I think you are safe to start playing with custom rom building! :D

That said, you will greatly benefit from learning C, C++, Java, and XML. But these will also slowly come with time as you work with Android files.

So dive in and good luck!
[Android General] Rawwrius01:
Thanks for the answer but the video does not help. I'm trying to get the wifi working on my kernel for over a month now and really tried every fix i could found in the internet. I think i have to give up.

I take a logcat if it helps https://pastebin.com/Ekbr0LgG
[Android General] :
I'm always having this error when building Oreo rom aosp for Nexus 5x (Android 8.1) , building on a VM and I think I need to kill the jack server but the github killjack server is for version 4.8 and now Google has merged version 4.11.

Really want to finish my first build but I'm always lock in compilation ?
[Android General] :
Ok I figured out how to modify the version of jack but I need the jar archive of it now but non idea where to download.
[Android General] AlaskaLinuxUser:
Well, if you tried every fix on the Internet, then it must be hopeless. :D

But - your logcat points to errors with loading the WiFi firmware. So, again, I'd like you to consider these questions:

1. Is your WiFi in your kernel a Module (=m) or Built in (=y)?

2. If it is a Module, can you manually insert the module by going to the module location on your phone and type

$ su
# insmod ./<nameofmodule>

Does that work, or return errors?

3. In your phone, is there the <nameofyourfirmware>.bin file where it needs to be? Is it in the right place?

4. What phone, what rom.... details, details make it easier to help. :D

5. Are you trying to make the WiFi work, or the hotspot? (Question I have after seeing the logs).

Answer these questions, and maybe you will see what is wrong. If not, reply with these, and maybe we can help.
[Android General] srgrusso:
Are you kidding me. I have been fighting this for a long time and that's all I needed to do to fix it. I don't know if I will ever get use to git's quirks.

Thanks that fixed everything.
[Android General] :
Nobody has an Idea??
[Android General] srgrusso:
Since I can't see your whole log and I am not an expert I will go over some basic things I found that helped me.

1. Be sure your using python2 (default for most linux systems is python3). You may need to write an intercept script. Here is an example I Use.

Place in /usr/local/bin and name it python. After words do a "chmod +x /usr/local/bin/python"

#!/bin/bash
script=$(readlink -f -- "$1")
case "$script" in (/mnt/UserData/Projects/Android-Source/AICP-12.1/* )
exec python2 "$@"
;;
esac

exec python3 "$@""

Change this line "/mnt/UserData/Projects/Android-Source/AICP-12.1/*" to the file path of your android source. Note the "*" is a wild card make sure you have it in your file path. If your not using python2 your build will fail right away.

2. It may help to export this command before building "export LC_ALL=C"

I hope this helps.
[Android General] :
Thanks a lot for helping but a dev helped me, the problem was that I installed javac 10 and 8 was required.
[Android General] AlaskaLinuxUser:
Hey every one! Glad to see a lot of good building going on! Keep it up, you all are doing great! I just have a couple of encouraging and quick notes:

1. Be sure to search the thread for your problem before you post. I'm seeing a tend of people asking the same questions. Questions are good, but a quick search may get you the answer faster.

2. Please remember these videos are guides. I don't know the answer to every problem, these videos don't show every possible outcome. They hopefully show a train of thought for you to learn from so you can adapt and overcome your build issues.

3. Please don't PM me your questions. I will no longer answer questions in PM's. I will just point back to this thread. I also can't start a telegram, Instagram, chat room, etc., just to help one individual. I would love to, but I don't have time to do so.

4. I will do my best to answer questions here in the thread when I have time.

5. I also noticed a trend to use different flavors of Linux and generally speaking not following the guides in my videos. You are welcome to do whatever you want, but my recommendations will always be that you use the same versions as in the videos, so if you follow along, you will have the proper version of Java, Jack, etc. for whatever version of android you are building.

6. This is the basics course for how to build and compile android, as well as make some ROM or kernel customizations. Things like - building a device from scratch, or upgrading a device tree from one version to another, or upgrading the kernel, or generally doing something never done on that device before - these are all more advanced topics.

Don't feel bad of you are having trouble with these, they are though things to do.

If you can build something for a device that has been done before, then you can step up to these more advanced topics. I also have an advanced topics series in progress with a link to those in the op.

That said looks like a lot of good questions. Never be afraid to ask questions here, I will not ridicule anyone for a question, and will always strive to do my best to help when I have time.

Thanks everybody!
[Android General] Rawwrius01:
Sorry its just so frustrating, also im a totally noob :D

Its a galaxy tab a6 SM-p580 android 7.0 stock touchwiz.

Machine is Ubuntu 18 stock Goolge 4.9 toolchain.

The Modue is build in. I cant change the menuconfig to build a module instead of build in. Wifi module is QCA9377.

I watched your wifi kernel fix video but i cant find the wifi module firmware folder in my source ( stock source from samsung )

Trying to loade the module gives me an error. Cant remember which i will flash my kernel again and will look.

The problem is when i flash the kernel on the stock rom wifi is of after boot. When i try to enable it it stucks at "turning on wifi".

Strange is with the stock kernel the only module in system/lib/modules/ is ansi_cprng.ko.

I found in system/sbin/.core/mirror/system/lib/modules a module (wifi.ko) and o folder with qca_cld.ko but when i flash my kernel these file are gone and there is the ansi_cprng.ko file.

I backed these file up and put em back when i flashed my kernel but no change. i put em in system/lib/module, nothing. i tryed to put em in the ramdisk of the kernel. same no effect.

Here are is my source btw: https://github.com/tinyleg/tinyleg-Exynos-7870-kernel
[Android General] :
I think I was the "too much question" ? .

Thanks to you, I learned a lot with your tuto (and I absolutely don't watch everything but will do for sure).

I have one big recommandation for you, can you write the guides instead of videos, it will be lot easier trust me because the video quality is really bad (but you explained the reason why) and your accent is hard to understand lol (not a critic ).

So continue what your are doing you are awesome dude.

PS: building oreo aosp for my bullhead is on the way : 54%
[Android General] RebelLion_:
Hi, I have a question in sure hasn't been answered yet [MENTION=7026648]AlaskaLinuxUser[/MENTION]. Do you think it's necessary to install the JDK if I'm only building kernels? Or just a set of building tools and toolchain?
[Android General] :
Not necessary I think but if it doesn't work so you know the problem ?
[Android General] AlaskaLinuxUser:
Yep, that's right. To build just the kernel, the Java SDK is not used. Great question though!
[Android General] AlaskaLinuxUser:
I'm a little confused. You said that it is built in, but then you are looking for/at modules. If it is built in, then there will be no module for it. ;)

As for how to choose modules in menu config, you typically can't choose modules because of one of the following reasons:

1. Modules are not enabled.

2. You have a second option chosen that depends on the first option of WiFi being built in.

But also, were you able to find the .bin file for your firmware?

Another tool you can use is dmesg.

# dmesg > dmesgfile.txt

Pulls all the system messages, and may give you more specific info. Especially if you pull that created text file for a working WiFi kernel, and compare it to one you pull for your non working WiFi kernel.
[Android General] srgrusso:
I know for some of the devices I have built kernels for Ex. "Blu Life One X2" the wifi source is separate from the kernel source. So I had to use the wlan module that came with the stock firmware. But when I tried to load it I got an error which had to do with the module having to be signed if the module wasn't validly signed the module wouldn't load. There is an option in the kernel config that lets you turn off the requirement that the module to be validly signed. Also make sure you have root installed in your rom and that you su before you try insmod. One suggestion I would make is flash the stock firmware and boot.img. boot it up and do a lsmod and see what modules are loaded. Then flash the boot.img with your kernel and see if the same modules are loaded.

Edit: here is the kernel source I use to build my AICP rom. https://github.com/Valera1978/android_kernel_samsung_exynos7870 Also where are you getting the kernel config from? I would extract it from the kernel image and try building it with out modifying it first and see if it works.

Edit: If you look in /system/lib/modules/qca_cld/ do you see a file named "qca_cld_wlan.ko"? It looks like this is the wifi module. When I do a lsmod on my tablet I see a module name "wlan.ko" loaded. My guess is that "qca_cld_wlan.ko" is the wifi module your looking for. If it is it is separate from the kernel source and can't be built with the kernel.