yashsingh1/xdaforums huggingface dataset:
[MTCD  Android Head Units Q&A] springstil:
I´m looking forward hearing from you.

That would be really great if it would work with Poweramp. The issue you have with radio, I could live with that. I rarely hear radio, most of the time my music from usb is playing. But I have a lot of mixes with over 1 hour playtime, driving to work for 30 minutes and every time hearing the first 30 minutes of the track is really annoying.

I have a Dasaita HA2317-V840 running Malaysk 8.0 v1.1, too.
[MTCD  Android Head Units Q&A] Shadow128:
Now the question is, do you've something special configured to use it like this (especially only Poweramp)?

And does it work with using from SDCard?
[MTCD  Android Head Units Q&A] albtross:
It's been a while since I looked at this so I had to refresh my memory. The good news I that I now think I know why I'm seeing the issue I mentioned above. Hopefully I'll get a chance to look into it this weekend.

MTCManager un-mounts external storage devices when the head unit goes to sleep. If PowerAmp has been white listed, then it will try to resume playing before the external storage device can be re-mounted. Which, as you have found, causes 2 issues. The 1st being that the music will not auto start when the ignition is turned on and the 2nd being that PowerAmp forgets the current track position.

Step 1:

To prevent PowerAmp from try to play a song on an un-mounted device, remove PowerAmp from the whitelist and allow MTCManager to kill PowerAmp when the head unit goes to sleep. MTCManager will automatically restart the app that was in the foreground when the head unit was put to sleep. Turns out that on my head unit, the storage is mounted by the time PowerAmp comes up. This slightly delays the playing of music for 2-3 seconds when you turn the ignition on, but it is hardly noticeable.

Doing this exposed another issue. If PowerAmp is force killed, it does not get a chance to save it's current track position, so it restarts at the beginning of the track.

Step 2:

Have Tasker pause PowerAmp as soon it detects that the head unit is going to sleep. This allows PowerAmp to save its current track position before being killed.

Event:

Intent Received (Action: com.microntek.bootcheck)

Task:

If %class ~ poweroff

Send Intent (Action: com.maxmpz.audioplayer.API_COMMAND, Extra: cmd:2)

End If​

Note that works for PowerAmp 2. PowerAmp 3 will require a different intent.

This is probably all you need, if you are not concerned about restarting PowerAmp if it was in the background when the head unit goes to sleep. It appears that MTCManager restarts the foreground task up on waking up, but none of the non-MTC background task are restarted. So if you were playing music via PowerAmp and then switched to Google Maps before turning the ignition off, Google Maps would automatically restart when the ignition was turned on, but PowerAmp would not.

Step 3:

I wanted to handle restarting PowerAmp with Tasker so that I would have full control, but haven't had time. Since MTCManager takes care of restarting the MTC Music player when the head unit wakes up, I decided to let it restart PowerAmp instead. I ended up doing a search and replace of the mtcmanager smali files. I replaced com.microntek.music.MainActivity with com.maxmpz.audioplayer.PlayerUIActivity and com.microntek.music with com.maxmpz.audioplayer.

This has the added benefit of including PowerAmp in the applications that get cycled through when pressing the Mode button on your steering wheel remote.

I hope this helps.
[MTCD  Android Head Units Q&A] Shadow128:
Sounds very good!!!

I'll try it the next days :D

But one question:

This works only on Android 6.0 as you're using MTCManager?
[MTCD  Android Head Units Q&A] Shadow128:
Hi albtross,

today I tried to test your configuration, but had no success :(

My steps:

1. Removed "com.maxmpz.audioplayer" from settings.ini (/sdcard/mtce-utils)

2. Created tasker profile for PowerAmp (attaced as screenshots)

3. Extracted MTCManager.apk and replaced "com.microntek.music.MainActivity" with "com.maxmpz.audioplayer.PlayerUIActivity" and "com.microntek.music" with "com.maxmpz.audioplayer" in every .smali file (at least 4 files)

4. Re-compile with APKTools and put modified MTCManager.apk back to Head Unit

Test:

During playing a MP3 from a SDCard I switched off and it goes to standby. After switching on PowerAmp starts directly, but I got the message "Folder is missing or unreadable" from Poweramp.

I tried also to configure Tasker to the Whitelist, but same behavior.

Maybe you've an idea what is wrong?

Or maybe you can upload your tasker profile?

Thank you so much :)
[MTCD  Android Head Units Q&A] albtross:
The settings.ini file whitelist does not currently work on Malaysk. The only way to prevent apps from being killed is by editing the mtcmanager apk. See https://xdaforums.com/android-auto/...to-whitelist-packages-mtcd-head-unit-t3765437. PowerAmp is hard coded in mtcmanager.apk, so it must be removed from the c.smali file. I just changed "com.maxmpz.audioplayer" to "com.was.audioplayer".

