yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 i9506 Android Development] DualJoe:
You have to factory reset and format /system for clean install. Then it should work.

Edit: And use a compatible recovery/twrp from 1st post of course.

[MENTION=4861355]kyasu[/MENTION]: zram is causing the systemui lags. It should be turned off.

Edit: On the other hand... i've noticed some hangs again. Not sure if it got better or if it will get worse later. It always needs several days until it comes into full effect. Maybe i will post a patch later so more people can test it.
[Galaxy S 4 i9506 Android Development] DualJoe:
Here is the patch to disable zram. If you notice lag on SystemUI (pulling down taskbar) or when changing volume try this and report back. It removes zram entries from cmdline and 'fstab.qcom'. The kernel is permissive and has CIFS support. Install in TWRP. If you're using Magisk don't forget to re-flash Magisk after this patch.

If you want to verify the patch you can check with 'adb shell free -h' if swap/zram is disabled. It should be zero.

$ adb shell free -h
total used free shared buffers
Mem: 1.8G 1.7G 53M 0 55M
-/+ buffers/cache: 1.6G 108M
Swap: 0 0 0
[Galaxy S 4 i9506 Android Development] DiamondJohn:
Possibly a simpler solution is with a boot script, which would survive upgrades of the ROM, not require a re-flash of Magisk and is system-less. Creating a script with the following in your Magisk service.d should get it done (and of course set the permissions for execute).

#!/system/bin/sh
swapoff /dev/block/zram0;

Simply create a file such as /data/adb/service.d/zramoff with the contents from above
[Galaxy S 4 i9506 Android Development] DualJoe:
If i reckon correctly it can't be turned off dynamically.
[Galaxy S 4 i9506 Android Development] DiamondJohn:
Nope, you can turn it off, Reconfigure it, and then turn it on.

If you wish to have a play and confirm this, you can use the app that I built: TeMeFI

You can find the ZRam (as well as file and partition) virtual memory stuff under:

Currently Running>Memory>Virtual

At which you can turn ZRam Off, run the check to see if its zero (or watch it slowly reduce to zero) turn it back on at a different size etc. All this occurs live (ie dynamically), as well as allowing you to get to the shell scripts that did the action.

You could even use the live menu's in TeMeFI to have a play to see if no ZRam changes the behavior of what you are specifically trying to fix, or if increasing it has any other benefits. Or even try a Swap file.
[Galaxy S 4 i9506 Android Development] DualJoe:
The implementation itself could be buggy. No one knows which side effects are involved. The safest way is to not enable it at all in the first place. It already starts with the kernel cmdline.

I hope this issue is done in 1-2 weeks (or next release) anyway. I have no plans to keep this patch alive. It will be merged or not.

Is your app able to verify oom's? Maybe SystemUI (and other system apps) are not in the right class.
[Galaxy S 4 i9506 Android Development] DiamondJohn:
Using boot scripts enable the whole systemless thing and also can survive a dirty flash or Magisk update. I have been using a script similar to the above for over 5 years across multiple devices and android versions / ROMs.

I wouldn't hold your breath, once ZRam gets into a device, it usually stays. And hence I have been using boot scripts for so long.The device I used when ZRam was first introduced into Android would be completely unusable due to extreme lag in absolutely EVERYTHING. Note, with swap, you have many settings to adjust how it is used by the OS. On / Off is not your only choice.

OOM has to do with processes being killed due to Out Of Memory. I think you would be best to consider Nice, which is thread priority. And possibly also look at the IO nice. And yes, my app handles all three.:good:
[Galaxy S 4 i9506 Android Development] DualJoe:
Thanks for your explanations. I'm sure the problem will be solved soon.
[Galaxy S 4 i9506 Android Development] HasankaSanjana98:
Works fine with The Korean Galaxy S4 LTE-A (SHV-E330S/K/L)Korean

