yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 i9505 Original Android Development] navipar:
Here's what I did to flash stock:

1) wiped everything using TWRP 2.8.7.0, even formatted /data.

2) rebooted in bootloader-mode, then flashed the latest stock firmware using Odin 3.10.7 selecting the file on AP. I didn't change anything else on Odin.

3) flashed successfully, without errors, let it boot, then shut it down and took off the battery for 5min.

4) reinserted the battery and finally went through the first setup and installed my apps from playstore.

If you want logs, I posted them many times on the other roms 'thread, here they are:

[ROM] Untouched Google Play Edition 5.1:

http://xdaforums.com/showpost.php?p=62867662&postcount=336

http://xdaforums.com/showpost.php?p=62873324&postcount=347

[JDCTeam][STABLE][5.1.1]

http://xdaforums.com/showpost.php?p=63519800&postcount=1328

http://xdaforums.com/showpost.php?p=63533427&postcount=1346

Now I just got another random reboot (stock firmware), after an uptime of 12 hours. Here's the last_kmsg attached (had to split in 2 files because of forum size limits).

I think the real problem might be the eMMC failing, or RAM? Based on these lines (lots of "mmc1: CMD52: Command timeout" throughout the log):

[B][COLOR="Red"][ 6242.319976] mmc1: CMD52: Command timeout[/COLOR][/B]

[ 6242.392974] [TouchKey] cypress_touchkey_led_work 484 Touchkey is not enabled.

[ 6242.703033] cypress_touchkey 16-0020: cypress_touchkey_interrupt_set_dual: This module support dual, 5

[B][COLOR="red"][ 6242.878875] Unable to handle kernel paging request at virtual address fffffffc[/COLOR][/B]
[Galaxy S 4 i9505 Original Android Development] dcd1182:
flash stock twice.

uncheck auto-reboot

after the first full stock flash in odin completes, hold power+voldown to reboot right back to download mode

flash the whole stock rom again

sometimes this is required or some firmwares dont take - dont ask me why

remove your microsd card?
[Galaxy S 4 i9505 Original Android Development] O-T:
[MENTION=6948588]navipar[/MENTION] [MENTION=480805]dcd1182[/MENTION]

Repeated flashing isn't needed:

NEVER use Reboot to enter Download Mode preparing to flash using Odin!

Follow ALL steps here http://xdaforums.com/showthread.php?p=63442664

Reboot is only good for enter Recovery.
[Galaxy S 4 i9505 Original Android Development] navipar:
Actually, I didn't mention that clearly in my "what-I-did-steps". When I said "rebooted in bootloader-mode", I mean I powered off the phone using the option "Power off" of TWRP, then booted in bootloader-mode pressing POW and then holding VOLDOWN + HOME.

Do you think I should reflash stock again?
[Galaxy S 4 i9505 Original Android Development] portaleus:
In your situation, I would flash the latest stock (from the phone country) with the .pit file. Only way to get back to a full original stock.
[Galaxy S 4 i9505 Original Android Development] navipar:
Flashed two times using .pit file. Always booted Odin on phone powered off. I unticked auto-reboot, and when flash finished I took out battery, then reinserted it after 2 min.

Result: random reboots, logs full of "mmc1: CMD52: Command timeout".

I decided to try another battery, but nothing changed.

Here are a few lines of the last random reboot:

[ 717.154724] mmc1: CMD52: Command timeout
[ 717.160949] mmc1: CMD52: Command timeout
[ 717.355621] cypress_touchkey 16-0020: cypress_touchkey_interrupt_set_dual: This module support dual, 5
[ 718.878234] Unable to handle kernel paging request at virtual address 6f43584c
[ 718.878387] pgd = dd064000
[ 718.878478] [6f43584c] *pgd=00000000

I think it's 100% faulty hardware, I bet on the eMMC failing.

