yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] Mr. BonG:
Failed upgrade to CruelKernel-v4.5

Hi guys! I need some help. I have a Samsung S10 (G973F), with Android 10 (stock rom) + OneUI 2.5.

TWRP 3.4.0.1 installed (with wbmeta+multidisabler) + CruelKernel v3.8 with integrated Magisk 21.0.

I use the EdXposed framework (riru 21.3+yahfa 0.4.6), but because of that my SafetyNet is tricked.

This is the main problem.

If I turn off the riru magisk module, the safetynet is ok. (MagiskHide Props and Universal SafetyNet Fix Magisk moduls don't help)

At this moment, all functions (except safetynet) work perfectly.

I want to upgrade the kernel to have newer magisk (v23), this is a prerequisite for me to upgrade edxposed moduls or try LSPosed.

I successfully installed from twrp CruelKernel-v4.5.zip, but after reboot they came problems: the device freezes and restarts automatically at the lock screen, if not then later random restarts. And wifi and camera dont work. (it is the same experience with kernel v4.4, v4.3, ect, only with v3.8 and v3.9 works well)

So, this is my problem.

How can I upgrade to a newer kernel or upgrade the magisk? Thanks for help!
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] Rawdog.dll:
Hello friend.

Hello friend. I were facing the safety net problem too and I didn't knowing what were the cause.

So, before yesterday I decided to try LSPosed and the issue with SafetyNet was gone.

So that's clear that EdXposed is not passing on SafetyNet anymore.

This is an information that I'm sharing to help.

Good luck
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] Mr. BonG:
Okay, but I can't install LSPosed, because the magisk version on my v3.9 kernel is too old (v21.1).

How can I install the 4.5 kernel?
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] Cisk0:
you can't because 4.5 is for android 11.

you need 3.10 which is the last kernel for android 10 and is still updated with new magisk versions.
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] Mr. BonG:
Thank you very much !!
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] MrDigitalCat:
can you add drivedroid support to your kernel?

no one android 11 rom or kernel support this feture, im so much needed in this

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

trying to build kernel v4.5 for myself with drivedroid support on github and no success, seeing this and no img file in artifacts
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] lysaer:
Using a G975f and installed cruelkernel last night after installing beyondrom, but now am stuck hanging on the boot splash screen and cannot enter recovery or download mode

Any help would be greatly appreciated
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] TBA33:
Well i am on a G973F and have the same problem but no beyondrom but back to the future
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] LuckyyLuke:
Sorry for necroposting, but had to ask, does this change the key combo needed for recovery mode? Phone has bricked and is stuck on the boot logo, can only restart through power button + volume down key, as soon as it restarts i start holding down power button + bixby button + volume up button, and release when the first logo comes up (tried releasing at different times too and start to hold down at different times, and yes I have connected it with a USB to a PC)

On Samsung S10+ (G975F), did as told, first flashed stock firmware for clean install, installed TWRP + multidisabler without any problem and able to boot, then I installed cruelkernel and got into this situation. Im gonna drain the battery and try after that but I doubt it.
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] 0autumn0:
Can I use One ui Android 11 Kernel 5.0?
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] Arjunpvl:
Hi

I'm on stock android 12 one ui 4.1. (SM-G975F)

Currently not rooted and no twrp installed. Will this can be installed on my device.
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] malcolmy:
Using the github page I built a kernel that includes the latest magisk 25.1.

There's one problem, I need the combo buttons to boot. So, how do I modify the build to not need the combo buttons?

Even when I copy this file to the cloned repo, with the only edit being "+magisk=v25.1", it still needs the combo keys to boot.

Build software better, together

GitHub is where people build software. More than 100 million people use GitHub to discover, fork, and contribute to over 420 million projects.

github.com

If I take the kernel from here (same toolchain "cruel" with magisk v24.3) I don't need the combo buttons to boot.

Workflow runs · CruelKernel/samsung-exynos9820

