yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] jhofseth:
solution for battery charge

We create a binary to patch the responsible kernel module. In other words, we will patch the module loaded by the kernel, so the patch won't survive reboot and thus won't fail secureboot. Kernel modules need to be signed to load, but if we temporarily patch the loaded copy of the responsible kernel module, we can bypass the 80% charge limitation.

This link is merely an example of live patching and is not what I'm referencing above, it's linked so we can modify the source code and compile our own binary only targeting a specific module. :)

https://github.com/jeboo/bypasslkm/find/master?q=
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] Dc_striker:
Does anyone have the problem that flashfire doesn't load files?
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] elliwigy:
theres probably over 100 posts in this thread..

PUT THE PHONE IN AIRPLANE MODE
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] jeffyv2:
Wait you mean my phone can fly!?

/s

Sent from my SM-G955U1
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] studlyswissdude2:
So I have the Unlocked phone and U1 software installed. When installing My Verizon app, I keep getting screen to Please request one time verification code to proceed. And when doing so, I get You'll need to wait 24 hours to get new code. I've done that, and after 24 hours, still the same message. Called Verizon tech support - they were absolutely useless (big surprise, right? :) ). [MENTION=3812611]elliwigy[/MENTION], thanks for all your work, once again! Have you seen this before? Seems like you are on Verizon. Any idea how to circumvent this? Anything in My ROM tool that I'm maybe missing?

Thanks in advance for anyone's help here :P
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] elliwigy:
it works for me.. must be youre setup or something.. i am on a U device and using the verizon csc with xaa no bloat.. also on ENG firm.
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] studlyswissdude2:
Odd. Feel like it's worked for me at some point before re-rooting again. I'm on your initial released version - QG2. Actually says Service provider SW is SAOMC_SM-955U-OYN-VZW_0177. Wonder if that's an issue. Do I need to try to reflash CSC from either XAA or VZW firmware? Any ideas are appreciated :)
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] mdiaz33685:
Yes it can, gorilla glass 5, just drop it from 10 ft, it will soar like an eagle...

Please video record that for all of us to see. On youtube..

thanks,
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] eelsid:
The Eng boot has debug set to mid. You can disable this by going to the stock phone app (Google dialer, etc. won't work) and typing *#0514# to bring up the debug service menu and tapping the debug level button, select low. Your phone will reboot. This will resolve any issues you had with Network Signal Guru and you may notice an increase in general performance.
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] sd_N:
Just call Verizon back and have them reset your account. 100% solution. Allows you to receive the SMS verification.
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] letsflyak:
When I get to phase 2 and attempt to flash with Fireflash, it just keeps processing the request to flash the system image, and or just crashes and screen goes black, reverts to AOD

Suggestions? Can I flash it with ODIN? if so, how can i? i tried the zip and got some weird error

Thanks!
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] Wired0980:
Don't know if it would help but did you tick enable pro in supersu?
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] letsflyak:
yah that didnt help
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] nimms:
Try another version of flashfire. also turn on aeroplane mode and see.
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] studlyswissdude2:
Yep, tried that already. Only thing they were able to do is remove my account so I could sign up again. After doing so, was able to log into app on phone and sign up. Then, when closing app and reopening, exact same issue as before. Tried to verify phone again and apparently couldn't... :confused:
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] TT_Vert:
Does this work for all carriers? Sprint didn't seem to cooperate w/ stock dialer.

Dave
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] crazychapin:
Does wifi calling works with root? Or something went wrong with my cellphone on the process to root?
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] studlyswissdude2:
If you're on Verizon, try to open the Rom Control app. Then go to Phone and Setting and you might be able to activate VoLTE, HD/Video Calling, and WiFi Calling from there. Hope that helps
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] jokono421:
try *#9900#
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] 94tbird:
Ive tried to read through and search for the issue, but never saw a solution. Im on a psrint S8+, successfully rooted and everything runs great, but I occasionally get Subsystem crashses regarding the modem. Seems like it only happens when the phone enters a dead area of no signal. i have seen others ask about this in the thread but haven't seen a solution. is there one? Should I be flashing something additional? After rooting im on AQDE software.
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] TT_Vert:
bingo thanks

Dave
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] kleen3r:
You need to flash CP and CSC from the stock Sprint firmware in Odin. You can download from updato.com. Just search for 955u. Use the latest AQGL version if you want volte.
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] machx1111:
I did this and still don't see Netflix in play store. Or doing need to use a third party apk?
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] 94tbird:
Thank you very much. Just flashed and will see how i fare on my drive home tonight
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] fachadick:
You still won't see Netflix in the store, but now it will work if you get the apk through apkmirror or something.
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] LiquidT:
Why will Smart Switch not work anymore? Will it not work if it detects root?
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] akinkoff85:
How close are we to the 80% battery fix?
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] hazmad:
Doesn't work on eng/combo bootloader. cloud backup still works though.

