yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 i9506 Android Development] HashtagFTW:
Bootloader/Modem Help!

Hi, first time flashing a Samsung phone here. Thankfully, I've managed to read through a lot of the important stuff regarding flashing and successfully install TWRP + the latest build of LineageOS. One problem though. I can't seem to figure out how to install the recommended Bootloader/Modem file from OP. I've tried flashing the entire .tar file via the BL mode in Odin 3.12.3, but was unsuccessful in doing so (comes up with an error after a second or 2 saying aboot failed or something)

I've also tried installing it through the methods described in this thread : https://xdaforums.com/galaxy-s4/general/ref-galaxy-s4-i9505-modems-bootloaders-t3315987, but was unfortunately unsuccessful in flashing any of the .bin or .mbn files separately through CP mode and BL mode (in Odin) respectively. This time, all of the files just decided to freeze at the "Setup Connection" part, so I just exited Odin after waiting for an hour and pulled the battery. (I'm hoping this is okay to do)

I've also tried to flash with the method that someone in page 54 linked (Using heimdall) : https://ohthehugemanatee.org/blog/2...m-slash-baseband-firmware-on-a-samsung-phone/, but got way too confused midway and gave up. Also updated the original Samsung usb drivers to heimdall's driver on accident, but reverted back to Samsung's successfully after finding out how clueless I was regarding heimdall . (I think I did anyway, I followed the instructions in the heimdall setup guide regarding reverting back to original drivers)

As for troubleshooting with Odin, I've tried;

1. Running Odin in admin mode

2. Restarting both the computer and the phone

3. Ticking the "Auto Restart" option for Odin for every file that I've tried to flash with

4. Different USB cables and USB ports on the computer

5. Trying all of the above with different versions of Odin

6. Uninstalling the Samsung USB drivers and reinstalling them again

7. A couple more things that I managed to gather from various posts on XDA but can't remember due to a lot of time passing

8. What I didn't try though, is enabling USB debugging in LineageOS before going into download mode, but I really can't see how that would matter anyway. I just remembered that I had USB Debugging enabled when I first flashed TWRP through Odin, so maybe that could be important, I don't know.

That's it. You could probably tell how new to this I am in this post, so it really would be great if anyone could help out at all. Now that I think of it, I probably should have just asked here before spending the whole weekend trying to figure out something I couldn't have possibly known, but hey, I tried.
[Galaxy S 4 i9506 Android Development] LittlePlumb:
Try opening .tar file with 7zip. (If your on win) Correct me if i'm wrong but i believe you want to flash a .img file. Not the tar.
[Galaxy S 4 i9506 Android Development] Arnomich:
Of course usb debugging is required.
[Galaxy S 4 i9506 Android Development] HashtagFTW:
Oh it is? ! I thought it was only required for using adb commands while in the OS :p I'll try it right now and get back to you!
[Galaxy S 4 i9506 Android Development] Arnomich:
Try flash by AP in ODIN

And usb debug is unnecessary my mistake.
[Galaxy S 4 i9506 Android Development] HashtagFTW:
I've tried both enabling USB Debugging and flashing with AP in ODIN, both didn't work. BL + Debugging Enabled just gives me secure check failed : aboot like it always did, and AP does the exact same thing.

Also, correct me if I'm wrong, but we are supposed to go in to Download Mode / ODIN mode while flashing with ODIN right? Because that's what I've been doing the whole time, and it would be embarrassing to find out that I've needed to do this while booted into the OS the whole time.
[Galaxy S 4 i9506 Android Development] Arnomich:
Yep your phone must be in download mode ( vol down + power button + home button )
[Galaxy S 4 i9506 Android Development] HashtagFTW:
When you open the .tar file with 7zip, it just gives you a bunch of .mbn and .bin files like modem.bin, aboot.mbn, etc.
[Galaxy S 4 i9506 Android Development] Arnomich:
Check this https://youtu.be/Ulz-1UYzHBA Repeat but use your boot/modem tar simple Its older odin on video PDA its just AP in recent odin
[Galaxy S 4 i9506 Android Development] HashtagFTW:
That's exactly what I already did and it still just comes up with secure boot failed : aboot :crying:
[Galaxy S 4 i9506 Android Development] Arnomich:
I think you need root maybe. Flash using recovery file in atachment then enable it in developer option.
[Galaxy S 4 i9506 Android Development] HashtagFTW:
Hi, sorry for bothering you, but could you elaborate a bit further on how you updated to the recommended modem/bootloader in the OP? As you could probably tell from my last few posts, I'm having quite a bit of trouble flashing the .tar file via the BL mode in ODIN. It keeps coming up with this error

