yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] jordandroid64:
Hey, first thanks for this tutorial.

Here is my problem, when I try to make clean (or same make 0=out clean), i've an error, I haven't understoop something in the earlier steps but i don't know what.

Screen which should show what i've done :

[IMG="terminal"]https://image.noelshack.com/fichiers/2018/03/2/1516118120-screenshot-from-2018-01-16-16-49-54.png[/IMG]
[Android Software/Hacking General [Developers Only]] nathanchance:
You need to run the make commands in the root of your kernel source, not the configs folder.
[Android Software/Hacking General [Developers Only]] jordandroid64:
Thanks for your answer !
[Android Software/Hacking General [Developers Only]] jordandroid64:
Hey, so i've tried to compile this kernel (for Z2_row) : https://github.com/mracar07/android_kernel_zuk_msm8996/tree/8x-caf/

Unfortunately i've some errors when I compile, the defconfig file i've selected is : z2_row_defconfig but the file length is around 4400lines when if i am right generaly defconfig file (i've try to seen the length on some other kernels for other devices) are more around 600 lines. so Have I chosen the bad defconfig file ? (link: https://github.com/mracar07/android_kernel_zuk_msm8996/tree/8x-caf/arch/arm64/configs)
[Android Software/Hacking General [Developers Only]] nathanchance:
That looks like the correct config, your errors are probably unrelated to that.

Most developers just copy the generated .config file to the configs folder, which is why it is really big. Other developers and companies choose to use the savedefconfig target so that instead of getting a giant defconfig, you get one that only has the values that were changed from the default. The kernel automatically fills in the gaps with the default values.
[Android Software/Hacking General [Developers Only]] leejunsong:
View attachment 4393609

i have this problem .. How to solve it ?
[Android Software/Hacking General [Developers Only]] nathanchance:
Use a different toolchain.
[Android Software/Hacking General [Developers Only]] kozmo21:
You're missing libfl.so.2. Add this to your /usr/lib
[Android Software/Hacking General [Developers Only]] leejunsong:
View attachment 4394579

Now i have new problem :D , help me bro. thanks Advance
[Android Software/Hacking General [Developers Only]] androiabledroid:
Need help

Sir,

I have merged gcc compiler.h and also device not booting with gcc7 commit but still device is not booting with gcc 7 olny with gcc 4.9

Plz help
[Android Software/Hacking General [Developers Only]] NepoRood:
This doesn't really make any sense, give some more information...
[Android Software/Hacking General [Developers Only]] androiabledroid:
Source: https://GitHub.com/AndroiableDroid/android_kernel_LYF_LS5015

I have booted oreo when compiled kernel using uber 4.9.4 but when I tried to compile a rom lineage rom not booting when I replaced kernel it booted
[Android Software/Hacking General [Developers Only]] krasCGQ:
Sounds like your build (boot.img) script where the problem occurs.
[Android Software/Hacking General [Developers Only]] leathan:
Holy flippering buckets thank you on another level, I really needed that toolchain information to port some of my binaries :) pretty sure its all i need. tyty.
[Android Software/Hacking General [Developers Only]] karthik km:
My device having kernel source for nougat (msm8916)

Can any one tell me about

How to make my kernel source compatible with Oreo?

Any help highly appreciated

If the questions is already asked

Then please provide me a link

Thanks
[Android Software/Hacking General [Developers Only]] antariksh:
First thing first, Thanks for the guide.

Am new to development and have just started building ROMs. All I have worked till now is the device and vendor tree.

I just wanted to ask, if I can use the Stock Motorola kernel as a base for Lineage or AOSP ROMs. Are there any obvious changes I have to make for LOS or AOSP?

Provide any links to that (if exists), or simple Yes/No would also be fine for me to start digging up more information in right direction.

Thanks :D
[Android Software/Hacking General [Developers Only]] DsturbD:
You have to wait for your manufacturer to release their kernel source for Oreo
[Android Software/Hacking General [Developers Only]] tripLr:
If a device has a Oreo 8 or any other stock image , and you get root, or can download the OEM Rom image,

Can you extract the kernel and the build config?

Then build based on the build config?

kernelnewbies.org has instructions

If you're trying to see if a bug is fixed, you probably want to duplicate the configuration on your running kernel. That config file is stored somewhere in /boot/. There might be several files that start with config, so you want the one associated with your running kernel. You can find that by running