---------- Post added at 12:55 ---------- Previous post was at 12:44 ----------

It's a limitation of the eng kernel. AFAIK the only way around this is bootloader unlock or using a user boot (stock).

Some people have talked about trying to trick the kernel, but I don't think it's gone anywhere.
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] fachadick:
I'm pretty sure smart switch still works. I've used it a few times since I've rooted.
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] LiquidT:
Don't know if it matters, but do you have Verizon? I keep getting an Unsupported Device Error.
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] explorer-10:
When will we get an unlocked bootloader so that we can get a functional Magisk?
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] LiquidT:
Probably never with Verizon. lol
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] deetr_:
This thread is for a root based on flashing an official engineering firmware which has nothing to do with attempting to unlock the bootloader
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] jhofseth:
I've used Smart Switch at least 5 times with SamPWND root. It definitely still works!

BL SamPWND S8+

AP SamPWND S8+ (except for T-Mobile latest system.img.ext4)

CP T-Mobile latest S8+

CSC T-Mobile latest S8+

The only change I've made to build.prop was adding

wlan.wfd.hdcp=disable

and that fixed Miracast for me (i.e., only added the line because I needed it).

If I had to guess, it is either due to the particular system.img.ext4 you have now, or due to some build.prop change made.

Good luck! :)

(note: both USB and Wi-Fi Smart Switch work, just try Wi-Fi if USB gives you trouble; USB is definitely faster)
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] fachadick:
No, Sprint. But I had to change the build.prop in order to get samsung health to work - maybe that had something to do with it. Find the line in the build.prop that says ro.config.tima=1 and change the 1 to a 0, save then reboot. Good luck.
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] hazmad:
I think the BL is tmobile, so that makes sense. I guess it's carrier dependant.
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] LiquidT:
Thanks. I did the same with rooting, but did update to the latest Verizon AQGL. It could be just Verizon. Not that big of deal, i just wanted to use it for backup to my computer. I'll look at the build.prop, but don't really know what all the values mean.
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] jokono421:
Anyone trying to get custom rom builders,please head over to Pascal Rom for s8+ and help motivate , he said he can do it.
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] Interceptor777:
You will never be able to get Netflix from play store if you have root.

Download the Netflix apk from elsewhere, it will work.
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] mdiaz33685:
https://www.androidfilehost.com/?fid=745425885120756675 Netflix... I extracted this about a month ago...
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] turnman34:
ok, i have searched over and over. i can not find the original firmware for my phone. it is the unlocked us version. SM-G955UZKAXAA . any help where to locate a download is greatly appreciated. i need to return to stock if possible..
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] lifeofmessiah:
Anyone know a good battery monitoring app? I used to use betterbatterystats but it appears to not work at the moment. It just tells me "stats not available". Would like to monitor battery usage so can track down the resource hogs.
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] ArcticGaming:
All the ones I've tried don't work.
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] sd_N:
Hmm.. I only had the issue one time after rooting. Then the app worked fine after that. Then when I went back to stock, same issue, so I called to reset account and all was well afterwards.

I really hoped that would help you too.
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] partcyborg:
I already looked into this. 99.9% positive the kernels shipped with stock builds don't allow loadable modules (CONFIG_MODULES is off in kernel config).

Otherwise it should be possible to write a module to charge batt to 100% based off of publicly available kernel drivers for the controller that manages the battery (amongst other things)

I'm not 100% sure but attempting to insmod a kernel module fails with "function not implemented" or something very similar. I did not go the length of cross compiling a compatible module but from my browsing through Linux kernel sources and kernel dev forum searching this error code is only returned as the result of attempts to call the load kernel module syscall, which simply isn't implemented in kernels without CONFIG_MODULES

Did I miss something?

**** if I did I'll personally buy the controller firmware documentation so we have the hardware API to work from.

I don't see how it could break bootloader though (before anyone gets their hopes up) as bl sits above the kernel naturally.
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] bboysoulo:
is anyone else getting com.sec.vsimservice pop up every time you text?
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] jhofseth:
Not loading a new module, just patching an already loaded one. I may create the live-patch binary in the next couple days. I have time off from work now. I am pretty sure this is the solution, but I'll know more soon. :)
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] bboysoulo:
were you able to find a fix for this?
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] partcyborg:
It's likely something is ****ed in your system.

