yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Paradoxxx:
I am so glad someone created this. I have been waiting for a standalone version of something like this since Xposed mods are a thing. This is awesome. Thank you so much!
[Android Apps and Games] vinoxflame:
very nice, thanks for sharing this app?
[Android Apps and Games] maxesxp:
On an s10+ here, skip track works but volume will increase as if the button was being held. Ie. Once skipping to the next song, it will play at a much louder volume. Tested on Google play music and spotify.

UPDATE: disregard this, issue seemed to have fixed itself
[Android Apps and Games] aang741:
did you find any solution?
[Android Apps and Games] fagervan:
moto g20, doesn't work with screen off
[Android Apps and Games] medinstpro:
usb debugging is active in developer options?

Then, change the usb configuration to "MIDI" with the phone connected

and start the adb command again
[Android Apps and Games] NeoSDAP:
At the moment, working well on Poco X3 Pro MIUI 14 Android 13
[Android Apps and Games] archz2:
This works on my phone running Android 14 with screen on but doesn't work when screen is off.
[Android Apps and Games] comptonhubbard:
can you add a vibration to the long press
[Android Apps and Games] kkarakk:
Samsung A50(SM-5005f), long press doesn't work in spotify.

---------- Post added at 10:23 AM ---------- Previous post was at 10:20 AM ----------

tried it on samsung a50 with pie, does not. works in music player apps and youtube backgrounded mode
[Android Apps and Games] Cilenco:
Look at the first two lines of your error message! You have a typo. Just remove space in LISTE NER
[Android Apps and Games] punkrockfan:
ah

well thats been copy and paste from your post, so needs to be removed in #1 too)
[Android Apps and Games] bihariel:
Can you add a root option please?
[Android Apps and Games] moin1402:
operation not allowed: java.lang.SecurityException: grantRuntimePermission: Neither user 2000 nor current process has android.permission.GRANT_RUNTIME_PERMISSIONS.
[Android Apps and Games] Cilenco:
I actually have no idea why there is a space in that post. When I try to edit it, the code appears without space... Sorry for that!
[Android Apps and Games] S0bes:
Here's Russian strings

https://poeditor.com/projects/po_edit?order=&filter=t&id=249511&id_language=134&search=

P.s

Honor play android 9 doesn't work. The app can do just one skip and after that nothing happens
[Android Apps and Games] pankspoo:
Please add one extra option i. E stop music and also add support for any music app(on 3d music its not working)

Anyway thanks for adding my video ????@Cilenco
[Android Apps and Games] andrewNY:
Working for me on the Note8 running Android 9 (OneUI). Thanks!
[Android Apps and Games] mastamx:
Nice

Works with rooted Galaxy S7 even with screen off and in Spotify
[Android Apps and Games] mike freegan:
Doesn't work with unrooted OnePlus 6t

Installed the app, ran the ADB command but long pressing buttons doesn't do anything.
[Android Apps and Games] GasLoop:
On rooted Sony Xperia X Compact it doesn't work with Shuttle+, with the stock app it works but also increases the volume which is really annoying...
[Android Apps and Games] walkwitmeinhel:
It worked for me mate 20x pie emui 9
[Android Apps and Games] supleed2:
Try toggling the react without music option, it did the same for me but now it works fine
[Android Apps and Games] wruyter80:
Works for me on my Note 9 for Google Play Music but doesn't seem to work for YouTube Music?
[Android Apps and Games] GasLoop:
Tried to do that but it still doesn't work.
[Android Apps and Games] montajd:
Works on Pixel 2XL 8.1
[Android Apps and Games] EdrickMG:
-Deleted

awesome app
[Android Apps and Games] chanwilson01:
Works on LG G7 8.1, had to enable Screen on option to work. works both screen on and off

tested with Google Music and Audible. Thank you!!
[Android Apps and Games] kdacaret:
Works on LG G6 8,0

Enable Screen on option to work.

Tested on Spotify, works great

thanks!
[Android Apps and Games] Jan Philipp:
Doesn't work on my Huawei P20 (Pie, Dualsim, EMUI9). App is correctly installed and permissions were granted.
[Android Apps and Games] estemanito:
it doesn't works on rooted Pixel XL with Lineage Pie version and Neutron ;)
[Android Apps and Games] TheJimmy1300:
I'm on pixel xl running latest pie release and app says it's missing premission even though I did everything as I should.

