yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 Mini Original Android Development] s0be:
WARNING! This ROM is for the SPH-L520 variant only!

/*
* Your warranty is now void.
*
* We are not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at us for messing up your device, we will laugh at you.
*
*/

[ROM]

[What works]
Boot Animation
Wifi/Teather
Bluetooth
Basic Sound
Adb/Usb/Charging
Camera
Notification LEDs
FM Radio
Calls

[Doesn't work right]
NFC
LTE/SMS/MMS/
GPS
IR Remote

[Untested]

Everything Else

[Bugs]
Camera crashes on startup if switched to external storage - to fix crash, go to settings -> apps -> all -> camera -> clear data

[Recovery]

[What works]
Nandroid backup
Nandroid Restore
Install Rom
Factory Restore

[Untested]
Everything else

[Bugs]
None Known

This is based off of arco's work at:

https://github.com/CyanogenMod/android_device_samsung_serranoltexx/tree/stable/cm-11.0

and all the rest of upstream.

Here's my github for gpl compliance/etc.

https://github.com/s0be/android_device_samsung_serranoltespr

Installation

Here's a simple list of what you need.

serranoltespr-cwm-6051.img

cm-12.1-20150815-UNOFFICIAL-serranoltespr.zip

CM12.1 Google Apps (Optional?)

THIS ROM ONLY WORKS WITH THIS RECOVERY. Do not use recoveries for other devices with the sprint s4 mini

Make sure to take a nandroid then wipe /data before installing this rom.

I'm too lazy to write proper install instructions, if someone would like to, I'll happily add them to this post.

I'm too lazy to update anything after this point. It's all old.

XDA:DevDB Information

CM11.0 for Sprint Galaxy S4 Mini, a ROM for the Samsung Galaxy S 4 Mini

Contributors

s0be

ROM OS Version: 4.4.x KitKat

ROM Kernel: Linux 3.4.x

Based On: CyanogenMod

Version Information

Status: Beta

Created 2014-03-04

Last Updated 2014-03-26
[Galaxy S 4 Mini Original Android Development] s0be:
3/10

- First release.

- Waiting on goo.im account

3/11

- Resync'd with upstream

- no local changes

3/17

- Still using the 3/11 upstream

- Switched to init.carrier.sh from stock

- Switched to ril files from stock

- Lots of other changes to make the previous 2 things work.

- Now feature complete, stable, daily driver, etc.

3/23

- Resync'd with upstream

- First build based off of grand unified serrano vendor tree

- Based on arco68's device tree.
[Galaxy S 4 Mini Original Android Development] arco68:
Welcome s0be! Been a while since I've seen you around, so it's great to see you here! :) Let me know if you need anything.
[Galaxy S 4 Mini Original Android Development] s0be:
Will do. Just flashed my recovery. If you check my github you'll see a .patch file for the cm msm8930 kernel tree. I suspect my change in the gpio's was, in fact, exactly as wrong as I suspected. When I booted the recovery, the phone vibrated continuously. I did a nandroid backup and that seemed to work, backing up to sdcard1. Going to alter my change to the gpio defines for the cypress touch panel so that it always uses 24 for sda and 25 for scl.

I was actually amazed at exactly how LITTLE invasion I had to do into areas outside devices/samsung/serranoltespr to get it to compile. The kernel was the only place any non trivial changes were required (aside from extract-files.sh, but that's so device/rom specific that it's not a surprise at all).
[Galaxy S 4 Mini Original Android Development] s0be:
Woohoo, working recovery!
[Galaxy S 4 Mini Original Android Development] s0be:
Getting closer. I've built a recovery that has working usb. Now I'm trying to get a kernel that both boots CM11, and has working USB.
[Galaxy S 4 Mini Original Android Development] arco68:
I've added serranoltespr to the build barriers. Without it the HAL for camera, gps and a few other things won't build.