Try running adb logcat while opening the app and see if you get any errors. Can't help you fix them but if you see strange error messages you will know it's cause something is ****ed.

Otherwise only suggestion is to start completely over. Go back to dl mode and flash everything fresh again with the root files from OP, selecting nand flash and repartition along with everything else the op says, then follow root directions EXACTLY and flash the right things and the right things ONLY during phase 2.

I dunno about the phase 2 files in this op but I always personally flash the latest stock rom with my phase 2 like so:

1) flash stock rom system.img.ext4 in FF, with wipe before it and root zip after, choosing reboot into bootloader.

2) reboot in download mode and flash same version's CP and CSC.

3) Reboot into recovery and factory reset + wipe cache in recovery

4) boot os and setup/confirm things are working

5) If everything looks good I take an IMMEDIATE full backup of all partitions (except bootloaders as FF recommends against restoring those anyway) using flashfire and store it on sdcard and off device. That way if I **** it up I can restore to a known good state.

Did this a few times till I got the process 100% right for my phone/os choice and have had 0 issues with anything except battery drain since, and thinking of trying one more time to see if I can make that better (considering US instead of U1 for ****s and giggles), keeping current backup if it doesn't work better

---------- Post added at 05:53 AM ---------- Previous post was at 05:44 AM ----------

WAIT! Are you thinking about ksplice? Cause that is a really good idea. I had completely forgotten about doing that sh*t. If the open source kernel is accurate enough that just might work. God damn!
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] jhofseth:
I had planned on modifying the source code in the previously linked project, but further inspection reveals such is impossible for our purpose. Right now, I am going through kernel source for our model, and I will find some alternate method or live-patch project to source code modify & compile.
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] partcyborg:
Can you send me a link to the sources? I am cross compiling kexec for arm64 and am going to try to userspace load a kernel :)
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] elliwigy:
kexec is already there in the eng system.img.. u can simply pull it from there
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] elliwigy:
nvm its kexecload.. unless its the samething lol
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] mariocjr1992:
Is their any how to videos on how to do this whole process?
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] partcyborg:
Not exactly same but similar enough that it might serve my purpose. Pursuing both as cross compiling means installing tons of crap on my laptop heh

*Edit: nevermind duh*

---------- Post added at 10:01 AM ---------- Previous post was at 09:07 AM ----------

Apparently to use kexecload I need the atags given to the kernel at boot time and /proc/atags is not compiled into the kernel and attempts to find them elsewhere have been unsuccessful thus far.

Still trying
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] elliwigy:
seeing as how every combo firm boot img is the same id say its kernel related
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] elliwigy:
did u follow the second section?
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] elliwigy:
try the second method.. adb shell.. then setsid su 0 and type exit until you drop to a root shell
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] kcsevo:
Deleted
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] elliwigy:
if it modifies boot in any way you will have to start over with root.. u have been warned lol
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] peachpuff:
http://www.7-zip.org/
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] elliwigy:
if u read the instructions they specifically state if the supro method doesnt work turn on airplane mode then go into ff and continue
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] the1stSecond:
*Edit 2, got it-continued to leave airplane mode on during all of this; cleared cache via device maintenance>went back in to flash fire and boom see all files.*

Flash fire not playing well with me either (edit, lol I see your reply to similar question above, mine is a little different is I am pretty diligent with instructions).

Pro enabled.

Flash Fire set to Root.

Tried in airplane mode.

Still can not see files, just get a spinning circle and no files ever display after tapping + > firmware option.

Any help on this one?

PS, I am sure you are getting bombarded in PMs eliwigy, so thought I throw this up here too.
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] elliwigy:
if u are getting issues with gaining root try rebooting.. have phone unlocked when you type su in adb and wait for the su prompt.. root is wonky until you get through the second set of instructions
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] boostnek9:
Yes of course. Flashed my csc afterwards.
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] kclive:
Anyone else getting permission denied when they run this command:

adb shell setsid su

I get up to that point just fine and when I enter this command I get setid: exec su: Permission denied
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] BlackAlien92:
ok so I'm getting (rootfs on / type rootfs (ro seclabel) is this correct or did I do something wrong? And yes I have mounted to system about 30 times
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] shakan09:
If i have apps and setting for tmoble and verizon did i do something wrong?
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] jawonder:
Ok so i continued with the commands even tho the popup was there, i had the phone open when pushing su and it worked fine. I'm rooted now, gonna do second stage now, thanks
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] shakan09:
And i have multiples of the same catagory in settings. I have 2 system updates settings and 2 apps settings and 2 device managment settings.