Thank you so much.
[Galaxy S 4 i9506 Android Development] DualJoe:
I'm not all too convinced this is the final solution. It got better at best but it's still there. I played with minfree settings as well. Lower values get worse, higher values don't change anything. I will create some systraces next.
[Galaxy S 4 i9506 Android Development] DiamondJohn:
I saw/see the lag on my Oeo ROM qwhen pulliung down the quick settings. I *think* I tried messing with ZRam and that didn't stop it. The difficult point was that the lag was not always happening, so any change would require giving it a few days before I could say it was definitely gone. And from memory, ZRam did not do it. I *think* I also tried messing with Nice values (ie thread priority) of the System UI thread, and that didn't fix it either. The convuluting factor is that because it does not happen every time, a change does not necessarily mean you actually fixed it.
[Galaxy S 4 i9506 Android Development] Mikhail Korolev:
Could someone please check if it is possible to get a lock on glonass satellites with this ROM?
[Galaxy S 4 i9506 Android Development] kyasu:
lineage-17.1-20200607-UNOFFICIAL-ks01ltexx.zip

New build is available (See the first post).

Sync with the latest LineageOS source (June 2020 Security Patch).

Disable ZRAM and ZCACHE.

Changes:

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

https://github.com/kyasu/android_kernel_samsung_msm8974/commits/lineage-17.1
[Galaxy S 4 i9506 Android Development] DiamondJohn:
I have tried many ROMs for the S4, and I only once got a connection to a GLONASS satellite using some stock samsung firmware (cant remember which one). All the ROMs I have tried including LOS, can see the GLONASS sats, but do not use them for a fix.

I had a similar issue with my previous phone (basically a moto XT907). It could see the GLONASS satellites, but did not use them for a fix. I thought it may of been a USA-Russia thing, but my mother has a new phone and it connects to GLONASS as well as a few more.
[Galaxy S 4 i9506 Android Development] Kryga-i9506:
Need your help (Solved)

Hello, i got a second GT-I9506 and installed this build following the instructions.

- twrp-3.3.1-1-ks01ltexx.tar did not boot to recovery

- used twrp-3.3.1-0-ks01lte.img.tar instead of

My GT-I9506 does not boot system. On startup only the logo appears and one yellow line at top of the screen. This line reads "Set Warranty Bit : kernel". That status does not change; waited more than 30 minutes.

I tryed flashing again, but the error remains.

Found that format data gives error

E:Unable to wipe '/data' -- unknown file system 'auto

Unable to format to remove encyption.

Update1 2020-06-13 16:00:

Managed to install stockrom I9506XXUDOK2_I9506TNZDOK1_I9506XXUDOJ3_HOME.tar.

My GT-I9506 ist now booting to stockrom.

Update2 2020-06-13 14:20:

Solved

With stockrom from Update1 i could install twrp-3.3.1-1-ks01ltexx.tar and boot to it.

From there i could install lineage-17.1-20200607-UNOFFICIAL-ks01ltexx.zip and open_gapps-arm-10.0-pico-20200612.zip.

My GT-I9506 ist now booting this build.
[Galaxy S 4 i9506 Android Development] fichatel:
Hello,

Because of a unresolved problem for sending MMS with an older version, i decide to try a fresh install with this last 17.1 release.

I was previously using a v14.x version, and there where some fine applications permissions configuration features. For example,

I could avoid some apps starting after system start, or prevent some apps running in background. It was great to save battery.

It was available in Confidentiality menu.

Did this disappear in Lineage os 17 ?
[Galaxy S 4 i9506 Android Development] Kryga-i9506:
I am not yet allowed to post links; so try google with "how-do-i-stop-apps-from-auto-starting-on-android"
[Galaxy S 4 i9506 Android Development] NoxCivi:
Thanks kyasu, this Build runs pretty stable. I had random Wifi/BT errors with the previous one.
[Galaxy S 4 i9506 Android Development] M@yeulC:
So, after using this rom for a while as my daily driver, here is my takeaway:

Most stuff works fine

Issues with the SD Card:

Can't use it for adopted storage:

Attempt to invoke virtual 'method java.lang.String android.os.storage.VolumeInfo.getId()' on a null object reference

When using it as an external storage, any app that uses the storage access framework fails to write files on the SD card (they can create folders, create files, but these will be 0B). Apps not using the SAF (writing to data/) are fine. Example: try copy/pasting with Material files or the LineageOS file manager, taking a picture with Open Camera.

Same issue with the LOS "snap" camera as everyone else: it saves files under data/ thus they do not appear in the gallery. The app can't open them either. But at list it saves them :) I use Simple gallery pro to view the files.

Deterministically crashes in specific applications (I confirm that disabling SELinux with setenforce 0 doesn't fix it), logcats at cloud.mayeul.net/s/7YPoRH9JiiY7r5C (sorry for my upload speed, it'll get better in ~december):

Mozilla stumbler, when uploading results

Open Camera, when taking a HDR picture, or saving a panorama

Possibly others, that I don't recall now.

I couldn't unlock carrirs using this ROM

GPS fix is quite slow to obtain (not using NLP)

Compass is quite unreliable

The above issues are with version 200501. Not sure if fixed with a later version, I will upgrade and edit. Zram was working fine for me, I'm sad to see it leaving :(

I will see if I cannot mainline the kernel, if I have time to do so.

Well, formatting the SD card to f2fs on my computer and inserting it works, I can read/write it, with the caveats listed above.
[Galaxy S 4 i9506 Android Development] f.a.tonmoy:
Magisk, Xposed, and Substratum.