Which reminds me, I need to add it to vendor barrier as well. :)
[Galaxy S 4 Mini Original Android Development] s0be:
Cool, thanks. Once I get a msm8930-common kernel working with USB, I'll sync up. Are you a kernel-msm8930-common maintainer? Should kernel patches go through github fork/pull requests or ??
[Galaxy S 4 Mini Original Android Development] arco68:
Yeah, I'm the only maintainer. :) Patches usually goes through gerrit: http://review.cyanogenmod.org/#/q/status:open,n,z

I have elevated permissions on that repo, so I sometimes bypasses gerrit and pushes patches directly to github. Especially when there's a bulk of patches that needs to be merged.
[Galaxy S 4 Mini Original Android Development] s0be:
I have an 'only mostly broken' build done, is anyone actually waiting for this, or should I get it feature complete first. Currently missing:

3g/Cell calls.

Basically, LTE works, or you can force 1x, and calls work, no 3g at this time. Everything else seems to work.
[Galaxy S 4 Mini Original Android Development] s0be:
only 1 patch so far is even remotely intrusive, and it's just updating the serial_msm_hs driver (which is disabled for the other 8930 boards). Now that I have USB charging working, I'm going to verify I need that change and likely drop it if not. I'm fine with the slow gerrit review.
[Galaxy S 4 Mini Original Android Development] arco68:
I noticed that the US variants might need their own base defconfig, so you're using msm8930_serrano_usa_defconfig, right? If so, make sure CONFIG_USB_ANDROID_SAMSUNG_MTP is not enabled. That should probably give you working USB.
[Galaxy S 4 Mini Original Android Development] arco68:
Try with this base config. I've adjusted the US variant one to match CM's defconfig.

I'll try to adjust BoardConfig in serrano-common so it selects the base deconfig based on variant.
[Galaxy S 4 Mini Original Android Development] s0be:
Oh, I just based it off of msm8930_serrano_spr_defconfig (which inherits cyanogenmod-serrano) then enabled the stuff to get USB going. The actual specific issue looks to have been needing:

CONFIG_MFD_MAX77693 along with the correct battery/charger/etc.

Here's my current 'working' spr_defconfig

# This needs cleaned up, I suspect a lot of this is unnecessary.

CONFIG_MACH_SERRANO_SPR=y
CONFIG_2MIC_QUP_I2C=y
CONFIG_2MIC_ES305=y
CONFIG_2MIC_QUP_I2C_GSBI11=y
CONFIG_AUTHENTEC_VPNCLIENT_INTERCEPTOR=m
CONFIG_KEYBOARD_CYPRESS_TOUCH=y

CONFIG_POWER_SUPPLY=y

CONFIG_CHARGER_MAX77XXX=y
CONFIG_CHARGER_MAX77803=y

CONFIG_MFD_PM8921_CORE=y
CONFIG_MFD_PM8821_CORE=y
CONFIG_MFD_PM8038_CORE=y
CONFIG_MFD_PM8XXX_SPK=y
CONFIG_MFD_PM8XXX_BATT_ALARM=y
CONFIG_MFD_MAX77693=y

CONFIG_PM8921_BMS=n
CONFIG_PM8921_CHARGER=y
CONFIG_PM8921_SEC_CHARGER=n
CONFIG_MFD_PM8921_CORE=y

CONFIG_FUELGAUGE_MAX17048=y

CONFIG_BATTERY_SAMSUNG=y
CONFIG_SEC_DEBUG=y
CONFIG_SEC_DEBUG_SCHED_LOG=y
CONFIG_SEC_DEBUG_SUBSYS=y

CONFIG_USB_SWITCH_TSU6721=n
CONFIG_SERIAL_MSM_HS=y
CONFIG_USB_CI13XXX_MSM_HSIC=y

The only broken bits right now are 3g/lte phonecall sms/mms handovers and notification LEDS.
[Galaxy S 4 Mini Original Android Development] arco68:
There's one base config for all variants, and one that's specific for each variant. For the EU variants, the base config is msm8930_serrano_defconfig. This is for stock ROM, so for CM I've adapted it and enabled custom bits in a new defconfig called cyanogen_serrano_defconfig.

