yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] Saloiche:
Hi, I have installed the [ROM] Lenovo P780 Pre-rooted Official ROMs for Flash Tool with TWRP and now I do not find the "USB Debugging" option in the App option of System Settings. Instead appear a list of the applications installed where I can select any app change options.

This ROM comes configured to Root as default.
[Android Q&A, Help & Troubleshooting] rovama:
I don't know if it is like other roms, but perhaps you may wanna try to go to the About phone and tapping 7 times on the "Build number" option to enable the Development settings menu.
[Android Q&A, Help & Troubleshooting] UranusHertz:
You, sir... are a god!

Thanks!!
[Android Q&A, Help & Troubleshooting] rovama:
I'm glad that worked for you. I found that solution some time ago in this community :D
[Android Q&A, Help & Troubleshooting] Saloiche:
Thank you Rovama!. Works great.
[Android Q&A, Help & Troubleshooting] kanagaraj_pk:
Lenovo P780 USB driver

Debugging is not working in my phone. I am not able to debug in my P780 as i could not find Driver "Lenovo P780". Do you have any idea about lenovo mobile usb drivers?
[Android Q&A, Help & Troubleshooting] DanZelt:
thank you very much it's really help me :laugh:
[Xposed Framework Modules] Xspeed:
Hi

I am presenting you here a Xposed module allowing you to take full control over the keys in your device!

When the screen is off/locked/on this module allows you to:

- send media play signals

- send media next/previous signals

- send volume up/down signals

- launch app shortcut actions

- simulate key presses

...with any buttons your phone might have!

And also:

- Disable original button functions

- Send a play signal when devices get plugged in

- Send signals only when selected devices are plugged in

- Set music volume when play signals are sent

- Set a media player to send the signals to

- Launch the selected player before sending signals

Features can be greatly customized to suit all possible needs!

Compatible with all Android versions from 7.1 to 12.

Download: Physical Button Master Control on Xposed Module Repository

If you found this mod useful consider donating me a coffee, this will help me code ^^

If you want to help other people see this app in your language, feel free to contribute on CrowdIn:

PBMC translation project on CrowdIn

How to report problems efficiently?

- Enable the 'Debug log' in PBMC settings

- Use PBMC functions that don't work as intended

- Export the logs from Xposed app and put them on PasteBin

- Post here/send me the link along with more information about your device

Source Code: https://github.com/XspeedPL/PhysicalButtonMod
[Xposed Framework Modules] Xspeed:
Frequently Asked Questions

Q: Simply doesn't work?

A: Make sure your device is rooted, Xposed Installer is installed, and PBMC is enabled within the module menu of Xposed. After this, reboot. If it still doesn't work proceed to next steps (such as posting debug logs).

Q: I just installed PBMC and I found out that my home/recents/back/power button cannot be mapped. Fix?

A: You need to reboot first. With the module active, all buttons will work.

Q: Can I use this module to disable original button functions?

A: Yes, you can do this by setting the 'Do nothing' action on a mapping.

In example, to prevent volume up button from increasing the volume, set it's 'Single press' action to 'Do nothing'.

Q: How can I disable vibrations?

A: When you add an action, you can move the "Use vibration" slider to 0ms. It's as simple as that.

Q: I used the option to hide the app from the launcher, how can I open it now?

A: Go to the Xposed Installer -> Modules -> click on the PBMC module to open it.

Q: I have set a single-press action to my home/power button. How can I wake the device up now?

A: It's quite simple, any unmodified action will act as the original button function. Double-press or hold, depending on which ones have you not set.

Q: My media player is starting delayed using PBMC, why is that happening and what can I do?

A: It's because of the OOM killer most of the times, it's a mechanism in Android that kills unactive apps.

You see, when the receiver app is already active, it handles signals instantly.