<ID:0/005> Added!!

<ID:0/005> Odin engine v(ID:3.1203)..

<ID:0/005> File analysis..

<ID:0/005> SetupConnection..

<ID:0/005> Initialzation..

<ID:0/005> Get PIT for mapping..

<ID:0/005> Firmware update start..

<ID:0/005> SingleDownload.

<ID:0/005> aboot.mbn

<ID:0/005> FAIL! (Auth)

<ID:0/005>

<ID:0/005> Complete(Write) operation failed.

<OSM> All threads completed. (succeed 0 / failed 1)

And it also says "SECURE CHECK FAIL : aboot" in the ODIN mode screen on the phone. It would be amazing if you could help.
[Galaxy S 4 i9506 Android Development] Arnomich:
Just root and flash using AP please.
[Galaxy S 4 i9506 Android Development] HashtagFTW:
Am trying now, but phone wouldn't boot for some reason. Are we not supposed to install SuperSU and update the binary? Crap. Let me wipe and retry.

---------- Post added at 05:36 AM ---------- Previous post was at 05:24 AM ----------

Just tried this, and the exact same error that I posted above comes up. Enabled root for Apps and ADB in the developer options, everything else is same. Didn't have SuperSU installed though, because that made the phone bootloop.
[Galaxy S 4 i9506 Android Development] downhere:
Thanks for the new build.

My problem:

Menu key is still kind of useless. There's no option to config it; it only shows the recent apps list (long press).
[Galaxy S 4 i9506 Android Development] WeirdSoup:
In CM14, "Recents Button" in the Settings refers to the Menu button. You can manually change that if you want.
[Galaxy S 4 i9506 Android Development] Baffsuki:
Confirmed. Perfectly working on SHV-E330L (ks01ltelgt)

Video recording is fine.

Smooth as hell.

My phone has been installed with so many ks01lte ROMs but it still works fine.

Sound is crystal clear, like cm13 and TouchWiz

Some FCs

Boot is a bit noticeable faster than CM13 but noticeably slower than TouchWiz.

Headphone Jack is working

Camera is Fast

Pixel Launcher is available in Play Store

Status bar options, some aren't working

Settings still look like 7.0.0, the settings in Pixel is brown and the accent is blue, in here the settings is still blue-grey, accent is like light blue.

Hardware and capacitive buttons work fine.

Battery Drain present, judt like all Nougat ROMS

Bluetooth problems, argghh!!

Incompatibility issue will appear.

ShareIt problems
[Galaxy S 4 i9506 Android Development] maniwaraich:
battery drain

All the battery drain is due to kernel and due to high kernel setting. max freq cant be set using kernel auditor if tried cores dont go to deep sleep. up scaling and go high speed frequencies are very high.

correct this and battery will be great i have disabled sync thresh hold frequency and input boost frequecy in cpu setting via kernel auditor app and battery life is quite good.
[Galaxy S 4 i9506 Android Development] DonAndress:
Awesome news!

Could you please check mms as well?