The US variants seems to be using msm8930_serrano_usa_defconfig as their base config, and most of the things you added to the spr_defconfig should be enabled there already.

Add the defconfig I attached earlier to your kernel tree, and modify BoardConfigCommon.mk in serrano-common with

TARGET_KERNEL_CONFIG := cyanogen_serrano_usa_defconfig

The msm8930_serrano_spr_defconfig can be left as original without your changes. Only change there should be removing CONFIG_AUTHENTEC_VPNCLIENT_INTERCEPTOR, as afaik it's not used in CM.

Are you sure you have a notification light? None of the other variants have one.
[Galaxy S 4 Mini Original Android Development] s0be:
Yep, notification light works fine in stock. at least tri-color (r/g/b). Will switch to the .config you sent. When I tried with the original usa_defconfig, the phone wouldn't boot.
[Galaxy S 4 Mini Original Android Development] arco68:
Wow! Lucky you! :)

I'm pretty confident that's it's the same LED as in the regular S4 and the Mega, so you should be able to use this liblights: https://github.com/arco/android_device_samsung_melius-common/tree/cm-11.0/liblights

Also, you need to make the following changes to enable it: https://github.com/arco/android_dev...mmit/d002c6ee304e7caae71829b33135e26b5ea4e5f8

I'll need to figure out how to add this so it doesn't conflict with the variants that doesn't support it. Likely we need to move some stuff into device repos.
[Galaxy S 4 Mini Original Android Development] arco68:
Btw, is this a GSM or a CDMA phone? If it's CDMA that may explain the network issues you have.
[Galaxy S 4 Mini Original Android Development] arco68:
Ah right. It's a CDMA device. Yeah that will require some device changes. I'll look into it.
[Galaxy S 4 Mini Original Android Development] arco68:
Just downloaded the kernel sauce for SPH-L520. Seems like it's using msm8930_serrano_defconfig as base config, and not the usa one. I'll need to compare what's different from the 9195 kernel, and also probably merge some code changes.
[Galaxy S 4 Mini Original Android Development] nicholseric:
This seems to be where my build is failing. Can you advise? http://xdaforums.com/galaxy-mega/orig-development/rom-cyanogenmod12-20141203-t2963804
[Galaxy S 4 Mini Original Android Development] papikondalu:
I downloaded the zip file from the first post. The ROM size is around 200MB and the gapps is around 150MB. The total of 350MB is much smaller than the 1.xGB size of the stock ROM. A second download had also resulted in the same size. Since there are no MD5 details on the first post, I wanted to check before flashing the ROM.

The recovery is already installed.

Regards

-PK
[Galaxy S 4 Mini Original Android Development] arco68:
Around 200MB is normal size for CM.
[Galaxy S 4 Mini Original Android Development] papikondalu:
Thank you for a quick reply. ROM flashing was smooth. There was an alert about clock on first boot. However, after some updates and a reboot, the alerts have gone away. So far, the ROM looks good :) Also, with all the bloat gone, the phone appears to be very happy.

-PK
[Galaxy S 4 Mini Original Android Development] unvaluablespace:
I am using this phone as a dedicated "Smart remote" for my HTPC Setup, due to its built in ir blaster, and size. I have no need for the cell functions of this device (phone was bought used on ebay as a bad esn phone anyway). Is there any way to completely disable all cellular tech? I would prefer to essentially just turn it into a tablet, and would assume that doing more than just enabling "airplane mode" would increase battery life even further, for my case.

Other question is since my device is the sph-l520 variant, would attempting to install ROMs from the other variants of this device possibly brick the phone? as mentioned I have no care for the cellular hardware, so if that's the only major difference, it might be a plus for me, but I would like to keep all other hardware functional. Stupid question, I know, but I don't know what exactly using a ROM for another s4 mini type of device would do to this device. :)