But, when it has to be started (media players can get killed when it isn't playing anymore), it can take longer, depending on available RAM and amount of tasks running in the background.

So, what can you do? There are ways of protecting apps from getting killed by OOM killer. You could also limit the number of tasks running in the background (to make sure there is some RAM free).

Q: I have a problem that isn't listed here. What do I do?

A: You can use the 'Feature Requests' and 'Bug Reports' sections on top or post your problem on this thread, BUT remember to provide useful information, like: device info, Xposed/LogCat logs, list of other modules, detailed steps to reproduce the problem. Refer to the first post for instructions on getting Xposed logs.
[Xposed Framework Modules] Xspeed:
How to report problems efficiently?

- Enable the 'Debug log' in module settings

- Use module functions that don't work as intended

- Export the logs from Xposed app and put them on PasteBin

- Post here/send me the link along with more information about your device
[Xposed Framework Modules] awakener777:
Will this work with Google play music?
[Xposed Framework Modules] Xspeed:
I haven't tested, but I'm sure it will.
[Xposed Framework Modules] argo7:
How about add the option of resume the music when I conncet the headset?
[Xposed Framework Modules] killoid:
[MENTION=5292510]XspeedPL[/MENTION] can you implement Gingerbread support plz?
[Xposed Framework Modules] Xspeed:
I could, but then would need to make an interface to disable unwanted features.

I guess it should be done in a few days.

I think there should be no problem.
[Xposed Framework Modules] argo7:
And you think that you would be able to disable the lockscreen controls?

Enviado desde mi XT1032 mediante Tapatalk
[Xposed Framework Modules] Xspeed:
Hmm, I don't see a reason for that, but I guess that would be possible, yes.
[Xposed Framework Modules] argo7:
Pls do that :)) It would be amazing

Enviado desde mi XT1032 mediante Tapatalk
[Xposed Framework Modules] Xspeed:
1.2

New version: 1.2

Changes:
[Xposed Framework Modules] killoid:
thank you for GB support! it seems to not work with poweramp,i havn't tested it with other players though. i am using galaxy y duos,stock 2.3.6 rom.

& another req, my phone has no camera button but has a physical home button. can you make an option to use home botton to control play/pause? my home keycode is 3.
[Xposed Framework Modules] matlink:
Not Working on Nexus 5 4.4.2

Hi thanks for buidling apps for the comunity.

I've tested it on my nexus 5 running AOSP 4.4.2 and it's not working.

Nothing happens when I hold vol up and down buttons while the screen is locked off.
[Xposed Framework Modules] Xspeed:
Yeah, I just found out too that the latest version has a bug that prevents the volume buttons from working!

An update is being made as I type.
[Xposed Framework Modules] rookiegenius:
Thanks. I like this module. However it does not work on my s3 running pacman 4.2.2. I tested with Google play music, Apollo, doubletwist. None works. (just reported). :)
[Xposed Framework Modules] Xspeed:
1.3

New version: 1.3

Changes:
[Xposed Framework Modules] Xspeed:
Should be fixed now, also I added the ability to change the keys.

Should be working now, update.
[Xposed Framework Modules] anorba:
Very useful, works flawlessly so far on my s4 on stock 4.3... Thanks Dev
[Xposed Framework Modules] elesbb:
Could you possibly upload or PM me your source code and I will fix the issues pertaining to it not working on certain music apps? I have downloaded and tested and confirm the latest version does NOT work with Pandora. However, i have decompiled the apk and semi-fixed it. I got it to skip tracks but the play pause is happening twice, meaning, it pauses the music, then immediately plays again. If i could get the source code i could easily fix this issue. You can check here with an app i made allowing users to control the music from their notifications and it works across the board. I do know how to make it work :)

I have written xposed modules, and would hate to start over on ANOTHER volume skip mod. There are like 4 of them lol. So if you would share your source code with me, i will fix it and give it back to you to upload and share. I do not want the "credit" or recognition for this app. Just for making it work on Pandora and other music apps.

Of course, if i do not receive any source code, i will make my own module. Lol.

Thanks man!
[Xposed Framework Modules] Xspeed:
Go to the Xposed app, to the Logs section, export the log file somewhere, and then upload it's contents somewhere like http://pastebin.com
[Xposed Framework Modules] wheeliemonster:
I cleared the logs to get a good picture but they're staying empty even when I run the tests? :confused:
[Xposed Framework Modules] Dalae:
Great, thanks!
[Xposed Framework Modules] fer866:
[MENTION=5292510]XspeedPL[/MENTION] Here is my Spanish translation
[Xposed Framework Modules] wheeliemonster:
I did manage to get some entries on the logs but they are simply:

Loading class.xeed.xposed.cbppmod.PhysicalButtonMod

PBMC: Android version 19

PBMC: Using newer key injection method

PBMC: PWM init

