Home > Mobile >  Xposed hook a program and the main program after communication with Broadcast or Messenger, how to p
Xposed hook a program and the main program after communication with Broadcast or Messenger, how to p

Time:11-25

First of all, I am a novice, that something headphones, the problem might be a little weak chicken don't laugh,,

Environment is as follows: do a AppA program, including useful xposed hook a program (assuming appB), and some features of moderate operating appB
Learn xposed actual part module to run a process is actually a separate, so and AppA process itself and the module in the hook is different, the interactive communication need
There are questions about several problems as follows:
1, AppA program itself how to prevent in the background because it is over, the lock screen, the system resources and other reasons the Kill off? If we can't prevent, do you need the main function made the Service?

2, Hook module and how to two-way communication between AppA? Looking for some, can build a Service as a bridge, and then passed on Messenger Message communication each other,, seem to also can communicate through Broadcast, what are the strengths and weaknesses of the two?


3, I see some examples of xposed, hook in the Context of time some use
Some use of ContextWrapper getApplicationContext method
Some use of ContextWrapper attachBaseContext method
Some in the target program itself in attachBaseContext
Some, with what method in the Context of forget,,
There are various kinds of fancy,, can you tell me what's the difference? Suggestions in that?

4, in order to quote AppB is running, how to judge whether AppB is running, if be kill or does not run automatically start AppB

CodePudding user response:

Looking forward to someone can help ~ ~

CodePudding user response:

Is your main problem communication across processes, then at the time of the hooks, B if the kill, may cause you to hook will re-open the module A, then you'd better find A B will call the method, to obtain the context,
  • Related