yashsingh1/xdaforums huggingface dataset:
[iPAQ rw6828, XDA Atom General] h232430:
Hi gang,

I have been a long time Atom user. One thing that has constantly bugged me is the audio level - both in the earpiece and on Bluetooth connection to my car. Recently the IT manager at my work threw me a HTC Touch Dual (Nike) to evaluate for him. The audio (sound) level on both the earpiece and the same Bluetooth connection for the Nike is 100% better. Is there a ROM available that addresses the poor sound on the Atom or is it a restriction based on the hardware ?

I have tried a stack of searches however can't find anything that addresses this specifically ???

;)

Phil...
[iPAQ rw6828, XDA Atom General] h232430:
OK.

Does anyone know of any registry hacks that help with $hitty audio levels for the Atom ???

After may searches there are heaps of people complaining about audio levels - not may solutions though.

Pleaseeeeee help the IT manager will be asking for the Nike back soon.... ;)
[iPAQ rw6828, XDA Atom General] Tabbe:
have you try SRS WOW HD plugin? it will amplify the audio

plus if u still think its soft, use the equalizer to amplify further.
[iPAQ rw6828, XDA Atom General] h232430:
Thanks Tabbe,

Two things looks like I need to upgrade the ROM to WM6.x to use SRS is that right ???

I may not have been clear enough - mainly concerned with audio levels for the phone - first in the earpiece and second for the built in speakers. Will SRS assist for these ???

Phil...
[Samsung Galaxy S10 Guides, News, & Discussion] Vuska:
I have random reboot... will try this patch tomorrow.
[Samsung Galaxy S10 Guides, News, & Discussion] Vuska:
Hi... already doing your patches... i thinks succesfully, because i dont have any error, and boot normally after last command.

So.... i have to wait if random reboot appear right ? *to test*

Thank you... will report in about 3 days
[Samsung Galaxy S10 Guides, News, & Discussion] qwerty12:
Hi,

You can run the commands under "Q: I don't want to wait hours to see if my phone will restart out of the blue. How can I test for this bug?" in the first post. If your phone restarts automatically when running cat, then your phone is still susceptible to restarting itself during use.

If it doesn't restart, then you need to run reboot recovery yourself immediately, but it means the fix was successfully applied.
[Samsung Galaxy S10 Guides, News, & Discussion] N1ldo:
PS D:\S10+\ADB platform-tools> ./adb devices

List of devices attached

R28M31K3DNZ device

PS D:\S10+\ADB platform-tools> ./adb shell

beyond2q:/ $ su

Permission denied

1|beyond2q:/ $

?????
[Samsung Galaxy S10 Guides, News, & Discussion] Vuska:
do you already install busybox via magisk ? also there will be a pop up in your device to request access from computer. accept it

already enable usb debugging in developer menu ?

permission denied .... [emoji848] .. strange... already rooted right ?
[Samsung Galaxy S10 Guides, News, & Discussion] N1ldo:
Yes.

As you can see in the prints below.

i try install another busybox to.
[Samsung Galaxy S10 Guides, News, & Discussion] qwerty12:
Check your Magisk settings to see if you haven't turned off ADB superuser access and your apps list for a denied Shell entry.
[Samsung Galaxy S10 Guides, News, & Discussion] N1ldo:
Thank you all ...:good::good:

Yes Shell was unauthorized root on Magisk application list :victory:
[Samsung Galaxy S10 Guides, News, & Discussion] Vuska:
3 days now.... i can say it successfully fixed.... [emoji106][emoji106]

Thank you.

hope you will update too when new firmware arrives....

because i dont understand some code mean.... just follow and copy paste
[Samsung Galaxy S10 Guides, News, & Discussion] FlatOutRU:
*ASG7 firmware is out
[Samsung Galaxy S10 Guides, News, & Discussion] Laikar_:
I can provide a recovery.img from s10e (smg9700), also any way i can contact you for some help about building the kernel? I have been trying to do with s10e's one and i'm not having much success
[Samsung Galaxy S10 Guides, News, & Discussion] Vuska:
Downloading...

is ASG7 can use this patches ?
[Samsung Galaxy S10 Guides, News, & Discussion] qwerty12:
I'll download the update later and give it a once-over; however, I'll quote myself:

That would be appreciated, thanks. I can move the S10e into the "Patch not tested" section of the compatibility list.

I wish you'd have asked me this a few days ago, I deleted the kernel tree I had on my disk because I thought a new source ZIP from Samsung would be forthcoming for the new firmware. I'd've just attached a diff...

