yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 Q&A, Help & Troubleshooting] Strephon Alkhalikoi:
Ehh...I'm sorry for snapping at you in my post. It was unwarranted.

The purpose of debloating a stock ROM is to reduce memory consumption by the system. With debloating a ROM, the possibility exists that you delete too much, resulting in a bootloop. I do believe there is a list of safe to remove files available that can help here. But there will be no security patches on any stock ROM since this device predates Google releasing monthly security updates. For that, you'd have to go with LineageOS or AOSP, and doing that may make your device not quite as stable as you may be used to.
[Galaxy S 4 Q&A, Help & Troubleshooting] jeroldvaz:
i9515 gets turned off as soon it is turned on

Hi,

I just flashed the lineage Custom Rom on my i9515, it was working fine for a couple of hours, then it started hanging and got switched off. Now, if i try to turn it on the logo shows and the screen goes black. nothing else happens. I tried booting into recovery and download mode. It keeps switching off. I'm not able to use it with odin to flash as its not going into download mode. any help would be greatly appreciated.

TIA
[Galaxy S 4 Q&A, Help & Troubleshooting] Strephon Alkhalikoi:
Check your buttons to see if they're stuck.
[Galaxy S 4 Q&A, Help & Troubleshooting] johnnt:
Security Posture

Hi,

I have recently used the great information here to simunlock my i9505. During the process i rooted the device using cf-autoroot and 123unlock SRS and various other bits and bobs of apps. I know that i have tripped Knox, which is fine - but can anyone help me understand the security posture of the device given that i have wiped the device in recovery and flashed a stock BTU rom from Sammobile. I flashed using the PDA option in Odin.

Would the rom flash wipe out any changes to recovery and boot partitions meaning that as long as the device has a locked bootloader then this can be considered a trusted boot process?

Thanks

John
[Galaxy S 4 Q&A, Help & Troubleshooting] Strephon Alkhalikoi:
The bootloader by default came from the factory unlocked. A ROM flash wouldn't change the lock status of the bootloader. It would restore the stock bootloader and recovery, and depending on the tool used to SIM unlock, could revert the SIM unlock. I'm not quite sure what you mean by a trusted boot process given I'm not totally awake yet, but given the unlock status of the bootloader you're no worse off now than before.
[Galaxy S 4 Q&A, Help & Troubleshooting] johnnt:
Ok thanks. Maybe i am misunderstanding the Bootloader as i thought it was something that couldn't be modified and controlled things like the knox flag etc and preventing downgrading to previous firmware.

When i say trusted boot, i am mean similar to a PC trusted boot where each component of the boot processes is digitally signed and therefore any changes such as malware left over from the rooting process would not be possible as it would break the signatures and fail to boot etc etc. If the bootloader cannot be modified (this is what i meant by locked) and if it verified the signatures/contents of the stock rom then this would be a trusted boot process.

Essentially what i am trying to determine is if i have reflashed to stock rom which is digitally signed by samsung then is there a possibility of malware being left in on the phone.

Thanks

J
[Galaxy S 4 Q&A, Help & Troubleshooting] Strephon Alkhalikoi:
The bootloader can't be modified by us as we don't have the tools for it. Unlocking the bootloader isn't modifying it. All unlocking the bootloader does is open a path to enable write access to the various partitions on the device. The bootloader lock is how AT&T and Verizon prevent people from achieving root.

Since Samsung devices don't support fastboot, Samsung didn't feel the need to lock the bootloader. I believe that has changed on their current devices, but AT&T and Verizon still routinely lock bootloaders regardless. The bootloader itself, if locked, would prevent changes to the recovery and all other partitions.

The stock recovery does check for Samsung's digital signature before flashing anything. This is why you have to replace the stock recovery with a custom one to root or flash other packages. Custom recoveries don't perform signature checks.

This device does not have a trusted boot scheme that I am aware of, though other devices may. In any case, flashing a stock ROM, while drastic, would remove any malware on the device.
[Galaxy S 4 Q&A, Help & Troubleshooting] krzysk1:
Battery short life & sudden death

Hello~

Uh... I've got a weird one...

First of all: my phone seems to have a really, really terrible battery life. GSAM shows me just up to 6 hours on standby and 2 hours of screen-on time. That's pretty much my actual battery life.

Second of all: it dies when it's around 15-30%, rarely even 40%! After plugging it in and booting it up it's basically at 0%. It doesn't even shut down properly, the screen just turns off. The only warning is losing mobile carrier connection like half a minute or less before it turns off.

It definitely isn't the cause of any app: power usage shows my screen as the thing that uses up the most battery. I even bought a new, Samsung brand battery - it didn't really help much, if anything at all.