Unified kernel tree for S10 and Note10 devices. Contribute to CruelKernel/samsung-exynos9820 development by creating an account on GitHub.

github.com

So even when I copied the file exactly, to the letter, with only changing the magisk version, I need combo buttons. What do I do to get the same result?
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] Hykosit:
Hey !

I might need some help if anyone have some time !

I have a G970F with DotOS and TWRP.

I have compiled the kernel on github, but whenever I flash it to the phone, the reboot give me a bootloop.

I saved the boot partition so it's okay to roll back, but i'm still not able to call it a success :/

Does anyone has an idea of what could have gone wrong ?

Thanks for the kernel btw !
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] citroene:
when will this kernel be updated with the latest magisk version?
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] AndrzejDwo:
it's quite rude to ask about ETA, not to mention it's against forum rules... kernel was updated at Monday afaik
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] citroene:
what's rude about this? why i shouldn't ask when the kernel will be updated?
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] zogoibi:
Did you manage to solve this? I'm having a similar problem: the phone just does not boot. Remains in Samsung boot logo forever until I restart with recovery combo and restore previous kernel.
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] Hykosit:
Hi ! sorry but it didn't go any further for me :/
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] Saqib Javaid:
I need one for G975N version but when i try to build, it says model not found. what to do?
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] comsite:
Please can you add support for drivedroid?
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] Stephanizgo:
the reason is that it isn't updated it just exists but no noe knows about it the last version avalible in this forum is from december 2020 where can i find the latest one sir

is it like illegal to upload the new builds
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] comsite:
Here's the link for all releases and latest one too.

release
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] dLoPRod:
Is the new version 5.3 compatible with stock firmware running android 12 and OneUI 4.1?

Will it come with pre-patched magisk and work for NetHunter out of the box or should I build my own custom kernel from the sources repo?

Thanks in advance, your help is greatly appreciated.
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] lupin57:
Ofc ^_^

v5.3 is built for HVJ4-HVJ5 firmwares (A12 - 4.1)

As usual, Magisk is included in Cruel ;)
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] dLoPRod:
Thanks a lot for your reply @lupin57

Can I flash the kernel directly from Odin without a custom recovery? There are several images inside the images file, should I use dtb-exynos, dtbo-model, or the file with just the model name?
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] Bkblues:
Boot.img is the kernel, dtb-exynos, dtbo-model contain some minor adjustments to better align with the kernel's work
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] dLoPRod:
Thanks for your reply @Bkblues !

There is no boot.img file included in the zip archive.
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] Bkblues:
If you're talking about a cruel kernel, then choose the correct file based on your model,For example, mine is N976N
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] dLoPRod:
Ok got you, thank you very much!

I tried flashing that one with Odin and it "Passed" and rebooted but it didn't take, the old kernel was still displayed both under Software Info and in the NetHunter app.

I will try to re-flash stock firmware and try again as I had already installed another version of cruel kernel.

Again, thank you for your patience, I'm kinda new to this, your help is greatly appreciated!
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] Bkblues:
After extracting the kernel, package boot. img into boot. img. tar format, and then select the AP option in odin to flash in. Enjoy
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] dLoPRod:
That's what I did, but it still didn't take.

I wonder if it's because I have the NetHunter chroot already deployed and a different version of cruel already flashed.

Should it have worked anyways? I followed those steps and Odin displayed "Pass", then the phone rebooted, but the previous kernel was still displayed in About Phone > Software Information, and also inside the NetHunter app.

I will try to flash it again like that if that doesn't work then I'll flash the full stock firmware from samsung and then freah flash cruel 5.3.
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] Bkblues:
Okay, I wish you success
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] dLoPRod:
Should this default 5.3 kernel work for full NetHunter chroot? I'm getting POSTGRESQL error Could not create shared memory segment: Cannot allocate memory when trying to start the postgres service.

Do I need to compile from source with special arguments?
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] Bkblues:
How to test what you said?
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] dLoPRod:
I guess only way to test is flashing it and trying to start postgres again.

