yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 i9506 Android Development] M@yeulC:
Thanks kyasu!

I had a few issues on 17.1, anyone knows if those are solved with this ROM?

Couldn't use the SD card trough android storage access framework. With adopted storage, I periodically have to re-insert the card.

Some applications would crash deterministically (Mozilla stumbler on upload, and OpenCamera on finishing a panorama, for instance).

Smart cover detection with the hall effect sensor was too sensitive, the screen was getting locked when flapping the cover on the back.

Highly unreliable compass.

The first one is the most annoying to me, other users reported it in the 17.1 thread, so I'm wondering if this got fixed along the way?
[Galaxy S 4 i9506 Android Development] DualJoe:
What filesystem is on your sdcard?

Did you clean install the rom?
[Galaxy S 4 i9506 Android Development] M@yeulC:
You are telling me you can't reproduce? I saw multiple posts mentioning that issue, so I assumed it was widespread :/

It happens on at least two phones for me. I'll have to take some time to dig a bit into this, as this is my daily driver.

IIRC, I tried a variety of filesystems: ext4, FAT (exfat or 32 or vfat, can't remember now), f2fs. SD card access is fine from a terminal emulator, and for apps that store data in a dedicated SD card folder, like OSMAnd. The issue comes from android SAF, and appears quite clearly in the logs.

I think those were clean install, yeah. Pretty sure I reinstalled multiple times trying to fix this.
[Galaxy S 4 i9506 Android Development] SofianeLasri:
Hi, I have a problem with my rom. I can't install big application who need obb installation. I've recorded my attempts to show you the problem.

Problem with big apps install on GT-i9506 & Lineage OS18.1

Can't install big apps with obb dependencies. 😟

videos.sl-projects.com

I've tested with Google Play Store and APKpure.
[Galaxy S 4 i9506 Android Development] fichatel:
Hi,

I installed latest build (lineage-18.1-20210409-UNOFFICIAL-ks01ltexx) from clean install (wiped everything :-) )

I have 2 issues (3 in facts) :

- Some apps disapear from desk after reboot, i don't know why. I tried to wipe cache and dalvik with no effect

- I installed twrp (through Odin) but after a system reboot, twrp is replaced by rom recovery. I obviously took care to reboot to recovery after install twrp and managed to go in twrp but after a system rebout, then a recovery reboot, rom recovery is launched.

The twrp doc says that twrp patch rom to prevent this. What's going wrong ?

- Finaly, my 3rd issue is one I had with lineage 17.1 (and which make me try 18.1). I often have a "No sim card detected", and have to reboot to fix this, sometimes few times per day. Anyone has an idea where this problem could come from ?
[Galaxy S 4 i9506 Android Development] SofianeLasri:
Sometimes the wifi and the sim card don't work. Wait a few minutes for your device to cool down or restart it. ;)
[Galaxy S 4 i9506 Android Development] username_required:
any chance for microg support?
[Galaxy S 4 i9506 Android Development] DualJoe:
lsposed/FakeGapps works for MicroG.

Android 11 Support by whew-inc · Pull Request #38 · thermatk/FakeGApps

I've deleted the whole package name service thing and used a simpler way to retrieve package names and labels. Both the package and app name can be logged this way. This fixes the original NullPoin...

github.com
[Galaxy S 4 i9506 Android Development] kyasu:
lineage-18.1-20210507-UNOFFICIAL-ks01ltexx.zip

New build is available (See the first post).

Sync with the latest LineageOS source (May 2021 Security Patch).

Please use OpenGApps.

Changes:

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

https://github.com/kyasu/android_kernel_samsung_msm8974/commits/lineage-18.1
[Galaxy S 4 i9506 Android Development] DualJoe:
@kyasu:

Can you put the msm8974-common vendor blobs to your repo as well?

Build fails:

Bringing back ZRAM might be a good idea indeed as the SystemUI bug should be all upstreams fault. Its still not fixed completely but at least the lags are gone.
[Galaxy S 4 i9506 Android Development] Kryga-i9506:
I have the following problem with two i9506.

Bluetooth and WLAN suddenly fail. Bluetooth is off and WLAN can no longer find an SSID.

I can disable and re-enable WLAN, after which the SSID are found and automatically connected.

But Bluetooth can't be turned back on; when trying to turn Bluetooth on, it briefly shows active, but is disabled immediately after.

After a reboot, Bluetooth also works again for a random time.

I first thought that this was a result of the power saving mode, because I noticed it mostly at 25% battery. But the problem occurs even before that. Yesterday already at 98% battery, so shortly after charging.

