I’m new to XPOSED and currently researching it for my project. I’m using Java and XPOSED to hook into the SystemClock.uptimeMillis()
function and increase the result by one day. However, when I launch the target application, the UI components are not displayed, and I only see a blank white screen.
Here are some details:
- I’m using XPOSED to modify
SystemClock.uptimeMillis()
. - The modification adds 24 hours (1 day) to the original return value.
- The target application is a simple app I created for research purposes.
- The target application is developed by me specifically for this research, and there are no XPOSED detection techniques implemented in it.
My hook implementation looks something like this:
XposedHelpers.findAndHookMethod(SystemClock.class, "uptimeMillis", new XC_MethodHook() {
@Override
protected void afterHookedMethod(MethodHookParam param) throws Throwable {
long originalTime = (long) param.getResult();
long modifiedTime = originalTime + (24 * 60 * 60 * 1000); // Add 1 day in milliseconds
param.setResult(modifiedTime);
}
});