cp /boot/config-`uname -r`* .config

Edit. Any reason we can build a kernel on the rooted device? With shell root access?
[Android Software/Hacking General [Developers Only]] TheHenkGameKing:
Hey guys i have a problem, even though i ran the export ARCH=arm64 && export SUBARCH=arm64 command, when i run the make defconfig command it still searches in the wrong arch folder (arch/x86/configs/ while the config i need is in arch/arm64/configs/) I am really new to this so sorry if this is something stupid, but how do i fix this?
[Android Software/Hacking General [Developers Only]] krasCGQ:
Is

make ARCH=arm64 <device>_defconfig

work?
[Android Software/Hacking General [Developers Only]] TheHenkGameKing:
[MENTION=6589753]krasCGQ[/MENTION] It worked, thanks a lot!

---------- Post added at 10:13 PM ---------- Previous post was at 10:12 PM ----------

[/COLOR [MENTION=6589753]krasCGQ[/MENTION] It worked, thanks a lot!
[Android Software/Hacking General [Developers Only]] nikkali25:
help scripts/Makefile.fwinst:43: target '/lib/firmware/melfas_tk/mhs2041_j5y17.fw' given more than once in the same rule

scripts/Makefile.fwinst:43: target '/lib/firmware/melfas_tk/mhs2041_j7y17.fw' given more than once in the same rule
[Android Software/Hacking General [Developers Only]] mashuto:
[MENTION=6842057]nathanchance[/MENTION] Just first wanted to say thanks for the guides. I am just getting into android dev and your rom build guide was very helpful and I found myself successful with that.

However, I have been less successful here getting a kernel to compile, specifically your flash kernel. I have a oneplus 5t and am currently using your flash kernel there and figured it would be a great place to start learning.

Anyways, I followed this guide as closely as possible, cloned your repo for the kernel, cloned the toolchain into another separate folder, followed the export commands, and went to start building.

I think I have the first couple make commands down, though I have seen when doing make clean the following warning: "symbol value 'm' invalid for KVM, followed by two errors that seem related to silentoldconfig. I do not always seem to get that though and can run the clean and mrproper fine. I think use your flash-custom_defconfig and go to the last step. During compiling I get a number of errors about memcpy and detected write beyond size of object passed, before the whole thing seems to finally error out. Not really sure where I have gone wrong. Any help would be greatly appreciated.
[Android Software/Hacking General [Developers Only]] nathanchance:
GCC 4.9 does not build with my kernel. I'll probably need to add an error message for this. You'll need to either use a newer version of GCC (this Linaro 7.2.1 one is what I use when testing GCC) or use Clang, which is more involved.
[Android Software/Hacking General [Developers Only]] mashuto:
I kind of had a hunch that was it. I think Ill try for clang since it seems to be the way everything is moving. But my initial searching didnt quite turn up any useful results yet. I have downloaded clang binaries, but thats about as far as I got (just dont have the time right now to spend all day on this). I will continue the search when I have more time later, but if its not too much to ask do you have any resources or tutorials to point me in the right direction for that?
[Android Software/Hacking General [Developers Only]] nathanchance:
https://github.com/nathanchance/pixel2-manifest#building-the-kernel-image

Feel free to ask more specific questions if you have them!
[Android Software/Hacking General [Developers Only]] mashuto:
Thanks! So if I gather correctly, its really the make commands that change, using CC=path/to/clang (which I downloaded prebuilt from http://releases.llvm.org/download.html#5.0.1 it seems to build better, but I am definitely getting a few errors thrown, most of which seem to be file not found with <angled> include use quotes instead, which obviously seems to fail and then seems to cause the whole thing to fail since not everything has compiled correctly.

So if I understand, if I sync up the pixel 2 manifest, I can use that to then build the google included clang toolchain, and then use that for the flash kernel? Would that just be adding more steps here than necessary? Is that one different than what I downloaded?
[Android Software/Hacking General [Developers Only]] nathanchance:
I'll just try to update my compilation guide this weekend to include information about Clang.
[Android Software/Hacking General [Developers Only]] mashuto:
Guess I'm not quite getting it yet. I'll look out for the updated guide, but no rush. In the meantime I'll keep researching and trying things and see if I can't figure it out as I go. Thanks again!
[Android Software/Hacking General [Developers Only]] nathanchance:
I just pushed some stuff so GCC 4.9 will compile, try it out.
[Android Software/Hacking General [Developers Only]] EggyFrima:
hi sir [MENTION=6842057]nathanchance[/MENTION], i have some question about your guide

so, im trying to compile kernel for my device, asus ze520kl, i found source from asus site, and compile it with google toolchain 4.9 aarch64

when command

$ make msm_defconfig

i dont really know which one to use, there are many defconfig here, so i decide to use msm one (maybe default one, i think)

and got this output

***
*** Can't find default configuration "arch/x86/configs/msm_defconfig"!
***
make[1]: *** [msm_defconfig] Error 1
make: *** [msm_defconfig] Error 2

i already export arch and subarch to arm64, but i dont know why they search defconfig file to arch/x86

when make clean and make mrproper doesnt give any error

any help would be appreciate

sorry for really really bad english
[Android Software/Hacking General [Developers Only]] mashuto:
Cool, definitely seemed to be working better, but still getting some errors telling me some .h files are not found when they very clearly exist. I may start with a clean source and see if I have maybe screwed something up in my prior attempts. I am wondering if maybe I am not using the correct defconfig, seemed fairly obvious that it should have been flash-custom_defconfig (since I want to compile for a custom rom), but this is all new to me, so Im not sure.

I will still also probably continue the search for clang, since as I said it seems to be the way things are going and if I am serious about this, its probably a good idea to learn.
[Android Software/Hacking General [Developers Only]] nathanchance:
If you type "echo $ARCH", does it return arm64? Shell variables unset if you close your terminal window as well.

Are you sure you are using an out folder (adding "O=out" to the make command)?
[Android Software/Hacking General [Developers Only]] mashuto:
I wasnt because the first few times I tried with the out folder I ran into some permissions errors that I wasnt getting when I wasnt using the out folder. But I will give that a try when I get a chance at some point today.
[Android Software/Hacking General [Developers Only]] EggyFrima:
thanks for your reply

yes, it does give output arm64, and i still on same session when i type export command
[Android Software/Hacking General [Developers Only]] nathanchance:
It should be fine with that out flag, if it doesn't, hastebin the error.

Hmm and SUBARCH as well? There's no reason it should be using x86.
[Android Software/Hacking General [Developers Only]] mashuto:
When using the out directory, I get one error doing make clean that I cant get past, its just one line, but this is what I get... And I am pretty sure this is probably more of a linux permission/user thing than anything to do with your guide here, but Ill post it anyways. I have tried taking ownership of all files, but that shouldnt matter since they should already be under my user accounts ownership... i think. Linux is still very new to me.

scripts/basic/fixdep.c:449:1: fatal error: opening dependency file scripts/basic/fixdep.d: Permission denied

I can run things as root, but that seems to cause other issues later and saw you specifically recommend not to run as root somewhere in this thread.
[Android Software/Hacking General [Developers Only]] EggyFrima:
when i type make clean, and mrproper i got this error, is it okay ? or do i did something wrong ?
[Android Q&A, Help & Troubleshooting] webbhost:
I've purchased 3 androids I'm the past several years, and I feel the reason I dislike them is because I can't ever get them running stock Android. This of course is my first goal, but the barrier to entry just seems ridiculous. Of course I've tried googling, for many many hours, and probably longer than that cumulatively. However, the phones I have aren't too popular (currently on a Samsung Galaxy Express 3, still have a 2015 Moro G somewhere), and I think their root/custom ROM guides aren't too prevalent.

I would like to understand what I'm trying to accomplish though, just so I have a better shot googling the information. From what I understand, I need to root the phone and then install a custom recovery, at which point I need to use a custom ROM built for that specific phone and.. I've never really got close to that so I don't know much beyond that. Feel free to correct me on what I have do far, but please use links to text as my internet doesn't work too well with AT&T's prepaid unlimited plan.

I assure you I have tried finding guides for this, but they are either high overviews that aren't specific or video-only. Thanks for any direction, I'd really like to make my phone usable. The Samsung keyboard is atrocious, not to mention the bloat
[Android Q&A, Help & Troubleshooting] webbhost:
Sorry to bump, but still lost as ever. I did find an interesting quirk and thought it could get some more minds interested though. This is essentially a Galaxy S2, could I use the same tools as that for the Galaxy J1?
[Samsung Galaxy J7 Questions & Answers] xander_tom:
Hi people, i need help you.

I have a Samsung Galaxy J7 (SM-J710FN) with the last security updates, and i have a problems. Mi telephone not work fine, the conexion wifi work slow and wrong, i have lag on the menus, on resume..mi phone not work fine.

I will like reset to stock firmware, but i try to it with odin, and I have a problem.

I have used a various cables, and try to on various pc, and i have drivers and kies installed and kill process to kies....I used various archives tar with 1 and 4 archives to flash.

etc...

but all time have the same fail. on mi terminal with download mode say " Secure check fail : bootloader"

and now I dont know what do

I try others things what I've look on others tutorial and no have other result.

Someone can help me please..i need install stock firmware 6.0.1 without the last updates.

I know what that is a downgrade...but not is a downgrade to version...only i want back to before last update to security or go to stock.
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] agreenagent:
I'm not the most knowledgable guy on this stuff, but since nobody else responded to you, I will. I've been messing around with this stuff for ~2 months since I got my Tilt (Kaiser).

1) It probably is locked, but no matter, we have all the tools to unlock everything.

