yashsingh1/xdaforums huggingface dataset:
[Xiaomi Redmi 6 Questions & Answers] britechguy:
Thank you hiitsrudd!

I think it took 7 or 8 presses of the MIUI version and after I think the third it started giving a countdown until you "become a developer."

Why it has to be this difficult and cryptic will remain a mystery.
[Xiaomi Redmi 6 Questions & Answers] Hyoros:
Mind telling me what you change? Im on HyperOS 1.0.4 and idk Master Transfer Protokol after developer option
[Xiaomi Redmi 6 Questions & Answers] britechguy:
All I can tell you is that when I do a settings search on USB, Default USB configuration, is one of the options. When that's activated, you are given a choice of 5 options, one of which is File Transfer.

I've just reset this myself, in hopes it takes and "sticks."

This is under HyperOS 1.0.3.0
[Connected Car] Naff47:
Hi everyone!

I have a Sony Bluetooth stereo which runs on Bluetooth 3.0. My phone is a Pocophone F1 which has Bluetooth 5 built in. Music and all other device sounds play perfectly through my stereo but when I make a call the person on the other end can hear me through my stereo mic but I cannot hear them. I've also tried it with my Dad's Nokia 2 which also has Bluetooth 5.

I've read that Bluetooth 5 is backwards compatible so I thought it would work but am I wrong? I have read about disabling OK Google but I don't have that featured turned on anyway.

Should it work? If not can I do anything to make it work?

Thanks in advance!
[MTCD Android Head Units General] g-member:
What i don't understand is why it doesn't resume even when Poweramp is whitelisted.... could it be because the drives are beeing unmounted when going into deep sleep mode???

The stock app resumes just fine though.......
[MTCD Android Head Units General] jtrosky:
Is your music on internal or external storage? If it's on external, then yes, that is why it doesn't auto-resume - the SD cards (for example) get unmounted when the unit goes to sleep - and then when you come out of sleep, Android runs a filesystem check on the SD cards. If the SD cards are large and have lots of files on them, that filesystem check can take longer.

The stock music app probably takes this into account already since it was written for the head-unit specifically.

I had even more serious issues with Jet Audio - it would completely remove the music on the SD card from the library completely! :)

If the music is on internal storage, PowerAmp should resume normally. If not, you'll need to use Tasker to make it work right.
[MTCD Android Head Units General] g-member:
I copied all music to the internal flash drive, still no go...

heard somebody that Musicolet worked for him, i'll give it a go and let you know.

If it doesn't work i'll use Tasker
[MTCD Android Head Units General] jtrosky:
Hmm - at this point, I can't remember if Poweramp worked for me on internal storage, but Jet Audio worked perfectly with internal storage for me.... Didnt' have to pause it or anything - it would just continue where it left off when the unit came out of sleep. However, this didn't work for me because my music collection is bigger than my internal storage, which is why I had to move to tasker since I wanted to keep my library on external storage.
[MTCD Android Head Units General] g-member:
I have 16gb flash storage and mostly dj mixes, plenty of space available for me.

I just tested Musicolet and it works perfectly, it resumes and is supported by the car launcher widgets (stock player not)

So i'm very happy now, now i can focus on the last tiny issue.... Can't control navigation audio volume seperate from system audio.
[MTCD Android Head Units General] jtrosky:
Yeah, I too hate that there only seems to be one volume setting on these radios. Can't control navi, phone righter or even notification volume separately... Hell, I couldn't even get notification sounds working at all. :) Major oversight, IMO. Don''t think there is a solution though (that I'm aware of).
[MTCD Android Head Units General] Shadow128:
Great idea to start media playing after sd mount.

In my case I'm using Tasker almost the same way - PauseMedia with shutdown intent.

But I'm starting PowerAmp and playing media directly after bootup, which works in 90% of all.

But I'll try to use your hint with starting after sd mount.

Thanks!!! :)
[MTCD Android Head Units General] jtrosky:
Yeah, in my case, waiting for the SD card to become "ready" after coming out of sleep is critical since I have all of my music stored on SD card...

In case anyone is interested, I've actually worked out a way to have per-app Viper4Android settings using Tasker now! So now I can have completely separate EQ settings for Pandora, Spotify, PowerAmp, etc - and it's all handled automatically... You can change V4A settings while an app is running and they're automatically saved for that app.

