0

I'm trying to customize my Android OS to temporarily shut down a few functionalities triggered by various intents. It's completely safe because it only happens on my device. However I have difficulty find out where the intent dispatcher lives. I've looked at ActivityManager, ActivityManagerService, and WindowManager with no luck. Ideally I hope to find a place like:

public void dispatchIntents(Intent i) {

    //my code here
    if (i == Intent.xxxx) {
        //my customization here
    }

    .... // Android OS's own intent dispatching
}

Any ideas?

lindenrovio
  • 357
  • 3
  • 13
  • 2
    Follow `Activity.startActivity`... – 323go Feb 19 '14 at 19:53
  • Thanks! I have followed startActivity and found that all activity starting need to go through ActivityStackSupervisor.startActivityMayWait. So I can stop an activity from starting. I have another problem. I hope to intercept before the moment the status bar was shown. I mean, when I slide down the status bar, no intent was received in startActivityMayWait and I don't know how to stop that. Wonder if you know how can I find the point where I can stop status bar from popping up? Many thx! – lindenrovio Feb 20 '14 at 15:47
  • Statusbar or Notification rollup? I honestly don't know, but I'd look for the animation, or search for the root layout in WindowManager. This is pure guesswork on my part, I haven't looked into the source this deeply. – 323go Feb 21 '14 at 02:52
  • 1
    In StatusBarManager, found it – lindenrovio Feb 21 '14 at 18:41

0 Answers0