EDIT: it worked after rebooting pc. I have no idea why.
[Android Apps and Games] zamuz27:
Hey, I was wondering why this app doesn't work with Poweramp and someone from their forums pointed soemthing out to me: it looks like the app is sending only the ACTION_DOWN event for the next and previous commands, but not the ACTION_UP. This is what the event log from Poweramp look like when trying to skip tracks:

09:23:51.357 PSMediaButtonReceiver android.intent.action.MEDIA_BUTTON
KEYCODE_MEDIA_NEXT ACTION_DOWN name=Virtual source=0x0 sources=0x301 virt=true repeat=0 actionTime=172448721 playerState=1
==================
09:23:53.431 PSMediaButtonReceiver android.intent.action.MEDIA_BUTTON
KEYCODE_MEDIA_PREVIOUS ACTION_DOWN name=Virtual source=0x0 sources=0x301 virt=true repeat=0 actionTime=172450796 playerState=1
==================
09:24:03.414 PSMediaButtonReceiver android.intent.action.MEDIA_BUTTON
KEYCODE_MEDIA_PREVIOUS ACTION_DOWN name=Virtual source=0x0 sources=0x301 virt=true repeat=0 actionTime=172460777 playerState=1
==================
09:24:06.670 PSMediaButtonReceiver android.intent.action.MEDIA_BUTTON
KEYCODE_MEDIA_NEXT ACTION_DOWN name=Virtual source=0x0 sources=0x301 virt=true repeat=0 actionTime=172464034 playerState=1
==================
09:24:31.391 PSMediaButtonReceiver android.intent.action.MEDIA_BUTTON
KEYCODE_MEDIA_NEXT ACTION_DOWN name=Virtual source=0x0 sources=0x301 virt=true repeat=0 actionTime=172488754 playerState=1
==================
09:24:34.685 PSMediaButtonReceiver android.intent.action.MEDIA_BUTTON
KEYCODE_MEDIA_PREVIOUS ACTION_DOWN name=Virtual source=0x0 sources=0x301 virt=true repeat=0 actionTime=172492048 playerState=1
==================
09:24:56.422 PSMediaButtonReceiver android.intent.action.MEDIA_BUTTON
KEYCODE_MEDIA_NEXT ACTION_DOWN name=Virtual source=0x0 sources=0x301 virt=true repeat=0 actionTime=172513786 playerState=1
==================
09:24:58.763 PSMediaButtonReceiver android.intent.action.MEDIA_BUTTON
KEYCODE_MEDIA_PREVIOUS ACTION_DOWN name=Virtual source=0x0 sources=0x301 virt=true repeat=0 actionTime=172516127 playerState=1

It still seems to work with other music apps, but I think this could be a bug.
[Android Apps and Games] moin1402:
Disable permission monitoring

Disable permission monitoring in developer options solved the problem.
[Android Apps and Games] Bonusbartus:
I don't think this is wrong, as it means you are pressing the button.

The action up means you stop pressing.

On my oneplus 6 it seems to work with some apps (foobar for instance) but not with neutron/rocketplayer/poweramp.

I have no idea what is going wrong on those apps... And with rocketplayer I can get it to work once after a reboot.
[Android Apps and Games] kdacaret:
It worked fine for a few hours, but after that it just stops, I have to turn it off and on to go back to work again

LG G6, Android 8.0, spotify
[Android Apps and Games] lukesky:
not working on huawei mate 20
[Android Apps and Games] :
The app works nicely, the only problem being, it closes on phone restart. I have to open the app and then it starts working after reboot. I have turned off battery optimisation for the app but the problem persists.
[Android Apps and Games] comptonhubbard:
i have the same issue on oreo tmobile s7e
[Android Apps and Games] FedorGavriLove:
Works well on Pixel 2 Android 9.0!

But it was necessary to delete space in your command (liste ner)
[Android Apps and Games] tom2803:
Also works on my S7 without root with screen off in Spotify

Many thanks !!
[Android Apps and Games] lobel68:
Note 9 Pie

Google Play Music works nicely, Youtube Music and BubbleUPnP don't.
[Android Apps and Games] midhun.ko:
Thanks for the app .

I'm using JioSavvn app as my music streaming app but the Skip Track app is not working with JioSavvn.
[Android Apps and Games] TerrorApple:
Does not work reliably with Spotify. Very rarely works, but mostly doesn't. OnePlus 6, Android Pie. Button Mapper Pro for example works 100%. So probably not a device issue? Is there maybe a need to exclude the app from battery optimization? For the future a root method with adb would be nice as well :)

