yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 i9505 Original Android Development] E_Ben:
Audio track skipping issue

See also my older posts with logcat here:

http://xdaforums.com/showpost.php?p=66474635&postcount=1236

I think I had misunderstood so far what has been discussed as BT issues concerning earlier ROM versions than 19/04. Now i see that there are actually two separate issues:

BT service stopped error message -> I have never experienced that with any Marshmallow ROM I tried (JDC opt. AOSP 6, CM13, JDC opt. CM13). As far as I understand, this bug has been solved in 19/04 version.

Track skipping issue is triggered when BT streaming and skipping track for first time after reboot -> I experienced this with every single one of the above Marshmallow ROMs, and with all versions of each, even with the very first ones. So this bug has been there all the time and has not been introduced with 19/04 version. -> A workaround is to make a phone call, then it works until next reboot.

My model is I9505 with XXUHOJ4 bootloader & baseband firmware.

Concerning the track skipping, I have tried to understand what is going on by comparing the BT_HCI sniffing logs logged in these two situations:

BT streaming after reboot, and the first skipping provokes endless automatic skipping until a phone call is made

BT streaming after the phone call has been made, i.e. after the workaround has been applied.

Actually, I couldn't really find hints that anything is wrong on the BT protocols, but [MENTION=5968293]side[/MENTION]: If it helps, I can send you the BT_HCI logs which you can analyze using Wireshark; maybe you can find something.

I have also observed a further - as I think very important - symptom:

Once the track skipping issue has been triggered and I switch off BT, the self-acting track skipping problem remains present even when I try to play music via the phone's speaker. The phone call workaround works also with a non-BT-call. So, maybe it is not really a pure BT issue, but rather only a side-effect of skipping a track during BT streaming? This suspicion is also supported by the other symptom which I reported earlier: Ringtones, alarm & notification sound are not played and also do not play when I try to set them in settings. They do work again after the workaround, so it is 100% connected with the skipping issue. It seems as if any sound that is played would have length 0, so nothing is heard and skipping to the next track occurs almost immediately.

For this reason, it sounds as a good idea to try to implement HAL as suggested here:

http://xdaforums.com/showpost.php?p=66501335&postcount=1294

Thanks for all your efforts!
[Galaxy S 4 i9505 Original Android Development] Superanretan:
flashing the current firmware is my wont with other devices with android for example, if I wanted to install CM11 ( 4.4) with stock 4.1 was unattainable , until you had to have CM10 on the bottom or the stock 4.3 . Perhaps here so dumb but I think better underneath have stock .
[Galaxy S 4 i9505 Original Android Development] side:
thanks for this post mate :)

Yes i already know about hal ....i will try to build for our device when i will sit again on my desktop(Tuesday) propably.

i believe i will manage to do it.This arco never dissappoints me :P one-man-army
[Galaxy S 4 i9505 Original Android Development] vkopzon:
Under this BT error condition, I've tried to navigate to music folder with file Explorer (ES with root permissions). Navigation works fine, but when trying to play a song, ES produce an read error! Could it be related to SD permissions (external SD in my case) ?! Will capture the error next time...
[Galaxy S 4 i9505 Original Android Development] electrolt:
Hey guys! What xposed version is available for this rom?
[Galaxy S 4 i9505 Original Android Development] E_Ben:
BT? track skipping issue

… unfortunately it is not the SD access rights. Also mp3 files on the internal SD and even in the root folder are affected, including all system sounds.

Which player is used when you click the file in ES file Explorer? When I open with ES internal player, it shows the situation as in screenshot: Strangely, it actually displays as if the song would have length 0, too. I attach screenshot2, which shows the situation for the same file, but after application of the phone call workaround. Here it shows the correct length of the title.
[Galaxy S 4 i9505 Original Android Development] mike2nl:
You have read the 2nd post?

---------- Post added at 08:07 AM ---------- Previous post was at 08:04 AM ----------