My current OS is the Optimized Lineage OS 14.1 (Nougat) - I've heard somewhere Nougat has the best battery life (Though I've also tried RR Oreo and OptLOS Pie). Here are my ROM details:

[IMG="ROM details"]https://i.imgur.com/HUCGNQa.png[/IMG].

I'd really appreciate help. If not with the battery life, then at least with the sudden death.

Thanks~
[Galaxy S 4 Q&A, Help & Troubleshooting] DiamondJohn:
have a look at the following thread, which is aimed specifically at improving standby time. And the people there are very helpful.

https://xdaforums.com/showthread.php?t=1179809

I also made a huge difference to my standby time by adjusting my Doze settings. It is built into my ROM, which is HavocOS-Oreo on an i9506.

As for the battery / phone turning off at 40%, historically this has occurred to me as my battery dies, which ironically could be caused by needing lots of charge cycles due to battery drain issues. A viscous circle. I also think (ie my theory) if the battery is draining faster than it can level out the internal charge, the phone will shut down.
[Galaxy S 4 Q&A, Help & Troubleshooting] haydent:
I9505 No Service

tldr: New phone, no carriers detected, have tried flashing lineage and stock AU XSA rom, no luck.

Hi, I recently bought a new S4 off ebay that said it was Australian stock, but i could tell by the tracking and delays that it came from overseas, when i got it it could not detected any carriers and just says no signal yet the sim works fine in other sammy phones in same location, so i got a refund without even having to send the phone back. I have it now and after some time i thought maybe ill try to fix it. So i tried rooting/twrp & flashing lineage 14, no change, so i tried the latest XSA Australian rom i could find I9505XXSHPL1 to try and get a newer modem, but no luck.

I suspect it might have been an OS model that was flashed to an australian/international rom for resale into australia, though it seamed factory sealed this can be faked, though It could just be faulty.

The original baseband version was I9505XXUFNAD - thats all i wrote down.

What could be suggested in terms of modems etc to try before selling it for parts ?
[Galaxy S 4 Q&A, Help & Troubleshooting] Strephon Alkhalikoi:
Confirm that it actually is an I9505 first. Enter download mode and read off the model number at the upper left.
[Galaxy S 4 Q&A, Help & Troubleshooting] haydent:
just checked and it says GT-I9505
[Galaxy S 4 Q&A, Help & Troubleshooting] Strephon Alkhalikoi:
Just wanted to be sure, as a lot of what you described occurs with frankenphones, where the seller takes an American model and modifies it by forcing onto it firmware for a different model.
[Galaxy S 4 Q&A, Help & Troubleshooting] haydent:
thanks, any other suggestions ?
[Galaxy S 4 Q&A, Help & Troubleshooting] Strephon Alkhalikoi:
I'm thinking the SIM card tray may be bad. Have you opened up the phone to see if the tray is actually plugged in?
[Galaxy S 4 Q&A, Help & Troubleshooting] haydent:
normally a phone will detect carrier signal and allow emergency calls without sim, but it does it detects sim
[Galaxy S 4 Q&A, Help & Troubleshooting] lordarriet:
Good evening, could you unlock the GT-I9507V to use Google apps?
[Galaxy S 4 Q&A, Help & Troubleshooting] krzysk1:
I tried fighting with dose, to no success. I gave up for some time. Lately I decided to change my ROM once more (Opt LOS Pie) to see what happens. And it seems that's the problem of battery dying early! Every time I flash a new ROM the battery state gets worse. Now it's dying above 50% of charge, while before it was like above 40%!

Am I doing something wrong while installing ROMs?

Wipe whole phone through TWRP including cache, Dalvik, etc. -> install ROM -> install GApps/Magisk.

I think it's worth noting that all ROMs I've flashed so far are JDCTeam's ROMs. I might head towards them asking for help as well.
[Galaxy S 4 Q&A, Help & Troubleshooting] asbj:
Could someone advice me which ROM to install?

Hi, I am new here in the forum.

I am still using a second-hand i9500 that my best friend gave to me some years ago. It used to have an old custom KitKat ROM but I installed the official Lollipop ROM from Samsung more than a year ago.

I want to try nougat so I would like someone to please recommend me the most stable ROM avalaible.

