Jump to content

Using ADB to allow Equaliser permissions for more audio applications


Recommended Posts

NEW: browser based adb tool https://powerampapp.com/webadb/
This one doesn't require installation or even can be used on the Android devices in mobile Chrome.

 

The Poweramp Equaliser app is designed to operate with other Android audio apps which already specifically allow external modification of their sound output - and you can see and enable those apps in the 'Known Players' list in Settings - but there are some other audio playing apps which don't provide access for this sort of adjustment.

There is a slightly tweaky method (which does not need root) to override this and provide support for most audio apps though. It's a one-off task, so once it's done you shouldn't need to do it again.

You need to enable some extra permissions via PA-EQ Settings > Equalizer > Advancer Player Tracking. However before you can do that, you first need to run a simple command-line instruction in ADB (Android Debug Bridge) on a computer to create the necessary permissions on your phone via a USB cable connection. If you don't have ADB installed on your computer, see the instructions in https://www.xda-developers.com/install-adb-windows-macos-linux/ .

There is also a website which can generate the same commands on a computer and send them to a connected phone via USB cable: https://webadb.com . You can even use another phone if you have a suitable OTG USB cable to connect between the two devices, using an app like https://play.google.com/store/apps/details?id=com.htetznaing.adbotg to issue the ADB commands.

On some devices, you may need to also need to go into the Android Developer Options, and activate the "Disable Permission Monitoring" toggle switch.

Once ADB is ready on your computer or other external device, open a command-line window and type the following command (shown in red) to link to your USB-connected phone:

C:\WINDOWS\system32> adb devices
* daemon not running; starting now at tcp:5037
* daemon started successfully
List of devices attached
R58M471DJAX     unauthorized

C:\WINDOWS\system32>

As shown by the error above, your phone may ask for permission the first time you do that:
image.png

After allowing on your phone, try again:

C:\WINDOWS\system32> adb devices
List of devices attached
R58M471DJAX     device

C:\WINDOWS\system32> adb shell pm grant com.maxmpz.equalizer android.permission.DUMP

C:\WINDOWS\system32>

You are now done with the computer connection, everything else is in the phone app now.

Now enable the actual feature on your phone via PA-EQ Settings > Equalizer > Advancer Player Tracking:
image.png

Clicking on Notification Listener Permissions in the above screen will take you to the following Android screen so you can enable access for the PA-EQ app:
image.png

 

After all that is done, play something in one of the previously-missing apps (e.g. YouTube Vanced) and you should then see it as selectable in the 'Known Players' list:
image.png

Andre

 

Link to comment
Share on other sites

  • andrewilley changed the title to Using ADB to allow Equaliser permissions for more audio applications
  • andrewilley featured this topic
  • Replies 48
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • 2 weeks later...

@Sohaibahmadu No, it looks like either you have not granted permission for the connection on your device, or you do not have a suitable driver installed on your computer for communicating with your device. Until you get a valid response from the adb devices command, no other commands will work. Check with your device's support people, or ask somewhere like the XDA forums for your specific product, as to what you need.

Andre

Link to comment
Share on other sites

2 hours ago, Sohaibahmadu said:

@Someguyonline my monitoring permissions is also disabled but not work on my oppo F11 mobile. 😢

There is a toggle named "Disable permission monitoring" at the very end of Developer options page. The toggle is disabled by default you need to enable the toggle to "disable permission monitoring". If it still doesn't work, please ask on XDA preferably with a screenshot of the developers option page.

Edited by Someguyonline
Bold
Link to comment
Share on other sites

On 2/6/2021 at 7:04 PM, Someguyonline said:

There is a toggle named "Disable permission monitoring" at the very end of Developer options page. The toggle is disabled by default you need to enable the toggle to "disable permission monitoring". If it still doesn't work, please ask on XDA preferably with a screenshot of 

Thanks. Its works now ❤️😍

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...
  • 3 weeks later...

@brenas25 Sorry, that's no possible. An app can't grant this permission to itself, it can only be assigned from an external debugging tool.

I don't know whether it's possible to do the same to an Android TV device though, if you can connect it to a computer via an OTG cable it might be. 

Andre

Link to comment
Share on other sites

18 hours ago, andrewilley said:

@brenas25 Sorry, that's no possible. An app can't grant this permission to itself, it can only be assigned from an external debugging tool.

I don't know whether it's possible to do the same to an Android TV device though, if you can connect it to a computer via an OTG cable it might be. 

Andre

Could you write me full adb commands:

1.Grant VOLUME KEY permission ( Poweramp equalizer )

2.Grant VOLUME KEY permission ( Poweramp player )

I did Grant DUMP and rest i have to enter manually.

Thank you

Link to comment
Share on other sites

@brenas25 The volume-key ADB commands are shown (and copyable) in the Settings pages of both apps:

pm grant com.maxmpz.equalizer android.permission.SET_VOLUME_KEY_LONG_PRESS_LISTENER

and

pm grant com.maxmpz.audioplayer android.permission.SET_VOLUME_KEY_LONG_PRESS_LISTENER

Andre

Link to comment
Share on other sites

4 hours ago, andrewilley said:

@brenas25 The volume-key ADB commands are shown (and copyable) in the Settings pages of both apps:


pm grant com.maxmpz.equalizer android.permission.SET_VOLUME_KEY_LONG_PRESS_LISTENER

and


pm grant com.maxmpz.audioplayer android.permission.SET_VOLUME_KEY_LONG_PRESS_LISTENER

Andre

Unfortunately i have another problem after  application command DUMP via adb.

Second option in settings of equalizer( below DUMP )is still locked.When click on it getting this message:

Failed to open: No Activity found to handle Intent ( act=android settings.ACTION_NOTIFICATION_LISTENER_SETTINGS ( has extras)

Without this opt. equalizer will not cooperate with AndroidTv device.

Do you know any solution?

 

 

Link to comment
Share on other sites

44 minutes ago, brenas25 said:

Without this opt. equalizer will not cooperate with AndroidTv device.

There is no need for the volume key listener in general use, so it shouldn't be that permission which is causing you any general installation problems.

Andre

 

Link to comment
Share on other sites

6 minutes ago, andrewilley said:

There is no need for the volume key listener in general use, so it shouldn't be that permission which is causing you any general installation problems.

Andre

 

BTW.

Without "Enable Player Tracking" equalizer not working even on my phone ( i checked it ).

Its strange that after DUMP permission i dont have any problems with notification listenerv on my phone and can choose Poweramp and others players in Player Tracking.I cant do this on AndroidTv device,so equalizer wont work.

Link to comment
Share on other sites

@brenas25 The 'Advanced Player Tracking' permission is needed for any apps that don't specially intend for their audio output to be modified by external processes - such as an equaliser.

So without granting the DUMP permission, the EQ app should still be able to install and run, but when you look in the Settings > Equalizer > Known Players list you won't see very many choices available (depending on what audio apps you have installed on the unit - YouTube Music should be visible anyway, as should Spotify).

Andre 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...