Possible OT, but i have seen precisely the same issue with the 5.1.1 ROM

version from JDCTeam with the USB Audio Player for an external audio card.
[Galaxy S 4 i9505 Original Android Development] E_Ben:
Now that you mention that, I think I had also observed the track skipping/track length 0 issue already on one of my last JDC opt. CM12.1. ROM versions.

I just found that the problem occurs precisely when the first bt-streamed audio file is stopped after reboot, meaning that pressing pause/play and changing the position within the track is ok, but once it has been stopped, no more audio files can be played, even if after stopping/end of the first file BT is switched off. All this is independent of the music player used to play the files, these can even be different players. The "first" file can also be e.g. a notification/alarm sound. Example:

Reboot

Optionally play audio files

Pair with BT headset or BT car stereo

Play "first" file using player A. Changing position within the track or pressing play/pause multiple times is ok, sound will behave as expected

Once one of the stop/ next / previous track buttons is pressed or if the end of the audio track has been reached, the disaster occurs.

Even if you now disconnect or switch off BT, audio files played in any audio player will appear as if they had length 0, until you make a phone call. After the call, everything is fine until next reboot.

By the way: (Maybe it is a noob question) Why do files which I copied to the root folder using e.g. root explorer disappear after reboots?
[Galaxy S 4 i9505 Original Android Development] electrolt:
Well yeah. No offence, but i wouldnt ask this kind of thing if I could find this. As I can read, in 2nd post there is only advice to not use xposed if u want to report bugs... Or I cant read lol :D
[Galaxy S 4 i9505 Original Android Development] Rhoban:
I am using Xposed framework v78 for some time on this rom.
[Galaxy S 4 i9505 Original Android Development] Der-Knuffi:
[MENTION=5968293]side[/MENTION]

Slightly OT: Does Omni also have a BT problem?

Gesendet von meinem GT-I9505 mit Tapatalk
[Galaxy S 4 i9505 Original Android Development] JoshDaWhite:
Great!! There is a guy working on slimsaber already. I am willing to test the omni build. Also,Exodus rom is a very...exquisite rom.unique. I believe that you guys should add it into your plans.

---------- Post added at 11:50 AM ---------- Previous post was at 11:50 AM ----------

Omni is based on aosp,so there shouldn't be any problems with Bluetooth.
[Galaxy S 4 i9505 Original Android Development] Der-Knuffi:
Well... JDC AOSP has problems, Dirty Unicorn does mostly not... at least for me, so I'm not so sure about that. But I will try Omni :)

Gesendet von meinem GT-I9505 mit Tapatalk
[Galaxy S 4 i9505 Original Android Development] Feedmeeeee:
When i tap download icon until i have this error. İ did very clean insta. Anyone had same issue ?
[Galaxy S 4 i9505 Original Android Development] dark'em:
Wait! We have omni foe s4? Let me google that :D I only found nightleys for nexus devices, the last for s4 are from 4.4
[Galaxy S 4 i9505 Original Android Development] Der-Knuffi:
No, we don't - at the moment. Side is thinking about it.

Gesendet von meinem GT-I9505 mit Tapatalk
[Galaxy S 4 i9505 Original Android Development] Greencrow:
hi whats ur theme and launcher? i like the batt bar thank u :D
[Galaxy S 4 i9505 Original Android Development] Feedmeeeee:
Ahah stock launcher but im using blacked out dark material theme ;)
[Galaxy S 4 i9505 Original Android Development] PePeMoke:
Nova launcher + moonshine pack FTW!! :)
[Galaxy S 4 i9505 Original Android Development] sjamie:
3 days later of tremendous Bluetooth usage and still no BT Share Failed errors or disconnects. Anyone else still getting them on 4/19 build? I used to get them numerous times per day on all previous JDC builds including AOSP.