2) Yep.

3) Nope. The CID unlocker shouldn't mess with anything. The SIM unlocker requires you to get a copy of your current radio ROM first, and there's links to download any of the radio roms on these forums somewhere.

4) There's a link to download it somewhere on these forums. I have it backed up somewhere because I need to use it every time I install a new rom. If you really can't find it, PM me and I'll send it to you, but I don't think you'll have trouble.

I don't really know the answers to the last two questions, maybe someone else can help you out.
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] persiansown:
For the second to last one, I know that Dutty fixed the endkey program in this latest rom. With that, you can kill the data connection
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] agreenagent:
By nagging problem you mean that it says operator not recognized? If the only issue is that it says that, you should be able to disable that notification in settings -> sounds and notifications - but I'm not sure, I can't replicate that problem.

You might just be best off flashing a new ROM onto the phone. You'll lose your stuff (but it's easy enough to back it all up), but it might just be a better alternative overall. I like Dutty's roms, but you can probably just get the US version of the kaiser rom if you just prefer stock stuff.
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] LoveMyPhone:
Thanks for the advice. I was just hoping for a real fix for those of us who are either too lazy or too scared to flash the rom and like their shipped HTC roms. Its really a non issue... I was just having an OCD moment.
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] agreenagent:
The main reason is to add/subtract functionality you want/don't want on the phone. Some of them add the touchflo from the HTC Touch, some take out a lot of unnecessary crap. Also, a lot of cooked roms perform faster. I know dutty spends a lot of time speeding everything up.