I am trying to decide between the Lineage OS 14.1 port from alberto96 (https://xdaforums.com/galaxy-s4/i9500-develop/lineage-os-14-1-modded-i9500-t3637504) and Resurrection Remix N 5.8.5 (https://xdaforums.com/galaxy-s4/i9500-develop/resurrection-remix-n-t3650856).

Thanks in advance.
[Galaxy S 4 Q&A, Help & Troubleshooting] henryakeley:
Hello. IMEI.info says that my phone is I9506 Galaxy S4 LTE (GT-I9506). Does it mean I can use roms for ks01ltexx on it or is it a completely different model?
[Galaxy S 4 Q&A, Help & Troubleshooting] DiamondJohn:
OK, so this almost sounds like a trick question, which is probably why no-one responded.:rolleyes:

I will go with yes.
[Galaxy S 4 Q&A, Help & Troubleshooting] henryakeley:
Thank you. It's not a trick question, just a noob one - I don't have that much experience with roms and am walking on eggshells. Asking because I read this and though maybe I'm installing on wrong model:

I suppose "xx" stands for "other models" in this case but it wasn't instantly obvious :)

And I'm trying to fix my non-working-Phone problem described in this thread: https://xdaforums.com/galaxy-s4/help/weird-phone-app-behaviour-trying-to-t3905141

Any ideas? This thing is driving me up the wall, I can't use my new phone because of this.
[Galaxy S 4 Q&A, Help & Troubleshooting] DiamondJohn:
I have not seen explicitly stated what XX stands for and can only guess it stands for numerous sub-models that start with ks01lte and end with a possible various combinations of 2 digit codes. I build ROMs using the ks01ltexx device tree, and flash it to my ks01lte - GT-i9506,

Not that you should rely on it, but most ROM installation ZIPs have a line that checks the model to ensure the ROM you are trying to flash is appropriate for that device.

See your thread.
[Galaxy S 4 Q&A, Help & Troubleshooting] fmsabee:
HELP!!

hello guys. I'm totally new to this website and to rooting in general so bear with me if you may.

I rooted my old S4 i9505 so i can spoof in pokemon go because i can't spoof anymore in my new phone S9. but after rooting it with magisk along with TWRP and magiskHide confg prop I still couldn't pass the safteyNet check so i gave up. then i found out there is a way to spoof in S4 without rooting so i tried to unroot my S4 and remove TWRP by downloading S4 original recovery but after this process a new problem occurred. every 2 seconds i got a notification error saying ''unfortunately the process android.process.acore has stopped'' after googling it i found a solution by deleting the contacts cache and data from the settings but now i have a new problem with is the wifi won't start no matter how many times i press on it it won't even search for networks. even when i go the wifi from the settings trying to turn it on by sliding the button to the right it doesn't let me sliding it!! what should i do? was the recovery i downloaded it wrong?
[Galaxy S 4 Q&A, Help & Troubleshooting] DiamondJohn:
The first quick thing i commonly do when I get unexplained errors is do a wipe of cache and dalvik. Easy in TWRP, not so sure about stock. Its surprising how often that can clear crashes.
[Galaxy S 4 Q&A, Help & Troubleshooting] fmsabee:
It didn't work :( any other ideas?
[Galaxy S 4 Q&A, Help & Troubleshooting] DiamondJohn:
Does the rear battery cover of an i9505 fit an i9506?

---------- Post added at 18:50 ---------- Previous post was at 18:42 ----------

1. Logcat. And read the logcat for clues.

2. Backup phone, and re-flash stock, then restore data.
[Galaxy S 4 Q&A, Help & Troubleshooting] fmsabee:
Fixed

Thanks for the reply. I fixed it by unrooting my phone and installing the original stock recovery of my phone (Bl,AP,CP,CSC) with Odin3.
[Galaxy S 4 Q&A, Help & Troubleshooting] Stephaniexo:
Samsung s4 Odin fail

Hi. I’m not sure if I’m posting in the right place and I apologise in advance if I am not.

Basically I am trying to fix a Samsung s4 that had a few issues and ended up getting stuck in a boot loop. I’ve downloaded Odin (tried 2 seperate versions) and have also downloaded everything else needed. I have looked at almost every how to guide available and it keeps saying it has failed at getting stuck at system.img for a while.

The model is i9500. I’m from Australia and there is currently no firmware for this region so I have downloaded one from Singapore. Could this be the reason it is failing? Any help would be greatly appreciated.
[Galaxy S 4 Q&A, Help & Troubleshooting] Strephon Alkhalikoi:
Verify you have the correct model by entering download mode and reading off the model. The region picked should not be a source of trouble here unless the device is a rebadged American unit, something surprisingly common with this model.
[Galaxy S 4 Q&A, Help & Troubleshooting] Stephaniexo:
Thank you for replying.

The only mode I can put in is the one that says Odin.

It says -

PRODUCT NAME: GT-I9500

CURRENT BINARY: Samsung Official

SYSTEM STATUS: Custom

Secure Download: enabled

KNOX WARRANTY VOID: 0

RP SWAEV: A3

Does this help?
[Galaxy S 4 Q&A, Help & Troubleshooting] Phil Muir:
Yes that could be the issue. Hard to say really. Do you know if anyone else has used that firmware on that particular phone? When you did this, did you wipe cache and perform a factory reset and install TWRP? Am assuming that you would have to do all of the above in order for this to work.
[Galaxy S 4 Q&A, Help & Troubleshooting] Stephaniexo:
Thank you for your reply.

Yes I wiped cache and did a factory reset however that then put the phone into a boot loop which is why I looked into fixing it through Odin. The phone was freezing and all apps and processors were crashing originally so I did a factory reset and that seemed to make it worse.

I’m new to all of this and don’t really know much about it. I’m not sure what firmware was originally on it and am unable to check as the phone was in a boot loop and is now soft bricked. I’m getting the message to plug into Kies for recovery when turned on.

I didn’t download TWRP as the how to guide I was following did not mention that.. should I download that and try again?

Also I noticed the firmware I downloaded is 5.0.1 however, I’m thinking maybe I should have downloaded 4.4.2 or lower? I’m just not sure where to go from here and any advice would be great appreciated.

Thank you
[Galaxy S 4 Q&A, Help & Troubleshooting] Phil Muir:
I meant to ask, what exactly do you want to do? If you want to install Samsung firmware then TWRP is not required although you will need the correct firmware for that phone. You will find that on Sam Mobile by putting in the model number of the phone. You will then be presented with a list of firmware for that phone. I don’t know if your phone is locked to a particular carrier. If it is then you would need to get the exact firmware for that phone. If not then you can install firmware from other regions providing it is compatible.

If you want to install a ROM such as Lineage then TWRP is required and the phone won’t boot until TWRP is installed.
[Galaxy S 4 Q&A, Help & Troubleshooting] Stephaniexo:
Thanks for your reply.

I am only doing this in hopes on fixing the phone. As the phone is not locked and there is no Australian firmware I have downloaded 2 different firmwares. (The second I downloaded as I thought maybe something was wrong with the first download) but I still get the same error message in Odin saying fail.

Not sure what else to do. The firmware I downloaded is all combined into one file that I put in the PA slot. Some of the tutorials I have seen have 4 different files that they put in each slot. I’m assuming it’s not but could this be a problem.

Just not sure where to go from here lol.

Thank you again
[Galaxy S 4 Q&A, Help & Troubleshooting] Strephon Alkhalikoi:
The multiple files you mention are from the single zip download, if I recall correctly. So what was the extension?
[Galaxy S 4 Q&A, Help & Troubleshooting] Stephaniexo:
Hi :) thanks for replying.

