1

Guys my phone is vibration without any reason. So I want to determine the application which sends vibration command to vibrate. Does Android logging such events? Or can I write an application which will monitor Vibrator::vibrate(TIMEOUT) calls from another application?

Note: I have root access.

Edward
  • 304
  • 2
  • 16

1 Answers1

0

If you look in the system log (logcat -b system) it will show you the core system service's logs. The VibrateService only makes a couple in the latest version of Android, which will tell you what vibration pattern is being started. Unfortunately, it won't show you what UID/PID is responsible for the request. Beyond that, you may be able to find some information from the kernel by digging around to figure out which device interface (e.g. /dev/gpio1) is the one used by the vibrator service. If that driver exposes some stats/debug on /proc or debugfs you might be able to figure out which process is responsible.

Larry Schiefer
  • 15,687
  • 2
  • 27
  • 33
  • 1
    Thank you! I'll try. I found an issue: seems like when the device tries to connect to a known WiFi network but uses wrong password, phone starts vibrate to indicate the connection error. – Edward Aug 04 '14 at 10:52