yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] steele_lee:
cannot activate, anything wrong? Asus ZF6 Pie.

C:\adb>adb shell pm grant com.cilenco.skiptrack android.permission.SET_VOLUME_KEY_LONG_PRESS_LISTE NER

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:1403)

at com.android.server.pm.permission.PermissionManagerService.access$1000(PermissionManagerService.java:90)

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

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

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:21831)

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:2904)

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

at android.os.Binder.execTransact(Binder.java:731)
[Android Apps and Games] KUSOsan:
I'm fairly certain this only works on Oreo. I believe this was removed from Pie by Google. Someone correct me if I'm wrong

(EDIT) Just saw OP stated it was tested on pie and Q so guess am wrong sorry.
[Android Apps and Games] mid.bermuda:
If on Android pie sometimes the app doesn't work , you need to enable background activity permissions, and remove this app from battery optimization list "if you have"

read post #80 for root users
[Android Apps and Games] trashcan75:
It doesn't work on Pixel 3a XL, I removed the app from battery optimization but where is the background activity permission on Android Pie? (9)
[Android Apps and Games] LovreDr:
I don't know on what kind of black magic this app is fueled by, but it is the only one that works how i want and i tried Button Remapper PRO, Next Track PRO, Bixby Remapper PRO (from my Samsung days), Tasker profiles and built-in Poweramp feature.

Problem is that both Button and Bixby Remapper work great but only when AOD is activated, I have OP7(non-Pro) so to make them work i have to tap screen before pressing, probably because they don't use "android.permission.SET_VOLUME_KEY_LONG_PRESS_LISTENER".

When i play YT Vanced tasker changes my tracks from YT and music player (i tried both BlackPlayerEX and Poweramp), tried to configure with multiple different profiles but nothing, only time i can make it work if YT or music player are the last opened app.

Poweramp built-in feature cant change YT tracks and you can't long press to change volume when screen is on, this is also the problem with Next Track PRO.

Your app is great, but not awesome yet, it stops after every reboot so i have to start it and then i can forget about it until next reboot, so "Hide launcher icon" is out of question, also I don't want to start it with Tasker every time as it seems easier to just open it and swipe it away. I disabled battery optimization and even made it system, but nothing. I don't use Spotify or Google Play Music so I can't tell, but it didn't work with Poweramp. Luckily BlackPlayerEX is good enough for me and it works flawless with YT Vanced.

If you could make it start in background at every boot and maybe even add vibration on track change then it would be awesome. I see that you open sourced it and i love that but I'm not a programmer so if you add this features I'm willing to pay for that or at least add a donate button.

Thank you for this app :)

(Before i had OP3 with LOS, then for a short time S10e with Bixby PRO so I didn't have problems with skipping tracks)
[Android Apps and Games] Zaxx32:
Just passing through. My Moto G5 Plus has a 'Moto Actions' app that allows going to previous or next track when screen is off by pressing and holding vol up or down. Not sure but can that app (code) be studied if I were to send you a copy? No idea if it'd be helpful or not. Btw, I'm running Oreo 8.1.
[Android Apps and Games] mid.bermuda:
App info > battery > background restriction

I'm on samsung OneUI HadesROM , i tested this app on my second rom "PixelExperience" and work perfectly with root user
[Android Apps and Games] Matthieu777:
Hi, work on Huawei P20 with my downloaded music :)

But don't work on spotify
[Android Apps and Games] spydertony:
Poweramp has its own built-in option to enable the feature, too. Same process. Guess that's why this app doesn't work well with it.
[Android Apps and Games] AScri:
Yeah! I found it, i'ts very usefull feature, thanks)
[Android Apps and Games] KUSOsan:
I use Poweramp but I don't like the built in one because it activates when screen is on as well so it interferes with volume control when I'm holding it down.
[Android Apps and Games] Jebble:
Works on S10 stoc but sadly doesn't work with YouTube Music.
[Android Apps and Games] hashtowent:
Perfect on Key1!

