yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 i9506 Android Development] simenious:
Not booting

I installed the may 12th build as described, but now I can't boot past the initial Samsung Screen displaying

Samsung i9506

at the top it says:

Set warranty bit: kernel.

I noticed on my other device flashed with a custom rom it also says kernel is not seandroid enforcing, but here it is only the yellow text saying "Set warranty bit: kernel"

Any idea what can have gone wrong? It was the first time flashing from official rom. I've restored the official rom a couple of times and tried different roms but this keeps happening.

Flashing the rom and Gapps seemingly went fine.
[Galaxy S 4 i9506 Android Development] 1Johan3Anderson:
Error installing

Hi guys,

When trying to flash on my Galaxy S4 PLus (I9506) I am getting this message in TWRP: This package is not for this device..... this device is ks01lteskt. I currently have flashed the lineageos 13.0.

Do you know why I get this message?
[Galaxy S 4 i9506 Android Development] simenious:
Where did you get the 13 rom from? I'm in the process of compiling it but if I could I would just flash a prebuilt one. LineageOS seem to have had one at some point, but for some reason they removed the download.
[Galaxy S 4 i9506 Android Development] lightningrev:
Screensavers does not working

Live display (automatic day,night) does not working.
[Galaxy S 4 i9506 Android Development] Sub_Zero2:
Trying to access the wifi access points list from tiles after waking up from deep sleep makes systemui unresponsive for about 30-40 seconds when having wifi_sleep_policy set to 1.... Anyone else having this problem?

Also wifi isn't actually waking up immediarely after unlocking phone after deep sleep in this condition

One other thing: there are crackling noises when i do video recording... Anyone else experiencing this?
[Galaxy S 4 i9506 Android Development] 1Johan3Anderson:
It is the original LineageOS 13 rom, the latest update that they had online. I do not know either why I get this error, as it is the first time. The device is rooted and I have also tried deleting the cache but to no avail.
[Galaxy S 4 i9506 Android Development] gebaya:
Here's the old thread: https://xdaforums.com/galaxy-s4/i9506-develop/rom-cyanogenmod-13-0-12-1-unofficial-t3264134 You could also download one of my old builds from here: https://www.mediafire.com/folder/8l264568av165/.
[Galaxy S 4 i9506 Android Development] simenious:
Thanks a lot. I tried that and it gave the same result. The only difference I could see was when I flashed cm 12.1, but the only difference was that it showed the red text with SEANDROID not enforcing, in addition to the yellow text Warranty bit: kernel.

I think my problem is that I didn't update with the official update to 5.0.1 before flashing TWRP, so now my bootloader is too low. Is that possibly the issue? Would it somehow be possible to flash it to upgrade in some other way? My device is on 4.3 stock, which I am able to restore to in TWRP, but when I try to do a stock update it says "Your device has been modified. Software updates are not available."
[Galaxy S 4 i9506 Android Development] supachris:
You can flash the bootloader with Odin. I did not do this on the S4, but on my S4 mini some times. Maybe you also habe to flash twice to take effect. i guess there are some how-to's for this. The bootloader can be found on Kyasus's files, links are in the first post.

The other possibility is to flash the complete 5.0.1 firmware from Samsung, can be downloaded at sammobile.com
[Galaxy S 4 i9506 Android Development] simenious:
Ok. Yeah I've downloaded the 5.0.1 firmware now, but I'm a little unsure which country the phone came from originally. Would that possibly brick the phone if I chose the wrong one?

Also, how would I flash the complete firmware? I'm on Linux so I don't think I can use Odin, but I have Heimdall available.

Update: I flashed the Modem/Boot files successfully, and then flashed the 15.1 rom, but still I couldn't get past the Samsung i9506 with yellow Warranty bit:kernel screen. Successfully restored back up of stock system, boot, and modem which allows booting.

I noticed something in Download mode that it said something about Qualcomm secureboot enabled. Could that be an issue?

The contents of the firmware zip is just a very large (2.3GB) file called I9506XXUDOD3_I9506NEEDOD4_I9506XXUDOD3_HOME.tar.md5, and a file called SS_DL.dll (1.7MB)

Alternatively, could I just flash the Recommended Bootloader/Modem noted by OP kyasu using heimdall-frontend? I'm just a little scared to do that cause I don't know how to backup what's already there in case something fails. I have heimdall-frontend (version 1.4.2, I have successfully gotten a .pit). And then follow that with flashing the the 15.1 rom, would be just dandy I reckon. Is there any way to backup that stuff?

