yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 i9505 Original Android Development] pocketrule:
Have you checked @Retrial's S4 Unified Guides & Collection? Link is 'hidden' in first post. In S4 Unified Guides & Collection, search for 'CLEAN INSTALL CUSTOM ROM' and follow these steps. That should work. If not, you could go back to stock rom (you can find instructions how to do that also in S4 Unified Guides & Collection). In both cases you'll loose your data on your phone, so you should make a backup of your important data before.
[Galaxy S 4 i9505 Original Android Development] Platypus Enthusiast:
I've never read the Unified Guides but I know how to clean install a custom rom by heart. I've already flashed the stock rom and it still didn't work. I have a suspicion that it's caused by the fact that I forgot that I used a Magisk boot image that's meant to be used on version 5 on version 6, but I can't be sure, because I flashed the rom and GApps multiple times and still not booting into the system.
[Galaxy S 4 i9505 Original Android Development] pocketrule:
Sometimes, it's neccessary to wipe cache / dalvik in stock recovery after going back to stock
[Galaxy S 4 i9505 Original Android Development] Platypus Enthusiast:
Someone reminded me that I'm using a Magisk boot image from version 5 that I'm flashing onto version 6, so I flashed the stock rom, then installed TWRP, then flashed the custom rom and GApps without Magisk, but it's still not booting into the system ;-;

I don't have a lot of options now.
[Galaxy S 4 i9505 Original Android Development] Platypus Enthusiast:
I flashed my stock rom, then flashed 17.1, then flashed 18.1 version 5, and it's all good now. I'm never updating to a new version.
[Galaxy S 4 i9505 Original Android Development] Platypus Enthusiast:
Whoops, spoke too soon. Still booting to recovery.

Edit: So I tried updating my recovery because I still use the JDCTeam's fork of TWRP (the pure black one with red), so I loki patched the latest TWRP image, and wiped and flashed, then rebooted, it's still rebooting to recovery. When I flashed LineageOS 16 so I could update to 18.1 version 6, it booted successfully but not 18.1. It's almost as though it's not booting any previous roms (other than the stock rom), because it used to boot version 5 just fine.
[Galaxy S 4 i9505 Original Android Development] Platypus Enthusiast:
Okay, so after days of effort, more than a dozen uses of Odin for the stock rom, countless investigations of the problem, it turns out the problem was a defective/corrupt GApps build.
[Galaxy S 4 i9505 Original Android Development] JohnnyGui:
The YouTube app keeps crashing for no reason. Even when just scrolling through the home page.

How to fix this?
[Galaxy S 4 i9505 Original Android Development] Retrial:
@JohnnyGui What GApps you use?

Try MindTheGApps or BiTGapps. If it still crashes switch to Official LineageOS or crDroid and let me know if it's ok.
[Galaxy S 4 i9505 Original Android Development] JohnnyGui:
I have GApps pico. I really like the small size of pico, isn't there any way to fix this with GApps?

If not, how do I delete GApps and install another app package?
[Galaxy S 4 i9505 Original Android Development] Retrial:
Follow my dirty installation guide to switch GApps.
[Galaxy S 4 i9505 Original Android Development] JohnnyGui:
Thanks, will do.

I have another question; since 18.1 the vibration intensity is VERY low. I have followed the googled instructions on how to increase it but the mentioned menu only shows on/off switches, no bars to adjust the intensity whatsoever.

How do I do this?
[Galaxy S 4 i9505 Original Android Development] Retrial:
Via Root and Kernel Manager. On Official OptLos and crDroid vibrations should be normal.
[Galaxy S 4 i9505 Original Android Development] side:
Good evening and happy new year people.

V7.0 is released with updated Android11 revision, security patches etc while random application / gapps crashes are fixed.

Android12 ............here we go!!
[Galaxy S 4 i9505 Original Android Development] sjamie:
You did it again, Samsung Samurai. Thank you! 🙏🏽
[Galaxy S 4 i9505 Original Android Development] Concept48:
I missed this one !!!!
[Galaxy S 4 i9505 Original Android Development] Concept48:
Newest Rom for your Samsung S4 !

Follow this development if you own any of the supported models.