I have no problem using ES to play mp3s stored on my external SD card. I use PowerAmp as my player. Not sure if that matters and my device is the i337.
[Galaxy S 4 i9505 Original Android Development] phil360:
Runs perfectly smooth. Awesome battery live. :good::good:
[Galaxy S 4 i9505 Original Android Development] sjamie:
Yes, I am quite impressed by the excellent battery life I'm getting on this build.
[Galaxy S 4 i9505 Original Android Development] tw1st3d83:
Hi all, i flashed latest build few days ago and i must say that i am impresed how this rom smooth is and how battery life good is, congrats on that... :)

as awesome rom is i still have problem with call sound but i use to it :) and i have problem with app permissions, i tried to gave my weather app permission for location and i get an error like on screenshoot...

i did a ultra clean install...
[Galaxy S 4 i9505 Original Android Development] stnd:
Can this run on the Canadian variant SGH-1337M?
[Galaxy S 4 i9505 Original Android Development] sjamie:
Yep!
[Galaxy S 4 i9505 Original Android Development] scanferr:
What kind of battery life are you getting? Screen on time, etc. Because I think my battery is dying :p
[Galaxy S 4 i9505 Original Android Development] sjamie:
For the most part, my battery lasts most of the day and I get close to 4 hours SOT.
[Galaxy S 4 i9505 Original Android Development] scanferr:
I'm getting half of that. I really need a new battery.
[Galaxy S 4 i9505 Original Android Development] sjamie:
Yes, that may be the case. This battery is only about 3 months old.
[Galaxy S 4 i9505 Original Android Development] Creeper36:
So thats what SOT stands for... Makes sense now. (Screen On Time)
[Galaxy S 4 i9505 Original Android Development] smilingcruel:
Which battery you are using... Samsung original is around $50....
[Galaxy S 4 i9505 Original Android Development] JoshDaWhite:
I'm using the stock.Not worth to buy another battery,will buy another phone-nexus5x.
[Galaxy S 4 i9505 Original Android Development] sjamie:
Although it has 2 negative reviews, this one is running flawlessly for me - https://www.amazon.com/dp/B00T171U0M/ref=cm_sw_r_other_awd_vYIhxbMSPMDB6
[Galaxy S 4 i9505 Original Android Development] Vincenzo91x:
I'm still having this ugly battery statistics. Could be greenify? Can't thint to something else :confused:
[Galaxy S 4 i9505 Original Android Development] PePeMoke:
For tasker f.e. I need accessibility services to be running, but sometimes when I turn on the phone again status is off again without me doing sth.

Anyone else is experiencing that?
[Galaxy S 4 i9505 Original Android Development] skydirt:
Running a jtecan s4 on the latest ROM in OPs post.