The extension is tar.md5

I downloaded several different firmwares now so I don’t think the firmware is the problem. Do you know of anything else that could be causing the fail through Odin?
[Galaxy S 4 Q&A, Help & Troubleshooting] Strephon Alkhalikoi:
Since flashing firmware with a different CSC is possible - having done so myself - without any ill effects, the firmware here isn't the issue. Have you checked the relatively obvious things such as using the cable that came with the device and using a different USB port? Have you tried installing with the ROM loaded into one of the other slots such as the BL slot?

P.S. Copy and paste here the entire install log just to be sure nothing is missed here.
[Galaxy S 4 Q&A, Help & Troubleshooting] Stephaniexo:
Hi. Thank you so much for the reply. Yep, I’m pretty sure the firmware is not the issue. I have tried different cables and different USB ports and have also tried to put the file in the bl slot. Still nothing. And even when I’m using different firmware files is stall on the same spot at system.img and then fails.

Here is a pic of the fail. It fails at the same point every time.

https://ibb.co/3WBbgCJ

Thank you again
[Galaxy S 4 Q&A, Help & Troubleshooting] Strephon Alkhalikoi:
If the ROM in the other slots doesn't work there is a very good chance the onboard flash memory is damaged and thus unusable.
[Galaxy S 4 Q&A, Help & Troubleshooting] Stephaniexo:
Yes I’m starting to think the same. Thank you for your help
[Galaxy S 4 Q&A, Help & Troubleshooting] futiless:
Anyone know why my s4 needs to have it's wireless radio and bluetooth settings wiped every boot in order to get my h+ datalock to come back. It's a real pain and I can't afford another phone atm. I think the i337m modem could be the problem ? Anyone .... PLLEASSE :)
[Galaxy S 4 Q&A, Help & Troubleshooting] AzE0loX0:
Doze settings reset to it's default randomly / after reboot

Hi there,