I did see in the github page there's a pre-configured config file specially designed for kali, thought this could be the way.
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] dLoPRod:
This is the full error I'm getting with the current cruel kernel version
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] Bkblues:
The cruel kernel disables kali by default. If you need it, you can add kali in the configuration and then rebuild the kernel
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] dLoPRod:
Ahhh ok thats, what I thought.

I have never built a kernel before, I could really use some help or guidance on how to provide the build arguments for cruel to work with Kali NetHunter. I have already forked the repo and acrivated actions but have no clue where to go from there.
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] Bkblues:
Fork the source code, then find the modification and save the submission. As shown in the following figure
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] dLoPRod:
Thanks a lot for all your help @Bkblues!

Kernel was built and flashed successfully, I now have a 100% working Kali chroot.
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] InfamousMykol:
How to make CruelKernel work on Oneui 5.1 ported rom?
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] dLoPRod:
Would +mass_storage be a good option to make DriveDroid usable?
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] Bkblues:
You can check if there is any relevant information in the configuration（kernel/configs/）.“+”indicates default, “-” indicates that it needs to be added when building the kernel
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] Bkblues:
Developer have not been active here for a long time, and besides, he no longer own this phone, which means he will not update and support oneUI5.1 again
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] dLoPRod:
Thanks @Bkblues !

In the kernel configs mass storage has a "-" so according to your comment ia not activated by default. I will try to rebuild and flash the kernel with this extra parameter.

In your opinion, do you think would provide compatibility for DriveDroid? The error I get when trying to set up states "DriveDroid was not able to find any hosting devices in your phone/tablet. This usually happens when the device has no USB slave or USB Mass Storage capabilities. However DriveDroid might also be missing detection methods for your device. Reporting this issue might help DriveDroid with future support."

I think there's a good chance it will work, so dropping this in here in case someone else faces this same issue.

Edit: after providing +mass_storage argument to the build yaml file, building, and re-flashing the kernel, it seems USB "mass_storage" function is still not enabled.
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] dLoPRod:
After further research, I found that newer android versions (running android 12) block USB mass storage mode by default, so even though the kernel is mass_storage capable, android won't allow for this to work.

Will keep researching and update if I find a solution or workaround.
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] newbit:
Hi @dLoPRod,

do you have any source for that claim? That this is by default.

I can confirm, this "feature" seems to be "new" in Android 12.

Google Android 12 must be configured to disable USB mass storage mode.

Android 12 lets IT admins disable USB data to improve security

And with a little help from the AOSP - Enable the USB Gadget HAL APIs

I can also confirm, the S10 (G973F - G973FXXSGHWC2), has the mentioned

USB HAL 1.3 Version:

beyond1:/ $ svc usb getUsbHalVersion
V1_3
beyond1:/ $ svc usb getUsbSpeed
-1
beyond1:/ $ svc usb getGadgetHalVersion
unknown
beyond1:/ $ svc usb getFunctions
mtp,conn_gadget

I can confirm once more, if you open the tool USB Gadget Tool,

it shows no mass_storage.0 entry.

But as soon as you create the directory, as root, yourself, it pops

up.

beyond1:/ $ mkdir /config/usb_gadget/g1/functions/mass_storage.0
mkdir: '/config/usb_gadget/g1/functions/mass_storage.0': Permission denied
1|beyond1:/ $ su
beyond1:/ # mkdir /config/usb_gadget/g1/functions/mass_storage.0
beyond1:/ #

Which is totally normal. The mass_storage.0 function is in stock firmware not implemented at all. Even its Kernel module is off. So once you've just enabled

the module, you still need to write all the necessary parts in the

/vendor/etc/init/init.exynos9820.usb.rc file.

e.g.

on init
mkdir /config/usb_gadget/g1/functions/mass_storage.0

on boot
symlink /config/usb_gadget/g1/functions/mass_storage.0 /config/usb_gadget/g1/configs/b.1/mass_storage.0