Try renaming your /system/priv-app/MTCManager/MTCManager.apk to MTCManager.apk.orig and placing the attached file into the same directory.
[MTCD  Android Head Units Q&A] Shadow128:
OK, that explains it.

Your HowTo is for Android 8.0 and not 6.0?

But no problem, I'll test it on Android 8.0 with your modded apk :D
[MTCD  Android Head Units Q&A] albtross:
I've never had 6.0, so it was written for Android 8.0.
[MTCD  Android Head Units Q&A] springstil:
I installed tasker but couldn‘t manage to set it up right because I have not enough time at the moment.

But I have a generel question before I set up tasker. You guys said if you pause poweramp manually it remembers track position. Do you close Poweramp before shutting down the radio?

Because when I pause poweramp and leave the car with poweramp opened, it starts the next time automaticly and don‘t remembers track position because the folder isn‘t found.

So would in my case pausing poweramp by tasker not work, or did I something wrong?
[MTCD  Android Head Units Q&A] Shadow128:
Wow! After first tests, it seems to be working :D

In Tasker it is necessary to configure the target to "Service" and then it stops playing and poweramp will be closed.

After next start it restarts poweramp.

Thank you so much for your help!! :)
[MTCD  Android Head Units Q&A] Shadow128:
With the sent intent to poweramp it will be closed during shutdown process of the head unit.

And with closing the track position will be saved :)

Maybe I can upload my tasker profile tomorrow, if you need?
[MTCD  Android Head Units Q&A] springstil:
That would help me very much. Otherwise I would test it in two months because I don’t have the time right now to test an hour in car.

You deleted poweramp in smali file, didn‘t you? Is c.smali enough or should all smali files be edited?

Thanks for your help man. Does this maybe work with Spotify too?
[MTCD  Android Head Units Q&A] Shadow128:
In attachment you'll find my tasker-profile, which works.

For the mtcmanager.apk I took only the uploaded file from albtross, no more changes on it.

If it works with Spotify I don't know, as I don't use it ;)
[MTCD  Android Head Units Q&A] springstil:
Thank you very much. Both albtross and shadow. I'll try it tomorrow.

Edit: Just tried the attached MTCManager.apk. Doesn't work on my device. After going to sleep and then wake up again screen stays black and no chance but a complete reboot helps.

So I have to edit my own apk next days I think.

Edit2: Works with deleting poweramp in c.smali with stock launcher, with car launcher pro it remembers track position but I have to click on play. I can live with that. Thanks to all
[MTCD  Android Head Units Q&A] Gianpaice:
Hi! Great thread! Im trying to do this but with BlackPlayer apk into my px5 Android 8. Your solution is little bit complicated for my. Can you explain it with some pictures or maybe with a video please? Thanks
[MTCD  Android Head Units Q&A] TheMorpheus:
Thanks for that! I've already had a task that it start poweramp every time my phone connects to the unit:

*Unit switch on and the phone connect via BT

*Phone connecting to the unit trigger the task that enable hotspot

*Unit connects to wifi and trigger the task that luches Poweramp

*Unit goes to sleep trigger the task that pauses poweramp

*Phone disconnecting to the unit trigger the task that disable hotspot

Nice!!
[MTCD  Android Head Units Q&A] blAcksAndmAn:
Anybody for help please!

I don't know what to try anymore. Poweramp just don't work like it should.

I just want Poweramp to resume playing after the usb media is mounted, at the same position as before the unit went into standby.

Nothing works. I tried all possible combinations of inapp settings from poweramp with the settings from Hal9ks Mod.

I just tried the tasker script. Sometimes poweramp starts playing after sleep, but from track beginning and sometimes it only opens and don't start playing. If I press the play button it starts from track beginning.

There MUST be somebody who had the same problem. It isn't any special thing - just start playing music from last track position...
[MTCD  Android Head Units Q&A] Shadow128:
For me it's working, but...

There are some special things (as I found out, maybe there are other ways)...

I'd to copy my MP3s to internal storage, and then with Tasker it is no problem to resume the tracks after switching the radio. I integrated also FolderSync so after starting the radio all MP3s from SD card will be synchronized with the internal storage.

For myself I'm explaining it with timing problems during mount/unmount the SD Card.

