chiteroman / FrameworkPatch

Modify framework.jar to build on system level a valid certificate chain
304 stars 67 forks source link

typo? or some other error #10

Open jj15warrior opened 1 month ago

jj15warrior commented 1 month ago

in the Instrumentation.smali file the instructed change is to call onNewApp(Context) but there is no such function in Android.smali. Shouldn't it be newApplication(Context) ?

jj15warrior commented 1 month ago

this is the boot error that made me think that:

java.lang.NoSuchMethodError: No static method onNewApp(Landroid/content/Context;)V in class Lcom/android/internal/util/framework/Android; or its super classes (declaration of 'com.android.internal.util.framework.Android' appears in /system/framework/framework.jar!classes4.dex)
VisionR1 commented 1 month ago

Oh yeah. @chiteroman make a updated, before one month and the README reverse to the first, before change something like newApplication like you say. The latest before reverse. https://github.com/VisionR1/FrameworkPatch

Mitezuss commented 1 week ago

Oh yeah. @chiteroman make a updated, before one month and the README reverse to the first, before change something like newApplication like you say. The latest before reverse. https://github.com/VisionR1/FrameworkPatch

Is FrameworkPatch currently working? can confirm ?

VisionR1 commented 1 week ago

Oh yeah. @chiteroman make a updated, before one month and the README reverse to the first, before change something like newApplication like you say. The latest before reverse. https://github.com/VisionR1/FrameworkPatch

Is FrameworkPatch currently working? can confirm ?

Yeah. I had it. But the performance of the device have a little glitch, because we must delete or dummy the boot-framework.art

Mitezuss commented 1 week ago

Oh yeah. @chiteroman make a updated, before one month and the README reverse to the first, before change something like newApplication like you say. The latest before reverse. https://github.com/VisionR1/FrameworkPatch

Is FrameworkPatch currently working? can confirm ?

Yeah. I had it. But the performance of the device have a little glitch, because we must delete or dummy the boot-framework.art

did some changes ? can u pass Strong ? (with unrevoked Keybox) i just pass Device r u on stock ?

VisionR1 commented 1 week ago

Oh yeah. @chiteroman make a updated, before one month and the README reverse to the first, before change something like newApplication like you say. The latest before reverse. https://github.com/VisionR1/FrameworkPatch

Is FrameworkPatch currently working? can confirm ?

Yeah. I had it. But the performance of the device have a little glitch, because we must delete or dummy the boot-framework.art

did some changes ? can u pass Strong ? (with unrevoked Keybox) i just pass Device r u on stock ?

I don't think. Yeah, you can if add it right the 🗝️ inside. And yeah all stock when have it.

VisionR1 commented 1 week ago

Oh yeah. @chiteroman make a updated, before one month and the README reverse to the first, before change something like newApplication like you say. The latest before reverse. https://github.com/VisionR1/FrameworkPatch

Is FrameworkPatch currently working? can confirm ?

Yeah. I had it. But the performance of the device have a little glitch, because we must delete or dummy the boot-framework.art

did some changes ? can u pass Strong ? (with unrevoked Keybox) i just pass Device r u on stock ?

I don't think. Yeah, you can if add it right the 🗝️ inside. And yeah all stock when have it.

uhm.. what repo are you using to compile the DEX ?

i am trying with AOSP right now, but not working =C

I don't remember, I have a old in my repository. And you can download the .dex from here and put it for test.

Mitezuss commented 1 week ago

I don't remember, I have a old in my repository. And you can download the .dex from here and put it for test.

the dex from here dnt pass Device (bc the FP) so, idk why not work =/ (my FP and Keybox are fine)

no idea =/

VisionR1 commented 1 week ago

I don't remember, I have a old in my repository. And you can download the .dex from here and put it for test.

the dex from here dnt pass Device (bc the FP) so, idk why not work =/ (my FP and Keybox are fine)

no idea =/

Yeah right. The inside FP is banned, for that can't pass.

Read this page, have the info, how pass. https://xdaforums.com/t/module-framework-patcher-go.4674536/page-10#post-89559593

Mitezuss commented 1 week ago

I don't remember, I have a old in my repository. And you can download the .dex from here and put it for test.

the dex from here dnt pass Device (bc the FP) so, idk why not work =/ (my FP and Keybox are fine) no idea =/

Yeah right. The inside FP is banned, for that can't pass.

Read this page, have the info, how pass. https://xdaforums.com/t/module-framework-patcher-go.4674536/page-10#post-89559593

how i said: my FP and Keybox are fine (can pass Strong) (I can pass Strong with TS)

But only pass Device with FrameworkPatch... idk why

are your passing Strong with FrameworkPatch or only Device ?

VisionR1 commented 1 week ago

I don't remember, I have a old in my repository. And you can download the .dex from here and put it for test.

the dex from here dnt pass Device (bc the FP) so, idk why not work =/ (my FP and Keybox are fine) no idea =/

Yeah right. The inside FP is banned, for that can't pass. Read this page, have the info, how pass. https://xdaforums.com/t/module-framework-patcher-go.4674536/page-10#post-89559593

how i said: my FP and Keybox are fine (can pass Strong) (I can pass Strong with TS)

But only pass Device with FrameworkPatch... idk why

are your passing Strong with FrameworkPatch or only Device ?

Yeah. Just you need to spoof sensitive props, with PIFork script-only-mode or shamiko and add to MagiskHide/DenyList the com.google.android.gms/com.google.android.gms.unstable

Mitezuss commented 1 week ago

Just you need to spoof sensitive props, with PIFork script-only-mode or shamiko and add to MagiskHide/DenyList the com.google.android.gms/com.google.android.gms.unstable