anyone know when a lollipop ROM will be released for the sph-l520?
[Galaxy S 4 Mini Original Android Development] speedy1979:
You can enable airplane mode and then re-enable WiFi and or Bluetooth. The telephony radio will remain off.
[Galaxy S 4 Mini Original Android Development] unvaluablespace:
I asked for something more than airplane mode. it still asks for activation from time to time, and besides, I was just curious if there was a way to basically turn the device into a tablet only type device, with no radios to worry about. also, the airplane icon is annoying :P im not asking for anyone to go out of there way to make anything for me, just wondering if there are any custom roms or tweaks out there to completely disable the radio, no airplane needed. Thanks for the help though. :)
[Galaxy S 4 Mini Original Android Development] brranndon:
No APN specified on the device

This issue went away on it's own. Not sure why :o)

Thanks again for the great ROM Sobe.

Hi Sobe,

Fantastic ROM. Today, my wife started getting a message "No APN specified on the device."

I googled the APN settings, and found some values. I tried to edit, but the APN just disappeared when I save it. Sprint is my carrier.

Any suggestions?

Thanks!

Brandon
[Galaxy S 4 Mini Original Android Development] quanqw:
I can not connect my phone to pc via usb mass storage manager.
[Galaxy S 4 Mini Original Android Development] quanqw:
Please continue support this device. Thanks.
[Galaxy S 4 Mini Original Android Development] hibby50:
Any plans to update to 5.1? I would do it myself if I could get some guidance. All the features of twrp and ROM's seem to work except for hardware buttons and notification light
[Galaxy S 4 Mini Original Android Development] hackwoof:
rom question

When I boot my s4 mini I get a solid white screen after the boot logo. then nothing happens. I cannot boot into recovery either however I can boot into download mode. Any advice?
[Galaxy S 4 Mini Original Android Development] ryancell:
I have a friend who I believe is going to give me this device as he no longer uses it, but since goo is down, none of the links work but gapps. Any chance of a mirror for the rom and recovery? I'd be curious to flash this to make it a spare multimedia device/mp3 player. Thanks!
[Galaxy S 4 Mini Original Android Development] vmuserfl:
Can someone point me to a location to download the right files?

I tried a set of files and I answered up with apn bugs, no SMS, horrible battery usage, poor connectivity, etc.

I'm definitely interested on moving to a rom that works and its not loaded with garbage.

Thx
[Galaxy S 4 Mini Original Android Development] vmuserfl:
Bueller.....Bueller.....

Anyone?
[Galaxy S 4 Mini Original Android Development] s0be:
http://www.erley.org/s4mini/cm-12.1-20150815-UNOFFICIAL-serranoltespr.zip

install using THIS recovery:

http://www.erley.org/s4mini/serranoltespr-cwm-6051.img

really, really, really. Any other cwm recovery from earlier than that will NOT work right installing cm-12.0/12.1. Trust me on this. I spent lots and lots of time debugging stuff because cwm was not handling things right.

Sorry it took me so long to drop a build of 12.1 for everyone. the 12.0/12.1 upgrade has been complete crap for us, unfortunately.

TLDR Version:

That build 'works'. It has all of the stagefright fixes merged, and should be 'safe'. What won't work:

GPS sometimes works on 3g, and if the moon phase is right, on LTE (This is Number 2 on my 'trying to fix' list).

NFC Doesn't work (I have a fix, but accidentally backed it out trying to fix something else and don't have a backup of it. Will pull it back together and it will be fixed. This is Number 3 on my 'fix' list)

LTE/3G handover is wasted. Basically, you'll have full bars and an exclamation point. Go into APN settings and click on another carrier's LTE settings and that will trigger the telephony stack to teardown and rebuild the LTE session and you'll suddenly have working LTE. I've been trying to fix this before releasing a build to the public of 12.0/12.1, but have decided that a bad build that isn't prone to the stagefright bug is better than waiting some unknown number of days for a fully working build.