Do these things work properly?
[Galaxy S 4 i9506 Android Development] M@yeulC:
Magisk works fine (I mostly use it for the F-droid privileged extension that doesn't work as-is on Lineage 17.1), I haven't tested the others.
[Galaxy S 4 i9506 Android Development] f.a.tonmoy:
I'm getting This "set warranty bit: kernel" error.

how to fix this without going back to stock?
[Galaxy S 4 i9506 Android Development] DiamondJohn:
Is this the flag displayed on the bootloader screen, notifying you that you have unlockled your bootloader? if so, then it is not an error.
[Galaxy S 4 i9506 Android Development] f.a.tonmoy:
Yea I got that.

While I was on Nougat, I used amplify, powernap ta boost battery life.

What should I do on Android 10?

battery drains quite a lot on standby.

Currently just underclocked the CPU and installed naptime.
[Galaxy S 4 i9506 Android Development] DiamondJohn:
Look into:

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

And also at your doze

https://xdaforums.com/showpost.php?p=82064461&postcount=264
[Galaxy S 4 i9506 Android Development] kyasu:
lineage-17.1-20200710-UNOFFICIAL-ks01ltexx.zip

New build is available (See the first post).

Sync with the latest LineageOS source (July 2020 Security Patch).

twrp-3.4.0-0-ks01ltexx is available (See the first post).

Changes:

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

https://github.com/kyasu/android_kernel_samsung_msm8974/commits/lineage-17.1
[Galaxy S 4 i9506 Android Development] porst17:
First of all, thanks a lot for keeping this device alive! I really appreciate it!

I installed twrp-3.4.0-0-ks01ltexx and it keeps boot-looping forever. It shows the TWRP logo and reboots after a couple of seconds, again trying to start in recovery mode. I can only go back to Android by taking out the battery, then going into download mode and then rebooting. Otherwise, it would keep looping in recovering mode.

Anyone else having the same issues? Unfortunately, I don't know how to submit logs for a boot-looping recovery. Never had that issue before.

EDIT: I re-installed TWRP 3.3.1-1 which works without problems. I also verified the twrp-3.4.0-0-ks01ltexx MD5 checksum to make sure there's no download error.
[Galaxy S 4 i9506 Android Development] GT-I8160P:
For me it was the easiest way to download twrp-3.4.0-0-ks01lte.img from twrp.me and install the image from within twrp.

No bootloop. Works fine.
[Galaxy S 4 i9506 Android Development] bizzzang:
me too good
[Galaxy S 4 i9506 Android Development] mong32:
data not work on e330s

Phone call work well but data connection(LTE&3G) not work on SHV-E330S.

Should I install modem??
[Galaxy S 4 i9506 Android Development] f.a.tonmoy:
I'm also having this issue.

Let me know if you've found any solution.
[Galaxy S 4 i9506 Android Development] bizzzang:
In Settings-Network and Internet-Mobile Network -(1) Basic network type, 3g=wcdma only lte=lte. (2) Advanced-APN to lte

설정-네트워크및인터넷-모바일네트워크 -(1)기본네트워크유형 에서 3g=wcdma전용 lte=lte. (2)고급-APN에서 lte로
[Galaxy S 4 i9506 Android Development] DualJoe:
twrp-3.4.0-0-ks01ltexx and lineage-17.1-20200710-UNOFFICIAL-ks01ltexx.zip working properly here.
[Galaxy S 4 i9506 Android Development] porst17:
I just tried flashing the official TWRP 3.4.0 from twrp.me and it works indeed. Thanks.
[Galaxy S 4 i9506 Android Development] DualJoe:
The last time i checked these builds it had Solk2's kernel. Unless it's his last/fixed one it is unstable. But it would need some time to crash anyway (hours/days) so probably irrelevant for twrp. But it might be unmaintained for a long time already. No one knows, no thread on xda.
[Galaxy S 4 i9506 Android Development] xdarobb:
Encryption not working..

Hello everybody,

I'm pretty new to all this. I just flashed this ROM and it works perfectly, fast n snappy, no bugs I've noticed, since yesterday the time i installed it. Only slight problem is encryption doesn't seem to work. The button "Encrypt" is greyed out even when phone is at 100% charge.

Is it a hardware limitation thing given the phone's old SD 800, or the ROM just lacks that feature for other reasons? if the latter is true, can anyone refer me to some other ROM that has full-disk encryption implemented?

Thanks in advance
[Galaxy S 4 i9506 Android Development] szlori:
Hello

What do you use instead of youtube to make playback go in the background and there are no commercials?

For me, vanced doesn't work either :(

thanks for the help!

sorry for the bad english
[Galaxy S 4 i9506 Android Development] DualJoe:
What's wrong with background playback?
[Galaxy S 4 i9506 Android Development] DiamondJohn:
I have Vanced v14 installed and working.
[Galaxy S 4 i9506 Android Development] DualJoe:
Regarding the SystemUI lag this might be related:

https://www.xda-developers.com/android-10-usersare-facing-random-freezing-unresponsive-ui-issues

To my experience It affects the active app harder if the app has an entry/icon in the systemui area. The bug is still present in current Android 11.
[Galaxy S 4 i9506 Android Development] kyasu:
lineage-17.1-20200805-UNOFFICIAL-ks01ltexx.zip

New build is available (See the first post).

Sync with the latest LineageOS source (August 2020 Security Patch).

Changes:

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

https://github.com/kyasu/android_kernel_samsung_msm8974/commits/lineage-17.1
[Galaxy S 4 i9506 Android Development] hum-man:
Is there a method to auto mount ext4 partition on external SD card that works on lineageOS 17.1 on S4 i9506? Update: seems to be resolved with August update... probably it is now possible to work exclusively with ext4 partitions on external SD?
[Galaxy S 4 i9506 Android Development] DualJoe:
I mount it manually via bash script on startup and initiate all bindmounts. Android throws an error that vold cannot access it afterwards but it's neglectable.
[Galaxy S 4 i9506 Android Development] kyasu:
lineage-17.1-20200912-UNOFFICIAL-ks01ltexx.zip

New build is available (See the first post).

Sync with the latest LineageOS source (September 2020 Security Patch).

Changes:

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

https://github.com/kyasu/android_kernel_samsung_msm8974/commits/lineage-17.1
[Galaxy S 4 i9506 Android Development] Vickeey:
Any telegram group?
[Galaxy S 4 i9506 Android Development] audianer:
https://t.me/joinchat/OJORdhifIinn1kQfHTt5zQ
[Galaxy S 4 i9506 Android Development] Vickeey:
This link is not Active
[Galaxy S 4 i9506 Android Development] torotil:
A few issues

Thanks for providing an inofficial build for this phone!

I’ve installed the latest version on a i9506 and so far it is working except for the following issues:

Notification LED is not working

Random reboots, sometimes when interacting sometimes even just while on stand by.

No mobile data (regardless of whether it’s activated or not)

I have not flashed the recommended modem/bootloader as I didn’t find instructions on how to do this with heimdall. Can this be the cause of the issues? (Did that now, same result.)
[Galaxy S 4 i9506 Android Development] DualJoe:
Try clean rom install (factory settings + format /system partition).
[Galaxy S 4 i9506 Android Development] Vickeey:
Try crdroid ROM.
[Galaxy S 4 i9506 Android Development] torotil:
Did that when setting it up initially.

Mobile internet works! :good: LED not. Haven’t yet tested long enough to test for random reboots. Again flashing the recommended bootloader/modem didn’t make a difference.

Thanks for your suggestions!

At this point I think the LED might be a hardware issue. I’ll try to replace it …

---------- Post added at 12:17 PM ---------- Previous post was at 11:59 AM ----------

Replacement LED works ✓ So I guess this was never a software issue.
[Galaxy S 4 i9506 Android Development] derflasher:
Update to September Security Patch works like a charm!

Thank you very much kyasu!
[Galaxy S 4 i9506 Android Development] DualJoe:
Yes, 'SystemUI lag' has been partially fixed. At least on clean notification area there are no more lags. But once there is a (permanent) entry its coming back. As a workaround i disable notification for such apps and all is fine.
[Galaxy S 4 i9506 Android Development] corvus.corax:
Regarding GApps, is my S4 ARM or ARM64?
[Galaxy S 4 i9506 Android Development] derflasher:
ARM
[Galaxy S 4 i9506 Android Development] fichatel:
Hi all,

I've installed this v17 since june and and everything works well ofr me except one thing. When an alarm is set, if the phone is in stanbye mode (which is obviously the case every morning ! :) ), a notification sound is played, and then the alarm sound is played, which is really annoying.

Am I the only one to have this behaviour ?

Is it a bug ?

I'm using lineage-17.1-20200607 and currently downloading latest release to test.

F.
[Galaxy S 4 i9506 Android Development] strangersth:
Camera(Storage in SD card not saved)

Yeah I am also getting the same problem in E330S/L korean variant

---------- Post added at 05:30 AM ---------- Previous post was at 05:28 AM ----------

Brother I could not flash Gapps says Error 64.

I tried old TWRP version 3.0.2 also but in vain.

Is there any other way I can flash Gapps?
[Galaxy S 4 i9506 Android Development] corvus.corax:
I took the plunge and upgraded from LOS 16 to 17.1. I did a clean install with TWRP 3.3.2 (already on the phone from 16.0) and it went very smoothly.

It is running very nicely. Thanks to all who contributed to making this nice ROM. Looking forward to LOS 18!

However, I still have 2 problems that I had on LOS 16:

1) the bluetooth icon doesn't display in the status bar when turned on - and I did make sure it was ON in the status bar settings.