TapaTalked from i9506
[Galaxy S 4 i9506 Android Development] Baffsuki:
Sorry but I don't use SMS. So I can't be testing MMS.
[Galaxy S 4 i9506 Android Development] simonsalo:
Try using the app "gravity screen". Great app for controlling and keeping the screen off when not needed. ... and it can even be configured to turn the screen on when you pull the phone out of your pocket or under other various conditions.
[Galaxy S 4 i9506 Android Development] Baffsuki:
Bluetooth problems is starting to appear. Me and my bro shared a very small file, to me, and his phone kept saying "Unsuccesful", his phone is a Sony Xperia Z1 Compact and i have never had problems with bluetooth in recent roms. Plus ShareIt doesnt even work, his phone detects mine but it wont connect. Fix this please, also battery drain is a big no no issue. Other than that, its a great ROM. Still using this as my Daily Driver. (for now).
[Galaxy S 4 i9506 Android Development] simonsalo:
What is the difference between these ROMs?

Can you explain what the difference is between your current CM 14.1 ROM here and this one - [ROM][7.0.0_r14][CM14] crDroid Android - Official Beta Builds [ks01lte][Oct 23] - which also seems to be based on yours anyway?

Has anyone tried both?

Cheers

Simon
[Galaxy S 4 i9506 Android Development] shaaanto:
OpenGAPPS causes an permission problem. Google Play Services doesn't start. Any better GAPPS for 7.1?

Thanks in advance.
[Galaxy S 4 i9506 Android Development] simonsalo:
GAPPS - main download page

Yes. Many choices from this link. Make sure you download the 32 bit versions. Also let us know if they work and solve your problem please!

https://devs-lab.com/android-gapps-download.html#1471695376710-f8719002-8bce
[Galaxy S 4 i9506 Android Development] shaaanto:
I reinstalled the ROM and flashed Pico GAppps and now it's working all well.
[Galaxy S 4 i9506 Android Development] DualJoe:
[MENTION=4861355]kyasu[/MENTION]: Can you enable CIFS in kernel config?
[Galaxy S 4 i9506 Android Development] Baffsuki:
The crDroid (7.0.0) is based on an older version of Android, and is also based on an older version of kyasu's port.

While this rom, has a newer version of android and has a newer API (7.1.0) (API 25, N,MR1).
[Galaxy S 4 i9506 Android Development] PSH ZentroGodYT:
Bugs

Audiofx not working

Settings crashed on startup
[Galaxy S 4 i9506 Android Development] simonsalo:
Nightlies for 14.1?

Hello again...

How long are you going to continue to build & post CM 13.1 nightly ROMS at this link? https://download.cyanogenmod.org/?device=ks01lte

When do your 14.1 nightlies for our device commence and 13.1 stop? Is there a reason you are continuing 13.1? Is this a more stable ROM or has some other advantages?

Regards,

Simon
[Galaxy S 4 i9506 Android Development] sevenlife:
Dude you know that kyasu isnt the official maintener right?
[Galaxy S 4 i9506 Android Development] jeepcook:
Whith this last version, titanium backup can't restore phone storage (sms/mms/apn), the restore process is ok but no data available after restore
[Galaxy S 4 i9506 Android Development] WeirdSoup:
Use XML backup feature.
[Galaxy S 4 i9506 Android Development] jeepcook:
I will try but it seems that xml call logs restore is broken too.. I don't undertand why ..
[Galaxy S 4 i9506 Android Development] pawel1090:
Hey I have 2 problems:

+ My phone is randomly losing connection with bluetooth headset (plantronics explorer 50) - bluetooth is turning off by itself.

+ At least once a day system shows that my sd card has been dismounted. In effect some of my phone settings are going back to default.

Can you give me some advice how to fix these problems? Maybe I should install different kernel or something?
[Galaxy S 4 i9506 Android Development] GTI-9300:
With the last Update I don't have any Bluetooth problems. I listen non stop for many hour's over Bluetooth Music. No problems.
[Galaxy S 4 i9506 Android Development] pawel1090:
Last update is already installed :/
[Galaxy S 4 i9506 Android Development] xJone:
Would be nice to get ANT+ working.
[Galaxy S 4 i9506 Android Development] WeirdSoup:
There are no other kernels. If you still have that problems after the clean installation, I recommend you to use another ROM, or back to the Samsung stock Firmware.
[Galaxy S 4 i9506 Android Development] simonsalo:
So just to be sure... if I get this error I am deleting the following *.db files:

