Home > Mobile >  Xposed development how to hook to obtain to the value to the activity?
Xposed development how to hook to obtain to the value to the activity?

Time:10-18

If inscribe
The Activity provides a setText method to modify
Public static void setText (String STR) {
If (tv_status!=null) {
Tv_status. SetText (STR);
}
}

Radio accept
SharedPreferences
The three methods are tried to get into the empty

CodePudding user response:

If you send the right radio that may be you are not registered in your Activity corresponding radio receiver, can read and write by other way to get the value of a file or database, because xposed module part of the code is running in the hook application process, and written your app is not in the same process, so can't directly call the Activity method in the code,

CodePudding user response:

Encounter with this problem, want to ask the landlord to solve

CodePudding user response:

This is the problem of the communication across processes, it is recommended to use binder

CodePudding user response:

All xposed, direct access to the Activity instance objects, and then obtain textview object, then call TV. The setText (" 123 ", BufferType. NORMAL) (proposals 2 and 1 and some hooks don't)
  • Related