yashsingh1/xdaforums huggingface dataset:
[Android General] DJABHipHop:
I'm getting this error even those the file is there E HAL : load: module=/system/lib/hw/camera.vendor.msm8226.so
[Android General] _JaSoN_:
hello i got a question when i wanna build lineageos with a custom kernel already included my build always fails do i need to change some lines in the custom kernel ? or is this not possible
[Android General] Techguy777:
Thanks. Unfortunately I can't use this as it gives me error in terminal 404 not found which means they have removed or changed url repo or maybe it's down right now it's 530am so it could be.

Here's the problem with this stuff it's the best developers in the world that do all of the websites and repos and they like to change things because it's nothing to them to figure out how to do something different but for noobs it's makes it a mountain to climb. Than again I actually think that's why they do it just like encryption on source code you can't figure it out even if it is open source dirty tricks.
[Android General] Techguy777:
I did figure out you need Android studio which I installed with terminal and package 3.3 Linux x64. Again another problem after digging and digging it seems like Android studio will not load up my ADV manager. I installed sdk tools and emulator says it's installed I uninstalled and reinstalled the emulator I also went on Ubuntu software and update app and you can install Android studio that way without commands again no go doesn't let me use the adv manager little red icon pops saying fail send to Google. This is becoming a old story quick literally everything is being changed so fast you can't keep up with it like Android studio 3.3 is completely different looking and setup from what the you tube video shows from 4 months ago. You can't find quodes because they haven't been written yet. This a **** storm to work on I'm not going to lie it's kinda not fun anymore it's supposed to be fun. Rooting Android and flashing custom roms was so cool and great.
[Android General] AlaskaLinuxUser:
I can only try to help you if you post the errors so we know what went wrong.....

As a dev, I feel I can shed some light on this problem:

As a dev, it is a lot of work to maintain old repos... As for myself, I don't get paid to keep up the high level of maintenance required to keep all of my repos still functional. In many cases, like hosting files and tools, it costs money, money that many devs can't afford to spend on their hobbies.

For instance, I host a lot of my files on my google drive or media fire, but when I run out of free space, since I don't want to pay for more, I delete old material. Or material for phones I don't own anymore.

At one point, I had hundreds of repos on github and gitlab, which made it very hard to maintain in an orderly fashion.

So I don't think devs are playing dirty tricks on you. You are using an old phone, and some of the old material is going away. However, if you follow my guide, install 14.04, and did every step, just like me, shamu still builds. :good:

My friend, I say this with the greatest sincerity, I don't think this hobby is for you. Your every post is a complaint. This should be fun, and for many it is, if it is not fun, then perhaps you should find a happier pursuit. I want you to be happy. :laugh:

It does change fast, and it will change every year when a new version of android is released. :cowboy:
[Android General] zelendel:
IF you are doing this to someday use it then you might as well stop. With ther advances in security the days for flashing roms will be coming to an end. I have been doing this for over a decade and I hev never met a single person in my town that needed help with this. Modders are less then .001% of users.

As for why "If someone can tell me why Ubuntu 18.04 doesn't work with adv emulator on 3.3 Android studio with the sdk manager installed and everything else working I'll shut my mouth and never ask again but if you can't I'm going to take it as no one knows." this doesnt work. Ask Google. ITs their software and they do tell you to use 14.04 and not 18.04 let alone its ubuntu. It is the most issue prone distro I have found. I personally use Mint and can build DU for every device they support.

Now as for the help. You get more help then most of us did when we started. Be happy this is the nicer and friendlier XDA. 6 years ago and you would have been flammed and laughed off the site.