etc.

I did this already with my P9-Plus on Oreo, and I am adapting the init.exynos9820.usb.rc right now.

Btw: DriveDroid aborts its setup routine right after USB System, if you are on stock kernel. But with the mkdir, and the mass_storage enabled kernel, it goes further and thinks it did already something.

Not sure, what preconditions needs to be met, that drivedroid works as expected. But on my configuration, I had to put an image somewhere on data, sdcard didn't work, so that I can bind it to the gadget. If you can provide some more inside details about that, I am happy to see if I can adapt it accordingly.

Cheers

NewBit
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] dLoPRod:
Hello @Bkblues !

I can confirm that the G975F also has USB HAL 1.3 version.

I can also confirm that manually creating the directory allows DriveDroid to proceed to the next stage. However, still unable to mount images, not even the DriveDroid test image. Nor in the sdcard or internal storage.

Please let me know which details you require, I would greatly appreciate you working with me on this.

Also a sidenote. Not sure if related but HID interface is not found either. Another thing that might be unrelated that I have not been able to get working is OpenVPN, neither using the OpenVPN android app nor directly from the kali CLI, I can establish the connection with the server without issues, but once connected I'm not getting any return traffic. (TX increments, RX does not).
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] Bkblues:
I am not a professional and cannot answer your question. You should consult with the developer
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] dLoPRod:
From what I understand the dev no longer has an s10 device and hence abandoned development for this kernel.

You seem to be on a good track, I wondered what else needs to be set up on the /vendor/etc/init/init.exynos9820.usb.rc file since you wrote etc. after it.

I'm not a professional either, but learn quickly.

Again, thanks a lot for all your help.
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] Bkblues:
Sorry, I don't know how to do it yet.
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] newbit:
Hey Fellows,

just a little update. I've got even DriveDroid running, so that I can switch

between iso files and a virtual image file. Works very well actually.

My isos are also booting my Mac, and they get mounted on Mac, Win and Linux.

I just have to switch manually the mode and changed the USB System to Standard Android. That's it.

In order to get my isos mounted on Mac, I patched an upstream fix for this in

the Kernel. I would consider asking for a PR, but I don't think, the main kernel repo will accept it.

Anyways, it works now.

Cheers

NewBit
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] dLoPRod:
Hi newbit,

Thanks a lot for the update!

Would you mind sharing more details on how you got drivedroid to work?
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] newbit:
No not at all.

So first I got through this initial setup thing, so that I could get in the actually

app interface of drivedroid.

In there is a settings button, and then USB Settings, right under USB Setup Wizard.

In USB System, I changed to Standard Android.

In Automatic USB Mode, I've changed to None.

In Manually change permanent USB Mode, i changed to Media Transfer Protocol.

I figured, drivedroid tempers with the persist.sys.usb.config prop, which is normally mtp,conn_gadget or mtp,conn_gadget,adb

so Media Transfer Protocol was the closest I could get.

After that, I went back to the main screen, where you can load the images,

I choose an image and its type, like cdrom or writable usb mass storage.

If it is shown at the top as being hosted, I go back to the USB settings,

and change in Manually change USB Mode, to Mass Storage, and that's it.

The drive pops up.

It seems driverdroid has some issues with the automatic switching, but manual

switching will do it just fine.

[Update]

Just FYI:

If you are looking for an up to date repo that hosts an amazing amount of totally awesome images,

add the one from Evgeny (flameshikari) to your drivedroid repo. If you have another one, please

feel free to share it, would be very much appreciated.
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] dLoPRod:
Hi @newbit ,

Sorry for the late reply.

Thanks a lot for this, I was able to mount the images perfectly on drivedroid. Have not been able to boot from them though, but it might be that my pc's bios is blocking it. Will test on monday on a different pc.

Would doing this impair the ability to use adb to push APKs? After I followed this guide I found myself unable to recognize my device from my pc using adb.