This message was posted to help categorize the latest builds on top in the search ..
[Galaxy S 4 i9505 Original Android Development] Platypus Enthusiast:
Sorry I'm late, everyone. But New Year, and new Android! This year will go well (probably).
[Galaxy S 4 i9505 Original Android Development] Lone_Wolf21:
Need that rom for sm-n910f samsung note 4 plz
[Galaxy S 4 i9505 Original Android Development] side:
if you donate me that device, i will do it
[Galaxy S 4 i9505 Original Android Development] musicapincia:
Thank you very much for your work
[Galaxy S 4 i9505 Original Android Development] stuie1952:
Bravo side !! You just keep on delivering. Long may you reign :-)
[Galaxy S 4 i9505 Original Android Development] stuie1952:
Would be grateful if you could expand on this. Where to obtain kernel manager etc.
[Galaxy S 4 i9505 Original Android Development] Platypus Enthusiast:
I assume he meant Franco Kernel Manager, Smartpack Kernel Manager or similar stuff like that.
[Galaxy S 4 i9505 Original Android Development] Retrial:
Yes I am talking about these and similar kernel managers.

However I don't know if these kernel managers will work correctly with this ROM/Kernel.

Try the Buffcore Kernel Manger (Adiutor) which is modded Kernel Adiutor to work with this ROM/Buffcore Kernel (I also attached it below). Give root permissions. I remember it has vibration configuration.
[Galaxy S 4 i9505 Original Android Development] Boltie:
Just did a full wipe and installed v7.0 along with GApps ARM 11.0 Nano. Google Play won't let me install apps. It complains about insufficient storage. Will reinstall and double check everything but before I do, any quick ideas as to what I did wrong?
[Galaxy S 4 i9505 Original Android Development] Retrial:
Try MindTheGApps. Links on my S4 Unified Collection & Guides.
[Galaxy S 4 i9505 Original Android Development] Boltie:
I wiped and loaded MindTheGApps instead but the phone setup would crash upon startup. I then wiped and went back to Open GApps and it is ok this time round. Very strange. Ah well, appears to be working atm. Thanks for the suggestion.
[Galaxy S 4 i9505 Original Android Development] funk192:
Not sure if I should ask here or in a separate thread, but it's related. Does this mod add that fast charging 1900? my battery is swollen now. Not blaming the mod, probably my error, just asking for information. Is there a way for the mod to make it so that I can power on my phone without a battery?

I use my phone as a security camera with it always on and prior it would always lose charge and I had to let it turn off and charge again. So I thought why not mod the phone to use LineageOS with it's improved battery drain.

I succesfully installed LineageOS18.2 around 2 weeks ago on my Galaxy i9507 Optus branded phone and set it to the most power savings performance setting. I thought I'd check if my method of using a USB extension cable would also cause the phone not to charge that fast, and indeed it was slow charging only a few hundred mA. I changed the cable to a longer one and then it was showing fast charge of 1900 in the devinfo app. I thought great! The phone can always be on and won't lose charge.

All looked well until after 2 weeks I noticed my large 5800mah battery swollen allot. I am not sure what caused it, it's old. It wasn't swollen before this, it's most likely because it's always on and charging at such a high current. I then changed to my smaller non-original battery and the same happened within half a day. I still have my original battery and not going to use the samsung 2 amp charger, but swap to my 1 amp charger to see if that helps stop the issue.
[Galaxy S 4 i9505 Original Android Development] Trubbs:
I can't speak to device charging specifics but you say the battery is old, they only take so many charging cycles (around 1000 Max as a benchmark). A common symptom of end of life is swelling of the battery. I would say it is unlikely to be due to the rom.

Restricting to 1A charger is a good idea to restrict input current.

For this use case I would advise looking at a raspberry pi zero as a solution (apologies OP), the awesome S4 can do so much more 😃
[Galaxy S 4 i9505 Original Android Development] funk192:
Hmm, so far all three batteries expanded, not all batteries were completely used but it occuring to all three is strange, and 2 within a day. I'm going to have to buy a new battery to test lol. One of those batteries certainly did not have 1000 charge cycles, but then again that one wasn't OEM.

Any idea if there is any shortcut to power on without a battery?
[Galaxy S 4 i9505 Original Android Development] pocketrule:
That's not possible. You can power on the device only with a battery insert.

If you want to have your device constantly charging without damaging the battery you can:

- buy a chargie - you'll have to invest additional money, but that would be cheaper in the end than buying several new batteries - and safer (no exploding battery)

- root your device and try to find an app that stops charging, when reaching a threshold (like the chargie does). I tried to get one run some years ago, but it was too complicated for me... And I don't know if there's a working solution for the newer android versions.