2) the gps locates satellites fast, but doesn't get a fix on them. When I originally installed 16.0, it also found them fast but only at first did it find satellites, then it stopped doing that.

Does anyone have any ideas how to fix these issues?

Finally, one thing does disappoint me and it probably is an Android 10 issue. It seems I can no longer turn on location in battery saving mode, i.e., using wifi and cellular data without GPS being on.
[Galaxy S 4 i9506 Android Development] kyasu:
lineage-17.1-20201009-UNOFFICIAL-ks01ltexx.zip

New build is available (See the first post).

Sync with the latest LineageOS source (October 2020 Security Patch).

Changes:

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

https://github.com/kyasu/android_kernel_samsung_msm8974/commits/lineage-17.1
[Galaxy S 4 i9506 Android Development] fireplayer:
[MENTION=4861355]kyasu[/MENTION] i was wondering if there is any way to change mtu in rom to 512? Crdroid uses 512 bytes mtu and thus allows amiibo usage. Can this be fixed on this rom?
[Galaxy S 4 i9506 Android Development] strangersth:
Similar issue

Yeah I faced same issue. And any one knows how to update this lineage 17.1 and when will the new update roll out? When releasing new updates can feature request be made possible with votes? Please do that!! Would be great community with enhanced features.

---------- Post added at 04:11 AM ---------- Previous post was at 03:50 AM ----------