I think in your case you could probably just get the english version of the kaiser rom that isn't trying to connect to an asian service. But it is worth looking through all the roms.
[Asus ZenFone 3 Questions & Answers] lorikeet:
Anyone what is the audio DAC used in Zenfone 3? It is possible to view it under /sys/kernel/debug I think. But, you have to be rooted in order to view the directory.
[Asus ZenFone 3 Questions & Answers] sensi277:
It's just the stock SD625 DAC AFAIK.
[Asus ZenFone 3 Questions & Answers] lorikeet:
Actually, I found some DACS listed under /sys/module

snd_soc_wcd9330

snd_soc_wcd9335

snd_soc_wcd9xxx

snd_soc_wcd_mbhc

snd_soc_wsa881x

snd_soc_wsa881x_analog

Some of these might be redundant since many ROMs ship with unused drivers.
[T-Mobile LG G4] Godspeed123:
So I was on cm13 and cm14 on my other devices but the camera always worsened.

Is it the same on the g4?
[T-Mobile LG G4] raptorddd:
camera is great . but if you use CM AOSP camera will loose little quality.. its the same in all devices as they rely on the LG framework wich in AOSP or CM roms uses generic framework..
[Android Q&A, Help & Troubleshooting] Overidesev7en:
I use TextNow wireless and they're phones come preloaded with they're ROM which uses they're app to make calls (WiFi and cellular) anyways... I flashed a different ROM (LineageOS) so here's where the weird part is... Cellular data doesn't work on lineage with the Sim card in BUT it works without the Sim card :confused: but no 4G LTE. Is there anyway to get 4G to work?
[Xiaomi Redmi Note 3 Questions & Answers] PrincE..:
If anyone have any idea about adding the volte icon in mokee rom plz share here.:)
[Xiaomi Redmi Note 3 Questions & Answers] lovergarden:
seems no body want fix a Mokee rom
[AT&T LG G3] Crazy Seed:
Initial Title: Disabling Voice Privacy Option on LG G3 D850, how?