Anyways nice work! Hopefully its more reliable soon.
[Android Apps and Games] azsl1326:
Thanks for making this available. Doesn't seem to be working with the OnePlus 6T. In fairness, I couldn't get the Tasker Profile to work either so I am guessing it's something with the phone? It did work on the OnePlus 6. Did enable the service as well as the ADB command.
[Android Apps and Games] Tepid Ostrich:
On my OnePlus 6, it seems to work on some apps, but not others. It works for VLC, but not PowerAmp (though Max has since updated PowerAmp to use the permission itself.

One that is perplexing is Droidsound-E.

https://github.com/droidmjt/Droidsound

It doesn't seem to work at all. It there anything I can do, or is it a situational thing?
[Android Apps and Games] Dj Kavas:
you will be put adb command CORRECTLY. :confused: . pls share your app screen shots.

EMUI 8.0 work fine but i don't check EMUI 9+ :rolleyes:
[Android Apps and Games] KUSOsan:
He has added in to Poweramp but what sucks is there is no option to make it work only when screen is off like with this app. It's annoying trying to change volume because it's faster to hold the button
[Android Apps and Games] 1111231231:
Only works on google play music.

It does not work in powearamp T.T
[Android Apps and Games] br0adband:
Confirmed working on my LG V20, H918 (T-Mobile), pure stock Android 8.0 (20h), no root at this time, finally got to a point where I just don't care about it. Works with GoneMAD (my audio player of choice), USB Audio Player Pro, Google Play Music, MX Player Pro, etc. Yes, on the V20 it does appear that one needs to enable the "Screen On" toggle to get it to work but it does work, without any issues so far.

The ONE SINGLE THING I've been hoping for the better part of the past decade was the ability to have this functionality without having to install CyanogenMod (from the past of course) or Lineage or some other custom ROM just to allow me to skip tracks with a long press.

BlackBerry devices have had this functionality since BB10 OS came out and they continue to have it even with Android but it seems no Android device makers do it.

THIS IS AWESOME, PLAIN AND SIMPLE. OP, THANK YOU

A BAZILLION FREAKIN' TIMES OVER, seriously. :)

ps

If you ever consider putting up a donation link, I'll be more than happy to toss a buck or two your way, you just changed the game, literally... ;)

LATE EDIT:

Just picked up two - not one but two - AT&T H931 V30 smartphones for $100, one of them has some slight glass damage to the lower portion under the Menu/Recents button but the digitizer is still 100% functional, the other has no damage at all. Converted both to the US998 without any issues, unlocked the bootloader on each, bumped them up to 20h (latest) and happy to report that skipTrack works without issues on both but as with my V20 I do have to enable the option to use it when the screen is on.

Still amazed that someone finally created this kind of a simple utility and it works perfectly. ;)
[Android Apps and Games] Jovi6:
This is very useful,thanks.
[Android Apps and Games] prozacdefraud5926:
Unfortunately doesn't work for my version of Spotify 8.4.70.666 armV7, but works fine for Google Music. That's a shame because I use Spotify only.
[Android Apps and Games] Max0891:
This app is very nice. Really a good job.
[Android Apps and Games] OrKl!D:
Did everything. Not working on my Huawei Honor Play.
[Android Apps and Games] xeltos:
Solved poweramp issue. How to delete comments from android chrome?
[Android Apps and Games] Laikos38:
Hi! Not working on poco f1 (xiaomi MIUI v10.3.4 android 9). When executing in cmd i get:

Security exception: grantRuntimePermission: Neither user 2000 nor current process has android.permission.GRANT_RUNTIME_PERMISSIONS.

java.lang.SecurityException: grantRuntimePermission: Neither user 2000 nor current process has android.permission.GRANT_RUNTIME_PERMISSIONS.
at android.app.ContextImpl.enforce(ContextImpl.java:1822)
at android.app.ContextImpl.enforceCallingOrSelfPermission(ContextImpl.java:1850)
at com.android.server.pm.permission.PermissionManagerService.grantRuntimePermission(PermissionManagerService.java:1391)
at com.android.server.pm.permission.PermissionManagerService.access$900(PermissionManagerService.java:89)
at com.android.server.pm.permission.PermissionManagerService$PermissionManagerInternalImpl.grantRuntimePermission(PermissionManagerService.java:2118)
at com.android.server.pm.PackageManagerService.grantRuntimePermission(PackageManagerService.java:5604)
at com.android.server.pm.PackageManagerShellCommand.runGrantRevokePermission(PackageManagerShellCommand.java:1730)
at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:217)
at android.os.ShellCommand.exec(ShellCommand.java:103)
at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:21848)
at android.os.Binder.shellCommand(Binder.java:634)
at android.os.Binder.onTransact(Binder.java:532)
at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:2809)
at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:4014)
at android.os.Binder.execTransact(Binder.java:733)

