Xposed/LSPosed module works
yjwong opened this issue · comments
Just wanted to confirm that in addition to option 2), an Xposed module to patch com.google.android.pixelnfc
to intercept the isDeviceJapanSku
call also works.
Example code as follows:
private void hookPixelNFC(final LoadPackageParam lpparam) {
findAndHookMethod(
"com.google.android.pixelnfc.provider.DeviceInfoContentProvider",
lpparam.classLoader,
"isDeviceJapanSku",
String.class,
new XC_MethodReplacement() {
@Override
protected Object replaceHookedMethod(MethodHookParam param) throws Throwable {
return true;
}
}
);
}
Of course, will need to sideload the missing APKs.
Tested with a Pixel 6 (GB7N6) running Android 14 (UP1A.231005.007).
Hello.
I think remember this discussion (if it were you who contacted me about such a possibility before).
It's great that it works!
Thanks for the information. I appreciate it.
Will update the repo shortly (or via a pr if you want direct credit for it).