If you like, I can upload my Tasker Profile
[MTCD  Android Head Units Q&A] jrobbom5:
I also have all of my music stored on internal storage, and Poweramp picks up from where it left off every time I turn the ignition on. Unless you are critically low on Internal Storage, give [MENTION=3158190]Shadow128[/MENTION] 's suggestion a try, FolderSync is free and easy to set up, and it would solve your problems.
[MTCD  Android Head Units Q&A] blAcksAndmAn:
The problem is, that I have about 150GB of music files (320kb/s takes much storage -.-). Otherwise I would have done that already.

I read that in newest beta versions of Poweramp there is a "Shutdown intent" setting where you can set the intent used for shutdown. Poweramp should recognize it automatically and pause playback.

I added "com.microntek.bootcheck" to this setting, but it doesn't seem to work.

EDIT:

I found out why it does not work. Poweramp DOES recognize last playing position, but if you start it before the external storage is mounted it starts from the beginning.

If you wait until storage is up and start poweramp it works like it should. So the problem is with external storage. THe usb stick shouldn't be unmounted when going into sleep mode...
[MTCD  Android Head Units Q&A] jrobbom5:
I believe that this is all behaving as expected, Android does remount the card on wakeup, I don't think you can change this (I'm no expert though, this is just what I understand). But you could try setting up a profile in tasker to respond to a "Card Mounted" event, and then use that to start PowerAmp.
[MTCD  Android Head Units Q&A] HopeSlayer:
Enable the "wait for storage" in Power Amp might help.

I finally got mine to resume when the vehicle is started.

These are my settings:

Poweramp:

Settings>Audio>Audio Focus: Resume On Start > Enabled, Wait For Storage > Enabled

Settings>Misc: Keep Service > Disabled

Tasker:

Profile = State> Display> Display State> (Is, Off)

Task = 1. App> Kill App> (App Poweramp, Use Root On)

Profile = State> Hardware> USB Connected > (Class, Mass Storage)

Task = 1. Task> Wait (2 seconds)

2. Plugin> AutoShare> AutoShare

(Package: com.maxmpz.audioplayer

Class: com.maxmpz.audioplayer.player.PlayerService

App: Power Amp

Action: Resume

Resume command: 3)

No matter if the head unit does a full shut down or goes to sleep, it resumes playback where the track left off. If I do less than a 2 second wait before the resume command, the album art fails to load for the first track or two when resumed. The wait seems to give it enough time for the album art to load. These settings will start Poweramp every time the vehicle is started even if you were listening to radio or A2DP when shutdown. I might add some IF commands so Poweramp will only resume if it was last playing. If you have more than one USB Mass Storage devices connected you might want to specify which device to wait on before sending resume command. Also, make sure Tasker is added to the Whitelist and Poweramp is NOT added to the list. Thanks to the previous posters for the help! Hope this helps someone.

I'm using Poweramp V.3

Android Version: 6.0.1

Build number: px5-Malaysk 6.0.1
[MTCD  Android Head Units Q&A] blAcksAndmAn:
Thank you for your answer!

This does work BUT I have to add a much higher waiting time (~15-20s), because with your settings poweramp is openend if the storage is available but not fully mounted.

So I have to add this timeout... And as said with this way, poweramp opens everytime, even if you used radio.

I think I should convert all my mp3 to 128kb/s, then internal storage should fit :D
[MTCD  Android Head Units Q&A] HopeSlayer:
You're Welcome, Glad that helped!

Do you have "Wait For Storage" enabled? If you have it enabled it should wait up to 30 seconds while the USB is being mounted before resuming play. "Settings>Audio>Audio Focus: Wait For Storage = Enabled" The only reason I had a 2 second delay was for Album art to catch up.

You could also try to disable auto scan, Settings>Library>Scanner>Auto-Scan = Disabled. Or disable USB Disconnection/SD Card Mount scan might speed up you start up time. I have 30 gb of music of different quality on a USB stick and it starts in about 3 seconds with Auto-Scan still enabled.
[MTCD  Android Head Units Q&A] blAcksAndmAn:
Yes, the wait for storage option is enabled.

I nearly got it working. With a ssd drive instead of the usb stick the mounting time is only about 3s. Even too short for directly starting poweramp - it starts the track from beginning. So I decided to delete pwoeramp from start after standby list and use tasker for that. For now I didn't managed the routine already. I try to check if the radio app is running after startup. If not, Tasker should open Poweramp. But I didn't use Tasker many times, so I have to read about it first. If this works, the unit will start playing music with poweramp ~5s after waking up if not the radio app was opened before going into sleep. These 5s would be ok for me.
[MTCD  Android Head Units Q&A] HopeSlayer:
Sounds good. The AutoShare plugin for Tasker has intents for Poweramp which are extremely easy to use. https://joaoapps.com/autoshare/intents/
[MTCD  Android Head Units Q&A] blAcksAndmAn:
I think I got it working!