I did get the kernel to build but I could not get the result to boot. Some of the compiler warnings displayed during build didn't make it seem like I was going to get a working kernel image. I'll get back to you soon with some steps
[Samsung Galaxy S10 Guides, News, & Discussion] Laikar_:
I can't post links yet, tinyurl(dot)com/y537462u for the drive download link
[Samsung Galaxy S10 Guides, News, & Discussion] kakahoho:
Does EdXposed work for G9750?
[Samsung Galaxy S10 Guides, News, & Discussion] FlatOutRU:
Its changed a bit
[Samsung Galaxy S10 Guides, News, & Discussion] qwerty12:
Yes.

Good call; there's now code at 0x017F9AAC + 20, probably not a good idea to overwrite that...

I was hoping the newer build date might have meant that Samsung applied the patch, meaning I could abandon this thread, but no such luck: I did the quick writing to /dev/shm test and my phone kernel panicked. Lovely.

I've updated the first thread with an updated patch. I followed through with my plan of moving my extra code into load_module() instead of the empty section of zeros as, thanks to Samsung's kernel developers' ineptness, that function will always fail - may as well make it early return and then use the extra space gained to store my code in.

Thanks for the S10e recovery image, Laikar_. I've checked the recovery image's kernel and moved the S10e into the "Patch not tested" section. I'll write up some steps soon on building a kernel that won't boot

Anyway,

The S10 and S10e recovery images are not from ASG7, however, so I don't know if my newer patch applies to it but my old ones do. I think my newer one will do, too, but that's an educated guess.

Just like with the S10, anybody's welcome to try this on their S10e and let me know of the result. ;)
[Samsung Galaxy S10 Guides, News, & Discussion] Vuska:
so the first post already update to 050 kernel right ?

mean after i updated my s10+ magisk etc.. i can do that all steps right ?

cool...

still not yet finished my download since yesterday... my internet down.. [emoji2357]
[Samsung Galaxy S10 Guides, News, & Discussion] qwerty12:
Yep, the first post is updated for ASG7. Those steps are working on my SM-G9750 running it, anyway :)

I'll mention again that I couldn't get the result to boot. If you work it out, please let me know. I hate loading kernel images into a disassembler :(

I did this on a Ubuntu 18.04.2 minimal installation. I figure that if you want to build a kernel then you, like me, have at least a working familiarity with GNU/Linux, so I won't go too in-depth.

First, install the packages needed to build:

sudo apt install git-core gnupg flex bison gperf build-essential zip zlib1g-dev libxml2-utils xsltproc unzip python bc libssl-dev

Download the toolchain mentioned in README_kernel.txt:

git clone --depth=1 https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9

Download Snapdragon LLVM Compiler for Android v6.0.9 - Linux64 from https://developer.qualcomm.com/software/snapdragon-llvm-compiler-android/tools and untar it somewhere on your system. (This isn't actually the exact compiler Samsung use - if you look at /proc/version on your phone, you'll see it says 6.0.10 - but this is the closest we mere mortals will get.)

Download the source code zip from Samsung and untar Kernel.tar.gz into a newly-created folder. Inside said folder, run chmod 644 Makefile ; chmod 755 build_kernel.sh.

Open build_kernel.sh in your favourite editor. Make the following changes:

Set BUILD_CROSS_COMPILE to the folder where aarch64-linux-android-gcc, aarch64-linux-android-ld etc. are after cloning from git. Make sure to leave the aarch64-linux-android- suffix at the end. For me, this line looks like this:

BUILD_CROSS_COMPILE=/home/fp/x/aarch64-linux-android-4.9/bin/aarch64-linux-android-

KERNEL_LLVM_BIN needs to be set to the location of the Clang binary downloaded from Qualcomm. For me, this line looks like this:

KERNEL_LLVM_BIN=/home/fp/x/93270/toolchains/llvm-Snapdragon_LLVM_for_Android_6.0/prebuilt/linux-x86_64/bin/clang

After both REAL_CC=$KERNEL_LLVM_BIN instances add

CFP_CC=$KERNEL_LLVM_BIN

(although I think this is the wrong way to do it, consider just disabling CONFIG_RKP_CFP)

Open the Makefile in your favourite editor. Find the following line

@echo Cannot use CONFIG_CC_STACKPROTECTOR_$(stackp-name): \
$(stackp-flag) not supported by compiler >&2 && exit 1

Remove the "&& exit 1". The proper way to fix this would be to set CONFIG_CC_STACKPROTECTOR_STRONG to n in the config file; however if you run clang --help, you'll see that -fstack-protector-strong is actually supported. Why turn off a useful security feature?

Run build_kernel.sh and the kernel should build (albeit with a metric crap-ton of warnings, which is just one reason why it's not surprising the resulting kernel won't boot)
[Samsung Galaxy S10 Guides, News, & Discussion] m8980:
Hey,

I'm on Exynos S10+ and have random reboots, if my device uses twrp.

Do you think your fix could work in my case?

Thanks
[Samsung Galaxy S10 Guides, News, & Discussion] qwerty12:
Hi,

That would have to be a no, sorry. Your Exynos kernel is newer than our Snapdragon ones and the specific issue that this fix targets is already fixed in the kernel you use: https://github.com/ianmacd/beyond2lte/blob/master/fs/proc/task_mmu.c#L848
[Samsung Galaxy S10 Guides, News, & Discussion] FlatOutRU:
Running fine with 0 problems at ASG7 :)