So I am little noob here [MENTION=4861355]kyasu[/MENTION], I am using los17.1 10 QQ3A.200805.001 eng.kyasu.20200912.103606 release -keys and I went to updater settings to update over the air, It says no new updates found.

Android 10 is of date september 12.

Last checked is showing current date but can't update. How to update easiest way please without loosing my datas?
[Galaxy S 4 i9506 Android Development] strangersth:
Hey kyasu how can i update from september 12 version to october 9 version without data loss and OTA update. Please refer me any links or any hints would be helpful. [MENTION=4861355]kyasu[/MENTION]
[Galaxy S 4 i9506 Android Development] DiamondJohn:
This is an unofficial build. Generally speaking, the dev wou.ld be more targetted at making the LOS source work on our specific device. Requesting new features of the ROM would most likely be better targeted to the LOS team, not an unofficial device thread.

Most unofficial ROMs do not posses the infrastructure required for OTA's.

To flash an update without loosing your data, in most cases, you can do a "dirty flash". There are hundreds of posts on how to do that. Do a search and you will find them quite easily.
[Galaxy S 4 i9506 Android Development] kyasu:
lineage-17.1-20201108-UNOFFICIAL-ks01ltexx.zip

New build is available (See the first post).

Sync with the latest LineageOS source (November 2020 Security Patch).

Changes:

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

https://github.com/kyasu/android_kernel_samsung_msm8974/commits/lineage-17.1
[Galaxy S 4 i9506 Android Development] darkness:
maybe Disable ZRAM and ZCACHE. in kernel side too and add VNSwap if zram still have problem :confused:
[LeEco Le 2 Questions & Answers] alvinprimo:
Can we install treble rom or GSI on x526?
[LeEco Le 2 Questions & Answers] BMWM5V8:
as of now, yes

https://t.me/le2updates

https://t.me/leeco_le2
[Samsung Galaxy Note 10 Questions & Answers] n10clouded:
I bought my Note 10 on mid october. The battery life on the first few weeks we're good. But until recently the battery has started to drain even though my phone idling. It's been losing 13% battery life every night. ibb.co/g6p1Qg6
[Samsung Galaxy Note 10 Questions & Answers] Herox:
You have something waking it then. Mine trickles off 3-5% while I'm asleep.
[Realme 5 Pro Questions & Answers] ranjeetraj198:
Now security is one of the most concern subject. Is there any way of enabling password when we try to power off our device?
[Realme 5 Pro Questions & Answers] hsm90:
If you have android 8 or less try this app: lockIO
[Redmi K20 Pro / Xiaomi Mi 9T Pro Questions & Answe] niyonsv:
I'm planning to buy a new phone with better custom ROM support, but confused between these two - K20 Pro and OnePlus 7 Pro. The price of both phones are at different extends.

So if the K20 Pro has better or comparable quality in the camera section against OP 7 Pro I would definitely go for K20 Pro and can save money for others. Please share your thoughts on this.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Questions & Answe] ishaqtkr:
OP 7 pro has better camera, but K20 pro camera isn't not bad at all for day to day normal shots taking, if you're a camera guy then it's OP > K20