I have tmoble options in my settings even tho im on verizon.

Also a pop up keeps coming up saying atomatic date and time setting arent enabled on my network

And my phone wont charge above 60%
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] trebills:
Phase 1 complete, rooted. Is there a fix for the 80% battery thing?
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] criswellc90:
There are 30 pages of people saying that there is no fix for it. Please read previous posts before asking a question for the 15th time and flooding the thread.
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] jawonder:
For this "Never" or "OK" ?. :-

From 7+ Tapatalk Pro
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] trebills:
15 of the same question took up 30 pages?
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] DarkXoa:
I've looked through this thread a couple times now, and I'm not seeing anyone having the same issue as I am, as far as I can tell, anyways.

I flash the firmware from the OP using Comsey ODIN(the version that came from OP as well). The flash seems to go OK and everything passes. The phone reboots, and I start the setup process. At this point, something goes wrong. At some point during setup, the phone will freeze up, the screen will go black, and then it will boot into Upload Mode. I can try to reboot it as many times as I want. Sometimes it makes it to adding my gmail account, and sometimes it wont even make it past the "Android is starting up" page, but every time it freezes and I get put into upload mode. I flashed back to stock firmware and tried re-downloading the SAMPWND firmware again, and it did the same thing after flashing it. I'm about to flash back to stock again, and I wont be able to give this another go for a few weeks, but I'll check back at this thread while I'm on the road to try and figure this out.
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] Blade22222:
Go to YouTube and search rootjunky. He has one. It's the old method but will give you the info you need.
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] eelsid:
Also you can download the "Phone Info Samsung" app from the Play Store. It has a large list of secret codes you can launch directly without the use of the dialer.
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] AnkurJain10:
Using another carrier (Internationally) after rooting

Hey All,

After this root process, will my phone no longer be limited (sim-locked) to T-Mobile? And if so, will I be able to travel elsewhere (international) and use that place's SIM card? That last step about fixing the radios, how do I get them working right for some other carrier than my original (T-Mobile)?﻿
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] jhofseth:
messing with dynamic kexec can apparently cause failure to boot, requiring reinstall

I don't know if a static build of kexec is safer, but my messing with a dynamic build in conjunction with linker binary necessitated reinstall; so, it's not safe for our SamPWND situation. :)
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] criswellc90:
I don't know where you got this information from, but this root process does not sim-unlock your device.
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] TT_Vert:
It does allow you to flash other carriers FW though so wouldn't that be the same thing (U1)? Or maybe I'm wrong.. It as happened once but I later found out they were mistaken.. :P

Dave
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] partcyborg:
I got farther then that :)

- custom built arm64 kexec statically compiled (no linker issues)

- custom built kernel from samsung g950U source (the stock ones don't have correct config flags)

- successful run of kexec with one big problem:

See where it says "kexec_load failed: Function not implemented"? That's because the permissive kernel we have explicitly has kexec turned off. Applies to the kexecload too.

Now, given that [MENTION=3812611]elliwigy[/MENTION] has a more "eng" AP (IIRC) that has the kernel that goes with the system used for sampwnd, and given that it comes with kexecload which appears to be a special built Samsung binary I have hopes/suspicions that said kernel option could be enabled.

I'm looking for real eng firmware myself but remembering what [MENTION=3812611]elliwigy[/MENTION] said im not holding my breath as I think it was delivered personally to him and not shared publicly.

See screenshot for fun!

Edit: few more things:

- memory address is kernel data space ending address from /proc/iomem

- devicetree.dtb is from boot image and is needed for booting arm systems, but I think it can reload the one already in memory

- boot initrd must be provided as the boot one is lost to userspace/kernelspace

- kexecload does not work (at least I don't know how to make it) because it uses the old style atags in place of the dtd which I have 0 idea how to specify.
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] elliwigy:
sampwn contains the eng system and persist images.. the boot and recovery were not however since they will not boot due to us havibg user devices

and have u tried to enable atags?

we can also use pivot_root and initrd to change root.. i almost have pivot root working all the way down to the last pivot_root command
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] partcyborg:
What happens if you flashfire ONLY boot.img? That's the only part I would want as it is kernel+initrd
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] meathammer386:
You have to sim unlock first please use search before asking questions as this has been answered many many tinmes please and thank you godbless
[Samsung Galaxy S8+ ROMs, Kernels, Recoveries, & Ot] TT_Vert:
Simmer down. And I'm agnostic.

Dave