Not sure that helps! :)
[Xposed Framework Modules] Xspeed:
2.2

New update! Volume buttons fixed!

Changes in 2.2:

[MENTION=490581]wheeliemonster[/MENTION] After poking around the issue a bit, it seems like it's really the music player's fault (it steals key press events in a weird way?), so the only thing I can suggest is to change your music player :\
[Xposed Framework Modules] wheeliemonster:
Cool. No problem. I'll try a different player. Thanks for looking into it.
[Xposed Framework Modules] Rom:
Hello, i have translate it to french version ;)

See in attachments..
[Xposed Framework Modules] xk0niR:
In older versions was a bug which made keys not working properly anymore -> unable to turn the screen on.

I actually like it myself and may I ask you to bring this back as a feature? Thanks
[Xposed Framework Modules] Thekungfosing:
Can this mod force htc one to use a headset button 'normally'.

Click = pause / play

Double click = next

Triple click = previous

I have an app, but it creates a persistent unknown missed called in order to work. Which sucks.
[Xposed Framework Modules] Xspeed:
I can figure something out for you ;)

Triple presses are not yet in, but they are planned. Maybe I can get them done in one of the upcoming versions.

And by the way, can you tell me what's that app called?
[Xposed Framework Modules] xk0niR:
Thank you a lot! Great support
[Xposed Framework Modules] Thekungfosing:
Amazing support, incredibly excited for this feature to be honest. The only thing that annoys me with the one.

There's a few, which all work the same way, but the one that I found to work best is called headset button controller.
[Xposed Framework Modules] YukiChan456:
[MENTION=5292510]XspeedPL[/MENTION]

Really good module! :good:

Use it on FB Reader TTS+ for book reading! :highfive:

Home - Play/Pause

Volume Up - Next

Volume Down - Previous

From time to time starts the Music Player, but its okay! ;)
[Xposed Framework Modules] Xspeed:
2.3 Update

At last, the delayed 2.3!

This one is one of the biggest feature updates ever!

BTW, translates are getting a little old and incomplete, if you are seeing this dear translators, update your translations if you can!

[MENTION=2754203]YukiChan456[/MENTION] If the music player starts, it means that you haven't set a receiver in the settings.

[MENTION=5398801]Thekungfosing[/MENTION] Is there anything else this app lacks from Headset Button Controller now? :P

[MENTION=5913734]xk0niR[/MENTION] You can now set the home/power button to 'do nothing' action, enjoy ;)
[Xposed Framework Modules] Blizzard22:
Nice!

I'm downloading it right now.

Thank you for the update Xspeed.

This app is getting better and better.

This is the second greatest news for today (for me).

After that Germany wrecked Brasil 7:1 ;)
[Xposed Framework Modules] xk0niR:
Thank you!

Great will test now
[Xposed Framework Modules] Xspeed:
Thanks to me messing up a bit, I had to reupload the update.

Sorry!
[Xposed Framework Modules] pyler:
Updated SK translation for v2.3
[Xposed Framework Modules] Xspeed:
I created a translation project on Lokaligo: PBMC on Lokaligo

If anyone's interested drop me a PM, I'll then send you an e-mail invite to the project.

[MENTION=5332893]Rom0307[/MENTION] I sent a PM to all contributors, but you have PMs disabled. So if you want to join, also let me know ;)
[Xposed Framework Modules] jydis:
Awesome! Now this app can completely replace my headset control app. There's one thing that could make it even better though: repeating long press events. I use long press to raise the volume, now I have to release the button every time the volume is raised one step. Could make it an repeating event, so I can hold the button until I'm at the desired volume level? It would be awesome if you could implement this, if not, it would still be a great module!
[Xposed Framework Modules] Xspeed:
Good idea! Added to my TODO list ;)
[Xposed Framework Modules] Rom:
Ok thanks but i have check my profile settings and i don't see an wrong options or over, can you indicate me please ?

Thanks.
[Xposed Framework Modules] Xspeed:
Go HERE and check your private messaging settings.

Then send me your e-mail address via a private message or e-mail so I can send you an invite.
[Xposed Framework Modules] Rom:
Yes, thanks, now i think you can now ;)
[Xposed Framework Modules] jacklul:
Seems like setting delay above 200ms makes holding any key functionality doesn't work. Android 4.0.4 - ZTE Grand X In