I've always wanted per-source EQ settings, but I've never actually had a radio that supported it - now I do. :)

I wish V4A also worked with the FM tuner, but thankfully I rarely listen to FM, so that shouldn't be a huge deal. Same for CD/DVD - don't think V4A processes output from CD/DVD - but again, I don't use physical media anymore, so....

If anyone wants me to post the tasker details for this, let me know...

I think I'm *finally* ready to acutally install this unit "in car" now (I've had it for over a month now) - been waiting until I get everything setup like I wanted it before installing it in-car - otherwise, you spend way too much time running back and forth to the car to test. :)

Last issue I want to eventually solve is the horrible turn-signal/warning chime sounds provided by the CANBUS box that Eonon provides (the turn-signal and warning chime sounds originally came out of my car speakers - now that come out of a little "stick on" speaker - and the sounds that the CANBUS box generated are HORRIBLE. Might like into replacing the CANBUS box with another one at some point (Metra makes them and they even have volume controls, etc).
[MTCD Android Head Units General] stressed1964:
Dear Jtrosky,

I have the same problem as you and a I use sometimes Poweramp or Stellio.

I have no experience with Tasker so I would like to ask you if I need to build a setup from scratch or I can adapt yours? Can you please guide me?

Thank you in advance

Roberto Azevedo
[MTCD Android Head Units General] jtrosky:
I'm not going to lie - tasker can be a little cryptic to setup if you don't have a programming background. Some of the basics are easy, but some stuff, like I'm doing here requires variables and if/then/else statements.

However, if you buy tasker and install it, you can basically just set it up just like I have it listed above - with only minor tweaks.

I acutally had to purchase Tasker and the AutoNotification plug-in for the way I have it setup. But still, you're talking less than $10 and once you get familar with Tasker, you can use it for lots of other cool stuff as well.

And of course I and other members will be perfectly willing to help you get it all figured out.

For me, the key was to pause the player before going to sleep and then unpause it when it comes out of sleep - then the different players seem to "remember" where they left off. But I'm also using Car Luncher Pro - not sure if it changes anything if you are not using it. I only go into the main player applications to select a playlist or channel - then I just change songs, pause and play all right from the Car Launcher app without going into the actual applicaitons...
[MTCD Android Head Units General] stressed1964:
Thank you for your prompt reply. I will try as you suggested.

Best Regards,
[MTCD Android Head Units General] LinkseD:
Is there also an option to resume the playback immediately?

As I am using Spotify with downloaded playlists. [MENTION=972963]jtrosky[/MENTION]
[MTCD Android Head Units General] jtrosky:
Sure. You would just have to find the intent that is broadcast when the unit wakes up (not sure what it is offhand). Then once that intent is observed by Tasker, you could just immediately have tasker send the "Media Play" command.

The intent that gets broadcase whent the unit goes to sleep includes the "poweroff" paramter. maybe there is also a "poweron" parameter that gets broadcast when the unit wakes. Or something along the those lines... There are probably many ways to do (check when screen comes on, etc).
[MTCD Android Head Units General] LinkseD:
Guess this will not happen as I dont have any experiences with Tasker :D

Should be something like this:

Send Intent [ Action:com.spotify.mobile.android.ui.widget.PLAY Cat:None Mime Type: Data: Extra: Extra: Extra: Package:com.spotify.music Class: Target:Broadcast Receiver ]
[MTCD Android Head Units General] jtrosky:
Yes, that is an intent that will tell Spotify to play, but the real "problem" is figuring out a way to know "when" to send that command (or the general "Media Play" intent that I was talking about, which really should work for any media app).

So you need to figure out a way to know *when* Tasker should send the command when the radio "wakes" up.

There are lots of varibles. Is the Spotify app whitelisted? Or are you restarting it every time the radio wakes up? Is it going to be the 'active' app or running in the background? etc, etc...

But you can use Tasker to do what you want somehow. Tasker is a fantastic app for these radios. Takes some time to get all setup the way you want, but once it is, you can automate a lot of tasks...
[MTCD Android Head Units General] Gianpaice:
Jtrosky i want to use this function for BlackPlayer v3. Im using MacroDroid for simply intent but im not able to use tasker. Could You give us the configuration to resume it after reboot please?
[MTCD Android Head Units General] jtrosky:
I have never used MacroDroid, but the premise should be the same. The way that I'm doing things here with tasker is a very simple way - I don't need or use any application-specific intents - I simply pause the current player with the general "media pause" command before the unit goes to sleep and the issue the general "media play" command after the unit wakes up - basically, it's the same as pressing the physical play/pause button on the radio yourself - I just automate it. Also, I use Tasker to make sure that only one audio app is running at any time - that way, there is no confusion of which player is paused/un-paused (which allows you to use the general "media pause" and "media play" commands instead of application-specific intents).

However, using this type of setup requires that you know what audio-related apps you are going to be using and setup tasker for those app specifically. If you start using some different app, you need to modify the Tasker setup. Most people tend to use the same core set of apps for music playing all of the time though, so this is not a big deal.
[MTCD Android Head Units General] Gianpaice:
I know it but if i stop the play when the radio goes to sleep, the usb folder doesn't have time to Save the music position. So when i Wake up it resumes from the start. I don't If there's a problem with White list..
[MTCD Android Head Units General] jtrosky:
How are you determining when the unit goes to sleep? With Tasker, I simply look for the "com.microntek.bootcheck" intent - with %class being set to "poweroff". When I do this via Tasker, I can then send the media pause command and it has plenty of time to pause before the unit actually goes into sleep mode.

Then when I detect that the unit wakes up, I use tasker to wait until the SD card is mounted (for local media) and then issue the Play commad. THis seems to work really well.

You need to figure out a way to have the unit pause before it loses access to the USB/SD card. You may need to switch over to Tasker instead of using MacroDroid...
[MTCD Android Head Units General] Gianpaice:
You're right! I've never tought about the "com.microntek.bootcheck". I've tryed to use the turn off condition but when you turn off the car the alimentation is not like a smartphone. Tomorrow i'll try with this! I hope that will work with MacroDroid otherwise i'll try with tasker. I prefer the first one because is more intuitive but tasker is more Professional. I hope Whitelist doesn't kill the macro!
[MTCD Android Head Units General] Gianpaice:
I've tryed with MacroDroid but doesn't work. I never use tasker so i courtesy Ask You If could export your preference please?
[MTCD Android Head Units General] stressed1964:
Gianpaice,

Did you managed to solve this problem? I have trided tasker but it is beyond my limits :(

Regards
[MTCD Android Head Units General] Gianpaice:
No im not able!
[MTCD Android Head Units General] digitalcan:
Hi,

I am new to this tasker app. I just wanted to resume my song when i start my car. I am using poweramp. Is there a way to easily put these codes to tasker? A bit difficult interface :/
[MTCD Android Head Units General] jtrosky:
Is your music stored internally, or SD card or on GPS card? I believe Poweramp will continue where it left off automatically if stored on internal storage (as long as Poweramp is adding to your list of apps that doesn't die when unit goes to sleep) - easiest with Hal9k firmware. If your music is stored on SD card or USB, it's a little harder becuase Android wants to scan those devices for errors when the unit comes out of sleep - but it can be done with Tasker. Give some more details about your situation and I'll see if I can help.
[MTCD Android Head Units General] digitalcan:
Thanks,

I am in hal9k 3.1 firmware i see that there is resume on start option in poweramp but it does not work quite nicely with usb as you said. So i installed tasker but how can i configure it i could not understand there is an import option maybe you could give me an .xml fike for easily import your script ?

Or step by step guide to implement my own settings.

Thanks again
[MTCD Android Head Units General] jtrosky:
I no longer have the Android unit installed in my car (went back to my WinCE unit since it sounded better and had less issues), but I'll get it booted up "on the bench" and export the Tasker definitions for you sometime tomorrow.
[MTCD Android Head Units General] digitalcan:
ok. I am waiting.

Thanks
[MTCD Android Head Units General] qisoul:
I would also look forward to an export file as I can't figure out out a way of pasting the code that you have in the post, Thanks in advance.
[MTCD Android Head Units General] iliketrains:
I have an Atoto A6 so mine is a little different but I was wondering how you found out what intent received to use?
[MTCD Android Head Units General] jtrosky:
Here is a backup I made of my Tasker config. You should be able to put this somewhere on the radio (USB/SD, etc) and then go into Tasker and and do a restore of this file. At that point, you should have the exact same Tasker config that I have. I believe this will overwrite anything you have currently setup in Tasker, so make a backup of your current setup first, just in case.

I have it setup for Poweramp, Pandora and Spotify, with Poweramp using music files stored on an SD card. You'll need to tweak it to your exact setup (like if you are using USB instead of SD for local music).

In a nutshell, it stores the currently active player in the %PLAYER variable and whether the player is a "Local" or "Online" media player in the %CPPLAYER variable. It will pause the currently playing media (whatever media player is active) when the unit goes to sleep. It will then un-pause the current media player when the unit wakes up and the SD card becomes available (for local media) or when the wifi connection is available (for online media). It uses the %PLAYER variable to know which other media players to kill when you switch media players (so that only one media player is running at all times). You'll also need to put all of the media players into your whitelist so that they are not killed when the unit goes to sleep (along with Tasker itself).

This may or may not be the best way to do things, but it's what I came up with and seemed to work well.

Also - if you want to make the SD card become available MUCH quicker when the unit wakes up, use NTFS format (which on Hal9k, not sure about other ROMs) and also disable the filesystem check when the device wakes up by setting permissions on the /usr/bin/fsck_msdos file to "000" with a root-capable file explorer (ES Explorer, etc). This allows a fully-used 128GB SD card to become available almost immediately.

Let me know if you have any questions and how it works out for you.

https://drive.google.com/file/d/1wM7crDX6TjlXe1mlFAr7V-1aLgGOJHiI/view?usp=drivesdk
[MTCD Android Head Units General] digitalcan:
Thanks, I am using usb drive for playing music. Which variable should i change in your script?

also if i disable file system check and convert file system to ntfs maybe poweramp stock resume feature works? What do you think?
[MTCD Android Head Units General] jtrosky:
I've never messed with the USB drives, but a quick Google search shows that you can use Profile->State->USB Connected to detect when a USB drive is available, so I would try that first. I woud create a new PlayUSBAfterSeep profile for USB drives and use the Profile-State->USB Connected methoed to detect when a USB drive is connected. You'll have to mess with a little, but my setup should be a good guideline as to how to make it all work. Tasker really isn't *that* hard to use - just takes some time messing with it and experimenting (and some Google searches!)... In a nutshell, the Profiles are what "conditions" Tasker monitors for and then Tasks are the actions that Tasker runs when a Profile detects those "conditions".

Using NTFS and disabling the filesystem check still didn't make the SD card be available fast enough for PowerAmp to left off where it was when the unit went to sleep (I think it still takes a few seconds for the unit to wake up and the SD card become availale - but who knows, maybe USB will be even faster. I also think that you still need to make Poweramp pause the song before the unit goes to sleep in order for it to continue the song where it was when the unit went to sleep. Also, disabling the filesystem check on the SD card was not a big deal since I really never changed the SD card - if you are going to removing and inserting different USB drives all of the time, I'm not so sure I'd want to disable the filesystem check....
[MTCD Android Head Units General] digitalcan:
Thanks!

I also start a new topic on poweramp forums for resume playing for sd/usb after sleep. Maybe developer implement this kind of behaviour...

https://forum.powerampapp.com/topic/16124-resume-on-start-up-for-usbsdcard/

If somebody wants this on poweramp, please write for it on this topic.

Thanks again
[MTCD Android Head Units General] jtrosky:
Has anyone been able to use my setup to accomplish what they wanted to? Don't hesitate to let me know if you have any questions or issues that I may be able to help with. I can always connect the Eonon "on the bench" and help out....
[MTCD Android Head Units General] Gianpaice:
I've dowlonaded the file! If i Wanna use poweramp with my sd music folder have i to change some variable or is just ok?

I have another problem. Whitelist kills poweramp but i did all correct with file settings.
[MTCD Android Head Units General] stevensp:
Thanks! Have not tried for PowerAmp but Spotify works.
[MTCD Android Head Units General] stressed1964:
Hi everybody,

Has anyone figured out how to make the project work with usb drives?

Thanks in advance
[MTCD Android Head Units General] roydestroy:
I would like to ask if anyone knows whether it's possible to create a profile which will pause the stock music player when an mtcd call is received. Thank you in advance.
[MTCD Android Head Units General] stressed1964:
Music files in USB drive

I'm sorry for my insistance but I have not figured out yet how to use/change jtrosky's config file to work with usb drives. Anyone to help me?. Thanks
[MTCD Android Head Units General] stressed1964:
I have already successfully restored de config file with tasker in android Head Unit but poweramp resume music from the begining instead of the point that was before ths unit shuts down (before it was not even starting the music).

Can someone helpe to fix this.

Thank you in advance.

Roberto Azevedo
[MTCD Android Head Units General] stressed1964:
Dear Jtrosky,

After several battles with thasker I have finally managed how to restore your file and now I have the correct configuration. I have also upgraded to Hal9K rom.

The problem is that when the radio starts i have the message from tasker "no active profiles" and poweramp do not restart. When poweramp is running I have a tasker notification "poweramp running". Can you give me a clue about what is wrong. I have Poweramp in the whitelist and have granted superuser access to tasker also.

Thank you in advance.
[MTCD Android Head Units General] marcurelio:
I don't know if I lost something, so I apologize in advance if I'm being too dense. My question: do I need root for this to work? I tried importing the zip file to my Tasker and nothing changed on PowerAmp behavior.

Thanks a lot you guys, I'm a total newbie, but learning a lot around here.
[MTCD Android Head Units General] stressed1964:
Now I'm really confused. Poweramp now starts after shutdown with the same song but in the begining of the track and pauses about 5 seconds later. I have to press the play button in order to continue the playback.

There is anyone with the same problem?
[MTCD Android Head Units General] f465gt:
Yes I do. I have the Hal9k ROM installed and I can't work out which service or app is causing this behaviour. I suspect that is has something to do with the fact that Hal9k is taking care of re-starting the services but PowerAmp also does some magic.
[MTCD Android Head Units General] stressed1964:
Yes, this behaviour is very annoying and seems to be related with Poweramp V3. I have searched all over the internet with no solution :(. As a fan of progressive rock and metal it is sad to have to start the playback of the tracks from the beginning once sometimes the songs are longer than 20 minutes and my way to work is only about 12 minutes :). Any help would be appreciated
[MTCD Android Head Units General] f465gt:
I just found something interesting in the logcat:

[09-06 07:06:26.473 496:1543 I/ActivityManager]

START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.maxmpz.audioplayer/.StartupActivity bnds=[374,258][649,374]} from uid 10016

[09-06 07:06:26.530 496:515 W/BroadcastQueue]

Permission Denial: receiving Intent { act=com.android.launcher3.action.LAUNCH flg=0x10 (has extras) } to ProcessRecord{e4e6113 978:com.google.android.gms.persistent/u0a14} (pid=978, uid=10014) requires com.android.launcher3.permission.RECEIVE_LAUNCH_BROADCASTS due to sender com.android.launcher3 (uid 10016)

[09-06 07:06:26.530 496:515 W/BroadcastQueue]

Permission Denial: receiving Intent { act=com.android.launcher3.action.LAUNCH flg=0x10 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$GmsExternalReceiver requires com.android.launcher3.permission.RECEIVE_LAUNCH_BROADCASTS due to sender com.android.launcher3 (uid 10016)

[09-06 07:06:26.581 496:507 I/ActivityManager]

Start proc 4892:com.maxmpz.audioplayer/u0a31 for activity com.maxmpz.audioplayer/.StartupActivity

As you can see, PowerAmp (maxmpz.audioplayer) is called twice to start. So I suspect that this is the issue. Now the question is how to get around it.
[MTCD Android Head Units General] f465gt:
Btw. I tried the Tasker script. It relies on a third party plugin which I installed but I am not sure if it is working. PowerAmp is still behaving the same way. It may be that Tasker is started after PowerAmp had been loaded. It all a bit strange.
[MTCD Android Head Units General] stressed1964:
The problem seems to be with V3 of Poweramp, something has changed. I have already asked for help to Jtrosky by PM but with no luck. Thanks anyway
[MTCD Android Head Units General] f465gt:
Ok, but with version 2 it is working?
[MTCD Android Head Units General] stressed_carioca:
I have not tried to downgrade do V2.