If you want, i can share the whole logs of the last random reboots
[Galaxy S 4 i9505 Original Android Development] portaleus:
Sorry, if a full restore with pit repartition did not work, this is beyond my knowledge. You could try with another PC, but I doubt it is the cause.
[Galaxy S 4 i9505 Original Android Development] finallau:
I need help with updating my TWRP recovery version on my S4.

I just flashed the recovery using Odin with TWRP v2.8.6.0 but when I boot into the recovery it showed v2.8.5.0

The latest is 2.8.7.0 but the available download file is in .img and I could not flash it using Odin because it's not in .tar

I tried going into the recovery to flash the .img but in recovery it's not available.

Any solution?

Should I make my own .tar zip file? Is so how do I make one? And is it safe to rename any recovery files?
[Galaxy S 4 i9505 Original Android Development] navipar:
Boot in recovery, connect usb cable, it should show up as mtp in windows, copy the .img file in the root of your internal storage, disconnect cable, then it should show up as .img in twrp, ready to be flashed
[Galaxy S 4 i9505 Original Android Development] finallau:
ahh I got it already. I just found out there's a 'Image' option in the install panel and it showed up and I'm on latest TWRP now!

Thanks anyways!
[Galaxy S 4 i9505 Original Android Development] tomurbanowicz:
Would You explain me, why the incoming call pictures are under semi-transparent black square?? What a silly idea...
[Galaxy S 4 i9505 Original Android Development] a103:
Why are you posting the exact same question in multiple threads? If you don't like it move on, no one invited you to flash the ROM. No need to comment...
[Galaxy S 4 i9505 Original Android Development] tomurbanowicz:
Only that have you to say in this case?
[Galaxy S 4 i9505 Original Android Development] a103:
The last I heard Android was open source so you're welcome to change it the way you want. Point is we should be grateful not crib for what we're getting free. Especially when it's EOL from Samsung.
[Galaxy S 4 i9505 Original Android Development] tomurbanowicz:
I reported it many times. Many people change this with GravityBox, but there is no the way. I changed it in incall_touch_ui.xml in CM11 by decompiling and compiling the file., but I will not do it indefinitely. Is it that difficult to change it natively?
[Galaxy S 4 i9505 Original Android Development] NoPlayBack:
Wow... that's a hint which i will try as well... what exactly did you do? Tried to search in Opt-Thread without success...
[Galaxy S 4 i9505 Original Android Development] NZgeek:
I'm having difficulty finding the posts as well. It was around 23-25 Oct, but I can't find the attachments.

The best I can do is upload the files I've got. You'll have to take my word that they're exactly as I downloaded them. You can get them at https://mega.nz/#F!ds9V0TYT!RROOq65vKNKKTxbQyKs5TQ.

I found that you need to flash JDCTeam-BT-fix.zip first, then BT fix.zip. The non-JDC zip tries to change permissions of a file that it doesn't install, which causes an installation error. The JDC zip installs this file, preventing the error.

I still get occasional crashes, but that's one every few days at worst.
[Galaxy S 4 i9505 Original Android Development] jeffrey1296:
Youtube video bug

In the official snapshot "cm-12.1-20151116-SNAPSHOT-YOG7DAO1JN" i notice a youtube bug that is also present in the cm13/aosp6.0 roms, i dont know if this a youtube bug, but its annoying! Im watching a video and i cant go back or option or change volume after a while of watching videos, only way to regain function is to restart app which is really annoying, again this is already present in the unofficial jdct's rom cm13/aosp6.0. Other than that im loving every single thing about these roms, im grateful i have the latest but please, i hate dealing with that issue.
[Galaxy S 4 i9505 Original Android Development] NoPlayBack:
I'm starting to get happy... carefully.... have paired with Samsung Gear Live and did never have such a good BT-connection with the phone... you me be my hero of the day :cool:

- I found the corresponding post in the opt-thread... the best keyword for searching is "libbt-vendor"

- i did not run your files... i did extract the libbt-vendor.so and used ES-File-Explorer and copied that file to system/vendor/lib (after saving the original one). Before that i did switch of BT and restarted the S4.

