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

How to modify keybox.java #2

Closed
1310286727 opened this issue Jun 5, 2024 · 1 comment
Closed

How to modify keybox.java #2

1310286727 opened this issue Jun 5, 2024 · 1 comment

Comments

@1310286727
Copy link

There is no explanation on how to modify keybox.java or android.java mentioned in the project.

@changhuapeng
Copy link
Owner

I believe that FrameworkPatcher project stated intermediate Java knowledge as part of its requirement, so it assumes user has the know-how already.

To add your fingerprint, modify this part: https://github.com/chiteroman/FrameworkPatch/blob/69e08eff494b68ccd3ec71ffb04e0a798d7c686e/app/src/main/java/com/android/internal/util/framework/Android.java#L55

To add your keybox, modify this file: https://github.com/chiteroman/FrameworkPatch/blob/69e08eff494b68ccd3ec71ffb04e0a798d7c686e/app/src/main/java/com/android/internal/util/framework/Keybox.java

If your keybox has 3 certificates instead of 2 certificates like the one used in the project, then you'll have to modify this section too, with your additional certificate: https://github.com/chiteroman/FrameworkPatch/blob/69e08eff494b68ccd3ec71ffb04e0a798d7c686e/app/src/main/java/com/android/internal/util/framework/Android.java#L67

Honestly, this is out of scope for this module so I'm going to close this issue.

@changhuapeng changhuapeng closed this as not planned Won't fix, can't repro, duplicate, stale Jun 5, 2024
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