Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xposed/LSPosed module works #3

Closed
yjwong opened this issue Oct 15, 2023 · 1 comment
Closed

Xposed/LSPosed module works #3

yjwong opened this issue Oct 15, 2023 · 1 comment

Comments

@yjwong
Copy link

yjwong commented Oct 15, 2023

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).

@kormax
Copy link
Owner

kormax commented Oct 15, 2023

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).

@kormax kormax closed this as completed Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants