yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S 4 Unified Development] akmens:
And still it does happen on a clean install, so you should look into it. If you haven't run into it (perhaps because of diffferent phone model or whatever reason) doesn't mean bug doesn't exist. Sometimes it works but not always. Not happened on 17.x as far as I remember.

I will gladly use Lineage Recovery if you will tell me how to install BiTGApps (doesn't really matter which Gapps mod) using the recovery. Nope, instructions doesn't work here. And it was mentioned somewhere else in other forum too that Lineage Recovery have problems installing Gapps because it requires to do manual wipe that Lineage does not do.

I will quote myself from another post. And before you ask, yes, I downloaded the corect version from offical sources for my phone architecture and Lineage android version. With Lineage Recovery it was impossible to install Gapps.

With TWRP it worked like a charm. TWRP is so much better in many ways plus as I read somewhere here, version 3.xx is compatible with Lineageos and I can confirm. Lineage update booted in TWRP recovery and did update automatically without errors, except I needed to manually wipe data/cache after installation.

So, to repeat my question - you are kinda forcing to use Lineage OS recovery yet you cannot install Gapps that is required for normal phone functions. Useless.
[Samsung Galaxy S 4 Unified Development] rw_on_xda:
@akmens

I would suggest not to make that "big waves".

we could be more then full pleased that we're getting a current ROM on that old phone at all.

if you need TWRP and the bug you see is caused by your TWRP try this:

https://xdaforums.com/t/jdcteam-twrp-3-5-2_9-0-custom-builds.4271049/

[P.S.

I also do not see your bug with the today's release.

wasn't another GAPPS suggested for our phone too ?

Redirecting…
[Samsung Galaxy S 4 Unified Development] akmens:
On the contrary, with TWRP I could install Gapps, with Lineage Recovery I got meaningless "cannot find valid system layout" error with every Gapps package (Micro, Nano, BiTGApps etc. ) I tried.

So, first I installed Lineage Recovery and through that installed LineageOS, after installation it failed to install GApps from recovery and I was forced to flash back to TWRP and install GApps from there. Do I had motivation after these errors to flash back to Lineage recovery? Nope.

If you mean by the bug 'settings stopped working' occasionally error when opening system settings ->location then I fail to see what has it to do with TWRP rcovery since everything else works.

Only thing I may have different from some other users here is that I have installed BiTGApps-arm-11.0.0-R44_signed.zip GApps package and it 'may' occasionally cause the error when opening location because of all the services it contains... hmm, should look into this closer, not sure if that is enough reason to try another GApps package yet (via TWRP ofcourse because Lineage recovery can't do it) because it occasionally happens only when opening Location in Settings and I do not do that often.

P.s. My TWRP? It is standard recovery to install custom ROMs on most phones (Cyanogenmod recovery too but it comes with less usefull options).

P.p.s. to be clear, if it was not for the error when installing GApps and it was possible to install GApps via Lineage recovery I maybe be fine with it as I don't change custom ROMs often.
[Samsung Galaxy S 4 Unified Development] rw_on_xda:
quiet clear, but TWRP comes in diff. release version.

I've read the last one made problems, but it could be it was with another device, don't know.

JDCTeam's Twrp is some versions back, don't know why, maybe the above or compatiblity issue, maybe just lack of time ...

in any case I don't believe TWRP has something to do with your bug, I guess it's the Gapps.

what happens and what conclusion could be drawn if you leave off any GAPPS and have LOS recovery on the phone regarding the bug you see ( I don't see the bug with JDCTeam TWRP and NO GApps on my phone)
[Samsung Galaxy S 4 Unified Development] npjohnson:
A valid wonder here - why is everyone else in this thread is able to install GApps using it, including myself?

MindTheGapps 100% works.

If you're not going to listen I have no care to help tbh.

metadata footer, among other things often gets mismatched to the ROM when using external recoveries. Additionally, TWRP is known to touch /persist often, among other things. So, yes, TWRP can very much effect your install.

There's a reason no one else is having settings -> location crash.

We have a number of valid bug tickets open for the s4, for sure, but this isn't an issue with LineageOS.

If you want to try this with Lineage Recovery & MindTheGapps with no Magisk, no modules, etc. I'm betting you wouldn't see the issue at all, as I sure don't.
[Samsung Galaxy S 4 Unified Development] rw_on_xda:
seems to be my x-mas present :)

thanks, something learned
[Samsung Galaxy S 4 Unified Development] R4UD3:
Does anyone know how I can have the cellular bands of the i9505 model since I have the m919 model and in my country it only takes 2g😭😭 ??? help please by the way i have root
[Samsung Galaxy S 4 Unified Development] pocketrule:
You can't copy modem settings from i9505 to m919. But you could check if you're on the latest modem. Check out the (extensive) S4 Unified Collection & Guides from @Retrial
[Samsung Galaxy S 4 Unified Development] R4UD3:
Okok thanks 😊👍👍 i tried
[Samsung Galaxy S 4 Unified Development] hotwert:
As I saw there exists an android 11 for my (very) old phone I had to install it!

I already had LineageOS 15 on the phone, and haven't used it for 2 years. I just dirty flashed this rom over the old rom and was impressed it worked! I had no important data on the phone so I didn't care if something goes wrong.

It works perfectly for a few days. Thanks for the great work! The old phone is faster than I thought, absolutely sufficient. Now I can use it as second phone for work.

Sometimes it just loses wlan connection and is unable to connect again until I switch it on and off. Is it a known problem or a result of my dirty flash?
[Samsung Galaxy S 4 Unified Development] npjohnson:
dirty flash - fine here.
[Samsung Galaxy S 4 Unified Development] white eneloop:
Hi to everyone!

I was just reading on xda since my Galaxy S2 with cyanogenmod but now I really need your help.

I'm experiencing a strange issue with my S4 value edition (jfvelte GT-I9515 with 16GB) maybe someone can help me please.

Clean install from here: https://download.lineageos.org/jfvelte (image from 01/01)

Recovery from the same date.

GApps from here: https://androidfilehost.com/?w=files&flid=322935 (MindTheGapps-11.0.0-arm-20210920_083829.zip)

Setup and first bootup working as it should without issues but I can't install other apps or even apply updates to the stock apps because of to less space error message. Any ideas?

My main phone is a S5 with latest lineageos, working like a charm. :)
[Samsung Galaxy S 4 Unified Development] npjohnson:
format data from recovery, problem soved.
[Samsung Galaxy S 4 Unified Development] x2k13:
@npjohnson

Just FYI, Lineage recovery can't handle encrypted /data partitions. And because it can't decrypt /data, it"s pretty useles for people who need access to that partition. In other words, TWRP is the way. Supported or not.
[Samsung Galaxy S 4 Unified Development] npjohnson:
Not decrypting data is intentional - not like it's broken - recovery _is not_ supposed to do that.

So, instead, we offer SeedVault, an OS application that lets you fully backup and restore data in SUW like any OEM would - seamlessly. Not sure why you'd _need_ data access from recovery.

TWRP is _not_ the way if you want our support.
[Samsung Galaxy S 4 Unified Development] vip5912:
Sorry but you are wrong: SeedVault can backup only 30% of application data because many applications have "No Backup" flag in Manifest.

I use official recovery and "adb pull (encrypted data partition)" by PC for full backup.
[Samsung Galaxy S 4 Unified Development] white eneloop:
Done and working, That was quick and easy.

I don't remember how often I wiped and installed los without success with both los recovery and TWRP. I did the format with TWRP now, I'm still more used to it. (I thought "wipe" and "format" is the same...lesson learned. :))
[Samsung Galaxy S 4 Unified Development] npjohnson:
Last I checked it was implementing a full data backup option?
[Samsung Galaxy S 4 Unified Development] vip5912:
I checked today version LOS (06.01.2022) and i have only:

- backup data

- restore data

- backup apps

- Storage backup (experimental): Backup my files (photos, videos, music, ...)

- Expert settings: Unlimited app quota

It's all :-(

Not backuped apps: Brave, DAVx, FairEmail, ownCloud and so on.
[Samsung Galaxy S 4 Unified Development] x2k13:
You beat me to it, I was about to say this. I already tried a backup with Seedvault, but the really important app data can't be backuped (e.g. Messengers like Wire et al., banking apps, 2FA apps) because they refuse backups in manifest. Again, useless to fully backup the device. For now, the only way to securely backup everything is, believe it or not, TWRP.
[Samsung Galaxy S 4 Unified Development] x2k13:
Nope, not true, checked on last build.
[Samsung Galaxy S 4 Unified Development] white eneloop:
Unfortunately the issue is still not solved. After installing 3 Apps I got the same error when installing the 4th one (Google Photos). Also the camera app told me I have to install a sd-card because of less space. After rebooting the error is gone and I was able to install google photos and take pics with the cam. For some reason this error is going and coming back again. :unsure:
[Samsung Galaxy S 4 Unified Development] npjohnson:
I have no clue. That doesn't happen here.
[Samsung Galaxy S 4 Unified Development] white eneloop:
Ok it seems I have found a solution:

Changed file system to F2FS (data and cache partition)

Installed los and gapps -> encryption error after first boot, ok not comptatible

Changed file system back to EXT4 (again both)

Installed both -> still working even after 15 installed apps

Either I was just lucky today or there is a difference between "format data" (without changing the file system) and changing the file system forth and back.
[Samsung Galaxy S 4 Unified Development] npjohnson:
This tells me you're using TWRP - there's the issue. Lineage recovery formats ext4 correctly.
[Samsung Galaxy S 4 Unified Development] therob2:
Hey guys.

I have 4 different Galaxy S4 GT-I9515 spread over my family in use (bought used 2 years before), all with LOS18.1 and quite recent builds (<2 months old) and also freshly flashed latest modem files.

4 people are fine with the battery performance (about 2 days from 100% to 10% with moderate usage) but one person reports about very low battery performance mostly less than 1 day (or even less than 12 hours, although I already bought an original new one) and also with very low usage . The user reports this behaviour only after enabling the usage of 4G for network carrier (after having just 3G enabled before, which providers in germany now switched off). I made some measurements with GSMBattery and some screenshots, see below. I did not become wiser with these results.

Maybe someone can say anything about it (or has values for comparison)? Did I miss any (expert) settings in LOS on this device? Just having bad 4G reception I would say should not be the reason, as 3 others devices "living" just 200m apart (with even worse reception) looks much better. Any comments or things I could check?

-----

image 1: with 2G and moderate active usage (~1h) 100%->60% within 12h

image 2: with 4G and nearly no usage (just lying around) 100%->30% within 9h

2G/3G: 4G:

some more screenshots for 2G:

some more screenshots for 4G (I can't see problematic values - you?):
[Samsung Galaxy S 4 Unified Development] pocketrule:
I'm not that big battery expert. I have also used GSam Battery for checking what's draining my battery. And I don't really understand the values you've posted. It's often disappointing that the information is (cannot) not clearer stating what's the specific problem behind System / Kernel - drain. You get a list, for which you have to be a system expert to understand it.

What you could do in addition is:

1) Check kernel wakelocks (if you don't see it, you have to activate it separately, the description is somwhere on GSam homepage.

2) Check if the devices have different modems from which ones work better with the mobile network than others.

3) According to your description, but just to exclude a (potential) problem: As you've got several of the same devices: Exchange the batteries
[Samsung Galaxy S 4 Unified Development] therob2:
Thanks @pocketrule. I am even not certain about something wrong in the System/kernel drain (in deed I doubt it, because under 2G and 4G nearly the same). But yeah, I also find what you said. Could you recommend any better App (without root) to get things clearer?