The long version......

I promise you, I am still using this device as a daily driver, and still on 12.1 to remind myself to work on it. I did the 12.0 build right as 12.1 was being cut (and I was flying to seattle for a job interview). I got it to basically the state it's in now, and have been using it for months without (major) issue. I don't miss any calls when the 3g/LTE stuff is screwed up, but I can't use GPS. I'm now a full time employee at Cyanogen (on the OS side, I maintain Lettuce, Bacon, and Tomato) which basically means I spend 50-60 hours a week working on phone bugs, which makes it REALLY REALLY hard to motivate myself to work on another one after I get out of work. On the upside of this, however, as I work in this stuff all the time, I'm becoming much much much more familiar with the way these pieces fit together, and once I figure out WHY things aren't working right now, it shouldn't take me long to fix them.

No, I don't want to see any bug reports on this build, and no, I won't give an ETA on when stuff will be fixed. I hope to release a new build on monday that shows up as -OFFICIAL instead of -UNOFFICIAL. You can thank arco86 for anything that is fixed in this build that was broken in any of the previous builds listed in: http://www.erley.org/s4mini/ as I haven't made a single change since the 06/18 build. If you watch that last link, it's where I dump builds that I deem 'good enough for government work' but not 'good enough for people to actually use'.
[Galaxy S 4 Mini Original Android Development] Okijaamaka:
please i am lost

how will i install these parts

http://www.erley.org/s4mini/cm-12.1-20150815-UNOFFICIAL-serranoltespr.zip

install using THIS recovery:

http://www.erley.org/s4mini/serranoltespr-cwm-6051.img

is it by using odin?

please do you have instruction on how to install it? thanks
[Galaxy S 4 Mini Original Android Development] s0be:
I haven't used windows/odin for this, but you should be able to use odin to flash the serranoltespr-cwm-6051.img to the recovery partition, and put the zip file on the phone. Reboot into recovery and flash the zip file (and gapps, make sure the gapps is for 5.1/5.1.1).
[Galaxy S 4 Mini Original Android Development] Okijaamaka:
Please can you explain a better way especially "Reboot into recovery and flash the zip file (and gapps, make sure the gapps is for 5.1/5.1.1"

I really need to enable 3g 2g