Saved my day :)
[Android Apps and Games] monkeyass408:
yay finally got it to work. Had to copy the correct command as the command on the OP throws an error. LOL.

Great work. Works for spotify and samsung music on my note 8. Love it. No need for me to root!
[Android Apps and Games] Jergis:
doesn't work !!!! :|
[Android Apps and Games] InfinityMO:
Godlike! For people with problems, install FIRST the apk, then enter adb command without the WRONG space in the end
[Android Apps and Games] KevinGrant05:
11 pages worth of comments and still no consensus on the actual instructions (adb command, signed/unsigned app).

Can OP/someone post the final link and the correct command to test this?
[Android Apps and Games] Incineroar:
The ADB command is put in the post correctly, but the forum software's formatting adds an erroneous space for some reason. As for the app itself the APK is available, however, I'm trying to reach out and ask if I can distribute my own copy of the APK and haven't heard anything back.
[Android Apps and Games] Spaceoid:
Has anybody found a solution for the PowerAmp issue? The in-build PowerAmp function does not work on my Sony Xperia X Compact on stock 8.0, maybe its not supported or sth. But the SkipTrack app does not do anything either. Installation worked like a charm... :)
[Android Apps and Games] cutecrocodile:
How to do it without computer?

I have redmi 5 plus having root. Thanks

---------- Post added at 06:06 AM ---------- Previous post was at 06:03 AM ----------

Tried this process on miui 10, with root. But the song doesn't skip on Google music and stock music player

---------- Post added at 06:10 AM ---------- Previous post was at 06:06 AM ----------

Can you further explain this. I can't understand first 5 steps.
[Android Apps and Games] Tanay_Mithari:
I done every thing fine and adb command too but still it did not changes track it got all the permission in redmi note 7 pro but honor 9 lite works fine is there any way to do it on redmi note 7 pro
[Android Apps and Games] mid.bermuda:
Try this, after copy file, remove this app in battery optimization list and remember, every restart your phone, you must run app in background for work.
[Android Apps and Games] cutecrocodile:
After copying from data/app to system/prive-app, I can't locate the app, neither in app drawer and not in settings. Then how to give permission
[Android Apps and Games] mid.bermuda:
first copy "don't move" to priv-app and restart phone , then uninstall "update" from app manager
[Android Apps and Games] cutecrocodile:
After copying and restart, still not available in apps
[Android Apps and Games] mid.bermuda:
In root explorer, apply Permissions of folder and subfile copied in priv-app to 775
[Android Apps and Games] cutecrocodile:
Now app is visible in installed apps. But no uninstall updates option. Only unistal option there.

---------- Post added at 02:56 AM ---------- Previous post was at 02:52 AM ----------