So... keeping finger crossed... will report after some longer timeperiod of testing...
[Galaxy S 4 i9505 Original Android Development] DarthKeizer:
Just one question, where you at CM 13 :)?
[Galaxy S 4 i9505 Original Android Development] a103:
You'll need to wait. No ETA please.
[Galaxy S 4 i9505 Original Android Development] audianer:
is there any way to change the cpu voltage with the stock cm kernel?
[Galaxy S 4 i9505 Original Android Development] NoPlayBack:
see post 1872....

was running around with BT activ, Smartwatch connected, several times handsfree in car connected. 2 times i used music-streaming via BT from the S4 to the car.

Started Navigation via "Ok-Google" and did have handsfree connected in parallel... everything worked perfect.

That exchange of that one file seems to be the solution in my case... was waiting for a fix like that since months.

NZgeek... thanks for that hint.

Will report if something changes....
[Galaxy S 4 i9505 Original Android Development] jabarel:
Fix CAST SCREEN please doesent work very good !
[Galaxy S 4 i9505 Original Android Development] tomurbanowicz:
Noise suppression

How to switch off "noise suppression" in CM12.1? My interlocutor on the second line hears the echo. In the CM11 is the option for switch it off.
[Galaxy S 4 i9505 Original Android Development] NoPlayBack:
Now i am convinced.... did not reboot the S4 or smartwatch since i have exchanged that file, and still having rock-solid connection. Yesterday i used Run.GPS while running, which creates a constant BT-data-flow from the S4 to the watch in order to display heartrate, time, distance. In parallel the polar-heartrate was connected to BT. Everything is running smooth.
[Galaxy S 4 i9505 Original Android Development] finallau:
My microphone sometimes wont work

I tried both during calls and sound recorder same issue

Any solution?

Im on latest nightlies full wiped with TWRP 2.8.7.0 with HOJ2
[Galaxy S 4 i9505 Original Android Development] dcd1182:
bt should be fixed in tonights nightly
[Galaxy S 4 i9505 Original Android Development] portaleus:
Thanks your your always nifty cherry-picks!

Do you think the patch sets are going to fix both the connectivity issue (crashes) and the wakelock issue?
[Galaxy S 4 i9505 Original Android Development] dcd1182:
dont thank me, i didnt author the changes.

i heard its fixed, but my jf is broken. dont know anything more.
[Galaxy S 4 i9505 Original Android Development] sh4z:
BT really fixed?? This ROM finally is 100% stable then :D

Any chance all audio can be routed through the fx processor/eq ? Pandora and Spotify for example do not apply eq Apollo music works though..
[Galaxy S 4 i9505 Original Android Development] portaleus:
Unfortunately, it seems that BT still is not fixed: https://jira.cyanogenmod.org/browse/NIGHTLIES-1922

edit: I advice everybody to wait the next nightly as other bt-related patch sets are coming http://review.cyanogenmod.org/#/c/122317/
[Galaxy S 4 i9505 Original Android Development] cookiiee94:
Gesture typing doesn't seem to work on the snapshot release for me, is this a known issue?
[Galaxy S 4 i9505 Original Android Development] NZgeek:
It could be related to the GApps package you're using. I know that OpenGApps had problems with the swipe keyboard libs for a while, but those should be fixed in their current nightly builds.

If you continue to have problems, or might be worth looking at third party keyboards on the Play Store. I've been using the official Swype keyboard for a couple of years, and personally prefer it over the Google and AOSP swipe keyboards.
[Galaxy S 4 i9505 Original Android Development] sv2hqx:
deleted
[Galaxy S 4 i9505 Original Android Development] MikeRWK:
Whenever I uninstall Email and Exchange they reinstall on their own, how do i prevent this?
[Galaxy S 4 i9505 Original Android Development] sronweb:
If you have Titanium Backup you can try to "freeze" the unwanted apps. It should not appear when you re-flash the rom.
[Galaxy S 4 i9505 Original Android Development] dcd1182:
try tonight...
[Galaxy S 4 i9505 Original Android Development] EtenNewbie:
Removing system packages