I am having a dock and audio issue. When I plug my s4 into my official Samsung desktop dock station, all media audio gets routed to the speaker out put on the dock. This affects all audio on the device, even the alarm clock. Which has led to a late wake up already :(

I have went into the settings and found a dock audio option under "other sounds." However, there is only 2 options under "dock speaker plays" All Media or Media only. There is no setting to disable the dock audio.

All audio and alarms play perfectly fine while plugged into a normal USB cable. Is there anyway to disable the device from directing audio to the dock output while docked?

Thank you.
[Galaxy S 4 i9505 Original Android Development] QuantumRZ:
My Simcard suddenly stopped working.

I get an error message that the card is damaged.

I already tried to fix it via PC and Android.

Please help me

Galaxy S4 I9505 - Cm13 - Xposed v80 ?
[Galaxy S 4 i9505 Original Android Development] Kazamario:
Has your phone been running hot?

I would try to order another one right away in case you can't fix it.
[Galaxy S 4 i9505 Original Android Development] Etore:
Try to update your modem. After I did it my battery life is about 50% better. I'm using XXUHOL4.
[Galaxy S 4 i9505 Original Android Development] scanferr:
That's the one I'm using too. The ****ty battery is among all ROMs so it's not ROM issue.
[Galaxy S 4 i9505 Original Android Development] FernBch:
Lay the battery on a flat surface and spin it. If it spins easily it is swollen and needs replacing. Do this for both sides.
[Galaxy S 4 i9505 Original Android Development] scanferr:
Doing that, it's fine. I guess it's just it's capacity that got borked for all this time.
[Galaxy S 4 i9505 Original Android Development] stnd:
Ok so I installed it and it worked for the most part with a few issues so far:

1. My proximity sensor seems to not be working anymore, this is a problem when making calls my screen turns off and I cannot recover without rebooting. i now have it set to end call with the power button but I cannot type in a password when calling my voicemail.

2. Network signal seems weaker. Under battery usage history details the Cellular network signal log is orange/yellow and white, meaning I have low to no signal.

The first thing I tried to do was flash the XXUHOL4 GSM and NON-HLOS, but that failed "Fail! (auth)"

I am coming from:

Model name	GALAXY S4

Country	Canada (Bell Mobile)

Version	Android 5.0.1

Changelist	4508315

Build date	Mon, 24 Aug 2015 12:32:28 +0000

Product code	BMC

PDA	I337MVLUGOH1

CSC	I337MOYAGOH1

Any advice would be greatly appreciated, I really like the ROM and how smooth it feels but I need to resolve these issues in order to justify not reverting to the now sluggish stock.

Edit: Odin Log

<ID:0/012> Added!!

<ID:0/012> Odin v.3 engine (ID:12)..

<ID:0/012> File analysis..

<ID:0/012> SetupConnection..

<ID:0/012> Initialzation..

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

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

<ID:0/012> SingleDownload.

<ID:0/012> aboot.mbn

<ID:0/012> NAND Write Start!!

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

<ID:0/012>

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

<OSM> All threads completed. (succeed 0 / failed 1)
[Galaxy S 4 i9505 Original Android Development] sjamie:
I have so many batteries for my S3 and S4 that have become swollen. What a shame! :mad:
[Galaxy S 4 i9505 Original Android Development] marko958:
I have the same issue, but also didn't found a solution yet. [emoji15]

Gesendet von meinem GT-I9505 mit Tapatalk
[Galaxy S 4 i9505 Original Android Development] nico933:
someone find a way to use snapcamera? maybe installing a older version? i tried but without success
[Galaxy S 4 i9505 Original Android Development] Feedmeeeee:
try this for your sensor. http://xdaforums.com/showthread.php?t=2353972

and try odin 3.10.7 and turn off your phone completly then open your phone with VOLUME - HOME + POWER. Try again
[Galaxy S 4 i9505 Original Android Development] PePeMoke:
Nobody?
[Galaxy S 4 i9505 Original Android Development] brkn:
I am having audio problems with the last build. No sound is played systemwide. But not only that there is no sound, the source isn't played at all. For example do I get a error message when trying to play YouTube videos or other html5 videos. Ring tones or any tones don't work at all too. CatLog show that it couldn't write on the output stream. It appeared after installing the newest build, but I also flashed a new modem. Already tried to clean install it again. Could it be the modem? Even though I don't know how modem and audio are related. I suspect a permission problem. Am on mobile so can't upload a log atm. But if it helps, can do it.
[Galaxy S 4 i9505 Original Android Development] Creeper36:
How good is your SD Card?
[Galaxy S 4 i9505 Original Android Development] baudbox:
a bit off topic from CM13, but as workaround I suggest you to create a dedicated profile to check everyday/hours/atscreen on, if Tasker accessibility is enabled, and re-enable if not.

Secure settings (even not maintain anymore) can help you to do that.

However I must say that mine is always on and never disabled on its own. Hope that helps... abit
[Galaxy S 4 i9505 Original Android Development] brkn:
What do you mean? A faulty rom package?
[Galaxy S 4 i9505 Original Android Development] ralfbergs:
He's suggesting your SD card might be malfunctioning...
[Galaxy S 4 i9505 Original Android Development] ranjb:
Hi

Can I confirm that the issue with Bluetooth and using media and bluetooth phone isnt an issue on this ROM compared to other MM roms?

Thanks
[Galaxy S 4 i9505 Original Android Development] Ghattas.a:
Good worked after flashing the latest TWRP but is it normal to show charging slowly. I tried all the Samsung chargers that I have and they are all original even the s6 edge fast charger shows charging slowly on my I9505
[Galaxy S 4 i9505 Original Android Development] ComputerNmyPocket:
I had Snap Camera from the play store working on the latest ROM version, only problem was it crashed a lot when saving to SD Card, so I just have to use internal storage. I'm back on the first OCM13 release now and have it working the same. I'm just re-evaluating the first ROM release, sometimes I think it's UI is more fluid than the current release, not sure if it's placebo or what though.
[Galaxy S 4 i9505 Original Android Development] christoophat:
yes, normal, but it charges pretty fast regardless of what the words say.:)