Sometime probably gonna try building kernel)

Btw our chinesee collegues successfully building the kernels for our phone but they still have this reboot problems
[Samsung Galaxy S10 Guides, News, & Discussion] qwerty12:
Good luck! A kernel with Samsung's many anti-root features disabled would be one of the first steps towards a proper TWRP build for these phones.

The source code ZIP for the SM-G9750 is lagging behind. I don't know if Samsung made any source code changes, but there's quite a few differences between the config included with the G9750ZCU1ASF1 zip and the /proc/config.gz from my ASG7 phone...

I'd happily abandon this thread for kernels built from source with the fix, but while Samsung appear to be providing updates monthly, they're not quite so speedy when it comes to uploading the corresponding kernel source zip (of course, if there's no change to the source code, only the kernel config, then that's understandable, but I wouldn't say it's trivial to tell)

Interesting. Do you happen to know if those kernels bring any advantages over a stock Samsung kernel? Or are they to enable use of a stock Android build? A kernel with the USB mass storage gadget enabled would be great so that I could use this - I'm tired of taking my microSD card out and putting it into my old phone for this...

Anyway, fixing the reboot issue is a one-liner fix, believe it or not: https://android.googlesource.com/kernel/common/+/043c92bd0517e0018cb6307390eb9c36b864fb9f^!/#F0
[Samsung Galaxy S10 Guides, News, & Discussion] Vuska:
Wowww..... i hope the kernel really there sometimes.. and hope also support KCal as my display little yellow / red....

sir, just finished downloading ASG7, .... so i just re patch AP and flash it with odin for AP patched, BL, CL and HOME Csc right ? and no need to clear data/ factory reset... just go to system by hold power, bixby and vol up like before right ?

sorry.... just wanna make sure as this my first update... [emoji120]
[Samsung Galaxy S10 Guides, News, & Discussion] FlatOutRU:
I've a got a few twrp and Chinese roms for our device, but they are outdated since as i got twrp shares kernel with rom on our device.

Since i assume you are experienced in these things i've got a question : can i just extract recovery.img(the one with twrp) and replace kernel to the latest one? Or it is much more complicated?

---------- Post added at 05:44 PM ---------- Previous post was at 05:43 PM ----------

Yep, and do the patching the the kernel again

---------- Post added at 06:37 PM ---------- Previous post was at 05:44 PM ----------

No, they are for stock chinese rooted phones(custom stock). It has proper twrp support-integration and boot direct into rooted system