I can't tell with which version the problem first appeared, because I used to have Bluetooth disabled. I only have Bluetooth enabled for using the Corona Warn app.

On both i9506 I did a clean install with lineage-18.1-20210103-UNOFFICIAL-ks01ltexx-gapps.zip.

One of the i9506 still has this version installed.

On the second one I did a clean install again with lineage-18.1-20210123-UNOFFICIAL-ks01ltexx.zip and then upgraded to the current version. OpenGApps are installed as pico.

How can I investigate this further? Is there a log or a trace option?

Translated with www.DeepL.com/Translator (free version)
[Galaxy S 4 i9506 Android Development] grbgdn:
Try to install last version lineage-18.1-20210507-UNOFFICIAL-ks01ltexx.zip
[Galaxy S 4 i9506 Android Development] Kryga-i9506:
I did a new test with clean install of lineage-17.1-20201213-UNOFFICIAL-ks01ltexx.zip with

open_gapps-arm-10.0-pico-20210526.zip (excluding GoogleTTS).

I did only some basic config (WLAN 2,4 GHz + 5 GHz / Google Account) and did not install additional apps.

---

One day later bluetooth did not drop off so far.

I then installed some apps (threema, corona warn app).

---

One more day later bluetooth did not drop off so far.

Bluetooth is stable with lineage-17.1-20201213-UNOFFICIAL-ks01ltexx.zip and open_gapps-arm-10.0-pico-20210526.zip

---

Then i wiped my i9506 again and even wiped my sd-card.

I installed the latest version lineage-18.1-20210507-UNOFFICIAL-ks01ltexx.zip and open_gapps-arm-11.0-pico-20210130-TEST.zip (excluding GoogleTTS).

---

A few hours after setup bluetooth did drop off again.
[Galaxy S 4 i9506 Android Development] ruadus:
Hi,

I flashed this last version and it created strange files on my sdcard, see screenshot, anyone with same behavior?
[Galaxy S 4 i9506 Android Development] grbgdn:
I can't even imagine what the problem might be, I have the latest Bluetooth firmware installed, I connect the Runtastic heart rate sensor and the Jbl Extreme 3 column and everything works great and nothing falls off. Make sure to use the recommended TWRP: twrp-3.5.2_9-0-ks01ltexx.tar Bootloader / Modem: I9506XXSDPL2_I9506XXUDOJ2_bootmodem.tar
[Galaxy S 4 i9506 Android Development] ruadus:
Hello Guys,

I had a prompt to use the Lineage Recovery, I was curious so I clicked yes. Now I don't have anymore TWRP and Lineage recovery seems limited, I can't even flash TWRP from it.

Is there a way to revert back to TWRP?

I think the only way is to use Odin to flash TWRP. is that right?
[Galaxy S 4 i9506 Android Development] DualJoe:
If you have 'root' in the rom you can reflash twrp with 'dd'. Otherwise just use Odin or Heimdall.
[Galaxy S 4 i9506 Android Development] kyasu:
lineage-18.1-20210611-UNOFFICIAL-ks01ltexx.zip

New build is available (See the first post).

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

Please use OpenGApps.

Changes:

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

https://github.com/kyasu/android_kernel_samsung_msm8974/commits/lineage-18.1
[Galaxy S 4 i9506 Android Development] bizzzang:
Thank you This rom is very stable and good rom
[Galaxy S 4 i9506 Android Development] mishbieg:
I noticed the same issue. I can get around the WiFi issue by activating and deactivating flight mode. Bluetooth does no longer work after the June update. It still worked with the May build. It could be selinux related, but we would need to look at the log with adb. I can give it a try if there is not yet a fix on the way.
[Galaxy S 4 i9506 Android Development] Kryga-i9506:
Strangely enough, the problem occurs less frequently on both i9506s at the moment.

One of the i9506 still has lineage-18.1-20210103-UNOFFICIAL-ks01ltexx-gapps.zip installed.

As far as I could observe, the problem never occurred while the i9506 was connected to the PC/monitor via USB or while charging with the charger. But that could also be coincidence in the observation.

I did the update to the June version on one of the i9506. Bluetooth works normally as long as the problem does not occur.

I am prepared for logcat via adb and then will see what happens when I try to re-enable Bluetooth.

Edit:

One thing I forgot to mention. I briefly disabled battery optimization for the Bluetooth app and re-enabled it after about 5 minutes. However, I can't say for sure if this measure had any effect.
[Galaxy S 4 i9506 Android Development] DualJoe:
Again... are you on I9506XXSDPL2_I9506XXUDOJ2_bootmodem?
[Galaxy S 4 i9506 Android Development] Kryga-i9506:
Yes, on both devices I9506XXSDPL2_I9506XXUDOJ2_bootmodem is installed.