1) found this, have to try. 2) Can't find different modems (same models, same firmware). 3) I already bought 2 new batteries for this device - without change (and I see clear difference in 2G/4G mode).

Hm...don't know where to go further :-/
[Samsung Galaxy S 4 Unified Development] pocketrule:
Maybe BetterBatteryStats could do the same. It's often considered the gold standard for battery measurement, but I find it even harder to read. According to the xda thread, additional permissions can also be granted with adb. It's an extensive thread, so if you have questions regarding the output, maybe you can get help there.

I think that's outdated, you probably need additional permission (hidden_api_policy)

The instructions are even built-in (didn't remember that)

Check out Menu -> more -> enable more stats

Unfortunately, neither do I. It's weird that the power consumption is so much higher with this one special device, whereas your other devices behave differently. Then it may be a hardware defect (antenna, modem,sim card tray)? You could exchange the devices temporarily to check that.
[Samsung Galaxy S 4 Unified Development] Wezyk123:
I have a problem starting the system. The touch buttons are not working on my i9505. So the smartphone stays on the lineageos logo. Can I disable checking for them at system startup.? I will add that the original system starts up.
[Samsung Galaxy S 4 Unified Development] rw_on_xda:
- no expert here -

but I guess you phone doesn't boot correct.

I need no working buttons to get past the logo. I only need to key something in when the PIN for my mobile card is ask...
[Samsung Galaxy S 4 Unified Development] Wezyk123:
Since the touch buttons stopped working, only the Samsung system starts, so some dependency must be present.
[Samsung Galaxy S 4 Unified Development] pocketrule:
Yes, that can be assumed. But maybe the touch buttons stopped working because of a boot error (which can be caused by an error during the flash) as @rw_on_xda mentioned it.

You could check out the great tutorials from @Retrial ⚡S4 Unified Collection & Guides⚡ especially CLEAN INSTALL CUSTOM ROM.

There you will also find suggestions for troubleshooting.
[Samsung Galaxy S 4 Unified Development] Wezyk123:
This is not an error due to a bad flash

I am flashing samsung rom in Odin, which starts but the touch buttons also do not work. Unfortunately, lineage os won't start.
[Samsung Galaxy S 4 Unified Development] pocketrule:
Have you done a cache wipe in samsung recovery after the flash?
[Samsung Galaxy S 4 Unified Development] rw_on_xda:
anyway something went wrong !

I would suggest to do the following:

- flash lastest stock

Samsung Galaxy S 4 (Snapdragon) Firmware Download GT-I9505 Free Download

Samsung Galaxy S 4 (Snapdragon) Firmware Download GT-I9505 Free Download ⭐ Official and fast update ⭐ Max speed and free download ⭐ Best Samsung Galaxy website

samfw.com

- exactly follow the instruction from here to flash LOS:

Install LineageOS on jfltexx | LineageOS Wiki

wiki.lineageos.org

- report
[Samsung Galaxy S 4 Unified Development] Wezyk123:
I replaced the USB port from the donor's phone. The touch buttons are working. Lineage os is starting.
[Samsung Galaxy S 4 Unified Development] Trubbs:
There must have been a short circuit
[Samsung Galaxy S 4 Unified Development] saturnfreeway:
Hi everyone -

S4 Value Edition i9515 with official 18.1 and official recovery.

I get the occasional screen flashes, a pink-ish flash and the screen turns off and locks. Can turn it back on after a few seconds. It happens randomly. Also, I have started using a bigger capacity battery, which worked fine on stock OS.

Any ideas about what could be the problem here? Thank you!
[Samsung Galaxy S 4 Unified Development] rw_on_xda:
some (me included) user with i9505 were suffering from it in LOS 17 (see the thread there).

Nobody knew what it exactly was.

It was said it could be a bug in Android and would, before LOS 18 were out, "survive" in LOS 18 too.

I'm unsure, but I mean I had ~fixed~ it with a clean install
[Samsung Galaxy S 4 Unified Development] vip5912:
I had this bug in 17.1 and have it in 18.1 (after clean install) :-(
[Samsung Galaxy S 4 Unified Development] hawki:
Can't install apps? Says I don't have space, but there is over 8 gb available? Anyone else have this issue? any fix?
[Samsung Galaxy S 4 Unified Development] npjohnson:
got files on your /sdcard filling storage up?
[Samsung Galaxy S 4 Unified Development] saturnfreeway:
Thank you for this. At least it's good to know that this is a known bug for some users. It happens so randomly. Luckily randomly enough to not be super annoying.

Clean install here too. I guess it a trade-off for being able to use Android 11 on a phone this old, which is still awesome.
[Samsung Galaxy S 4 Unified Development] pocketrule:
When I've had this error, I've had to wipe everything, especially /system and /data
[Samsung Galaxy S 4 Unified Development] x2k13:
But that will completely wipe the phone which I doubt is what he intended.
[Samsung Galaxy S 4 Unified Development] pocketrule:
I've seen this too, but don't exactly remember when it occurred the last time. Obviously the error is hard to detect (and maybe much harder to fix).

If you see this error from time to time, you could try to catch a log for this event. You have to be rooted and you need an app that can save the logcat, e.g. syslog (which I use), or MatLog. As soon as possible after the bug, you can save the log. Maybe a developer can determine the reason for the bug (and the hopefully fix it).
[Samsung Galaxy S 4 Unified Development] Mowca:
Hello I wanted to install opengapps - mini. how does rom behave with these gapps? (for jfvelte GT-I9515/L)
[Samsung Galaxy S 4 Unified Development] kurtn:
Mini contains pixel launcher. Installing that is regarded as a bad idea.
[Samsung Galaxy S 4 Unified Development] Mowca:
What do you propose to install?
[Samsung Galaxy S 4 Unified Development] pocketrule:
According to LineageOS GApps the nano package is recommended from Open GApps, or smaller. Smaller would be pico, which I install, if I have to use Open GApps. For Lineage 18.1, MindTheGapps are the official recommendation.

But whenever possible, I use BiTGApps - they don't include that extremely annoying google setup assistant.
[Samsung Galaxy S 4 Unified Development] Mowca:
what apps are in MindTheGapps?
[Samsung Galaxy S 4 Unified Development] npjohnson:
equatable to pico
[Samsung Galaxy S 4 Unified Development] Mowca:
the rest of applications such as Gmail, Google Map, etc. need to be downloaded from the Play Store?
[Samsung Galaxy S 4 Unified Development] npjohnson:
Yes
[Samsung Galaxy S 4 Unified Development] rw_on_xda:
I'm trying to flash QK1 bootloader and modem on an I9505 running last LOS 18.1, but without success.

I followed the Guide here:

https://xdaforums.com/t/s4-unified-collection-guides.4224933/#post-84378261

I've done it before in 2019 with the single packages and Odin 3.10.7 with success, but now BL and Baseband stays the same on PK2 even when odin reports success/pass without any errors.

so I went on and tried the single packages for modem/BL and also the combined package with Odin 3.10.7, 3.12.3 and 3.14.4

all combinations went through without error's, but nothing has changed !

about phone and Device Info HW tell it's still PK2 (from stock I flashed before LOS 18)

Idea's ?

Do I need to go back to stock first ?
[Samsung Galaxy S 4 Unified Development] js-xda:
Want to share an update on this one: It appears the high frequency of the reboots was linked to the hardware of the specific S4. I bought another used S4 and have set it up identically (on purpose not installing a backup while I had tried clean install on the above mentioned S4 already) and it had so far in two months time one such reboot. Also, I observe on the originally affected S4 some WiFi issues using it now differently. So, maybe something is actually broken.

I have an update on this one: I can by now say for sure for both S4s with and without GApps that waiting notifications (LED blinking) appear to cause heavy battery drain. E. g. a battery that should last from experience easily 2 more days is suddenly drained over night. Notifications can be from various sources - e. g. WhatsApp or Signal (running with GApps - so not the above mentioned known issue).

Before starting further investigations - is this something anyone else is observing as well?
[Samsung Galaxy S 4 Unified Development] Trubbs:
I had that.

In Odin there is a reboot option as I recall - turn that off.

Then flash BL and modem, then flash BL and modem AGAIN. Then reboot

Worked for me, I don't know why
[Samsung Galaxy S 4 Unified Development] rw_on_xda:
@Trubbs

thanks for support.

Had it flashed multiple times with reboot off...

nada !

reflashed stock and afterwards QK1 BL/modem with success already on the first try.

weird !

and now on LOS again with QK1
[Samsung Galaxy S 4 Unified Development] Retrial:
There is a note in my guides about it. I don't know if u checked this out but I am glad you finally make it worked (y)
[Samsung Galaxy S 4 Unified Development] rw_on_xda:
well, I read the note.

I guess you mean: double flash ?

Did that, but no success
[Samsung Galaxy S 4 Unified Development] Retrial:
Yeap and also the note below that. Sometimes it happens, I still didn't found the reason of it. Anyways the job is done 😛
[Samsung Galaxy S 4 Unified Development] rw_on_xda:
one question to that part:

why is 4G in LOS recommended ?

any pointer ?

hint: I don't use mobile data and wifi only for data transfers
[Samsung Galaxy S 4 Unified Development] Retrial:
I am not sure but I guess because of security holes in 2G and 3G networks. In my country some providers slowly disable these networks.

You can switch from 4G tho if you want to.
[Samsung Galaxy S 4 Unified Development] satrang:
Hi,

I recently tried to bring my old phone (i9505 model) back to life and use it as a gps navigator in my car, however I have a strange issue with gps. When I am home or in my car and I am not moving, the device can fix my position in a reasonably short time but as soon as I'm driving I lose gps fix and navigation is laggish. I tried to use google maps, maps go and sygic (offline) but I can't get my position, gpstest can see about 20 satellites but when I'm on the road driving I can barely get my position once every 3 or 4 minutes.

I tried to search in this thread but I couldn't find any solution. Can anybody suggest a workaround or should I try another rom?

Thanks
[Samsung Galaxy S 4 Unified Development] rw_on_xda:
@satrang

just some shots in the dark:

- check your "Accelerometer", Tab "Sensors" in the app "device info HW" (author: A. Efremov)

- use mapfactor navigator (offline cards), it has a (fast) GPS too

don't know if it will help much ...
[Samsung Galaxy S 4 Unified Development] satrang:
Thank you for the tips.

I just realized I posted in the wrong thread 🤦‍♂️🤦‍♂️🤦‍♂️🤦‍♂️🤦‍♂️

I'll try this rom too.
[Samsung Galaxy S 4 Unified Development] przemekSiemens:
Hello everyone, how to set a small connection bar so that it does not cover navigation and other applications