i think, that is when just get BASIC

i can pass DEVICE with FrameworkPatch, but not STRONG

so, i hven't idea why... is like is not spoofing the TEE/Keybox certificate. Anyway thanks!

VisionR1 commented 1 week ago

Just you need to spoof sensitive props, with PIFork script-only-mode or shamiko and add to MagiskHide/DenyList the com.google.android.gms/com.google.android.gms.unstable

i think, that is when just get BASIC

i can pass DEVICE with FrameworkPatch, but not STRONG

so, i hven't idea why... is like is not spoofing the TEE/Keybox certificate. Anyway thanks!

Understand. One last, if your FP have sdk lower than 30, must change to 30 and over, like 34.

Mitezuss commented 1 week ago

One last, if your FP have sdk lower than 30, must change to 30 and over, like 34.

my FP is A14 (SDK 34) Can pass Device only with the FP, so that is why i think the problem is on the CERTIFICATE

My Keybox is like:


package com.android.internal.util.framework;

import org.lsposed.lsparanoid.Obfuscate;

@Obfuscate
public final class Keybox {
    public static final class EC {
        public static final String PRIVATE_KEY = """
-----BEGIN EC PRIVATE KEY-----
123
-----END EC PRIVATE KEY-----
                """;
        public static final String CERTIFICATE_1 = """
-----BEGIN CERTIFICATE-----
123
-----END CERTIFICATE-----
                """;
        public static final String CERTIFICATE_2 = """
-----BEGIN CERTIFICATE-----
123
-----END CERTIFICATE-----
                """;
        public static final String CERTIFICATE_3 = """
-----BEGIN CERTIFICATE-----
123
-----END CERTIFICATE-----
                """;
    }

    public static final class RSA {
        public static final String PRIVATE_KEY = """
-----BEGIN RSA PRIVATE KEY-----
123
-----END RSA PRIVATE KEY-----
                """;
        public static final String CERTIFICATE_1 = """
-----BEGIN CERTIFICATE-----
123
-----END CERTIFICATE-----
                """;
        public static final String CERTIFICATE_2 = """
-----BEGIN CERTIFICATE-----
123
-----END CERTIFICATE-----
                """;
        public static final String CERTIFICATE_3 = """
-----BEGIN CERTIFICATE-----
123
-----END CERTIFICATE-----
                """;
    }
}

So i edit the Android.java:

EC = parseKeyPair(Keybox.EC.PRIVATE_KEY);
EC_CERTS.add(parseCert(Keybox.EC.CERTIFICATE_1));
EC_CERTS.add(parseCert(Keybox.EC.CERTIFICATE_2));
EC_CERTS.add(parseCert(Keybox.EC.CERTIFICATE_3));

RSA = parseKeyPair(Keybox.RSA.PRIVATE_KEY);
RSA_CERTS.add(parseCert(Keybox.RSA.CERTIFICATE_1));
RSA_CERTS.add(parseCert(Keybox.RSA.CERTIFICATE_2));
RSA_CERTS.add(parseCert(Keybox.RSA.CERTIFICATE_3));

are there a mistake?

VisionR1 commented 1 week ago

One last, if your FP have sdk lower than 30, must change to 30 and over, like 34.

my FP is A14 (SDK 34) Can pass Device only with the FP, so that is why i think the problem is on the CERTIFICATE

My Keybox is like:


package com.android.internal.util.framework;

import org.lsposed.lsparanoid.Obfuscate;

@Obfuscate
public final class Keybox {
    public static final class EC {
        public static final String PRIVATE_KEY = """
-----BEGIN EC PRIVATE KEY-----
123
-----END EC PRIVATE KEY-----
                """;
        public static final String CERTIFICATE_1 = """
-----BEGIN CERTIFICATE-----
123
-----END CERTIFICATE-----
                """;
        public static final String CERTIFICATE_2 = """
-----BEGIN CERTIFICATE-----
123
-----END CERTIFICATE-----
                """;
        public static final String CERTIFICATE_3 = """
-----BEGIN CERTIFICATE-----
123
-----END CERTIFICATE-----
                """;
    }

    public static final class RSA {
        public static final String PRIVATE_KEY = """
-----BEGIN RSA PRIVATE KEY-----
123
-----END RSA PRIVATE KEY-----
                """;
        public static final String CERTIFICATE_1 = """
-----BEGIN CERTIFICATE-----
123
-----END CERTIFICATE-----
                """;
        public static final String CERTIFICATE_2 = """
-----BEGIN CERTIFICATE-----
123
-----END CERTIFICATE-----
                """;
        public static final String CERTIFICATE_3 = """
-----BEGIN CERTIFICATE-----
123
-----END CERTIFICATE-----
                """;
    }
}

So i edit the Android.java:

EC = parseKeyPair(Keybox.EC.PRIVATE_KEY);
EC_CERTS.add(parseCert(Keybox.EC.CERTIFICATE_1));
EC_CERTS.add(parseCert(Keybox.EC.CERTIFICATE_2));
EC_CERTS.add(parseCert(Keybox.EC.CERTIFICATE_3));

RSA = parseKeyPair(Keybox.RSA.PRIVATE_KEY);
RSA_CERTS.add(parseCert(Keybox.RSA.CERTIFICATE_1));
RSA_CERTS.add(parseCert(Keybox.RSA.CERTIFICATE_2));
RSA_CERTS.add(parseCert(Keybox.RSA.CERTIFICATE_3));

are there a mistake?

Already your spoof FP is 34. Seems good. I don't understand why can't pass.