---------- Post added at 08:39 AM ---------- Previous post was at 08:36 AM ----------

Strange, I have zero issues with Snap Cam & storage to SD card.
[Galaxy S 4 i9505 Original Android Development] ComputerNmyPocket:
Hmm, maybe it depends on size and filesystem. I have a 64g card formatted as exfat. My phone is M919 T-mobile. How about you?

Edit: My crashes are only with video recording, forgot to mention.
[Galaxy S 4 i9505 Original Android Development] cybersaif:
Yes, it is completely normal since s4 doesn't support quick charge :)
[Galaxy S 4 i9505 Original Android Development] smeroni68:
... maybe sammy will pay us to stop developing on S4... :D
[Galaxy S 4 i9505 Original Android Development] Kukalajet:
I hope for you! :D

But, hypocritically I obviously hope not. For us could mean only that it's time to buy a new phone. :'D
[Galaxy S 4 i9505 Original Android Development] side:
since i see u are from albania(europe) i dont think u will have issues.

clean flash the latest optimized cm13 my friend :)
[Galaxy S 4 i9505 Original Android Development] kekate:
Very good ROM like I said earlier, everything runs smooth, but I've ran into one issue. System process is 90% of the time at 30-50% load + some user apps like Messenger and the phone sits at 70% CPU load constantly. CPU clocks are quite high and therefore it gets kinda hot. Any fix?
[Galaxy S 4 i9505 Original Android Development] Epic.:
This issue really is weird, on the 12th March build, even after rebooting, I have no more issues of com.android.phone stopping etc.

No wifi dropouts, and the rom itself is really smooth, and so is playing Clash Royale, even after activating the battery profile on Stweaks.

Thanks JDCteam and thank you especially to side.
[Galaxy S 4 i9505 Original Android Development] Kukalajet:
Long live the JDCTeam! :D
[Galaxy S 4 i9505 Original Android Development] side:
jdcteam thanks u all :D ...although seems like not everyone is satisfied :/ ...we got to work on this :) !

Please give us ,us many infos u can...also logs,device,provider etc...thanks!
[Galaxy S 4 i9505 Original Android Development] Malaclypse17:
Does anyone else have the problem that the phone is not quick charging?

Its only charging with 1700 mAh and on lockscreen it says slow charging, with previous optimized 5.1.1 there were no such problem, I was always charging in fast mode and 1900 mAh?

In Stweaks its set to 1900 mAh and "Screen on current limit" is off.
[Galaxy S 4 i9505 Original Android Development] masterlo3:
okay my bad, on first installation i dirty flashed (system wipe only) from a cm based rom. I have wiped and formatted data and the games are running... but i feel the balance profile could get better... scrolling in the kingdom map of COK isn't as smooth as it was in my previous rom. other than gaming, the phone's UI is smooth with basic operations.. one last bug, network mode doesn't change... it remains on LTE recomemded. i hope that will be fixed soon cause it drives me nuts when my network drops down to EDGE with no way to force it on 3G... good rom with plenty of tweaks :)
[Galaxy S 4 i9505 Original Android Development] foxa88:
Omg