Hi,

I have attached a flashable update zip script I use to remove unwanted packages after each rom update (I have stripped it down to just remove Email and Exchange). If you use Cyan Delta, you can set it to run this after the update too.

The zip uses an Edify script, you can find more info here:

http://xdaforums.com/galaxy-nexus/themes-apps/tutorial-making-flashable-zips-edify-t1611615/post25136429

Just install the zip from recovery to remove them.

Ian

--
[Galaxy S 4 i9505 Original Android Development] EtenNewbie:
... and I've actually attached something this time.

;)
[Galaxy S 4 i9505 Original Android Development] MikeRWK:
THanks :d
[Galaxy S 4 i9505 Original Android Development] NoPlayBack:
Looks good so far.... now running with my Smartwatch and without manually exchanging files by myself....

I'm happy :)
[Galaxy S 4 i9505 Original Android Development] SnoopyDog:
Which gapps package do you use? For me, with the latest open gapps pico, Blutooth refuses to turn on...
[Galaxy S 4 i9505 Original Android Development] NoPlayBack:
I started with clean install on cm-12.1-20151107-NIGHTLY-jfltexx & tk_gapps-modular-nano-5.1.1-20150920-signed.

Did run some time with that combination, and then updated CM. Dec 01 and then Dec 03
[Galaxy S 4 i9505 Original Android Development] Besthiroeu:
Can anyone help me out with correct Gapps to go on with this CM 12.1? I've tried ones from Open Gapps website but all of them give me fc-s so I can't add Google acc. Link in the first post is broken. Also I've tried with snapshot and latest nightly and on both I get same issue (so it's gapps problem obivusly).

EDIT: This ones work:

https://github.com/cgapps/vendor_google/blob/builds/README.md
[Galaxy S 4 i9505 Original Android Development] Maxpawner:
TK Gapps ☺

Gesendet von meinem GT-I9505 mit Tapatalk
[Galaxy S 4 i9505 Original Android Development] dcd1182:
if tk gapps is working for everyone then i guess go for it, but you're doing something wrong here. opengapps works.
[Galaxy S 4 i9505 Original Android Development] walttheboss:
Does anyone have the problem with google voice typing taking over the mic so that Skype can no longet access it? It seems that either voice typing works or Skype/WhatsApp and not both.
[Galaxy S 4 i9505 Original Android Development] Bkam13:
Hi,

I can't install GAPPS on my GS4 i9505.

I installed the latest cm12.1 build, everything is fine when i boot, but i don't have gapps. And when i try to flash gapps, it doesnt works, and i have black screen with "Gmail has stopped" "Play Store has stopped" "Play Service has stopped" etc etc and it never ends, i need to hard reset then recovery, wipe and flash rom again. But i can't get play store etc on my phone then !! I've tried many differents gapps (open gapps, stock, full, micro, pico etc" and it's never working.

What can i do guys ?? Plz help me :) !
[Galaxy S 4 i9505 Original Android Development] nightcrow:
Same problem here, seems to be something wrong with Open Gapps. Just tried TK GApps and it booted just fine. Wipe first before installing TK GApps.
[Galaxy S 4 i9505 Original Android Development] Bkam13:
Still bugging ! Can't boot properly. Ofc i'll be able to install and older version of cm and gapps, but i don't understand why i can't boot properly without getting those bugs. Anyone else ?
[Galaxy S 4 i9505 Original Android Development] demon2112:
im on build 4.12.2015 and having random reboots and having pink screens and reboot,anyone now a fix?
[Galaxy S 4 i9505 Original Android Development] dcd1182:
omfg. logs. seriously. i am not gonna respond to every post with "logs" anymore, im just gonna stop caring to fix jf. even if you didnt read it every 5 posts, just how did you think somebody is gonna help you?
[Galaxy S 4 i9505 Original Android Development] andiroid99:
Just wanted to add this about removal of Sim-Lock