Now as he stated. The Shamu is very old in the terms of devices so if you want to keep it the you will need to put in the hours of work (hope you dont have a personal life) that it takes to maintain devices like this. AOSP will keep the currant code for a while but it will go away sooner it later. So get your own repo set up and get to work.
[Android General] DJABHipHop:
How do I tweak the setupwizard on Lineage OS or any custom rom source for that matter for WiFi only devices like most chapper tablet variant and android tv boxes.
[Android General] manushamil:
How big is the folder after repo sync is completed ? .Cause its taking forever and the speed sucks i cant to get started. :D
[Android General] Techguy777:
I did it and it is because you do have to type a command in when you build to build a rom that works on emulator. I havent read the responses yet but it didnt look like anyone really said how to do it just more comments on how i better not have a personal life. I dont have a personal life I use this as a waY TO CHANNEL MY ENERGY. PUT UP OR SHUT I ALWAYS SAY SO IM PUTTING UP BUILT MY ROM.
[Android General] Techguy777:
Heres the proof in the pudding. Its never going to build a emualtor rom if you user user debug ive built the rom 3 times already but before i flashed it i wanted to know it would work. Another thing everyone forgot to mention AOSP in encrypted kernel so thank god I figured it out before flashing. Anyone care to tell everyone the the command to build a emulator working rom. Or how to save serious time on your builds or how to not have to start over if you mess up. I can and I will later. Im someone that goes slow at first but because I have a racing mind but once i got it I go harder than anyone because I dont just want to do it I want to know why If I put a command in the ternimal it does what it does not good enough to copy and paste.
[Android General] AlaskaLinuxUser:
You and I talked about this in post #666 of this thread. :laugh:

It is big, really big. Each year it gets bigger. You can save space with

Repo init -depth=1 (your repo)

And

Repo sync -c

Which will only download and checkout the version you want. When you normally run repo init and sync, you actually download ALL versions, and then it checks out the version you asked for. That's why it is so big. :silly:

As for the size, in one video I think it was around 45 GB, but it does depend what ROM you load. If you do just one branch, as mentioned above, it is typically 15 GB.

Please check your private messages.

Great, good use of logs. So, the problem is, you are trying to build Oreo with a pie kernel. New methods are added into each android version, so the pie kernel is making calls during compile that don't equate to your Oreo setup. Mismatching a kernel and ROM can have bad consequences and require a lot of work to iron out. You may be able to flash it later, and it works, but while building it has issues. It may also be that the special kernel uses a different tool chain (see my vidss on tool chains if you have questions) and so the other tool chain has a different method of doing things.

As this will be specific to your kernel and phone, you may need to ask for assistance in your threads or forums for your phone.

As for updating the security, no, that will only change what is read, it is like putting a sticker on a can of corn that says green beans, when you open it it is still corn. This action just changes the label. To actually update them, you would need to use updated source, or update it yourself. :good:
[Android General] manushamil:
like this > repo init -u git://github.com/LineageOS/android.git -b -depth=1 cm-14.1. Sorry if i am wrong this is my first time using github but later when i am done with everything ill be using gitlab since feature for private repo is for free there.
[Android General] zelendel:
To be honest. No I would not. I had the Shamu. A couple of years ago. Still even have some of the roms I made for it.

Ok If you think that android Pie and Q only had those things then you are really in for a surprise. The changes to the kernel code alone that you will have to bring is alot of work in itself. You will find that the kernel you are using now will not boot in a new OS without some changes.

\

Your facts are a little backwards. He got hired at samsung after his work on CM done here. Going to events for XDA and meeting the Samsung reps. Also Android was always able to be rooted. It was just a matter of finding the way around it.
[Android General] AlaskaLinuxUser:
More like this:

repo init --depth=1 -u git://github.com/LineageOS/android.git -b cm-14.1

Then

repo sync -c

To download it. :good:
[Android General] Dhanush-raj:
I am building resurrection remix nougat for moto g4 plus.

No jack server running.

Try jack server admin

What does it means or how to resolve it? I am new to ROM building, so just a noon question.

PS : Ubuntu 18.04 in vmware workstation with 13gb of ram. 150 GB of hard disk space.
[Android General] manushamil:
Thank you. You should add that to your video too :good:
[Android General] lucki1000:
Hello,

I tried to build NitrogenOS and now get this error:

patchoatd E 01-28 17:00:10 24401 24401 image_space.cc:1761] Attempted image: /media/lucki1000/AndroidSource/nitrogen/out/target/product/cedric/dex_bootjars/system/framework/boot-telephony-ext.art
patchoatd E 01-28 17:00:10 24401 24401 runtime.cc:1290] Dex file fallback disabled, cannot continue without image.
patchoatd E 01-28 17:00:10 24401 24401 patchoat.cc:485] Unable to initialize runtime
ninja: build stopped: subcommand failed.
17:00:10 ninja failed with: exit status 1
[Android General] lukaspieper:
After a little over a week, l am back here ;)

I was able to solve the WiFi problem myself, the kernel source lacked the prima and qcacld-2.0 folders. Just copied them from a repository with the same SoC. Works.

Now there is still a strange problem with the USB port. While my rom is running I cannot charge and have no connection to the PC (mtp, ptp, adb). But absurdly USB-OTG works.

I installed an app to see logcat live, when I plug something into the port, this line appears:

W/QCNEJ (1784): |CORE| CNE received unexpected action: android.intent.action.BATTERY_CHANGED

If I search the log further for Battery, I'll find these lines:

E/BatteryStatsService(1042): no controller energy info supplied
E/BatteryStatsService(1042): power: Missing API

If I'm looking for USB, however, there are also hits, e.g. in dmesg:

enable_store: android_usb: already disabled

I have dmesg, logcat and props attached, hope you can help me again. Thanks a lot.
[Android General] lucki1000:
Los 16 i've never finished, because the problem that i had can't solved, and now I will try it with nitrogenos and nearly the end i get this error.

I atteched the build log [MENTION=7026648]AlaskaLinuxUser[/MENTION]
[Android General] DJABHipHop:
What can you do optimize a device, the stocks for that device, it's vendor repo, & it's tree when building a custom rom so that device can run the rom as smoothly as possible & battery life is decent enough without making a custom kernel early on the development process, Like A general video series the on optimize any device aka(A tips & tricks video series), the stock kernel for that device, it's vendor repo, & it's tree, that can be applied to all android device no matter that SOC it has.
[Android General] lukaspieper:
I don't have a power folder in qcom. Where can I get it?

I have the directory, only the file does not exist. I used the following repository.

https://github.com/LineageOS/android_device_qcom_common/tree/cm-14.1/power

There are some repositories with the file on GitHub, but I was wondering if you could recommend a serious one?

Added the library. I don't know what I can do about the other stuff. Maybe the errors will be fixed by power-8953.c?

The LED does not turn on, if the device is switched off and I charge it, then the LED turns on. Do you have any idea how I can check the amps, the way you say it, it doesn't seem safe? I was planning to pull a dmesg from the stock kernel/rom tomorrow because I couldn't find it in the kernel source yet.

Thank you very much! :good:
[Android General] AlaskaLinuxUser:
Perhaps this:

https://github.com/LineageOS/android_hardware_qcom_power

But that may be a duplicate of device/qcom/power, but you could probably pull the file you need and add it to the one you have. :good:

Great question. Tough answer. OTHER THAN KERNEL mods, how to optimize the rom?

Well, here are a few thoughts:

a. less services/apps, e.g., the slimroms approach. If you can live without it, scrap it.

b. changing the optimize flags for compiling with c or c++, this may make the rom or kernel bigger, but allow it to work faster. e.g., the old liquid smooth rom approach.

c. I guess this may *technically* be a kernel mod, but changing the default profiles for cpu/gpu in the kernel. Like the default governor, i/o schedulers, etc. Without modifying the kernel, you would change details in the defconfig file.

d. changing the file system used for the partitions (will require you to format your phone). Some claim to get better results with f2fs, etc. You could also switch from ext4 to ext2, which technically has less overhead, but no journaling.

That's all I can think of off the top of my head. Most of your gains in smoothness/battery use are kernel related. Although apps that prevent doze are a big issue. :good:

LineageOS is going to be the most sucessful build you can make. NitrogenOS is not a good one to start with, as it is not a big rom with lots of support.

Your issue is noted here:

echo "ERROR: Dex2oat failed to compile a boot image. It is likely that the boot classpath is inconsistent. Rebuild with ART_BOOT_IMAGE_EXTRA_ARGS="--runtime-arg -verbose:verifier" to see verification errors."

Do you have any dex2oat verbage in your device tree? If so, perhaps you should change it (true to false, or false to true).

For the help with your lineageOS issue, did you ask them in their free compiling help irc channel?

#LineageOS-dev - A helpful, real-time chat room (or “channel”), on the Freenode IRC network.

https://webchat.freenode.net/?channels=lineageos-dev
[Android General] DJABHipHop:
How do i disable live display and ambient display on lineage os
[Android General] Ayan Uchiha Choudhury:
Found your XDA thread finally!! Your work is absolutely brilliant helps everyone
[Android General] lucki1000:
Thanks, I don't have dex2oat verbage in my device tree, excepted I missed it.
[Android General] DJABHipHop:
[MENTION=7026648]AlaskaLinuxUser[/MENTION] Try this on Blu Life XL with broken touch screen it's a chrome extension/application for control your android device in real time like a VNC unlike ADB Control. It does this by install a companion APK on to your device every time you plugin your Blu Life XL or any android device into your linux computer and I don't know maybe you can use in conjunction when you record your video inserted or using a camera to record the device.

https://chrome.google.com/webstore/detail/vysor/gidgenkbbabolejbgbpnhbimgjbffefm?authuser=1
[Android General] manushamil:
[MENTION=7026648]AlaskaLinuxUser[/MENTION] Can you compile a phone app with proximity sensor disabled. My i9300 proximity sensor is broken i found an app but that didnt work with oreo and pie. If you can do it can then also upload it on youtube that would a big help. Thank you in advance
[Android General] vlad3647:
Did you build any klte ROM? Thanks
[Android General] Techguy777:
I've honestly never heard of klte rom. You would have to fill us all in I'm sure.

---------- Post added at 10:03 PM ---------- Previous post was at 09:43 PM ----------

To help out because the hardest part of building is being able to find your vendor, kernel, and device tree. They have more vendors anyone else know a good GitHub please post the Muppets are probably hands down the best.

https://github.com/DonkeyCoyote
[Android General] kush57:
Try adding this to your device tree

https://github.com/kushagra57/device_oneplus_onyx/commit/73c360da2d73bc88be9b5db767efff538ef5c998

It helped me to get over the dex2oat error :laugh:
[Android General] psychem:
great thread here! i want to add magisk 18 to my rom los16, how do i get started with that? [MENTION=4302880]psychem[/MENTION] - cc
[Android General] Techguy777:
Just a heads up I think that add cache to your builds doesn't work like I thought. I noticed my space on my hard drive was going quick when the folder I was using to build was only around a 90 or so my cache folder that it stores the files in is over 215 gb and it's still going up right now now 230gb something doesn't make sense I thought that the code makes 50gb the max limit. I have built lineage, aosp, and resurrection remix which was not easy I kept getting a jack error which means your ram is out so it fails to build I did complete the rom and it's working flawless on my Samsung Galaxy S2 tab T813. I had to add more code to my bash rc file in the home directory and then start jack server. It's something to think about if your using a virtual box off windows to build resurrection remix odds are you'll never get it to finish unless you have like 16gb of ram or more.

https://wiki.lineageos.org/devices/gts210vewifi/build#configure-jack-1

That link refers to lineage but it works on resurrection remix to. So now I need to go figure out why my cache got over 50gb so be warned I did build 3 roms 2 lineage and 1 resremix it should only be 150gb though I thought. My recommendation is to build lineage for beginning it's probably the easiest to build everything works out on the first run both times.
[Android General] AlaskaLinuxUser:
I'll give it a try.

Unfortunately no, my work here is helping new builders learn how to build android.