Also on both devices twrp-3.5.2_9-0-ks01ltexx.tar is installed.

Sorry i forgot to answer that questions.
[Galaxy S 4 i9506 Android Development] noob403:
I just put the phone on Download mode (vol down + power+home button) and refalshed it with odin. Wokred like a charm
[Galaxy S 4 i9506 Android Development] noob403:
whenever I try to change background via fromatand background it keeps crashing.

any hints?

I have done the clean install and even upgraded modem etc..

But it still keeps crashing on 18.1
[Galaxy S 4 i9506 Android Development] kyasu:
lineage-18.1-20210708-UNOFFICIAL-ks01ltexx.zip

New build is available (See the first post).

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

Please use OpenGApps.

Changes:

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

https://github.com/kyasu/android_kernel_samsung_msm8974/commits/lineage-18.1
[Galaxy S 4 i9506 Android Development] bizzzang:
The os link is wrong. I'm going to alpha. Please check
[Galaxy S 4 i9506 Android Development] DualJoe:
I can confirm that. The direct link leads to 'Galaxy Alpha'. The i9506 rom is in the right folder though.

https://androidfilehost.com/?fid=14943124697586362934
[Galaxy S 4 i9506 Android Development] bizzzang:
Thank you.
[Galaxy S 4 i9506 Android Development] kyasu:
Thanks. I fixed the link in the first post.
[Galaxy S 4 i9506 Android Development] klaus-hamburg:
currently can't install microg on lineage 18.1 ks01ltexx

seems that patching services.jar doesn't work

any solution ?

thx
[Galaxy S 4 i9506 Android Development] DualJoe:
lsposed/fakegapps works for microg.
[Galaxy S 4 i9506 Android Development] Kryga-i9506:
OpenGApps 11 is released

Edit: Link update
[Galaxy S 4 i9506 Android Development] PokeRekoP:
Hi all.

Big thanks once more to kyasu for keeping these beauties up to date.