Am nt here for 6 or 7 days

And when i came i saw this amazing rom frm my fav team jdc

Thank you all guys for making my fav phone still alive

Thanx alot.

Downloading .....
[Galaxy S 4 i9505 Original Android Development] kekate:
Seemed to be an issue caused by Xposed and not the ROM. My bad. Xposed uninstalled and System idles at 2% usage. I only had GravityBox[MM] installed.
[Galaxy S 4 i9505 Original Android Development] shadyrecords:
Anyone have a bootloop too?
[Galaxy S 4 i9505 Original Android Development] side:
why should someone use xposed on that rom :/ ? ... i still cant believe how people kill the roms with xposed...its too risky to play with it...xposed was nice for me until 4.4
[Galaxy S 4 i9505 Original Android Development] glarage:
Hi,

all is good now with your fix, thank for that;

I applied some "hard tweaks" for battery life and it's still fast like a.... GSXR...... :D
[Galaxy S 4 i9505 Original Android Development] matt6575:
Glad to see another ROM for our phones.

I have the No SIM Card error on my US Cellular SCH-R970 jflteusc.

Had the SIM error early on with your AOSP ROM but you guys fixed it very quickly and I've been running it since, thank you. I'll go back to that until it gets resolved on this one.
[Galaxy S 4 i9505 Original Android Development] AntaresOne:
Hello,

Nobody in our team owns a R970, could you kindly send us a radio logcat?

You can get one by ADB (Android Debug Bridge) issuing this command: adb logcat -b radio > radio.log

Thank you in advance. :)
[Galaxy S 4 i9505 Original Android Development] thaidroid:
Everything seems to work fine. I have not tested BT yet, only one issue, I get Wifi connected no internet. But in fact internet is connected and works.

I think this is an issue with all MM roms I'm on PA1 modem and bootloader.

I have a question about app optimization, every time you reboot the phone and go to battery and check optimization you get the message

No apps optimized, is there a way to set Optimization allways on?
[Galaxy S 4 i9505 Original Android Development] wfecng:
Not really, the slider works fine under indoor light when adaptive ON. I think it also works in outdoor but too bright and need some fine tune.

Optimized cm 12.1 works fine.
[Galaxy S 4 i9505 Original Android Development] side:
u cant optimize all/system apps dude :) ....
[Galaxy S 4 i9505 Original Android Development] thaidroid:
Yes you can Agapps 4.1 optimizes all apps including play services, but why does it say no apps after reboot?
[Galaxy S 4 i9505 Original Android Development] christoophat:
Same phone, same size card (Samsung) and let phone format card when it was first inserted. I have the purchased version of Snap, if that makes a difference. Just now tried a vid clip - works fine here.
[Galaxy S 4 i9505 Original Android Development] ComputerNmyPocket:
Ok... my video crashes were intermittent, not every time. But I formatted exfat with a-parted app from play store. I'm also using paid version of Snap Camera. I'm guessing the ROM doesn't format as exfat so that may be the difference. I may try different file systems, but I can't limit my file sizes in case I need to download a large file or record a long video... Thanks.
[Galaxy S 4 i9505 Original Android Development] JoshDaWhite:
[MENTION=5968293]side[/MENTION] , I was wondering when [MENTION=5464206]AntaresOne[/MENTION] will update the multirom recovery...

Also,is there a test build of omni?
[Galaxy S 4 i9505 Original Android Development] walttheboss:
S4 does have quick charge. Depends on kernel. The "slow charging" notification is a known CM kernel bug. I think the synergy kernel is best for charging. Ignore the notification. Should get fully charged in an hour or less.