|
|
@@ -11,8 +11,9 @@ public class HookMessage extends BaseHook {
|
|
|
XposedHelpers.findAndHookMethod(bhyo, "d", String.class, new XC_MethodHook() {
|
|
|
@Override
|
|
|
protected void afterHookedMethod(MethodHookParam param) throws Throwable {
|
|
|
- log("spoofsms upi-carrier-id-with-mo-sms-relax");
|
|
|
- XposedHelpers.setObjectField(param.getResult(), "b", "upi-carrier-id-with-mo-sms-relax");
|
|
|
+ String policy = getProperty(PROP_UPI_POLICY, "upi-carrier-id-with-mo-sms-relax");
|
|
|
+ log("spoofsms upi-policy: " + policy);
|
|
|
+ XposedHelpers.setObjectField(param.getResult(), "b", policy);
|
|
|
}
|
|
|
});
|
|
|
XposedHelpers.findAndHookMethod(bhyo, "c", String.class, new XC_MethodHook() {
|