Trying to use mine as an audio streaming client for our living room amp. For that I have a Samsung "Multimedia Dock" (3 USB ports, microUSB for power, HDMI, and the 3.5mm audio jack. Don't want to go bluetooth route, don't want to connect to the S4's internal 3.5mm jack.

I can't find any rom other than the stock 5.0.1 one which plays audio through the dock's 3.5mm jack. Just re-flashed that to confirm the dock is good - it is.

The options that were there in the stock rom aren't available in anything but stock.

To test something other than Lineage based roms I had a go with HavocOS which is based on AOSP iirc. But same there.

Any thought on how to make things work with LineageOS? Anyone ever used this, anyone ever had this working "after stock"?

In the end I don't mind what custom ROM I put on, but having something more recent than 5.0 would be lovely ;)
[Galaxy S 4 i9506 Android Development] DualJoe:
It could be "Samsung TouchWiz" exclusive. Its not just a user interface. Its also a proprietary framework on stock rom only. Samsung apps depend on that (e.g. their camera app with 60fps recording and hardware post-processing). These functions/frameworks are proprietary/closed-source and cannot be ported..

The dock could rely on that as well. That's just a guess though.
[Galaxy S 4 i9506 Android Development] PokeRekoP:
@DualJoe thanks for the hint. Is there anything I could check, e.g. logcat when docking or so to see what is going on? I'd expect that dock to be some sort of OnTheGo OTG USB device. And there is 3rd party docks out there like those compact stereo amps and whatnot where one can plug the various microUSB devices in.
[Galaxy S 4 i9506 Android Development] DualJoe:
Yes, logcat could shed some light.

Where exactly are the (missing) options in stock rom?

The dock could be an external soundcard. That usually should work though i guess. It's possible that the Android device tree or the kernel configuration have a missing configuration setting on custom roms. Most custom roms share the same device tree (configuration).
[Galaxy S 4 i9506 Android Development] PokeRekoP:
The full Story up to now is here:

https://xdaforums.com/t/lineageos-sound-from-dockingstation-3-5mm-audio-jack.4313325/

stock Android 5.0.1. : Settings > My Device > Accessories > enable "Dock Sound" and "Audio Output Mode"

EDIT: checked the translations, they were correct; the relevant tick is "Audio Output Mode". /EDIT

In AOSP/LOS (or rather "later versions of Android" ?) all different setting compared with touchwiz. On recent ROMs there is one setting in dev options related to automatic usb audio routing but that one has no effect. I couldn't locate any "Dock" , "sound" , "Audio" or "usb" related settings / options so I have no idea where in the various options screens one would expect them.
[Galaxy S 4 i9506 Android Development] DualJoe:
A logcat analysis/comparison would be your best candidate indeed i guess.

When you connect the dock is something changing at all in LOS? Status bar, muted sound or something?
[Galaxy S 4 i9506 Android Development] PokeRekoP:
Re Sound via Dock: Sorry, didn't find much time to look into this.

For now have set up stock 5.0.1 to have a working solution (to comply with the "WAF" hurdle whenever I have not time to work on it)

Will set up latest lineage 18.1 by kyasu and then see that I get logcats for both platforms. "I'll be back!"
[Galaxy S 4 i9506 Android Development] kyasu:
lineage-18.1-20210804-UNOFFICIAL-ks01ltexx.zip

New build is available (See the first post).

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

Changes:

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

https://github.com/kyasu/android_kernel_samsung_msm8974/commits/lineage-18.1
[Galaxy S 4 i9506 Android Development] DualJoe:
Anyone noticing some gfx glitches now and then as well? They are there for some months or so and seem to only appear on the same apps (Nova launcher, WeatherOnline).
[Galaxy S 4 i9506 Android Development] pediadk:
Hello to all! New member here. Let me start by expressing my gratitude towards kyasu and the rest of the developers for their amazing work on the i9506.

I want to confirm, that I have the exact same problem as user Kryga-i9506 has reported, concerning Bluetooth. I have exactly the same bootloader/modem/recovery configuration as Kryga. Everything else seems to be running really smoothly. However, Bluetooth is a show-stopper for me since I am using a portable EKG device to monitor my heart rhythm. Having to reboot the device at least once per day is extremely bothersome.

Would there be a way to re-initialize Bluetooth programmatically via the terminal so that the device would not need to be rebooted?

Any other potential fix that you could propose?

Kryga what did you end up doing about this issue?

Thank you very much in advance for your replies.
[Galaxy S 4 i9506 Android Development] Kryga-i9506:
I have no clue as to the problem so far. I was able to back up some logcat with adb after noticing bluetooth failures again. But I could not find any clues (recognizable to me) in the logcat about the cause.

Partially both i9596 work for days without the error occurring. On other days the error occurs several times a day. It doesn't matter if the i9506 is just sitting on the desk or if I'm really mobile with it.

I also haven't found a tutorial with google that helps me read the logcat in relation to the bluetooth failure.

I uninstalled the corona warning app as a test; then the error did not occur for more than a week. Then I reinstalled the app and the error occurred intermittently again.

Then I tested disabling the risk detection in the app, and the error did not occur for days.

But the risk detection is the main function of the app.

The Corona-Warn-App is an app that helps trace infection chains of SARS-CoV-2 (which can cause COVID-19) in Germany. The app is based on technologies with a decentralized approach and notifies users if they have been exposed to SARS-CoV-2. Transparency is key to both protect the app's end-users and to encourage adoption.

The Exposure Notification System (by Apple and Google) on a mobile device broadcasts a Rolling Proximity Identifier (something to be remembered by), while also regularly scanning for identifiers of other phones using Bluetooth Low Energy technology and storing the identifiers locally. The identifiers are only valid for 10-20 minutes and are derived cryptographically from temporary keys which change every 24h.

If Bluetooth Low Energy is not used by any app, Bluetooth remains permanently enabled on the i9506.

Translated with www.DeepL.com/Translator (free version)
[Galaxy S 4 i9506 Android Development] kyasu:
lineage-18.1-20210910-UNOFFICIAL-ks01ltexx.zip

New build is available (See the first post).

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

Changes:

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

https://github.com/kyasu/android_kernel_samsung_msm8974/commits/lineage-18.1
[Galaxy S 4 i9506 Android Development] Toby123456:
Hi Kyasu, I am new to this, but know about Ubuntu and linux basics. I would like to learn / master the skills to build LineageOS for the Korean SHV-E300S or SHV-E330S Exynos5 architecture. Would you be able to guide me? If yes, please contact me. I would also be willing to make a donation via Paypal for your efforts.
[Galaxy S 4 i9506 Android Development] DiamondJohn:
I have built many ROMs from source. I learnt by using the instructions (for a diffrerent but related device to what I started on) from the LineageOS site. There are pretty detailed instructions there. Most GitHUB pages for different ROMs have instruction how to at least start.

There is also a thread here on XDA to help get you started or with any issues you come accross.

[GUIDE][COMPLETE] Android ROM Development From Source To End

Hello Everyone....:D:D Today I will present you all the ultimate guide for ROM development starting from Source to End. This guide will be applicable to all devices. So lets Start :D What is Android? :rolleyes: Android is an...

xdaforums.com

EIther way, you would save time of both yourself and @kyasu if you started the learning process on your own. I can't imaging that a "donation" would go anywhere near compensating for the time required to train someone to build a ROM, from no starting point.
[Galaxy S 4 i9506 Android Development] kyasu:
lineage-18.1-20211007-UNOFFICIAL-ks01ltexx.zip

New build is available (See the first post).

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

Changes:

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

https://github.com/kyasu/android_kernel_samsung_msm8974/commits/lineage-18.1
[Galaxy S 4 i9506 Android Development] bizzzang:
The display changes in this ROM. The brightness is a little dark even at the maximum, and the screen size seems to be bigger. Is it just me??
[Galaxy S 4 i9506 Android Development] DualJoe:
I can't notice that here. Maybe you have 'reduce power consumption' or 'adaptive brightness' enabled.
[Galaxy S 4 i9506 Android Development] bizzzang:
Lock screen day of the week not appearing As a temporary solution

system build.prop ro.sf.lcd_density 480 - 440 change

This is how I temporarily solved it
[Galaxy S 4 i9506 Android Development] somewhereinoz9:
HI All. Newbie with no idea here.

I managed to download Android 11 using TWRP for my GT-i9506

Build Number: lineage_ks01ltexx-userdebug

11 RQ3A.211001.001

eng.kyasu.20211007.091936 release-keys

I also downloaded

NikGapps-core-arm64-11-20210918-signed.zip

And

Magisk-v23.0.zip

I have previously managed to download Android 10 and then Android 11 on my Samsung S2 - with minimal problems.

I am now experiencing a few issues with my phone being:

1. When I receive a phone call from an number not listed in my address book it does not show up and I have no means to answer it as it does not show up on my screen.

2. When I make or receive a phone call I only have the green call button - I have no way to end or dismiss the call.

3. Searching in Google Play does not show the apps I am searching for even when entered correctly and I have some issues with apps not working I have downloaded (such as COVID QR check in scanners not reading) - or sometimes web pages not loading (although this appears more relevant using mobile data as opposed to Wi-Fi). I have downloaded a QR barcode scanner app and this appears to be working fine.

I am just wondering if anyne else has had any issues or problems - or is it something I have done wrong and any possible solutions?

Don't get me wrong I think this is magnificent being able to upgrade like this and am eternally gratful to all the hard work put in by Kyasu and all the other developers like Rinaldo - and to anyone that may be able to help me out.
[Galaxy S 4 i9506 Android Development] somewhereinoz9:
I have removed the original lineage and GAPPS zip files and reinstalled the original January 2021 lineage and GAPPS file - this seems to have resolved the issues with being able to end the phone call and I can locate apps on Google Play now - so I am hoping this may have fixed the issue.

I will play around with it for a few days and see how I go
[Galaxy S 4 i9506 Android Development] sdadaf:
Problem solved
[Galaxy S 4 i9506 Android Development] bizzzang:
Format the system and install
[Galaxy S 4 i9506 Android Development] sdadaf:
I also did format and reinstall 18.1 many times before. But there was still a problem.

To take a test, I installed lineage17.1 20201213 and it is fine.

Then I installed lineage18.1 20211007 again and it is fine now.

I don't know what was the reason but the problem is solved now.

Thank you.
[Galaxy S 4 i9506 Android Development] radek.k:
This is my first post so hello to everyone and please don't mind my english.

Thank you kyasu for your wonderful work! I'm using this ROM without any issues, I just can't get video output to work. I have the proper MHL to HDMI converter (11 pin) and I've tried a couple of major video apps but none of them work. Any idea what might be wrong?
[Galaxy S 4 i9506 Android Development] gvamp:
I'm constantly having connection and "android setup crashed" errors after installing the most recent OpenGApps regardless if it's nano or pico and if it's this rom here or the rom for Android 9/10. Bootloader/modem/twrp are the recommended ones. Seems the Google apps can't access the internet. I can't open the playstore. Any hints what I could try? Did a bunch of clean installs and nothing helped.
[Galaxy S 4 i9506 Android Development] sdadaf:
I also experienced your problem at other phone's android 10 roms.

I think there were some problems at opengapps.

Now the newest opengapps arm android10 changes into 2021/10/21 which is old version.

After 2021/10/21 version is deleted on official opengapps site.

And I also experienced this problem when i installed bitgapps too.