- Find a battery charger / cable-combination that delivers less current than a proper setup. Ideally the charger delivers only as much as needed to keep the charging status (should be about 450 mA).
[Galaxy S 4 i9505 Original Android Development] funk192:
Thanks! I went with the root and battery charge limit app and that is working, just have to wait and see what occurs when the new battery arrives. For the moment using the slightly swollen battery and set it to keep charge at 50%. It seems to be working, starts charging at the selected ranges and stops charging at the limit.

Also, I was able to find a cable and charging combination was a shorter USB cable with another short extension cable. The lowest ma current that would allow charging without making the battery lose all power was around 660ma and sometimes 700-800ma. I'm not sure what governs the charge current as sometimes plug/unplug it changes.

P.S. Been years since I tried to root my phone, and didn't realise things have changed where that CF Auto Root app no longer worked for me and failed and phone went into recovery odin mode. I had to reinstall my TWRP to get it working again. SuperSU didn't work, then tried Magisk and that worked.

edit: perhaps should move my replies and question to another thread/topic if possible since the whole topic has changed, or delete.
[Galaxy S 4 i9505 Original Android Development] theoreoboi:
will this work with sgh n045 variant though it doesn't support it?
[Galaxy S 4 i9505 Original Android Development] side:
theoritically if u remove the assert check from the zip, it will work...i guess...Do it , try to boot and if it not boot give me the last_kmsg so i can port it
[Galaxy S 4 i9505 Original Android Development] pocketrule:
That's great news! As I'm interested too, would you mind sharing which solution do you use actually.

Yes that's a bit confusing. It may happen that your device changes charging current every time you plug in the same charger. Obviously the phone tries to detect, which power supply is connected and how much current it delivers, and depending on the current mood, it chooses different values...

Our discussion is a bit off topic indeed, but still interesting. Doing a quick search, I couldn't find a better thread.
[Galaxy S 4 i9505 Original Android Development] funk192:
Sure! I used this app: https://play.google.com/store/apps/details?id=com.slash.batterychargelimit It automatically asked for root privileges from Magisk. I am using https://play.google.com/store/apps/details?id=com.pas.webcam for the webcam software. Although I did have a weird issue where once it would detect a recharge cycle the phone screen would turn on and stay on. IP Webcam supposedly requires some permissions above a certain android version. I changed it to only "black" the screen.

You could use the app itself to record but I am using AgentDVR on another PC to record the stream. I did also try to run Linux on the same phone using different methods but most didn't allow Agent DVR to run, one method did but once I tried adding the rtsp stream it would crash on my phone due to "illegal instruction" error.

More on www.reddit.com/r/ispyconnect/comments/sjzinn/trying_to_get_agent_dvr_server_working_on_samsung
[Galaxy S 4 i9505 Original Android Development] JohnnyGui:
Is it safe to update from version 6.0 to 7.0 without completely reformatting the device?

If yes, what should I exactly delete in TWRP settings before installing the newer version? Sorry if this has been asked before.
[Galaxy S 4 i9505 Original Android Development] Retrial:
Follow the Dirty Installation Guide in my S4 Unified Collection & Guides thread.
[Galaxy S 4 i9505 Original Android Development] Aussiewaterdragon:
Magisk 24.1

Maybe it's me (usually is) but can't install this version of Magisk on the Galaxy S4 GT-I9505 A12. Tried as both ZIP and APK and get "unsupported /Unknown image format" installation failed

Any ideas out there, have installed successfully with Magic hidden from prying apps on my Oneplus 7 A12, ASAUS zenfone 3 ZS570KL A8, and a Galaxy tab S4 A10
[Galaxy S 4 i9505 Original Android Development] Aussiewaterdragon:
PS. Magisk is still running as 23.