Have a I9505 international LTE with Stock Rom where the trick with the *#-Codes does not work, so I flashed CM12.1 Nightly. "Galaxy Sim Unlocker App" shows: No EFS Folder found. The Foder ist there (/efs). Also tried Network Code to unblock - did not work. Tried nightly from yesterday, same. Only after flashing back to an unrooted stock-rom the Network-Code works to unlock the Sim. So my conclusion: CM and Sim-Unlock does not work togehter at the time beeing.
[Galaxy S 4 i9505 Original Android Development] NoPlayBack:
Now, after several days of using... i did have 2 crashes with BT.

Which is much less then i had before.

After stopping bt-share-service, and restarting BT, i immediately get a message:

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

Build fingerprint: 'samsung/jfltexx/jflte:5.0.1/LRX22C/I9505XXUHOB7:user/release-keys'

Revision: '11'

ABI: 'arm'

pid: 10721, tid: 10741, name: BluetoothAdapte >>> com.android.bluetooth <<<

signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0

r0 b3537de0 r1 00000000 r2 af29968c r3 af2aa378

r4 aec90940 r5 000102e8 r6 00010474 r7 00000000

r8 12d63940 r9 b4a1ac00 sl 00000000 fp 12d914a0

ip b6d711f5 sp aebff9b8 lr af24549b pc 00000000 cpsr 600e0010

backtrace:

#00 pc 00000000 <unknown>

#01 pc 000fa499 /system/lib/hw/bluetooth.default.so (vendor_ssrcleanup+12)

#02 pc 0003ab0f /system/lib/hw/bluetooth.default.so (bte_ssr_cleanup+38)

#03 pc 00003cb1 /system/lib/libbluetooth_jni.so

#04 pc 000e2ceb /data/dalvik-cache/arm/system@app@Bluetooth@Bluetooth.apk@classes.dex

What does this mean? Is this useful for somebody?

After restart of phone everything is fine again.
[Galaxy S 4 i9505 Original Android Development] callito:
I got also Bluetooth crashes... After weeks I found out, that the Vodafone app causes these issues. There are several apps out there that causes Bluetooth issues. It is really weird, because those apps didn't even use Bluetooth. I tried every gapps out, but just deinstalling the app solves the crashes.

Perhaps you don't use the Vodafone app, but another which causes this issue.

I read a lot of forums to get that clue. I think there was also a fuel price searching app, which causes this crash.

Yes fuel for the car.

So just delete some apps and see if this problem is gone. It is hard to find.

I found out the Vodafone app by searching the whole log with catlog and watch which app were active before the problem occurs.

Greetings

Edit

The problem has something to do with permission since 5.1. On other Rom s there is no crash but the Bluetooth connections are slowing down. This is not so obvious, so a lot of users did not recognised this immediately...

Edit:

Just looked into my log, and found out that "Berlin airport app" with same behaviour. So just delete the app and everything normal again.

Gesendet von meinem GT-I9505 mit Tapatalk
[Galaxy S 4 i9505 Original Android Development] callito:
How to find out the app which causes Bluetooth problems:

So just install catlog (root required)

And look into the log.

Fist there is normally some message like first pic. This happens after several hours.

After some additional hours there is something like this

And after some time bt share crashes.

So you have to look which app is causing this problem in the first picture. In this example it is the airport app.

Just delete this app and be happy

Greetings

Gesendet von meinem Nexus 5 mit Tapatalk
[Galaxy S 4 i9505 Original Android Development] Malakor:
Hey Guys, please don't kill me for asking this.

Got an old Nightly on the S4 and wanted to update to a new one.

When i install the .zip file, do i have to re-setup the whole phone again with new gapps, or will everything be the same?

It's the damn phone of my Mother and i can't be asked to set it up completely again...

Would be nice if you could tell me.

Best regards

Malakor
[Galaxy S 4 i9505 Original Android Development] a103:
If you just flash the zip you don't have to set it up all over again. You didn't mention how old the nightly is though. If it is too old (ie other than lollipop ?) then full wipe is recommended to avoid issues and in that case you'll have to set up the phone again.