But thanks for this module anyway!
[Xposed Framework Modules] Xspeed:
I have my own delays set at 300~400ms and it works, so there must be something wrong happening.

Provide me with your Xposed logs if you can:

- Enable the Debug log in PBMC settings

- Use the buttons that don't work as intended

- Export the logs from Xposed app and put them on http://pastebin.com

- Post the link here
[Xposed Framework Modules] jacklul:
407

Here, http://pastebin.com/jneaJLb9

Funny thing, I pressed VOL+ and then VOL- for few secs only once but it got spammed in log a lot. I also checked what it happens in log when i have 200ms set and I see "Processing func media next" which doesn't happen with other delay setting.
[Xposed Framework Modules] Xspeed:
Very interesting, or rather VERY :eek:

It seems that your Android sends repeated signals for held keys, which is completely new to me.

Also, the VOL+ first repeat was somewhat delayed too, which makes things even weirder.

Anyway, if it's what I think it is and it isn't a hardware problem, I could fix this quickly.
[Xposed Framework Modules] jacklul:
I've been having various issues with other modules adding this "hold vol+/- key to skip track" functionality, ones did rapidly changed volume to max/0 or others changed track but also raised volume by one tick.
[Xposed Framework Modules] Xspeed:
Oh ho, now you got me all fired up to the challenge ^^

Expect me to send you a debug version of the app in few hours, to see if I can fix it.
[Xposed Framework Modules] jacklul:
Sometimes the issue with 1 tick after track changes happens with your module aswell.

It doesn't happen if I set One press action to Do nothing, so temporarily I have double press vol+/- and hold track change.
[Xposed Framework Modules] kmp14:
I just wanted to post a big THANKS! PBMC works great on my phone. :good:
[Xposed Framework Modules] Xspeed:
2.4

Got a new version fairly quickly, 2.4, featuring:

Man, Gingerbread compatibility has been broken for AGES, and no one even told me about it lol :eek:

Try it now ;)

Much appreciated :)
[Xposed Framework Modules] Blizzard22:
Newest update caused a bootloop.

It's definitely the newest because after disabling Xposed framework and downgrading to version 2.3 I could boot my phone again with Xposed enabled.

Please be careful and maybe stick to version 2.3.
[Xposed Framework Modules] Xspeed:
Could you send me your Xposed log from that bootloop?

It would speed up the fixing process.
[Xposed Framework Modules] Thekungfosing:
Unreal stuff, upgraded to 2.3 instead of 2.4 based on the previous user.

Triple click didn't work, but double and single click working brilliantly!

Thanks again mate.
[Xposed Framework Modules] Xspeed:
I couldn't reproduce the bootloop on my 4.3, so I'm awaiting Xposed logs from someone generous.

BUT if you have problems with triple presses, you should send me your logs too. Refer to the first post on how to.
[Xposed Framework Modules] xk0niR:
Latest Version 2.4 works fine for me. No bootloop.

I noticed a little bug I think:

I set my volume up button to next media for example and I unchecked the "hold repeat" option.

If I hold the key, it will not go to the next song but the song which is after next (2songs away from where I started)

Someone else has this?
[Xposed Framework Modules] jacklul:
Oh man, now your module went crazy on my device. Changing delay works but it also rapidly changes volume now... that "Do nothing" workaround doesn't work for me in this version. I looked up the log and it looks like it should work but it doesn't, somehow in your previous version you successfully blocked that vol+/-. Temporarily got back to 2.3.

btw, was your module intended to work only on screen off :confused: because it doesn't work on screen on and lockscreen for me
[Xposed Framework Modules] Xspeed:
Debug logs would be appreciated.

You lost me. What exactly were you trying to do and what exactly happened instead?

As always, please attach a debug log to your error repost. Without it, I am powerless.

And yes, it's supposed to work with screen off only, but making it work on the lockscreen is a good idea.
[Xposed Framework Modules] Rom:
Thanks for update, i have make little update of french translation (1 letters :cool: so no need to update immediately, it is very understandable).
[Xposed Framework Modules] jacklul:
Here, http://pastebin.com/D24naV1d held vol+ then held vol-, track has changed but also volume went to max/0.

Additionally those are settings I'm using right now: http://i.imgur.com/uBs6b2a.png http://i.imgur.com/EzEo8dY.png (pretty much nothing set here apart from debug log because those are features I don't need tho I tested them and they work on my device with alternative signal sending mode)
[Xposed Framework Modules] xk0niR:
What I did:

Cleared logs in Xposed, Enable Debugging in App and rebootet. Then waited a short time (so everything loads) and started play a song. Turn screen off and Hold Vol Up (hold vol up = next media). It went 2 songs further. Catched Logged.

Hope that helps!

http://pastebin.com/hSq2rHcc

I may think it could be also a music player related issue!

I´ve been always using gonemad music player and this bug appears. And yesterday (and today) it was updated so the Update may could be the error.

Just for fun I tested Poweramp. Poweramp works just fine. It could be a setting or the player itself which causes this issue. I will investigate further.

Edit:

Default Gonemad Settings and issue is still there
[Xposed Framework Modules] Blizzard22:
Can I collect the log without a pc? (Install update 2.4/reboot/bootloop/disable Xposed framework zip/Boot/catlog)
[Xposed Framework Modules] xk0niR:
Of course.

Open Xposed Installer App and go to Logs. Done :) You have an option to save to SD Card.

For my double skipping issue:

I am sure now its not related to your module, but the music player. Even on older versions of PBMC I got this bug, so its the Gonemad Update.
[Xposed Framework Modules] MarioBrosN5:
PBMC 2.4 is in conflict with Advanced Power Menu 9.4.1, whenever we try to do anything with the Advanced Power Menu soft reboot is executed.

With previous versions everything was OK.

Does anyone else has the same issue?

Regards,

MarioBrosN5
[Xposed Framework Modules] Xspeed:
I do! But not with Advanced Power Menu, I have GravityBox + Xperia GEM
[Xposed Framework Modules] MarioBrosN5:
Can you please be little bit more specific, which version of GravityBox, which feature, etc...

On my Nexus 5 (4.4.4) GravityBox v3.2.4 is working without any problems with PBMC v2.4.

Regards,

MarioBrosN5
[Xposed Framework Modules] Xspeed:
I started using GEM just yesterday and it seems that is the issue here.

When I turn off GEM or PBMC it works, but with them both enabled (settings don't matter) it reboots 80% of the time when trying to bring up the power menu.

I have no idea why.

EDIT: Oh damn, it is a PBMC bug, fix coming up soon
[Xposed Framework Modules] GoneMADSoftware:
uninstall and reinstall gonemad. Unless you see something that might be related in the changelog for an update, a newly introduced "bug" is almost always due to the android installer incorrectly updating the app. Most issues after an update get fixed if you do a reinstall. I definitely did not change any code related to the media intent control so that is most likely the cause.
[Xposed Framework Modules] Blizzard22:
Here is my logcat.

http://dl.dropboxusercontent.com/1/view/rabs5rki8n9syrb/Public/2014-07-11-19-18-44P.txt

I've also experienced some weird notification problem (Preparing SD Card, Checking for errors,) and the "dismount hard drive safely" notification didn't disappear after I safely unplugged my hard drive.

But it's probably related to the module Xposed LED control.
[Xposed Framework Modules] Xspeed:
Today's forecast: raining updates

The bootloop should be hopefully fixed.
[Xposed Framework Modules] MarioBrosN5:
Thx for a quick fix, with PBMC v2.5 everything seems to be OK.

Regards,

MarioBrosN5
[Xposed Framework Modules] smfazel:
Sorry poor EN :

The phone restart when press & hold the power button in new app version
[Xposed Framework Modules] xk0niR:
Hey,

yes I did that. But I can say youre right because I had an old Gonemad backup (a version where I know everything worked fine) on my dropbox and tried it. Still the same bug. So its not (directly) Gonemad related.

Still strange though I dont get it with Poweramp.

Best would be to reflash my phone... I don´t have any idea how to fix it.
[Xposed Framework Modules] jacklul:
Now its all messed up on my device, I have set only the hold action and 400ms delay (everything else was default), I couldn't vol+/- but when I held button it changed track + max/0 volume again, also if I set one press action to vol+/- it just vibrates but doesn't change volume.

http://pastebin.com/QtTQ2X1p
[Xposed Framework Modules] Xspeed:
Thanks to your log, I was able to spot a critical problem with PBMC that could possible break other modules.

Made a quick fix version with no new features, just for the sake of good user experience :)