I dont know if thats the correct out of the command. Cheers!
[Android Apps and Games] ionalexis24:
Exception occurred while executing:

java.lang.IllegalArgumentException: Unknown permission: android.permission.SET_VOLUME_KEY_LONG_PRESS_LISTE

at com.android.server.pm.permission.PermissionManagerService.grantRuntimePermission(PermissionManagerService.java:1398)

at com.android.server.pm.permission.PermissionManagerService.access$900(PermissionManagerService.java:89)

at com.android.server.pm.permission.PermissionManagerService$PermissionManagerInternalImpl.grantRuntimePermission(PermissionManagerService.java:2093)

at com.android.server.pm.PackageManagerService.grantRuntimePermission(PackageManagerService.java:5411)

at com.android.server.pm.PackageManagerShellCommand.runGrantRevokePermission(PackageManagerShellCommand.java:1730)

at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:217)

at android.os.ShellCommand.exec(ShellCommand.java:103)

at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:21330)

at android.os.Binder.shellCommand(Binder.java:634)

at android.os.Binder.onTransact(Binder.java:532)

at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:2821)

at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:3856)

at android.os.Binder.execTransact(Binder.java:731)

This is what I get. I have a pixel 2xl
[Android Apps and Games] Laikos38:
Hi! You got a typo at the end of the command. Must be "LISTENER" not "LISTE". It's referred before in the post. Try that
[Android Apps and Games] k4win:
Hi guys,

I want to say thank you for this awesome app and it's features. I was always jealous of this function on my brothers oneplus one phone but now I have it too.

Device:

Xiaomi Mi 9 (6GB + 128GB)

Xiaomi.EU Rom 9.5.23 weekly

Magisk 19.2

Unlocked bootloader

In the beginning this app does not run out of the box. If I try to give the permissions via ADB I get the error 2000 thing that so many other users got here too. I check the spelling. I removed the space I copied the comment from github and I even type the complete command thought it was always the error 2000 permission denied.

I can install this app normally without any error, so this must be an permission problem. Xiaomi changed a lot of the standard permission procedures in Android so I needed another way to make this app a system app. For that purpose I used The Magisk Module systemizer App Terminal Emulator.

1) install the app from post #1

2) install under magisk systemizer (terminal emulator)

3) install any terminal emulator you want

4) run the terminal emulator and follow the systemizer readme.

5) make the app "com.cilenco.skiptrack" a system app

6) ignore the error at the end of the prozess

7) reboot

8) check via the skip track settings app if you have all permissions

9) enjoy a better android Live :laugh:
[Android Apps and Games] Lakshay1312:
Not working....

App not working on mi a2
[Android Apps and Games] varefaz:
i have a problem when i enter the adb command.

D:\5. Android\LG G6 Modding\platform-tools>adb shell pm grant com.cilenco.skiptrack android.permission.SET_VOLUME_KEY_LONG_PRESS_LISTE NER

error: device unauthorized.

This adb server's $ADB_VENDOR_KEYS is not set

Try 'adb kill-server' if that seems wrong.

Otherwise check for a confirmation dialog on your device.

D:\5. Android\LG G6 Modding\platform-tools>

and on the lg g6 screen appear a toast with "Because an app is obscuring a permision request, settings can't verify your response"

i have covered the rsa key. see the image

https://imgur.com/a/HjsZiqd

EDIT: Solved. i have deactivate fluid gesture
[Android Apps and Games] Incineroar:
I'm using a Huawei P20 Pro and while it seems to work properly for Spotify (I've had to toggle a few settings like power management and whatnot, although it's still a bit touch and go right now, still testing it...) this is the only app it doesn't work with. Not sure what it is :/

Anyways, thank you a thousand times over for making this. I've longed to have this feature from my days of using custom ROMs and having this again on a stock rom is absolutely phenomenal. A vibration would be a very nice addition to have though, but since you've open sourced it something like that shouldn't be hard to add in.

Edit: Got the code building after about half an hour of fighting with Gradle because they seem to do integrity checks on the andriod JARs now, but I did successfully add vibration. I'm really liking that the source is available for this. Thank you again [MENTION=5041228]Cilenco[/MENTION]!

Edit 2: After some more code changes, it now works on Droidsound-E and should probably also work on other apps that it didn't work on previously. I'll look into seeing on getting these changes merged. I may also try adding in a notification about battery management being disabled to make sure it's not killed, but otherwise it's pretty much a perfect replacement now.