I`ve been lucky and found ASG4 custom rom from chinese forums - downloading the whole and it has kernel(boot/recovery.img) inside zip with twrp inside it. I can upload it for you to check out asap (11h remaining)
[Samsung Galaxy S10 Guides, News, & Discussion] Vuska:
twrp already there ?

is it aurora rom v3 for sd855 ?
[Samsung Galaxy S10 Guides, News, & Discussion] FlatOutRU:
Yep, aurora
[Samsung Galaxy S10 Guides, News, & Discussion] qwerty12:
Were I to try it hypothetically, I'd take the initramfs (I think that's where TWRP resides) from a known compatible TWRP recovery.img and shove it into a Magisk-patched recovery.img based off the latest S10+ firmware. magiskboot is quite an easy tool to work with and can do this, I believe.

I'd flash the result, boot into TWRP (assuming it boots at all) and then use it to install the Magisk zip to be able to, hopefully, boot into rooted Android.

But these are just silly ideas, as I really cannot profess to have much experience with all this.

I don't think TWRP would start, however. The stock Samsung kernel has lots of anti-root features and it doesn't support loadable kernel modules (this probably isn't a requirement of TWRP but, y'know, it's a nice thing to have). When Magisk patches an AP tarball, it neutralises Samsung's defex in the kernel, and there's an updated Chainfire patch in the first post of this thread to make CONFIG_RKP_NS_PROT useless, but IIRC there's a few more things that could do with being disabled.

I'd be happy for me and my negativity to be proven wrong. And since I don't have anything to back up my words, the chances of me being wrong are probably high.

Thank you for your offer, but I won't ask you to upload it on my behalf, as I don't really have the knowledge to do much with it (and there's only so much a person can do with binaries). I personally don't really like the idea of running some TWRP build of somewhat dubious origin (I'm willing to bet a link to a device tree isn't present) and information about said build is lacking. For all I know, a simple wipe of /data might end up zapping the EFS partition too...

What I would like to do, once Samsung upload an ASG7 source code zip, would be to try building and booting my own kernel again. That's probably still a long way off, however, as I can't claim I know how to use tools like mkbootimg...
[Samsung Galaxy S10 Guides, News, & Discussion] TheUndertaker21:
do you guys have the latest twrp or any rom for 9750

i sold my s10+ and got the SD model instead

someone posted twrp but not sure if it was the latest version or not
[Samsung Galaxy S10 Guides, News, & Discussion] Laikar_:
I've been trying and got the same luck, so i guess we aren't getting twrp working any time soon. Also recently updated my s10e and it comes with kernel version 4.14.78-16509050, would you mind checking if the patch is compatible? cause i get a bootloop when applying it.

tinyurl(dot)com/y6xzw9vp
[Samsung Galaxy S10 Guides, News, & Discussion] FlatOutRU:
Chinese guys got twrp perfectly working, but there is no option for an s10e.

Downloading latest SG7 from them to check it out.

Btw i was running aosp and didnt see problem with reboot at stock kernel (hum)
[Samsung Galaxy S10 Guides, News, & Discussion] TheUndertaker21:
can you please upload it ? since most of us cant access the site

my new s10+ just got here

Thanks
[Samsung Galaxy S10 Guides, News, & Discussion] FlatOutRU:
Sure, but it its 20h more to download
[Samsung Galaxy S10 Guides, News, & Discussion] TheUndertaker21:
Really? You didn't download it for your s10+?
[Samsung Galaxy S10 Guides, News, & Discussion] FlatOutRU:
Download speed is about 60kb/s from Chinese servers
[Samsung Galaxy S10 Guides, News, & Discussion] TheUndertaker21:
yikes but thanks will wait for you
[Samsung Galaxy S10 Guides, News, & Discussion] TheUndertaker21:
latest patch needs kernel right ? i just upgraded and rooted got a reboot lol

this won't work with the latest right ?
[Samsung Galaxy S10 Guides, News, & Discussion] TheUndertaker21:
I think most people will have that kernel

I have it too. Hope we can have a solution soon

Random reboot is annoying
[Samsung Galaxy S10 Guides, News, & Discussion] FlatOutRU:
Lol, latest firmware is ASG7, OP has the fix for it already for a week

Check twrp topic to get downloads for chinese rom
[Samsung Galaxy S10 Guides, News, & Discussion] TheUndertaker21:
We don't have that twrp here? Do you mind share the Chinese twrp?

That would be greatly appreciated.
[Samsung Galaxy S10 Guides, News, & Discussion] qwerty12:
He already has done so in another thread. Take your TWRP queries there.
[Samsung Galaxy S10 Guides, News, & Discussion] TheUndertaker21:
Where's that thread? Lol

Plus I'm more interested In fixing random reboot.. I heard twrp doesn't work with tgy anyway
[Samsung Galaxy S10 Guides, News, & Discussion] qwerty12:
Apparently, developers from a Chinese forum have done so; FlatOutRU has kindly uploaded it. I would be curious to know what toolchain they used... I think turning off Samsung's many anti-root protections in the kernel config might help, but I'm still waiting on the release of the latest source code ZIP from Samsung to test anything out.

Also, for the S10e (but not any of the other Snapdragon S10s), they have one separate ZIP for the HK models; the rest of their uploads (newer ones at that) are ZIPs for the mainland China version of their firmware. I'd like to compare the TGY and ZCU ZIPs to see if there's any changes to the code, or if the differences only lie in the kernel configs used.

Yeah, well, I'm not surprised that your phone boot loops, as the last patch (which is the one that adds the extra code) doesn't apply to your kernel... ("[...] note that for any of these patches, if you don't get any matches or get more than one, then do not continue any further. Don't selectively apply any of these patches; it's all or nothing")

Run the following in lieu of the

last

(the first two patches apply fine to your kernel and are still needed) magiskboot hexpatch command in the first post (untested on an actual device):

../arm/magiskboot hexpatch kernel F30300AAA1010035F40313AA750640F9890E41F83F7500F103010054AA02098BA10501D0407100D121B81D91 F30300AA0D000014895240F9DF420239C0035FD600000000D22E40F94E02008BCE2E00F9C0035FD621B81D91

(I think the difference is one byte or two :rolleyes:)

https://xdaforums.com/showpost.php?p=80068160&postcount=547

Oh, I guess you are in the right thread then (or you can try flashing that custom TWRP firmware. Hell if I know)
[Samsung Galaxy S10 Guides, News, & Discussion] TheUndertaker21:
Will test your line instead LOL
[Samsung Galaxy S10 Guides, News, & Discussion] qwerty12:
For the Snapdragon S10+ running the latest firmware (G9750ZHU2ASG7), follow the steps in the first post. The hexpatch line in my last post is for Laikar_, who has a Snapdragon S10e

With an uptime of nearly four days, it seems to be working for me
[Samsung Galaxy S10 Guides, News, & Discussion] TheUndertaker21:
you are awesome man

about to do so now
[Samsung Galaxy S10 Guides, News, & Discussion] Laikar_:
I have done this and it seems as it has fixed the problem, i tested with the commands you provided and no reboot happened, will report if it happens again, many thanks
[Samsung Galaxy S10 Guides, News, & Discussion] qwerty12:
Thanks, I'm glad it seems to be working (honestly, I've never had my phone reboot from this bug if it didn't do so when running the commands to test manually). I'll edit the first post to reflect the status of the S10e in a few days' time or something

You may also be pleased to know I did manage to build a kernel that boots on TGY (getting the Wi-Fi to work was the hardest part):

However, I don't personally think there's a future in building kernels for this phone. I don't know why, considering they're pretty good with the Exynos models, but Samsung haven't uploaded source code ZIPs for any of their Snapdragon S10s running Hong Kong firmware for a very long while now (the sole exception being a single S10e ZIP for very outdated firmware). If you zcat /proc/config.gz on a phone running the latest firmware, you'll see CONFIG_EEPROM_FORCE_DOWN is an enabled option. However, in the latest available ZIP for the SM-G9750, there is no code pertaining to that option. I've actually found code for that feature in the S10+ 5G source code ZIP, so I plan on taking that and shoving it into the source code tree for the SM-G9750. But Samsung probably fixed things in existing code and I don't really have a way of seeing those changes.

I do think this is a GPL violation, but it's unlikely Samsung would take a source code request seriously from a person living in a country where they don't even sell this particular phone model...

On a side note, tomatolei (thanks FlatOutRU) has uploaded his TWRP device tree for the SD S10s here: https://github.com/tomatolei/device_samsung_beyond2qltechn
[Samsung Galaxy S10 Guides, News, & Discussion] Vuska:
What your kernel benefit, sir ?

if the kernel good.... i want to flash it to my too...

i really there's a kernel for TGY that has feature to set KCal... so i can set my display better white.
[Samsung Galaxy S10 Guides, News, & Discussion] innocence07:
anyone here kind enough to upload their AP file for G9750 firmware ASG7, sammobile download speed is f mediocre :( (it will be downloaded for 24hrs) for the whole firmware
[Samsung Galaxy S10 Guides, News, & Discussion] TheUndertaker21:
random reboot has been fixed

Thanks OP

didn't have a single one. just wish we had twrp for TGY
[Samsung Galaxy S10 Guides, News, & Discussion] FlatOutRU:
Still, tomatolei's code is very outdated. Btw every Chinese kernel got this WiFi problem so it can be enabled about 1min after being booted.

What actually is CONFIG_EEPROM_FORCE_DOWN doing ?

I'm aswell interested in doing kernel for our phone since i want to fix MTP on aosp rom(and many more stuff for aosp) and try to make it permissive to boot Q beta :) Still,i've got no experience at all with it besides your few posts here:) Can you write a few tips or how did you manage to build it with success booting? ( Or a guide in PM)

Maybe If your idea are going success can you upload to git?
[Samsung Galaxy S10 Guides, News, & Discussion] TheUndertaker21:
Hey guys,

Anyone knows why. Wifi never connects after reboot.

Find that kinda annoying lol.