Update:

I flashed boot and modem, but that didn't get me any further. Still stuck at the Samsung i9506 screen with yellow Warranty bit: kernel only. I did a TWRP backup of everything including boot and modem, and restored that which allowed me to boot into the stock 4.3 rom again.

Also, I noticed in Download mode that it said something about Qualcomm secureboot enabled. Is that possibly an issue?

Update 2: Flashing 5.0.1 stock rom

Ok, so removing the .md5 part of the filename of the large file allowed the file to be extracted revealing files like modem.bin, system.img.ext4 etc which I could flash with heimdall-frontend. I flashed everything except RECOVERY to keep TWRP, and it was successful in updating to 5.0.1 stock which boots and everything.

Update 3: Got it working! After booting up 5.0.1 stok I flashed cm13 (although it was probably not necessary(, and then flashed LOS 15.1. So it's critical that you have stock rom 5.0.1 installed before doing any of this!
[Galaxy S 4 i9506 Android Development] Hemuli:
To me this sounds like you should format (or repair) /data and possibly other partitions in TWRP. Also, format in TWRP means just rm. To actually format /data, you need to change its file system. This will also format Internal storage (/data/media).

You can backup any partition with dd.
[Galaxy S 4 i9506 Android Development] wkwk:
When u say its not getting past the samsung splash screen, do you mean its resetting itself instead of booting to the rom?.

This is quite common in some devices including mine. It power cycles upto 4 times with about 18 second pause at the splash screen before booting normally.

This is quite random, at times it will boot straight away with no power cycles, other times it can reset atleast 2 to 4 times.
[Galaxy S 4 i9506 Android Development] simenious:
Ok, anyways I figured it out see my post before this. I just had to update to 5.0.1 stock to get the modem and bootloader (I think) to upgrade. This was a hassle after having installed custom recovery, but once I figured out how to use heimdall properly it was easy.

---------- Post added at 08:25 AM ---------- Previous post was at 08:23 AM ----------

It just stayed stuck at the splash screen. I could boot into recovery and download from there, but it was completely unresponsive other than that. Left it like that for 30 minutes maybe one time.

Anyways I figured it out see my post before this. I just had to update to 5.0.1 stock to get the modem and bootloader (I think) to upgrade. This was a hassle after having installed custom recovery as I couldnt just use OTA upgrade in the phone, but once I figured out how to use heimdall properly it was easy.
[Galaxy S 4 i9506 Android Development] 1Johan3Anderson:
Thank you for the link. I tried with both a 13 version and 15 from your builds, but I am still getting the same message. I have even tried with the build from the other thread you provided. Same result. Could this happen because of the TWRP that I have?
[Galaxy S 4 i9506 Android Development] jegogo99:
Try with another version of twrp

Enviado desde mi GT-I9506 mediante Tapatalk
[Galaxy S 4 i9506 Android Development] 1Johan3Anderson:
I tried and installed the latest TWRP. This recovery did indeed manage to flash the LineageOS 15. However, now the phone won't start. It is stuck on the loading logo for several minutes after which it reboots into the TWRP. Any idea why? Wiping the cache did not help.
[Galaxy S 4 i9506 Android Development] jegogo99:
Try with 3.0.1oficial version of twrp. but I recommend you reinstall last firmware and make clean installation of líneage

Enviado desde mi GT-I9506 mediante Tapatalk
[Galaxy S 4 i9506 Android Development] 1Johan3Anderson:
I have flashed the Philz Touch and I get the same result. I think that somewhere instead of restarting to the program, it goes to recovery.

Can someone provide me with the lastest official firmware for the i9506? I would prefer a fast downloading link.

I suppose there is no way to do this without losing all my installed programs? I did not do a backup before, I know stupid.
[Galaxy S 4 i9506 Android Development] jegogo99:
Here you have all necessary for super clean installation. You will need registrtion to see the download links https://www.htcmania.com/showthread.php?t=1001529

Enviado desde mi GT-I9506 mediante Tapatalk

---------- Post added at 04:45 PM ---------- Previous post was at 04:23 PM ----------

When Odin finishes and the phone shows Sansung logo, you must remove the battery and start in the original recovery. make wipe caché partition and data factory reset. Restart phone and wait for first start

Enviado desde mi GT-I9506 mediante Tapatalk
[Galaxy S 4 i9506 Android Development] DiamondJohn:
https://xdaforums.com/showthread.php?t=2701681
[Galaxy S 4 i9506 Android Development] felixlee0530:
Hello guys,

I have a Korean Galaxy S4 LTE-A (KT model). When I flashed the ROM, the Boot Logo (Logo appearing at the beginning of boot) repeats for 2~3 times (it actually reboots for 2 times) and then normally boots to the Lineage OS lock screen. It says Set Warranty Bit : kernel at the top of the boot logo.

Why is it happening? I flashed the ROM in a quite simple method. I just wiped every partition (system, data, internal storage, cache) in TWRP, installed the ROM itself and then flashed the gapps file. (after that I just reboot the phone) Do I also have to flash the bootloader in the thread? I'm worried that the bootloader is for GT-I9506, which may brick my Korean SHV-E330K permanently..
[Galaxy S 4 i9506 Android Development] :
Some users have reported this behavior already. I don't think you have to worry about it. The yellow writing (set warranty bit: kernel) is always there with a custom rom and nothing unusual.
[Galaxy S 4 i9506 Android Development] 1Johan3Anderson:
Thank you! I have flashed an official ROM, however even with that one it will not boot. It is stuck on the logo screen. Any idea why? Can someone tell me what is the function of the kernel and if I need to flash a newer one? Could it be because of this?
[Galaxy S 4 i9506 Android Development] Chris Miller94:
For Samsung phones always use ODIN installed on your PC.

And keep stored a Stock ROM one of your directories on PC which is specially for your phone's modell type.

It will contain the latest ROM zip, kernel and anything which needed

Set up ODIN with files and permissions correctly - search on your mobile's thread or by Google - and start the flash.

ODIN will give you information from the status of flashing.

After its complete and the files matched with your phone's modell and you thick Auto Reboot in ODIN. The installed OS will start.

First boot can takes long, about 20-30 minutes.

Set Up your stock OS, go Download mode again and flash autoroot package in ODIN and/or latest TWRP /for i9506 TWRP version 3.2.1.-1. from dedicated xda thread/.

If you dont want use stock root use Magisk and flash it from recovery.

/Latest is Magisk v16.0 - use official xda thread to download/.

If you want install custom rom like this go to Recovery and Wipe: Sytem, Data, Internal storage, Cache, Dalvik-cache.

Then go back and install ROM zip and install the GApps package for your ROM.

NEVER USE QUOTE MOD TO INSTALL ROM AND GAPPS FROM TWRP.

FIRST INSTALL ROM PACKAGE AND AFTER GAPPS PACKAGE.

The OS need to boot correctly.
[Galaxy S 4 i9506 Android Development] 1Johan3Anderson:
I have managed to fix everything and now the phone works. I have lost all the installed apps. However, before this TWRP made a backup of my phone. However, this backup includes the error that prevents the phone from starting. Thus, I was wondering what app may I use to restore only the backed up apps? I heard that Titanium Backup can read this Nandroid backups and do what I need. Does anyone have any experience with this?
[Galaxy S 4 i9506 Android Development] 1Johan3Anderson:
I have finally managed to flash your build and get it working. However, Titanium Backup cannot get access to the Sd card, and all google products (including Chrome and G Services) end up in an error when installed.

Do you know why?
[Galaxy S 4 i9506 Android Development] darkness:
You need To install Google Apps via RECOVERY (TWRP)

https://opengapps.org

choose ARM 8.1 PICO or NANO

For Titanium you need To Grant access to SD card i guess :confused:
[Galaxy S 4 i9506 Android Development] wkwk:
Any tips on how to enable 24bit HD DAC output on poweramp?. Tried the alpha releases, it defaults to native 16bit output.
[Galaxy S 4 i9506 Android Development] DiamondJohn:
I have been looking a little further into this GPS issue, and you look like you were possibly right in regards to LOS not connecting to GLONASS:o:mad:

Using the GPS Test app, on the Satellites bar graph showing S/N ratio (ie not the circular one showing satellite possitions), there are numbers under the graph in boxes; empty outline with a white number. When a satellite is used in attaining a fix, the boxes become filled in with black writing; as opposed to empty with white writing. Now, the numbers underneath identify each satellite. Numbers less than than 35 are GPS and ones greater than 35 are GLONASS.

I never get any satellite numbered greater than 35 highlighted:( even when I get a fix using 10+ satellites and the ones > 35 have great S/N ratios. Which implies to me either that

1. the GLONASS satellites are not being used in the actual fix

2. the GLONASS satellites are used to get better info regarding the GPS satellites locations, or my location, and not used for the actual fix

3. the OS/hardware is using the GLONASS satellites to attain & hold a fix, but is NOT reporting it back to applications as being used, and hence GPS Test doesn't know the satellites are being used and reports as such.

4. or something totally different.

The thing that surprised me, is that the exact same thing was happening on a different device; a Nexus 5 running an official Nougat RR
[Galaxy S 4 i9506 Android Development] Mikhail Korolev:
Look like that is politic's game, glonass was blocked due to sanctions against of russia. :) There is only one way to use glonass - have to flash old rom.
[Galaxy S 4 i9506 Android Development] DiamondJohn:
hmmm... you would think that they would keep all the free benefits of the "east" and only "sanction" the things that the "east" benefited from the "west". Do you have any source for this? or is it your theory?

And they still sell GLONASS as a feature of US smartphones:confused:
[Galaxy S 4 i9506 Android Development] supachris:
Caused by the unresolved issue with Bluetooth connection and also GPS instability (often lose fix while driving) I switched back to 14.1, unfortunately. I hope this issues can be fixed in further builds, but for now I have to use 14.1 as my kids want to hear their stuff by BT in the car stereo. With 15.1 the BT connection drops after some minutes and don't come back until reboot. (Bluetooth terminates at all).
[Galaxy S 4 i9506 Android Development] Alsec:
Thank you for this awesome rom.

I love you developers and thank you for your job.

I want change my phone because i hate lollipop stock rom. But i install this rom and my phone is like the nowadays flagships. Perfect and fast rom with many cool features. Camera, wifi, mobile adat, sim card, sd card, bluetooth, gps work well. Battery same as the old, so not drain faster.

Some mini bug:

1, LineOs 15.1's stock music player always crash, but if you block that and install etc. pulsar music player everything will work fine.

2, AudioFX not work, but i dont care because the phone's sound is perfect.( maybe louder than the stock rom)

3, And i miss the wifi options to set wifi always on or off when screen off.
[Galaxy S 4 i9506 Android Development] Vhi A Enh:
Problem with change network on S4 I9506

Hello! Dev,

I have 1 problem, I can't change network mode to 4G Only not work for me, on dial pad. Are you can fix it Dev.Karkass ?

This ROM is very good thank you.
[Galaxy S 4 i9506 Android Development] kyasu:
lineage-15.1-20180527-UNOFFICIAL-ks01ltexx.zip

New build is available (See the first post).

Sync with the latest LineageOS source.

SELinux is enforcing.

Changes:

https://github.com/kyasu/android_device_samsung_ks01ltexx/commits/lineage-15.1

https://github.com/kyasu/android_kernel_samsung_msm8974/commits/lineage-15.1
[Galaxy S 4 i9506 Android Development] Sub_Zero2:
After installing, netflix was updated, and is now searchable in google play store.

Also, one of the banking apps I use, now didn't crash anymore upon starting.

Thanks for SELinux enforcing, [MENTION=4861355]kyasu[/MENTION] !
[Galaxy S 4 i9506 Android Development] j4br1x:
after reboot baseband uknown.how can fix?
[Galaxy S 4 i9506 Android Development] :
Yes because of Netflix I have used a selinux switch since day one with this rom.
[Galaxy S 4 i9506 Android Development] darkness:
thank yo :good:

no more WiFi Dropping :victory:
[Galaxy S 4 i9506 Android Development] foxrft:
I have been waiting for this, time to upgrade to los 15.1 from 14.1
[Galaxy S 4 i9506 Android Development] DonAndress:
So what still needs to be fixed?

Camera? GPS? Battery performance?
[Galaxy S 4 i9506 Android Development] Alsec:
Camera,gps,batterY

Camera is cool, open 2-3x faster than the stock camera. Lineage camera maybe need some new features but i think that is ok.

Gps work. i can use that, no problem.

The battery performance is also better than the stock. The whole system is tip-top and dont drain battery. I think with this update thia rom should be Official :D
[Galaxy S 4 i9506 Android Development] j4br1x:
i have problem sleep of death n i need solution.
[Galaxy S 4 i9506 Android Development] wkwk:
Early days with the latest release, but so far the powercycle issue I had seems fixed. Rebooted a few times and there was no samsung splash screen resets.

Also seems a long time issue I had with audio notifications where the sound would skip and cut off has been fixed.

Google pay still works, but its a mystery how to get it to work after a reboot. I end up doing some random things like nfc resets, Bluetooth reset, default payment method reselection etc to get it working.
[Galaxy S 4 i9506 Android Development] DonAndress:
What are you talking about with the camera opening? Stock camera used to open instantly. Do you mean in comparison to 14.1?

And if you had to compare battery performance of 14.1 and 15.1? Similar?
[Galaxy S 4 i9506 Android Development] Teddy-T:
What is a "Screen curtain"?

“Settings”–“Display”–“Advanced”–“Advanced display”–“Accessibility mode”–“Screen curtain” ?

I selected it (out of curiosity) and screen became completely black!!! (I don't think that it powers on anymore).

How do I revert it?
[Galaxy S 4 i9506 Android Development] :
It powers on but screen is completely black. The lineageos team should really do something about this. The same happened to me and I was lucky and had a backup. But if you don't have one I can't think of another way to fix this. Maybe someone else knows.
[Galaxy S 4 i9506 Android Development] j4br1x:
same problem
[Galaxy S 4 i9506 Android Development] Alsec:
i compare lollipop 5.0 to lineageOs 15.1
[Galaxy S 4 i9506 Android Development] DiamondJohn:
I havent had this problem. But maybe, if its a feature by an APK, and you can find which one, you could delete the APK within TWRP.

Alternatively, and probably better, if you could find the correct setting in the sqlite db, you could change the setting in the db file (ie turn it OFF), within a TWRP shell.
[Galaxy S 4 i9506 Android Development] :
It's a system "feature". There are different modes to choose from and one is screen curtain. But it turns the screen completely black and with a amoled screen this means the screen is actually off. I can imagine this feature is meant for LCD but not for amoled screens.
[Galaxy S 4 i9506 Android Development] DiamondJohn:
ooo... I had another idea. Maybe try safemode, I don't think it will work as its not a 3rd party feature, But I remember when I previously tried it all sorts of features well changed.

I think its at least equally for Amoled Just like ambient display is meant for more for amoled. And turning pixel less bright on amoled would also use less power.
[Galaxy S 4 i9506 Android Development] :
But it turns the screen completely off. I think you don't understand what actually happens when you select the option in settings. The screen goes completely black, even though the phone continues to work normal. The touch input is also still working but the screen is not displaying anything, which makes it impossible to switch back to a different display mode and also to use the phone of course. With LCD this would not be possible because you can't switch pixels completely off. But you can with amoled and that leads to the problem mentioned here. A setting like this which renders the phone impossible to use should just not be there.
[Galaxy S 4 i9506 Android Development] DiamondJohn:
Your right, I do not understand what happens with this setting. What I do know is that an IPS display can go "black", while the LCD lights behind it are on; I just have not seen what this feature actually does on an IPS SCREEN.
[Galaxy S 4 i9506 Android Development] Teddy-T:
I find it very strange to have such a no-go feature enabled. My device was completely rendered unusable because of this.

Luckily I had an backup image of prior to flashing this rom so that I could restore the device.

Will flash this rom again and keep my fingers away from options that I don't know about (You obviously never know whats lurking beneath...).

Update: flashed it, everything worked fine, set the phone up as a new device, made a backup with twrp and currently stuck on in a bootloop with the first Samsung Logo (prior to LineageOS).

Anybody know tha cause of this? Any advice would be appreciated.

Solved. 2-3 bootloops until the rom kicks in. works fine again.
[Galaxy S 4 i9506 Android Development] DiamondJohn:
You are running an unofficial version of a ROM that is still in development. You should expect bugs, and some bugs may be serious for you. Additionally, you have posted your problem in the thread of an unofficial ROM. What makes you think that the developers of the feature even know its causing an issue for some people? I compile ROMs and have seen typo's come in that even break building a ROM, let alone if it created a flashable that rendered the phone unusable, or having a feature that when turned on made the phone unusable. Its whats expected in a custom ROM under development. This is not a final out to market manufacturers firmware. And, always remember, you get what you paid for ;)
[Galaxy S 4 i9506 Android Development] k3mot:
Hi, I have two problems. Sometimes my proximity sensor does not work properly and sometimes works well, the second problem is that sometimes during a call the phone loses the signal and only after restarting the phone everything works normally. Last question can somebody run VoLTE in this rom? Everything else in my opinion work great. Thx for answers and sorry for my bad english ;)
[Galaxy S 4 i9506 Android Development] noob403:
how did you managed that? I have tried everything and still have the same problem. GAPPS Pico+root+ rom or just one at the time install still GAPPS crashes
[Galaxy S 4 i9506 Android Development] Mikhail Korolev:
try to make full wipe(cache,data,internal storage,system etс, choose all items except of sd card, external storage) and install everything again and then reboot.