seems kinda new to me:(
[Galaxy S 4 Mini Original Android Development] s0be:
Steps:

1. Make 100% sure you have a Sprint S4 Mini (Serranoltespr).

2. Put the zip file linked above and gapps-5.1-arm-2015-07-17-13-29.zip from https://github.com/cgapps/vendor_google/tree/builds/arm on your internal storage on phone

3. Reboot into bootloader (power phone off, hold volume down, home, and power button). Acknowledge that this may void your warranty

4. Use odin to flash clockworkmod recovery linked above to the recovery partition (can't give you better steps here, I don't have odin)

5. reboot into recovery (power phone off, hold volume up, home and power button).

6. TAKE A BACKUP

7. format system, data, and cache. This will essentially be a factory reset.

8. Install cm-12.1-UNOFFICIAL-serranoltespr-xxxxxxxxx.zip

9. install gapps-whatever.zip

10. Reboot phone.

There are additional steps you can take to backup your mms/sms/phone stuff listed in the other serrano threads. I never do any of them.
[Galaxy S 4 Mini Original Android Development] Okijaamaka:
clockworkmod recovery extenstion "img" could not be identified by odin,

only .xml and .pit

so how will i go about it please?
[Galaxy S 4 Mini Original Android Development] s0be:
There are many guides out there on how to convert a .img to a tar.md5 that odin recognizes. I don't have a windows machine to use odin, so I am very hesitant to provide a odin image that I haven't tested.
[Galaxy S 4 Mini Original Android Development] Kannz2:
Hi does that say SMS and lte doesn't work?
[Galaxy S 4 Mini Original Android Development] vmuserfl:
s0be:

Thank you for a clean install of Cyangenmod for the sprint version of the S4 Mini. I have been running it for 24 hours, and its super clean, fast, void of all Bloatware, and it seems to work 100%. Phone, SMS, MMS, LTE, WI-FI, GPS, Bluetooth, (dont know about NFC) everything works!!! Battery usage is minimal compared to the overweight version that came with the phone.

Follow the simple cookbook that s0be put together, and....get ready to be very happy with your S4 Mini

Keep up the great work!!!

Congratulations on the new gig with Cyan.

RM
[Galaxy S 4 Mini Original Android Development] zacktack:
Here to post my support, really look forward to the mms, lte, GPS fixes for this. This rom is great on battery.
[Galaxy S 4 Mini Original Android Development] vmuserfl:
LTE and GPS worked flawlessly for me. mms....not so much.

I am definitely eagerly waiting for s0be to work out the details of the mms. With this rom there will be no concern about the battery lasting all day (and night)
[Galaxy S 4 Mini Original Android Development] zacktack:
yeah, the battery life is fantastic. I just have to constantly reset my apn settings to get lte going and using google maps for me is a...weird...experience. It shows me my starting location, route, and ending location but it never updates. My location doesn't move so I have to just navigate it as if it was a real map ie. look at where we are, find it on the map, give the driver directions etc. I am very happy with this rom otherwise. I have the blacked out theme and this rom together with that makes my battery last foreverrrrrrr.

vmuserfl: are you on the 20151012 version of this rom?
[Galaxy S 4 Mini Original Android Development] vmuserfl:
I was on the 20151012 version of the rom. I had to go back to the bloated OEM rom because I was missing all the mms regarding the holidays.

Hopefully the Cyan rom will be completed by early next year.
[Galaxy S 4 Mini Original Android Development] zacktack:
On the 20151205 build. Have had issues with obtaining root status on this. The only method I could find to enable it was using was using CF-autoroot and then flashing the correct custom recovery for this rom through odi but then I wind up being unable to flash 5.1 xposed framework without getting into a bootloop which is an issue that I had not found in previous builds of this rom. I think it relates to the method I had to use to reroot the phone. The plus side is the lte issue is totally fixed.
[Galaxy S 4 Mini Original Android Development] DarkFrenzy:
[MENTION=753345]s0be[/MENTION] will this boot in galaxy tab 3 sprint version with zimage from cm11 ? afterall tab 3 and s4 mini hardwares are same, only zimage size is defferent.
[Galaxy S 4 Mini Original Android Development] Kannz2:
Is the link at the first page the most recent release?20150815 also am I able to restore back to stock if I have to many problems with it?
[Galaxy S 4 Mini Original Android Development] Criminalcoffee:
I'm hoping to use this phone for some time. Thanks for all the work and support for this device.
[Galaxy S 4 Mini Original Android Development] Criminalcoffee:
I believe the most recent build is from December ... 20151205. s0be posted a link to where the most recent builds are located.

I'm very new to all of this, just using stock rom, unrooted up until a couple days ago.

Following s0be's instructions in this thread (plus a little googling); I was able to flash the recovery, create a nandroid backup and install this custom ROM.

So far everything seems to be working good. MMS isn't working 100% of the time but it's mostly functional..I'm trying to play around with it.

Besides that, it's super clean and efficient. I hope to continue using this daily so let me know if there's anything I can do to help. Thanks again and here's hoping this device continues to get a little love. Much thanks to s0be and arco86! :D
[Galaxy S 4 Mini Original Android Development] Kannz2:
Where would I download the most recent version? Sorry I may have a few posts but I have never been able to find mirrors or anything unless it was post on the first page of a roms post or was linked further down but I didn't see it.
[Galaxy S 4 Mini Original Android Development] Criminalcoffee:
Post #196 in this thread is what you're looking for. I not allowed to post links yet.
[Galaxy S 4 Mini Original Android Development] Miantiaodagege:
Request for updates, thank you!