I don't have any repos for images, what I did was download the install media for kali and test with that, think of it that might be the reason it's not working... Anyways thanks a lot for the tip on Evgeny's repo, will definitely check that out.

PD. Have you ever played with NFS? I found that this kernel doesn't have the appropriate patch for mounting nfs drives.
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] taka2902:
Deleted
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] newbit:
I didnt try bios/pc, only Uefi/Mac, and without converting it to hybrid through drivedroid.

yes absolutely, as i said, it tempers with the persist.sys.usb.config prop. So you have to enable adb again.

You can try to use WADB

or openssh from termux.

I guess the images will be same, it is just a collection of download links, so they should be no different in the way of downloading it.

Not sure about nfs, but i think you are looking for cifs. and this kernel is supposed to support it, depending on how you build it.

You can try CIFS Documents Provider.

Which worked for me 80% of my tasks.
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] dLoPRod:
Looking for to use NSF for mounting UNIX/LINUX network file shares. Getting an error message:

# mount x.x.x.x:/file-share /tmp/tmp-mount

mount.nfs: No such device for x.x.x.x:/file-share /tmp/tmp-mount

On a different subject, I'm getting Android routing issues, let me expand a little.

I connect to an OpenVPN server. Routes are installed correctly in the routing table (# route, #ip route), and traffic generated by the root user gets sent out of the tunnel interface (tun0) correctly allowing me to reach the private IPs on the VPN network.

But if I switch the user (ie. kali), traffic destined for the VPN private IP range no longer gets sent through the tunnel but directly out the wlan0 interface.

Has anybody faced this kinds of issues with android routing that could shine some light on me?

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

Update: Fixed!

It turns out the OpenVPN IP rules were being created only for uid 0 - 99999, and kali users are created starting at uid 100000. You can see this with the command:

# ip rule show

Manually changing the uid of the users, and gid of their corresponding groups, to something under 99999 fixes the routing issue, but stops the NetHunter app from recognizing the users in the KeX Manager tab. This is easily worked around by creating a custom command for starting and stopping the VNC server for that user.
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] applesucksLmao:
what about thunderstorms kernel? that one that had overclocking? have anyone built it for one ui 4.1 latest binary that can send it to me? thanks
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] dLoPRod:
Guys what is the correct process for upgrading magisk? Re-compile and re-flash the kernel? Would this mess with any installed modules?
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] newbit:
Yes, re-compile and re-flash the kernel worked for me.

No, it did not mess with any of my installed modules.

There is a "new" name convention in the download link of the release.

A "." instead of a minus "-"

So you have to patch your usr/magisk/update_magisk.sh to

get this Version downloaded. You can use either my commit Fixed broken magisk link due to different release name convention for it, or the one from

evdenis magisk: Fix broken link for magisk v26.3

Anyways, I had to update the Magisk APP first, and then re-flash the kernel.

Somehow with 26.3 the download function didn't work for me.
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] badesh:
Hi. Is there any cusom kernel i can use for aosp roms with android 12? I currently have e os installed and a poor battery life on my s10+. Thanks for any tips.
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] NethunterX:
Hi XDA Community,

I'm using a Samsung S10 (G973F) with CruelKernel 4.14.113-Cruel-v5.3 and NetHunter. I'm struggling to install the driver for my BrosTrend AC1200 AC1L (RTL8822BU chipset).

I keep getting "unable to locate package" when trying to install the driver. Could someone guide me on how to:

1. Install the right headers for my kernel?

2. Add the RTL8822BU driver into the CruelKernel?

Or if it's complex, could you point me to a guide on integrating this driver into the kernel headers? Thank you 🥴
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] guastucci:
I'm using nemesis kernel. To change to cruel, what should I do? I tried to flash but my phone stay locked in pin screen. I puted the right pin, got as blank screen and after locked again. Any help? Tks
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] simonk206:
Read 3. post of this thread
[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] amakuramio:
Not work with oneui 2.1