i use a doze settings editor like "naptime by francisco" or "doze setting editor".

OS is Lineage 14 15 or 16 I've tried all and it's all the same problem.

It's a Galaxy S4 9505.

The settings resets ramdomly or after reboot.

What can i do with this issue?

--help please--
[Galaxy S 4 Q&A, Help & Troubleshooting] DiamondJohn:
For reboot, a boot script should help. The thing to watch out for is that the ROM may set the doze settings a few seconds or minutes after the script completes. ie a delay or multiple attempts are required.

The more certain way is to switch to a ROM that has doze settings as part of its features. Havoc-OS is the only one I can think of right now. With that you have the choice of Pie (https://xdaforums.com/galaxy-s4/i9506-develop/havoc-osv2-unofficial-android-9-0-t3887352) or Oreo (https://xdaforums.com/galaxy-s4/i9506-develop/rom-havoc-os-diamondjohndroid-t3884067)

I use my own build of Oreo Havoc-OS (the link above), and it REALLY sits in deep idle, and normally goes to deep idle after about 30sec of the screen going off. You can see this behavior in the image of this post https://xdaforums.com/showpost.php?p=79150051&postcount=75 The Red spikes are basically where I turned my screen on to read an SMS/receive a short call or checked the time. I also use my own doze profile; available as a zip and then selecting/setting it in the ROM. You can see in the post above where another phone would sit on light-idle long after the screen is off, before finally going into a deep-idle.
[Galaxy S 4 Q&A, Help & Troubleshooting] AzE0loX0:
Thanks for your reply :),

I have a Galaxy 9505 this rom ist for 9506. Do you have anny other suggestions?

best regards
[Galaxy S 4 Q&A, Help & Troubleshooting] DiamondJohn:
Sorry, my bad:o, i saw the S4-i950? and forgot about the last digit.:o I am assuming you have tried seaching if anyone has built Havoc-OS (or LiquidRemix and maybe DIrtyUnicorns, AOSiP) for your device.

Your other path I would investigate then is possibly the following.

You can set your doze profile using a script similar to that generated by - https://xdaforums.com/android/apps-games/app-temefi-comprehensive-documentation-t3806260 under the menu item "Currently Running>Doze>Pre-View Compare Doze>*CURRENT*"

I haven't ever used Tasker, but from the descriptions I have read of what it does, you should be able to trigger such a script every time the screen is turned off. Thus fixing your issue with your selected doze profile being randomly lost while running.
[Galaxy S 4 Q&A, Help & Troubleshooting] AzE0loX0:
Hi ! Thank you for these idea. I have tasker running anyway, so i'll check this idea. :)

Unfortunatly havoc is not available for s4 9505 ...
[Galaxy S 4 Q&A, Help & Troubleshooting] AzE0loX0:
Hmmm i think i need some help with TemeFi…

How can i generate a script with parameters such as "min time to alarm" and "app whitelist duration"?

:confused:
[Galaxy S 4 Q&A, Help & Troubleshooting] DiamondJohn:
The scripts generated by TeMeFI would modify those params. What you need to do is search the web, read and then search read and then read some more regarding doze. Explaining it all is waaaaaay beyond the scope of TeMeFI or this thread. Its a thread in itself.
[Galaxy S 4 Q&A, Help & Troubleshooting] S4von:
What could cause this? Can't boot up the phone :/

https: // imgur. com/a/VhSBMvr
[Galaxy S 4 Q&A, Help & Troubleshooting] Strephon Alkhalikoi:
Hardware failure. The GPU and CPU have failed. You'll either need a tech who can replace them, or you need a new phone.
[Galaxy S 4 Q&A, Help & Troubleshooting] S4von:
But are you sure? This green screen thing doesn't appear every restart, actually its quite rare but yeah, can enter only recovery/download mode.

My thread: https://xdaforums.com/galaxy-s4/help/phone-bricked-infected-weird-artifacts-t3946787
[Galaxy S 4 Q&A, Help & Troubleshooting] Strephon Alkhalikoi:
The fact it doesn't do it all the time means the screen cannot be the cause. Keep in mind this doesn't happen in recovery or download mode because neither of those use the GPU for tasks. The fact you cannot boot into Android plus this happening on the Samsung splash screen rules out Android as a cause. A corrupt bootloader would cause a hard brick with no download mode or recovery available so that cannot be the cause.

Since software can be completely ruled out as a cause the only thing left is hardware. I am 100% sure you have a hardware failure, and I believe the GPU is the cause. Whether it is the GPU or another component cannot however be determined except at a place which does repairs.
[Galaxy S 4 Q&A, Help & Troubleshooting] :
Deleted