Think there could be something non-standard with the boot image
[Galaxy S 4 i9505 Original Android 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
[Galaxy S 4 i9505 Original Android Development] Bmax1855:
I am having the exact same issue. Keeps saying insufficient space right after fresh install. Tried different gapps packages, same result. Then got suspicious and tried to download any file from the default browser, and it keeps crashing right before download. Problem is Rom related because it is the same with clean rom install without gapps.
[Galaxy S 4 i9505 Original Android Development] side:
about gapps...keep in mind guys that while your device is stay at 16gb internal storage, gapps packages are getting bigger and bigger...please stay at the minimal package of gapps ...no jflte* rom will be able to make your 16gb internal storage bigger
[Galaxy S 4 i9505 Original Android Development] pocketrule:
What do you mean by "clean rom install"? Does that include formatting data (which has to be confirmed by typing "yes")? Please make sure you follow the steps as @Retrial has written down in his 🗃️S4 Unified Collection & Guides📚
[Galaxy S 4 i9505 Original Android Development] carlos974:
How much space does the system partition have for you?

For me system partition: 2.65 Go
[Galaxy S 4 i9505 Original Android Development] Bmax1855:
i dont remember exactly but it was around that for me as well. I had checked if it was system partition size and it wasn't that.
[Galaxy S 4 i9505 Original Android Development] Bmax1855:
i meant wiping everything(including data) and installing the rom fresh
[Galaxy S 4 i9505 Original Android Development] side:
yall ready?
[Galaxy S 4 i9505 Original Android Development] side:
New update at drive link <3
[Galaxy S 4 i9505 Original Android Development] Chase Whittemore:
Google Play keeps saying i don't have enough storage to install apps, even though i have close to 10gbs free. I used OpenGApps Pico. Not sure what to do here.
[Galaxy S 4 i9505 Original Android Development] pocketrule:
Friendly advise: Before asking, always read OP to check if there are common issues AND read the posts of the last days / week. Often, these posts contain information about excactly your problem.
[Galaxy S 4 i9505 Original Android Development] Platypus Enthusiast:
Does anyone else dirty flash an update then reboot to find the app permissions completely screwed up? Did just that when I checked 8.0 came out, dirty flashed, everything went fine, then when trying to install Magisk, it spat out a process error because it couldn't access my boot image. Even the default file manager doesn't have the perms. Only the default browser asked the for the permissions (that's how I installed the Magisk app). I'm clean flashing the roms from now on.
[Galaxy S 4 i9505 Original Android Development] Platypus Enthusiast:
Update: Flashed the rom plus GApps, finished the few minute long initial boot, then rebooted back to recovery just like the last time I was here.

Edit: Will try out BiTGApps and MindTheGApps

Edit2: Forgot to format data, whoops, I'll see if it worked 🤞. If it didn't I'll need help

Edit3: It worked, installed my favorite modules. Also what happened to the built in terminal app? It used to be there in previous versions.
[Galaxy S 4 i9505 Original Android Development] pocketrule:
It has been taken out of the rom with the following explanation here:

"We removed it, it wasn't very useful, as SELinux blocked most of it's functionality behind neverallows."
[Galaxy S 4 i9505 Original Android Development] sjamie:
You are such a ROM god!
[Galaxy S 4 i9505 Original Android Development] John D J:
Side, what can I say, other than thank you for such a beautiful job of v8. Absolute perfection. Thank so much.👍👍
[Galaxy S 4 i9505 Original Android Development] CLOECUD:
Have an S4 i9505.

I am getting a "cannot mount /system" error when trying to flash Magisk23.4.zip (renamed from Magisk23.4.apk) using TWRP version 3.6.1_9.0, and have attempted to remedy it as follows:

- Wipe Dalvik, System, Data, Internal Storage, and the data after rebooting recovery

- Re-flash Optimized LineageOS18.1 v8.0

- Re-flash MindTheGapps

Any suggestions? Maybe flash Magisk23.4.zip BEFORE MindTheGapps?

(The same problem is occuring with Optimized LineageOS18.1 v7.0 as well.)

:mad:
[Galaxy S 4 i9505 Original Android Development] Retrial:
Have you tried to flash latest Magisk 24.1? (You can find it in my collection-guides)

Also try to flash Magisk after the first boot of the ROM.
[Galaxy S 4 i9505 Original Android Development] Platypus Enthusiast:
You need to flash Optimized LineageOS first > Whatever GApps you have > Magisk. Also, not sure if it's relevant, but try going to the main menu in TWRP > Mount > and untick Mount system as read only, then flash.
[Galaxy S 4 i9505 Original Android Development] CLOECUD:
Thanks Retrial- good one!

Was able to flash the Magisk 24.1 zip from recovery after reinstalling the ROM and doing a system boot (before installing MindThe Gapps).

Before this, I re-attempted flashing both the Magisk 24.2 and 24.3 zips, but these still get the /system mount error for some reason.

I imagine Magisk 24.1 could actually be flashed AFTER MindTheGaps- this would be slightly more convenient ...

:cool:
[Galaxy S 4 i9505 Original Android Development] CLOECUD:
"Mount system partition as read only" is unchecked, but this doesn't seem to make any difference with Magisk 24.2 and 24.3 ...

Anyway Magisk 24.1 flashes OK as explained above.

:unsure:
[Galaxy S 4 i9505 Original Android Development] Platypus Enthusiast:
That's why I mentioned not being sure if it was going to help.
[Galaxy S 4 i9505 Original Android Development] scoobyjenkins:
I have a feeling that arm devices won't be supported by Magisk when renamed to .zip after version 24.1, I recall something like that being mentioned but not 100% certain. When later versions wouldn't work for me I assumed that was the case. I can update Magisk using the app but not flash it, so on a rom update I flash 24.1 then update in the app after.
[Galaxy S 4 i9505 Original Android Development] pocketrule:
There's no need for renaming anymore. You can flash the app with TWRP (in recent versions).
[Galaxy S 4 i9505 Original Android Development] side:
V9.0 is online <3 have fun
[Galaxy S 4 i9505 Original Android Development] stuie1952:
Many thanks for your ongoing efforts side. Already installed and working flawlessly :-)
[Galaxy S 4 i9505 Original Android Development] droi1:
Is this ROM more stable then Official LOS 18.1? I got 1-2 times per Week random Reboots so im searching for most stable ROM now.
[Galaxy S 4 i9505 Original Android Development] stuie1952:
No random reboots on jflte. Very stable
[Galaxy S 4 i9505 Original Android Development] Platypus Enthusiast:
What's new?
[Galaxy S 4 i9505 Original Android Development] +DS_DV+:
are there ota updates enabled ?

i want to get the phone to a family member - therefor it needs ota
[Galaxy S 4 i9505 Original Android Development] pocketrule:
no. For ota updates, you have to use the official rom
[Galaxy S 4 i9505 Original Android Development] +DS_DV+:
oh that is sad to hear - its so great that there is such a dedicated team keeping the device viable!

Really great in all regards!
[Galaxy S 4 i9505 Original Android Development] carsten888:
The defauft music player can't add songs to playlist. Keeps crashing when I try.

version lineage-18.1-20220505-nightly-jfltexx-signed

Is this more stable in a previous version?
[Galaxy S 4 i9505 Original Android Development] pocketrule:
That depends on what you mean by "previous version". If you mean any other LineageOS 18-Version, then no. If you mean LOS 17 and earlier very likely yes. If you like this music player you could check out Vanilla Music. IIRC it just looks and works the same as eleven but has the playlist function fixed.
[Galaxy S 4 i9505 Original Android Development] side:
hey mate :)

