xposed-framework

Show dialog in hooked method by xposed running in thread

試著忘記壹切 提交于 2019-12-11 12:14:41
问题 I try to show an AlertDialog within a hooked method with xposed. The problem is that the method is running in a threads, and this thread is running in a thread, etc... For example : Activity -> thread -> thread -> ... -> function Is there a way to show my AlertDialog ? I have the Context, but since the hooked function is not in the main thread, it is useless. EDIT (Some code) : public class Xposed implements IXposedHookLoadPackage { private Context ctx; private Queue<String> queue = new

Xposed - How to hook the private static method

点点圈 提交于 2019-12-11 00:08:08
问题 Xposed question: I want to modify some static field in android.os.Build, such as android.os.Build.BOARD, android.os.Build.DEVICE, android.os.Build.DISPLAY. There are 3 private static methods ( private static String getString(String property), private static String[] getStringList(String property, String separator) , private static long getLong(String property) ) in Build.java. Then I tried to hook the static method 'getString(String s)' in android.os.Build . public void handleLoadPackage