Wait, what should be the folder name in system/prive-app/***** and what should be inside this folder.

I am copying the folder com.cilenco.skiptrack-8FcG-L5aaP7W_o1g2caGAg== to prive-app without renaming it.
[Android Apps and Games] mid.bermuda:
No need to rename, If you've done it successfully ,after resatart top of app details "3dot" you should see the uninstall option
[Android Apps and Games] D-Mi:
Using the app since it came out and only complain I had is that the app doesn't receive the boot and needs to be restarted everytime the phone reboots. And there have been no work on this project ever since now that someone is trying to make it better still no response from the dev. This seemed a really good project. And was hoping for a playstore release too.
[Android Apps and Games] Incineroar:
Due to the nature of how the app interacts with the APIs required for this, it cannot be put on the Google Play Store, it would be instantly denied.
[Android Apps and Games] xAUSxReap3r:
The app doesn't work for me. Stock Android 9. Nokia 8 TA-1052.

After install and after running the ADB command, I opened the app, enabled the service, and my phone took me to 'Notification Access' menu under 'Special app access' to grant Skip Track Settings notification access. I did that, went back to the Skip Track Settings app, enabled the 'Screen On' setting, opened Google Music, played music, long pressed the volume down button and the track didn't change. Long pressed the volume up button, and the track didn't change. Even with this app, long-pressing either the volume down or volume up buttons just lowers or raises the volume for as long as I hold the button down.
[Android Apps and Games] Castrorific:
Works great on my Pixel 2 XL running Android 10. Thanks Cilenco!

I did have to make a slight adjustment to the adb command though.

There was a space in "LISTENER" that had to be removed which made the command invalid.

I tried posting the correction here, but the XDA Forum seems to re-add the space...
[Android Apps and Games] D-Mi:
Thank you for your response. Someone else is trying new features that's another thing but the app to detect boot received (like a system app), can it be possible. A feature request maybe or at least approve the request of the other dev who's willing to contribute and submit and updated apk.

Much appreciation for your work.
[Android Apps and Games] Incineroar:
Any app can detect boot completed as long as it has an intent for it and has been run at least once. What would have the app be denied is the use of the hidden APIs to detect the long press, they're not supposed to be used by regular developers.
[Android Apps and Games] D-Mi:
Did you reboot your device after setting up?

*You have to open the app once and close if you like before it can actually work after you reboot your device.*

In the app settings if you've turned on screen on settings,

1. Both screen on/off works with Spotify/Ymusic/SoundCloud which I use and tested on

2. With Playmusic/Gaana it will work only when the screen is off, which I don't use but tested on

---------- Post added at 07:54 PM ---------- Previous post was at 07:45 PM ----------

Confused you with Cilenco the OP dev! As I followed this thread and checked the GitHub for your work on this so far and as you mentioned still working on these two things

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

That's the thing I was trying to say in the previous reply.
[Android Apps and Games] Grumpy Cat:
Don't work on the Mate 10.
[Android Apps and Games] Chilean Ivan:
Tested

Working on Android 9 in a Nokia 6.1
[Android Apps and Games] Spookymyo:
Is there any root access so we don't have to use adb?
[Android Apps and Games] supleed2:
If you use a terminal emulator and sudo the adb commands it'll use root and essentially have the same effect afaik
[Android Apps and Games] lalu46:
>> java.lang.IllegalArgumentException: Unknown permission: android.permission.SET_VOLUME_KEY_LONG_PRESS_LISTE

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

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

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

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

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

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

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

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

>> at android.os.Binder.shellCommand(Binder.java:642)

>> at android.os.Binder.onTransact(Binder.java:540)

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

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

>> at com.android.server.pm.HwPackageManagerService.onTransact(HwPackageManagerService.java:432)

>> at android.os.Binder.execTransact(Binder.java:739)

I get this error on my honor 9n running android pie
[Android Apps and Games] Liquidator:
I just installed this today. Works flawlessly on my S10e, thanks for that... I missed this LineageOS feature. :)

Just running pm (the entire command given by OP, obviously) from a root terminal worked me.
[Android Apps and Games] Salieri99:
Don't work on mi 9 lite. I have installed the app, insert the code on adb, enable the service and the screen on, reboot the device, but it don't skip the tracks.
[Android Apps and Games] DerDavid01:
Tested on OnePlus 7t

Working perfectly!

Running stock Android 10 Oxygen OS 10.0.6.HD65BA

Very nice tweak!!
[Android Apps and Games] crs77:
Same here....Android 10, Pixel 2 XL. Darn Verizon locked bootloader model. Was hoping to utilize this.
[Android Apps and Games] Incineroar:
Make sure to pay attention to the space in the command. It must be removed as the forum software inadvertently puts one in.
[Android Apps and Games] farnell:
Lineage OS already has this feature built in.
[Android Apps and Games] crs77:
Doi...Thanks! Working.
[Android Apps and Games] Forever Alone:
Please make volume key cursor control too ? this is awesome
[Android Apps and Games] shieraz:
Working on my realme 5 Pro. (I had to enable Screen On option to make it work though)
[Android Apps and Games] Scray:
Worked perfectly with Android 9, just had to launch the app after every restart.

Since the Android 10 update however, the service or whatever it is seems to be killed, so I have to relaunch the app every now and then in order to make it work again.

Galaxy S10e with Stock Android 10 and One UI 2
[Android Apps and Games] Nash123:
Thanks, works on rooted Poco F1 with MIUI and Android 10.

Edit: Stopped working after several days. Reinstall did nothing, so didn't adding the one line. I guess MIUI is the culprit.

Edit 2: Reboot and making it autostart made it work again :)
[Android Apps and Games] Drixylium:
A small problem here, please HELP!

Why doesn't it work while screen is on ? Even when on AOD it doesn't skip tracks.. Any ideas , please ?
[Android Apps and Games] mach07:
Nice but I wish was the other way around: short press = skip / long press = volume. Makes more sense as sometimes when we skip we skip a lot of songs to get to the one we want. And a long press simply makes that not practical. Maybe a setting short/long press behavior?
[Android Apps and Games] Tepid Ostrich:
[MENTION=4863874]Incineroar[/MENTION]: I should have said this sooner, but thank you for checking into this and getting the app working with Droidsound. I know you said you were not going to distribute the fork you made, but if you still have an apk laying around, I don't suppose you would be willing to shoot be a link on a temporary upload service, like Firefox Send or something? I have not been able to build that apk correctly. Even after replacing the .jar file, making sure not to update Gradle and everything, turning on usb debugging, and granting the permission, it doesn't work. By which I mean the permission doesn't work, even in apps the original app worked in, and I made sure that the command was entered correctly, and the app thought it had the permission.
[Android Apps and Games] The_VGs:
Could not make it work

Phone:

Redmi K20 Pro

MIUI Global 11.0.4 (Android 10 QKQ1.190825.002)

Apps tested:

Musicolet

YMusic

Installed the apk, connected to the phone with USB debugging and the "USB debugging (Security settings)" activated (without it activated, the "grantRuntimePermission: Neither user 2000 nor current process has android.permission.GRANT_RUNTIME_PERMISSIONS." Error happens), ran the app and activated the option "Enable Service" inside it, disable the Battery saver and related options but the app did not worked.

Am I losing some step?
[Android Apps and Games] Incineroar:
See the update below :)

So the GitHub for the original repository was updated last night, and there is now a license on there, specifically, an MIT license, which means I am now allowed to redistribute the software, even in a compiled form! I'll dig in my old laptop and move the repository onto my new computer later on today but I'll toss a link to the APK of my version here in a little bit once I can find the APK haha. I've since got a new computer so I need to just bring the project files over from my hard drive backup, but I still do have the APK that people can use for sure somewhere. Check back in a bit and I'll have a link to a build available ^^

Edit: Check the attached APK below. I think this is the one that's signed, but the Android SDK isn't making it terribly easy to figure out where my signed APK is. Heads up that if you have any previous versions of the app installed, you MUST uninstall the old version of the app before you install this one, as the package names will conflict and because they use different keys, it won't update to my version smoothly. Once that's done, issue the same command via ADB as before to grant it the necessary permissions, and it should be good to go!

Updates include:

- Power saving feature warning for HUAWEI devices (Still needs some more testing)

- Vibrate on track change

- Compatibility with more media players by fixing a bug
[Android Apps and Games] looklookson:
[MENTION=4863874]Incineroar[/MENTION]:Thank for adding "Vibrate on track change" feature, it is really useful. =)

Based on Cilenco and your work, I added a startup receiver and fixed some minor bugs.

https://github.com/looklookson/skipTrackLongPressVolume

I submitted a pull requests to you and hope it can help others.
[Android Apps and Games] Incineroar:
Awesome. I'll review it and test the build once I get the environment set up on my new desktop and merge the changes. I haven't had much time to do much in the way of any coding the past few weeks as I just went back to work but once I get a breather I'll look at it.
[Android Apps and Games] Creative9170:
I had same error on MIUI 12 Android 10, if you are rooted, do following steps:

1- type "adb shell" in adb and press enter

2- type "su" and press enter

3- grant superuser access to adb shell on phone

4- again do step 1 and 2 (now it has root access!)

5- then type: "pm grant com.cilenco.skiptrack android.permission.SET_VOLUME_KEY_LONG_PRESS_LISTENER" and press enter.

6- Done :fingers-crossed:
[Android Apps and Games] D-Mi:
Wow good to see people are still contributing to this project! I used it a year ago then found and app called volumee and now finally moved to custom roms which has this feature inbuilt. Still good to see the thread is still alive!
[Android Apps and Games] PapasFilms_Official:
Won't work

I have a Redmi note 7 and after installing (with adb command successful) holding down the volume rockers will act like pressing down the buttons multiple times (hold volume up: volume goes to 100%). Is there a way I can fix it?
[Android Apps and Games] rorwal:
Android 11 borked

This app worked flawlessly on my Pixel 4a running Android 10. As soon as I updated to Android 11, it stopped working.

I re-ran the adb command, still nothing. Rebooted, still nothing.
[Android Apps and Games] neckronus:
Same on Google Pixel 3a; The app was working on Android 10 and doesn't work after updating to Android 11.

Disabling power optimization and running ADB script again doesn't fix it

Device: sargo, Android 11 (RP1A.200720.009)
[Android Apps and Games] hilariouspotato:
Just confirming what necronus mentioned - I also have a Pixel 3a that Skip Track worked flawlessly on before upgrading to Android 11, now I can only skip tracks when screen is on. No response when screen is off.
[Android Apps and Games] andjohn:
Works on Note Ultra 20 on Android 10.
[Android Apps and Games] sorg:
I don't see latest version here with all updates from source code.

So i've compiled it if anyone needs. Really useful app for those who don't use custom firmwares.

Signed with standard root certificate. Probably you will need to uninstall previous version first.
[Android Apps and Games] gimmeyayo:
The link doesn't work. Can you repost?
[Android Apps and Games] sorg:
re-uploaded
[Android Apps and Games] Incineroar:
So I've been experimenting with it on my OnePlus 8 Pro running OxygenOS 11 and have identified a bug regarding the proximity sensor. For some reason, when the proximity sensor reads something, long presses on the volume keys aren't registered. I'll look into this and see if other Android 11 devices are experiencing the same issue. This wasn't prevalent in Android 10 so I think it's an incompatibility.

If anyone else with Android 11 on their devices are having this issue, please do let me know. Until I can boot a GSI on my phone without it erroring on me, I can't test stock Android 11.
[Android Apps and Games] malvery:
I have same issue with proximity sensor on pixel 3a Android 11
[Android Apps and Games] HenryHunter:
Found a lot of useful information, thanks guys!
[Android Apps and Games] farnell:
Same for me on Pixel 3a after upgrade to 11.
[Android Apps and Games] EzTheBez:
I have a stock Samsung A51 Android 10 One UI v2.1 and I get an error "/system/bin/sh: adb: inaccessible or not found". I've tried both with and without the space in LISTENER

Do I need root for this to work?
[Android Apps and Games] sobasin:
Just tried both the original and new apk in #157. I can confirm the app does not work when the screen is off in Oneplus 8T running Android 11. I can only skip tracks when screen is on. Thanks in advance if anyone plans to fix it.
[Android Apps and Games] Lelik7ferrik:
Hello

I try to use this app on my Pixel 3 (Android 11) but unsuccessful, tracks don't skip when screen on or screen off.
[Android Apps and Games] Humpdaddy:
Pixel 3 XL no longer working after Android 11 update.
[Android Apps and Games] nathanadams4429:
Does not work on my One Plus 6t..