Hello mates :).

Call Quality and Volume are not being good so far, and i saw people saying to turn off "Voice enhancement, Noise Suppression, and Voice Privacy", well the thing is... Where's Voice Privacy option in this model? :S, is there any way to make it visible by changing anything on build.prop or other file? "just like when on build.prop we change the line ro.build.target_operator from "ATT" to "OPEN" and more options become visible on the network options just like being able to choose between 2g/3g/4g, that by default is a hidden option in this model".

Don't think it's faulty device because hearing music on the in-call speaker is working without problems, and recording voice is also good.

Please help me, it's frustrating having a phone BAD in Phonecalls :( .

Best Regards

----------------------------------------------------------------------------------------------------------------------------------------------

Update

Title: Bad Call Quality/Volume on LG G3 D850, any fix?

Messing around a little bit more i found out how to add Voice Privacy Option on D850, but i don't recommend because it's useless, that option is only on CDMA mode and as D850 doesn't have CDMA you can be sure that just like happened to me your SIM won't be recognized anymore on your phone and you'll have to factory reset/full wipe all, so Forget it really!

About the bad quality/volume on calls, since front speaker hears good on listening to music and recording voice, maybe a software or hardware problem "in Kit Kat i noticed it was worse than Lollipop" but even on Lollipop quality and Volume are still bad, so i wanna ask you: any fix for this bad call quality?, and: what is the name of the object on smartphones, that works like an antenna for the calls?, because maybe it can be a faulty piece being fixable by replacing with a new one.

Best Regards
[AT&T LG G3] hyelton:
It was be under calling or phone under settings. And depends on what you mean by bad call quality. That normally is an issue with the mic or network issue
[AT&T LG G3] Crazy Seed:
Thanks for answering.

Yes but the thing is that the Option Voice Privacy seems to be a not 'visible' setting on this model "just like the changing 2g/3g/4g Network, but was visible after changes in build.prop" :S.

Bad quality - It should be more clear, loud, and it seems like it's trying to suppress noise even without that option activated".

Network has maximum signal, and mic records well on Voice Recording so it should do fine also on calls i think :S.

PS: also heard about Hd Voice and presets on phonecalls, where's those options at in this model?.
[Asus ZenFone 3 Questions & Answers] lorikeet:
I see XC2028 in the kernel symbols and also under /sys/module. What is it doing? :p
[Asus ZenFone 3 Questions & Answers] sensi277:
Some ASUS devices have digital TV tuners so you can watch over the air TV. If your phone doesn't have that (most don't), then it's probably a leftover from phones that do.
[Upgrading, Modifying and Unlocking] addy187a:
Hi, so, just spent 10 minutes trying to figure out how to post on this site. (Although having posted before -_-)

Anyway, I recently got ahold of a BlackPhone 2, a phone that for some reason has a high value, but low interest. The problem it has is related to the speaker, the loudspeaker sounds muffled as if it had drowned in water. I looked online and couldn't find a replacement anywhere, there were hardly any videos of disassembling the phone nor any threads with pictures. So once the phone came to me (bought through eBay) I couldn't help but think it was Xperia inspired. The shape, materials, etc... With no help from the internet, I decided to disassemble the phone myself, it was easy, exactly like an Xperia...

Now I've found the speaker, exactly like an Xperia.... it's basically a small rectangular component with two pins sticking out on one side, they make contact with the smaller board on the bottom of the phone. I couldn't find a replacement part for this online, so I'm now wondering whether or not I could use another speaker with two pins in the same location? Such as an Xperia replacement part?

Thanks for any replies!
[OnePlus 5 Questions & Answers] alukarulz:
So who is not satisfied with their OnePlus 5 and wants to return is using the 15 day no-hassle return system. If you can please state your reason why.