I built many kltevzw ROMs a couple years ago, and I think one klte ROM as well. Your best bet for klte ROMs is in the klte thread here on XDA, they have several ROMs, including pie.
[Android General] AlaskaLinuxUser:
Do you mean baked into the ROM, or how to flash magisk? One problem of baking it in is that magisk changes so often, you would be constantly updating your ROM to match them.

Adding the magisk app to your ROM is very easy, you can see my videos for adding an apk from prebuilts or source code for that. However the key part of magisk is how it breaks down your boot image, edits it, and puts it back together. As with SuperSU or others as well. For those specific details, I would head to the magisk thread and ask there. :good:

Great work, looks like you got it figured out. I'm glad you are able to build. :highfive:
[Android General] psychem:
Thanks a bunch for the tip on how to bake in magisk.:victory:

I'm also trying to bake in nanodroid microg in the rom but don't know where the commoninstaller file will go or where busybox.arm goes . either of these files is causing some functionality to break.
[Android General] AlaskaLinuxUser:
Thanks for pointing this out. Unfortunately, it didn't work when I tried it here. It gets stuck on installing the apk to the phone, permissions are on, adb is trusted to the device, but it didn't work. I also tested with my one plus one. Perhaps it is my version of chrome, or something Linux related. I'll fiddle with it more later. :good:
[Android General] Techguy777:
Here I made this to help beginning rom building I am trying to figure out how to simplify getting the vendor, kernel, and device tree source and adding it there's more than 1 way I download packages and put them into the right folders you can also git clone url the package and there's also extract.sh which is pointless because it only works if your on the rom your building for to begin with example lineage. So there's no point in getting the files if your already on that rom because someone already has them available or the roms already built. Let me know if this helps anyone it's for Aosp mainly on Ubuntu 18.04 I took the letters in red from the Bible and used them for terminal commands you should be able to build without having to look up everything maybe not though ill listen to comments.

https://drive.google.com/file/d/1NC8-JqQfI2FnoPamzgN7u9rQ_BUD78m6/view?usp=drivesdk
[Android General] zelendel:
Ok To answer your question. I was doing this long before android. By 2007 I was already doing mobile development for a few years. I started out with Java based flip phones. The moto V3 razor to be exact. Then I moved on from one OS to the next as they came and went. As I will when android goes away. All the same.

I never said get rid of it. I just said it wont be easy. Here is why. From here on out you will have to update the kernel yourslef for every update. The kernel will not be updated to run on the new OSs. Not pie or android Q.

Ill be honest. Dex is just a dumb idea. Mobile hardware just cant compete with a good desk top. So there is no point in using it, unless you cant afford a real PC.

Now lets stop this OT. You have gotten alot more help then most and there is no reason that it should not be build able. Once my data turns over ill see if I can build LOS from scratch with this TUT ( I dont use any LOS code or files)
[Android General] Techguy777:
Yes if they do change something with the kernel I don't really mind Oreo is fine but again all of my devices are officially supported so I'm sure I'll have no trouble with finding working kernels and roms.
[Android General] Techguy777:
I agree 100 percent xda is ruff and cruel place for people to learn development more people walk away not learning anything. Now understand my opinion has nothing to do with anything said between us on here its been developed over a couple of years. Most the xda crowd is not american and very rude I truly believe they only care about building roms so they can make youtube videos to link crap downloads covered in ads.

Also super Rs kitchen should be toast it takes everyone else free open source work and he builds it all into 1 program slaps his name on then says ill have you banned if you steal it which he basically did to the other developers and its allowed. Why because the truth is xda gives developers whatever they want because there so few and they need them to have a site period. If there was more developers they would tighten up.

You know why everyone on xda says nice rom before they even flash it? Because they know they have to kiss butt to developers. If you leave xda youll see comments all over how xda sucks and i added a screenshot of a comment on youtube.

I believe there needs to be a change I doubt there will be but everyone just wants to say look i built a rom and you cant im better than you.