First I disabled the open media after standby option in Hal9k.

Then I added profiles for radio app and poweramp in player. If these apps are launched the variable %MediaChk is changed to either poweramp or radio.

The next step is a profile that is executed when display is turned on. Then this variable is checked. If its content is radio, the radio app launches. If it is poweramp, after a delay of 5s the pwoeramp app is launched.

After that the variable is set to 0.

Now, after waking up from sleep tasker checks the content of the variable and starts the preferred app. Apps that need usb storage are delayed for only 5s.

You can add every app you want, so bluetooth audio e.g. would be no problem.
[Android Q&A, Help & Troubleshooting] ZLevente:
Hi,

I wanted to edit the Android One launcher's dock color (transparency)

https://www.xda-developers.com/download-android-one-launcher-xiaomi-mi-a1/

I decompiled with apktool, but i can't find where to edit the dock.

Can someone help? I think it's very similar to Pixel1 launcher, so if someone know pixel1 edit, please tell :)

Thanks
[Windows Mobile Development and Hacking General] marktang:
is there a window mobile version one of the iphone's touchpad app. basically u turn your phone into a touchpad to control your computer cursor.
[Windows Mobile Development and Hacking General] asefsef:
ppc tablet

http://www.pocketgear.com/en_US/html/display_product.jsp?id=prod5670730
[Xiaomi Redmi Note 3 Questions & Answers] Julio637:
Hello,

When I connect headphones I hear the music but the vocals are muffled - sound quality is overall just bad. Without headphones it works like it should. I tried few headphones. Also I tried different ROMS - GlobeROM and MoKee. It can't be Jack connector either, I have had it replaced. Any idea what could it be? Thank you in advance.

EDIT: every headphone tested works great in PC/other phone
[Moto G5S Plus Questions & Answers] xSpartacusx:
Just curious if anyone with the US model 1806 gotten a patch update recently within the last couple months. Im still running with the the June 2017 patch.

Ive seen some people saying they have an October or January or February patch, so just wanting to see what others may have if its different

My build number is NPS26.116-26 no updates available to download from the phone
[Moto G5S Plus Questions & Answers] William1020000:
Retgb; still on October patch
[Moto G5S Plus Questions & Answers] pswiifanwmi:
The January 1, 2018 security update landed on my phone about a week ago. It's number NPSS26.116-45-9. You have to have October you can get this one, though. I am using a retus model. Probably too late to find my zip though. You might wanna check Reddit.
[Moto G5S Plus Questions & Answers] SynisterWolf:
may i ask which version you have 3g/32gb or 4g/64gb
[Moto G5S Plus Questions & Answers] pswiifanwmi:
Yeah, I have the 3/32GB version. Interesting idea.
[Moto G5S Plus Questions & Answers] cubano2031:
I got the 4/64 and i flash the lastest firmware already and i got the the January patch i am in US....
[Moto G5S Plus Questions & Answers] Ehorton453:
I have a copy if it helps, Jan update

drive.google.com/file/d/1DN5OEu6FkymCKJWjOgukzfI3yOKZM59t/view?usp=sharing
[Moto G5S Plus Questions & Answers] xSpartacusx:
i wonder why my retus model didnt get an update stuck on july 1 2017.. And i got it midway through december so i would think that I would have gotten a software update out of the box over wifi for it? then again right now its bootloader is unlock and the bootloader says the software is modified?
[Moto G5S Plus Questions & Answers] DKaine:
I just got the message for the January Security update for XT1806 (retus sanders). Trying to figure out a way to patch and keep root... Or patch then re-root.
[Moto G5S Plus Questions & Answers] Phazmos:
Remove root, load factory recovery, update, load recovery of choice, root
[Moto G5S Plus Questions & Answers] DKaine:
Doing just that, I was being cheeky when I said "figuring out ..." I was hoping that flashfire or RSDLite was still an option... but your steps above are still the easiest thing to do.
[Moto G5S Plus Questions & Answers] XrayossmanX:
Patch security update

Yesterday I received the update with security patch 1 January and I have the model XT1806 us ...... So I waiting for the Oreo update....
[Moto G5S Plus Questions & Answers] SynisterWolf:
do you mean OTA or do you have the actual firmware so i can start from scratch?
[Moto G5S Plus Questions & Answers] boberto777:
File?