opname.db

Hbpcdlookup.db

mmssms.db

telephony.db

What about the Journal files? Or *.xml files?

Regards

Simon
[Galaxy S 4 i9506 Android Development] marius.onofrei:
If anyone else bumps into this, here's a workaround that I've successfully applied to my device (not taking credit as I've read it somewhere in this thread, just highlighting it again):

- Install ROM (with wiping and everything - wiping the internal storage didn't do any good, so don't bother doing it)

- Boot phone

- Install Gaps in recovery mode

- Wipe cache/Dalvik (not sure whether it's relevant, I've done it out of habit)

- Boot phone

You won't get the nice initial setup for your google account & all, but it will get you running on LineageOS latest.

M
[Galaxy S 4 i9506 Android Development] jakub_pl:
But this is just standard procedure recommended everywhere isn't it?
[Galaxy S 4 i9506 Android Development] marius.onofrei:
Not sure, I've used to do ROM, GAPPS, initial boot for CM13 for as long as I know.

This time I had to do the initial boot before installing GAPPS.
[Galaxy S 4 i9506 Android Development] Diapolo:
[MENTION=4861355]kyasu[/MENTION] Would it be possible to overtake the official ks01lte maintainer state? [MENTION=432222]sol2k[/MENTION] seems to not have time or interest anymore, which is bad, as I'd love to see an official LOS release with an updated kernel :).

Dia
[Galaxy S 4 i9506 Android Development] Aceracer27:
Dirty flashed from 0114 version. Confirmed that the fix for the above error works.

Thanks Kyasu! :good:
[Galaxy S 4 i9506 Android Development] jeepcook:
I dont understand how nougat works now... I do a clean install, everything is ok, reveive calls, sms, mms...

I do a twrp backup and restore this backup, every sms and mms have disappeared, why??

Sent using Tapatalk
[Galaxy S 4 i9506 Android Development] marius.onofrei:
Thanks, saved the day!
[Galaxy S 4 i9506 Android Development] :
You can also just click the edit tiles button. But just like the solution mentioned above, it's just a temporay fix and vanishes after a reboot.
[Galaxy S 4 i9506 Android Development] tomogo:
Many thanks,

I did dirty flash from CM13 and it works fine for me.

But I have another bugs with BT etc. So I had moved to Stock rom :(
[Galaxy S 4 i9506 Android Development] kyasu:
lineage-14.1-20170127-UNOFFICIAL-ks01ltexx.zip

New build is available (See the first post).

Sync with the latest LineageOS source.

Update sepolicy.

Changes:

https://github.com/kyasu/android_device_samsung_ks01ltexx/commits/cm-14.1

https://github.com/kyasu/android_kernel_samsung_msm8974/commits/cm-14.1

Note: If you want to install root, please flash the official LineageOS addonsu zip.

https://download.lineageos.org/extras
[Galaxy S 4 i9506 Android Development] Jadbryce:
Some settings missing

Hello, the latest version of LineageOS for Galaxy S4 LTE-A (build Jan22 2017) is missing some important settings menus.

In SOUNDS, the OTHER SOUNDS section is there, but the settings app force closes every time I try to access it. I wanted to disabled the haptic feedback when I press the back and app switch buttons, but there is no way to do it since its settings are supposed to be in the OTHER SOUNDS section. Could you please check this issue ?
[Galaxy S 4 i9506 Android Development] sevenlife:
Try the latest build 27jan. Works ok
[Galaxy S 4 i9506 Android Development] Jadbryce:
I have installed the latest build (jan27) and the issue is fixed. Thank you !
[Galaxy S 4 i9506 Android Development] marius.onofrei:
What sorts of bugs? I've done a clean install and it's all fine. Used it to play music on my JBL speakers...
[Galaxy S 4 i9506 Android Development] jakub_pl:
I agree that there are bugs related to bluetooth. To be honest I'm not using latest build but one of the latest ones and bluetooth is really a big problem. For example yesterday I was using phone as navi and everything was fine until I turned on bluetooth. When I was about to make a phone call then system just freezed and started rebooting (but it was not able to boot!). I had to turn off bt headset and hold power button and then turn on again.

Those bluetooth issues happen randomly so it's hard to find a partern. If some of devs could look into issue it would be great but I believe to start any investigation there have to be logcat logs provided.

I will try to record the logs some day. I also encourage everyone who has bt issues to pay attention to when it occurs and describe scenario so devs are able to recreate the problem.
[Galaxy S 4 i9506 Android Development] JohnMcClane1htc:
Hi! I want to ask you, How is the autonomy with this ROM? I am thinking to flash it from CM13 and I have read differents answers of this post, but I didnt see anything about battery, I think.

Thanks for your answers and sorry if my question is answered, i didnt see it.

Enviado desde mi GT-I9506 mediante Tapatalk
[Galaxy S 4 i9506 Android Development] stecko:
I have flash it from CM13 with no problem. In my opinion the battery is noticeable better that CM13. You should feel the difference. I do recommend the latest version lineage-14.1-20170127. Everything seams to work.
[Galaxy S 4 i9506 Android Development] Jadbryce:
Hello,

After installing the Jan27 build the battery charges really slowly. The "charging slowly" message on the lockscreen confirms it. Before, the message was just saying "charging". Would there be any way to fix it ?
[Galaxy S 4 i9506 Android Development] jakub_pl:
It's rather not related to this particular build. Check previous posts. Btw I would also like to know if there is anyone working on this.
[Galaxy S 4 i9506 Android Development] tomogo:
1. Not possible to do clean installation. (workarrounded)

2. In my car after pairing it will disconnect after several seconds. Not possible to connect again. I had to switch off/on BT. But connection was stable again only for few seconds.

3. I had sporadic touches on screen during calls.

4. Problems with MHL-1 docking station. (audio, stability)

5. Screen mirroring works for 80% in official stock ROM, but here it is about 50%. (depends on TV/dongle)
[Galaxy S 4 i9506 Android Development] macka37:
I am with the same problem. In the other said, the ROM goes perfect,smothly and batery drain is rwally good

Enviado desde mi GT-I9506 mediante Tapatalk
[Galaxy S 4 i9506 Android Development] marchnz:
Let us know your results after installing and trying it.
[Galaxy S 4 i9506 Android Development] Seronez:
Can't seem to find the gestures in the newest Version? Were they removed?

Edit: forget it I found them it's in Display now
[Galaxy S 4 i9506 Android Development] derflasher:
I'm wondering why we should use SuperSU instead of built-in root. I thought it was a big advantage to use open source software like CyanogenMod or nowadays Lineage OS.

Is SuperSU open source, too?
[Galaxy S 4 i9506 Android Development] WeirdSoup:
Nobody forces you to use the SuperSU. Just install the addon.
[Galaxy S 4 i9506 Android Development] derflasher:
Yes, but are there any other options for root except using this app?
[Galaxy S 4 i9506 Android Development] Jelges:
Hi, I am on Build Jan 27th and I still experience problems:

- with the camera. When I start the camera app it nearly needs 10 seconds starting with a black screen then in camera app it takes very long to take a picture when I push the button.

- the charging animation in off mode is now back to old style. On earlier builds there was a new style big animation which came with late builds to CM13. But with this Rom it never worked right for me. Plugging in the cable it first showed the new animation with wrong charging status, then a few seconds later the old small charging animation popped up and showed the right charging values, after that again followed by the new animation with showing wrong charging percentage again.

I hope this helps. Will this Rom later also be an Official Rom released on download.lineageos.org?

Sincerely,

Jelges
[Galaxy S 4 i9506 Android Development] WeirdSoup:
Nobody forces you to use the SuperSU or other ****ing "app"s. Just install the addon.
[Galaxy S 4 i9506 Android Development] Seronez:
Found a little bug. The color-inverting of the status bar doesn't work sometimes.

There are apps where the status bar is completely white with white font on white background.

Normally it would invert the font to grey. Using the newest 27th Version.
[Galaxy S 4 i9506 Android Development] derflasher:
I installed Lineage OS!

Great job, so far!

Well done!
[Galaxy S 4 i9506 Android Development] jakub_pl:
I've installed lineage-14.1-20170127-UNOFFICIAL-ks01ltexx.zip and unfortunately charging issues are present. Amperage shows only 460mA and on same charger was 1720mA yesteraday :/

It looks like this: I'm connecting charger and get 460mA. I'm trying restarting device and it's still 460mA (with "charging" on lock screen).

After turning phone off, replugging battery, connecting charger and turning on device I get 1800mA! (with "slow charging" on lock screen).
[Galaxy S 4 i9506 Android Development] Arnomich:
Have the same.
[Galaxy S 4 i9506 Android Development] Seronez:
Can recommend this. Link
[Galaxy S 4 i9506 Android Development] jakub_pl:
And how does it help?
[Galaxy S 4 i9506 Android Development] Seronez:
you don't have to charge your phone anymore....you only charge the battery, with full speed of course, it's also faster cause it's not in use while charging.

Been using it for a year now and it's perfect I never have to connect micro usb anymore. just change the battery if it's empty and instantly 100% again.

You have a phone with changable battery thats a big plus compared to new phones if you use it right you don't have to charge it directly over the port at all.
[Galaxy S 4 i9506 Android Development] DonAndress:
But you have to open the back of the phone over and over again. Very comfortable...

TapaTalked from i9506
[Galaxy S 4 i9506 Android Development] JK-FINN:
Just installing this ROM for the first time: should I install ARM or ARM64 gapps from opengapps.org?
[Galaxy S 4 i9506 Android Development] JohnMcClane1htc:
You only have to install OpenGapps ARM-7.1-Pico. ARM is the architecture of our SoC
[Galaxy S 4 i9506 Android Development] :
Check this out guys: https://review.lineageos.org/#/c/158337/

Looks like aptx and aptXHD support (for supported devices) are getting baked right into the ROM!
[Galaxy S 4 i9506 Android Development] marius.onofrei:
Guys,

I'm experiencing some issues with wifi. It won't connect automatically to 'most' known networks (although it would do so for some). When that happens even if I force it to connect, it won't. I need to disable wifi altogether and enable it again. It's annoying because I end up using mobile data...
[Galaxy S 4 i9506 Android Development] jakub_pl:
After few weeks of using lineage-14.1-20170127-UNOFFICIAL-ks01ltexx I would like to share my thoughts:

pros:

- it's smooth

- battery performance is good

cons:

- there was one reboot (previously I believed that BT was causing the reboots but it seems that under some conditions you don't have to have BT turned on to encounter reboot)

- screen brightness is quite high (with lowest brightness level it's still too bright at night)

- charging performance is bad as amperage is usually too low (you have to restart phone/connect charger few times until correct amperage is there)

- camera app start time is usually very long and it often crashes when switching from camera to gallery (gallery shows black screen and after some time there's notification that gallery crashed).
[Galaxy S 4 i9506 Android Development] DonAndress:
I guess that this charging issue is specific for i9506 only so I wonder if any dev still works on our device's soft or it's too old and abandoned already... ;)

Not to count the security releases which require compilation from sources only.

TapaTalked from i9506
[Galaxy S 4 i9506 Android Development] WeirdSoup:
Wow, great, thank you so much [MENTION=7485732]gebaya[/MENTION]. Now the most irritating bugs seems to have disappeared. I was really waiting for the new updated builds for that bugs. Thanks you again.