Edit 3: Okay so I was doing some testing, and I don't think Android's battery management is causing any discernible problems. HOWEVER, I did discover that Huawei's EMUI is causing problems, specifically its aggressive power management and its liking to kill pretty much anything. I noticed a couple people here that had devices running EMUI that are having issues so I'll mention both of you individually.

[MENTION=449952]lukesky[/MENTION] and [MENTION=7219033]Jan Philipp[/MENTION] Can both of you reinstall the latest version of the app that is uploaded and follow all the installation steps, but then do one more additional step? Head into Settings -> Battery -> App launch, and turn off the toggle for this app so that it's managed manually entirely (The popup that shows up when you turn off the toggle should have all three toggles there ON). Then give the app another try. It should fix the issues for you because after turning that off, I haven't had any problems whatsoever with my P20 Pro on EMUI 9.0.
[Android Apps and Games] SWAT10101:
It does not work with player pro any solution ?

It worked with google play music.
[Android Apps and Games] Glenn2:
Tested in Pixel 3a (Pie).

Rocket Player - doesn't work

Shuttle+ - doesn't work

Google Play Music - does work, but must manually start app after each boot (despite battery optimisation disabled for the app)

It's a shame.
[Android Apps and Games] Incineroar:
That's because it's not set up to run at startup. I've made a branch and I'm working on adding a few new things but I won't be releasing APKs until I figure out if he's willing to merge my (horribly coded) changes or clean up my code first, or if I'll have to change the package name and publish it separately. I noted the same error too the other day when I had to reboot my phone.

Edit: My current list of changes:

1. Added a vibrate when the long press is received

2. Fixed a bug that prevented it from working with some apps - it should work properly now

3. Added a warning for Huawei EMUI users - It's not a perfect solution but it'll do for now

Currently still needing to be done:

1. Add the ability for the service to automatically start when the system starts up

2. Look into a bug where the service doesn't seem to start until you toggle the switch in the app, close the app completely, then reopen it
[Android Apps and Games] mid.bermuda:
Hi there

I first convert this app to system app , but not work.

So made a xml file and copy to /system/etc/permissions "need root user" and restart my phone , now no need adb shell for permissions ,perfectly work for me.

Sorry for my bad English

First convert to system app (for converting you can copy /data/app/com.cilenco.skiptrack-xxxxxxxx to

/system/priv-app) and copy this file and restart.
[Android Apps and Games] mid.bermuda:
read post #80
[Android Apps and Games] rvhuynh01:
Can confirm that on Audipo (on my Huawei P30) it doesn't skip the track. On Google Music, it does.
[Android Apps and Games] smisi:
Works Perfect on a Vivo Nex S chinese version no root with Funtouch OS 9, Android 9 and phonograph music app. great app thank you developer!
[Android Apps and Games] dude60:
not working on samsung A30 :/
[Android Apps and Games] EdrickMG:
I see in samsung you need to make some changes
[Android Apps and Games] dude60:
What sort of changes sir? Does that include Root?
[Android Apps and Games] EdrickMG:
Active it and also option that it says screen on regardless of what does it says it will work even with screen off
[Android Apps and Games] mn1968:
FYI - LG G6.

SkipTrack works on stock music player. With Rocket Player, it will skip up exactly one time and then fail to work again. Such a shame.

Not to take away from skiptrack but it did not work for my phone/apps. I have downloaded Button Mapper by flar2 and was able to remap the volume buttons as I wished. So far it works beautifully!
[Android Apps and Games] Incineroar:
[MENTION=5041228]Cilenco[/MENTION] I've gone and pushed some changes to my fork of the code which has some QoL enhancements and some other fixes, although it'll probably have lots of conflicts with yours. It's still a WIP though and I haven't had time to sit down and finish what I've wanted to since I started working on this. If you want I can build a signed APK though if you want to try it. Additionally, anyone else here can try it if they have Android Studio, but I won't build an APK for anyone here without his approval, all the instructions to build are in the readme.

https://github.com/Incineroar/skipTrackLongPressVolume
[Android Apps and Games] Mammutor:
I think that the command is misspelled.

adb shell pm grant com.cilenco.skiptrack android. permission. SET_VOLUME_KEY_LONG_PRESS_LISTNER

but that command also dont work for me

it works now, bit with this command

adb shell pm grant com.cilenco.skiptrack android.permission.SET_VOLUME_KEY_LONG_PRESS_LISTENER