Do you have the firmware file to share for the 4/64?
[Honor 5X Questions & Answers] numb95:
Hi there

I recently bought a Huawei Honor 5X to install the Lineage OS and test it and doing some jobs on it. I have KIW-L21

I visit the Huawei's unlocking website and receiving unlock password. but after i enter this command:

fastboot oem unlock PASSWORD

it shows me this error:

...
FAILED (remote: Invalid key,unlock fail)
finished. total time: 0.011s

I search a lot but i didn't find anything good for it.

what should i do to unlock the bootloader?
[Honor 5X Questions & Answers] numb95:
Any Idea?
[Galaxy Tab S2 Q&A, Help & Troubleshooting] c-f-g:
Until yesterday everything worked smoothly, but now my tab connects to my 5GHz network and gets automatically disconnect right after.

My other device (Xiaomi Redmi Note 4) still works with 5GHz so it should be device specific.

2.4GHz is fine, but I'd prefer using the other frequency.

I tried hard rebooting it and resetting wlan settings, but it changed nothing.

Were there any updates recently? Can I see a history somewhere?
[Xiaomi Redmi Note 4 Questions & Answers] Roni.wonder:
I found out this phone doesn't connect to emergency numbers, tried also with a friend's phone and it doesn't connect the call. We are from Israel, has anyone else had this problem? Try calling 911/ 100 and see
[Xiaomi Redmi Note 4 Questions & Answers] LiQuiD_FeAR:
Is this a prank? Never had to try it
[Galaxy Note 3 Q&A, Help & Troubleshooting] paramount7force:
So I installed kali Linux all on my external sd card so far using the compulsion kernel phone is running ultimate rom android 4.4.2. After installing kali Linux using Linux deploy and the compulsion kernel I install the Civz kernel rev 1.9 for android 4.4.2 model numbser smn9005. The civz kernel apparently has Atheros usb support in the kernel. When I start kali Linux and and insert my alfa Atheros AR9271 card it's recognizable by lsusb as inserted but ifconfig and iwconfig won't recognise it. Do I need a new Wifi adaptor and if so which one a link to the amazon UK site would be good or can I use monitor mode with my current card. I'm running the note 3 smn9005 ultimate rom 4.4.2 civz kernel, Linux deploy with kali-linux-all installed on an ext2 partition on my external sd card help with this would be much appreciated and could help others also. Thank You!!!

Edit: is there any chance im using the wrong wifi adaptor as the amazon listing says its using the atheros ar9271L chipset. If I order a tp link wl722n version 1 from abroad would that work?
[Galaxy Note 3 Q&A, Help & Troubleshooting] paramount7force:
Ive bought 3 new kali linux compatible wifi cards a couple of different chipset alfas and a tp link wn722n version 1. Will update here with what happens. Any help would be appreciated.
[Galaxy Note 3 Q&A, Help & Troubleshooting] paramount7force:
Monitor mode solved

SO i bought several kali linux recommended cards none worked accept the awus036h wireless card which uses the rtl 8187l chipset i believe made by alfa network. However it wasnt working with kali linux on linux deploy rather kali linux using the complete linux installer method. I repeat several cards except the awus036h made by alfa network were not working. Any questions feel free to ask.
[Xperia Tablet Z Q&A, Help & Troubleshooting] qtong:
So I dug out my old Xperia tablet and wanted to install some custom roms. To my surprise I cannot...

My bootloader is unlockable.

Its about 5 years after release of this tablet and I just don't acknowledge the fact that such a device is in ANY way unlockable.

There has to be a way of unlocking this crappy bootloader.

Would going to provider do any good? It's a few years after the warranty time so why not let me actualy do whatever I want with this device ?

Like someone else said in another thread - it's maddening and unthinkable...
[Xperia Tablet Z Q&A, Help & Troubleshooting] Rootk1t:
Study https://developer.sonymobile.com/unlockbootloader/unlock-yourboot-loader/
[Galaxy Note5 Q&A, Help & Troubleshooting] xdamember143:
Hi I'm planning on a getting a used note 5 and I was wondering how would I root it? Also what variants should I get if I want root?
[Galaxy Note5 Q&A, Help & Troubleshooting] rayjak24:
go to galaxynote5root.com the video tutorial is there
[Galaxy Note5 Q&A, Help & Troubleshooting] Deleted member 4529355:
Install TWRP, then install Magisk zip and voila! its all.
[Galaxy Note5 Q&A, Help & Troubleshooting] SirGarmaples:
deleted