That's why I mess only with my phone [emoji12], I can do whatever I can [emoji12] [emoji12] [emoji12]. Just kidding mate, Hope this helps.
[Galaxy S 4 i9505 Original Android Development] simonbigwave:
no you don't have to resetup everything. i usually just dirty flash new nightly over old. and maybe at most wipe cache and dalvik. if you run into any problems then wipe system also is ok. just don't wipe data. no need reflash gapps usually. but if you are on old gapps you may want to flash the latest OpenGapps if your old gapps start playing up.
[Galaxy S 4 i9505 Original Android Development] Malakor:
Thanks to both of you!

The Nightly is the same Android version.

Think I gave her the Phone in October.

Will do the Update tomorrow then.

Have a good night guys and gals!

Best Regards

Malakor
[Galaxy S 4 i9505 Original Android Development] paolopaulpaul:
The micrpohone is very low :(
[Galaxy S 4 i9505 Original Android Development] sh4z:
Anyone else having problems pairing Bluetooth devices since 20151211 update?

I am using the latest Tk-gapps and they are working for me :)
[Galaxy S 4 i9505 Original Android Development] NemesisQ3A:
Me too. Bluetooth is working, i can download my mi band data for instance but I can't find bluetooth devices. Waiting for a fix on new nighties. [emoji1]

Inviato dal mio GT-I9505 utilizzando Tapatalk
[Galaxy S 4 i9505 Original Android Development] sh4z:
I can turn the BT off and on maybe twice before the BT on off button becomes unresponsive. The refresh button also only animated once or twice subsequent refresh for devices in BT menu the circle stops turning.
[Galaxy S 4 i9505 Original Android Development] VanAndel:
Same problem here: when Bluetooth is on it will not connect with devices it previously worked fine with. When trying to turn bt on and of it hangs and becomes unresponsive. Hope this gets fixed soon since I use bt daily. Thanks!
[Galaxy S 4 i9505 Original Android Development] sh4z:
Pretty sure it'll be something simple it was working a few nightly's back. Using headphones for the time being lol
[Galaxy S 4 i9505 Original Android Development] demon2112:
had random reboots,with kernel auditor i turned off mpdecision and now all is fine

should i enable hotplugging or someting?
[Galaxy S 4 i9505 Original Android Development] danyrd:
hi! I have a update to today's bulid. 20151216. but no changelog in cm web and no download avalible in cm web. Thats a offcial build?
[Galaxy S 4 i9505 Original Android Development] tryanDLS:
WARNING: Be aware that if you have you phone set set to tell you when new nightlies dowloads are available, nightlies for ver 13 are now available and showing up in the list. There's really no clear distinction in the zip names, other than cm-12.1-xxx vs cm-13.0-xxx, and if you inadvertently install a 13x nightly, you can mess up your phone. This happened to me, as I have been just taking the new nightly once a week - the upgrades *had* been seamless, until I blindly went ahead and took the 1st 13x nightly that showed up without noticing. Phone was borked - Play Services continuously crashed, and no amount of trying to go back to the previous 12.1 nightly would fix it. Never could get past blueman after that. Had to wipe clean and d/l install recent GAPPS and the 120115 nightly.

In theory, this would have worked correctly, if I had caught the transition to 13x and installed updated GAPPS at same time, per this http://www.cyanogenmod.org/blog/a-marshmallowy-cm
[Galaxy S 4 i9505 Original Android Development] sh4z:
Next, Next, Next, OK? .... lol

Trust me I'm a dolphin.exe

Users who flash nightly releases should have a backup tbh. This isn't the first time CM has offered updates from a different version. If you don't have GAPPS installed (Base CM12.1 Nightly) perhaps the upgrade process would work successfully?

I might test this transition tonight :D Will update this post later.

@tryanDLS It's worth noting though! Thanks for testing the upgrade process with gapps ^^
[Galaxy S 4 i9505 Original Android Development] myawan:
CM13 nightlies for i9505????????