Hello, I have installed a custom rom before on this phone, But I cant remember how I did it, I now can't get into recovery mode to install a different one. Please help me
I need and idiots guide?
I need and idiots guide?
private void ChangeSensorValues(final LoadPackageParam lpparam) {
XC_MethodHook mockSensorHook = new XC_MethodHook() {
@SuppressWarnings("unchecked")
@Override
protected void beforeHookedMethod(MethodHookParam param)
throws Throwable {
int type=(Integer) param.args[0];
float[] sensor_values=(float[]) param.args[1];
if ((type==5 ) & (sensor_values[0]<=10)) //type 5 - LIGHT_SENSOR afaik
{
XposedBridge.log("SOMETHING WORKS!");
XposedBridge.log("type= "+ param.args[0]);
XposedBridge.log("values= "+ param.args[1]);
sensor_values[0]=(float) 10;
param.args[1]=sensor_values;
}
}
};
XposedHelpers.findAndHookMethod("android.hardware.SystemSensorManager$SensorEventQueue", lpparam.classLoader, "dispatchSensorEvent", int.class, float[].class, int.class, long.class, mockSensorHook);
}

Warning!! A custom OS can cause critical problems in phone and installed applications. If you want to download a custom OS, press the volume up key. Otherwise, press the volume down key to cancel. Volume up: Continue Volume Down: Cancel (restart phone) |