this is not official lineageos thread. u better ask here: https://xdaforums.com/t/official-lineageos-18-1-for-the-samsung-galaxy-s4-all-qcom-variants.4255313/
[Galaxy S 4 i9505 Original Android Development] stuie1952:
I am unable to add my own ringtones.

Any suggestions?
[Galaxy S 4 i9505 Original Android Development] carsten888:
copy the mp3's to your internal phone storage. When you select a ringtone, scroll to the bottom. There is an option to add a ringtone. Took me hours to find that. :sneaky:
[Galaxy S 4 i9505 Original Android Development] stuie1952:
Thanks for your prompt response. I did that and got the message "unable to add custom ringtone".
[Galaxy S 4 i9505 Original Android Development] stuie1952:
OK. Found it. I cannot add tones directly from the app. I have to add them via settings ->sounds before choosing them in the app. Thanks for your help :-)
[Galaxy S 4 i9505 Original Android Development] guilhermefr:
I've installed the latest v9.0 (+ BitGapps) and can already say that it's a great ROM! Congratulations to the whole team! (y)

However, there is one issue that I've just noticed with using an external SD card mounted as internal storage. Since my SD card is rather slow, it takes some seconds to get mounted on boot. The consequence is that the app icons on home screen that rely on the external sd card get automatically removed. On Optimized LineageOS16.0 (which I was using on my phone before), the icons for such apps were displayed in grey on boot (while the SD card was not mounted), before I was allowed to launch them.

I've also noticed that the quick settings action buttons that I had added on the status bar for these affected apps (like Mixplorer, which has quick actions buttons to start samba/FTP server, for example) are also removed by every restart.

Is there anything I could tweak to force the ROM to wait for the SD card to get mounted?

Any help would be greatly appreciated! Thank you in advance!