changhuapeng / FrameworkPatcherGO

A Magisk/KernelSU/APatch module to modify framework.jar directly on the phone, to build a valid system-level certificate chain.
https://xdaforums.com/t/module-framework-patcher-go.4674536/
199 stars 21 forks source link

Failed to install module script when patching Instrumentation (APatch) #9

Open CDzungx opened 2 weeks ago

CDzungx commented 2 weeks ago

Using APatch 10844 FPG 1.1.1 Framework.jar: File Screenshot_2024-06-19-01-37-31-220_me bmax apatch-edit

changhuapeng commented 2 weeks ago

Please provide your framework.jar so I can troubleshoot it when I have the time. You can look at the FAQs in my XDA thread if you need the instructions for that.

CDzungx commented 2 weeks ago

Please provide your framework.jar so I can troubleshoot it when I have the time. You can look at the FAQs in my XDA thread if you need the instructions for that.

Added ;)

Sucharek233 commented 2 weeks ago

I have the same problem. My device is Poco F4 and I'm on AOSPA Uvite Beta 4. Here's my framework.jar Screenshot_20240619-121643_Settings

changhuapeng commented 1 week ago

@CDzungx @Sucharek233 Please try this test version: FrameworkPatcherGO-v1.1.1-test.zip

CDzungx commented 1 week ago

@CDzungx @Sucharek233 Please try this test version: FrameworkPatcherGO-v1.1.1-test.zip

Seem to work but now is another err when patching APM Screenshot_2024-06-20-01-31-51-004_me bmax apatch-edit

changhuapeng commented 1 week ago

Seem to work but now is another err when patching APM

Try this: [deleted]

CDzungx commented 1 week ago

Seem to work but now is another err when patching APM

Try this: FrameworkPatcherGO-v1.1.1-test2.zip

This file err in Instrumentation again, same with first pic

changhuapeng commented 1 week ago

This file err in Instrumentation again, same with first pic

My bad, uploaded the wrong file. This is the right one. FrameworkPatcherGO-v1.1.1-test2.zip

CDzungx commented 1 week ago

This file err in Instrumentation again, same with first pic

My bad, uploaded the wrong file. This is the right one. FrameworkPatcherGO-v1.1.1-test2.zip

Flashed successful, but on first boot it seem to stuck on boot screen, I have to shutdown and boot again normally, then it booted in OS, now device only meet basic integrity, failed for device. New jar: https://filebin.net/fheb2jl5kgr9c4yn

changhuapeng commented 1 week ago

Can you try the solutions listed in the FAQ on my XDA thread?

Sucharek233 commented 1 week ago

The 2nd file works. Bootloader is now spoofed as locked. But I only pass basic+device. I do have a working TEE (or at least I think I do). I do have Iconify and PixelXpert, so that might be a problem. And PIF v16.0 passes basic+device and v16.1+v16.2 passes only basic, but after changing DEVICE_INITIAL_SDK_INT at also passes basic+device. Still no strong though. Screenshot_20240620-084259_Key_Attestation Screenshot_20240620-084351_Momo

Edit: I also switched from Magisk v27 to APatch.

changhuapeng commented 1 week ago

Bootloader is now spoofed as locked. But I only pass basic+device. I do have a working TEE (or at least I think I do). I do have Iconify and PixelXpert, so that might be a problem. And PIF v16.0 passes basic+device and v16.1+v16.2 passes only basic, but after changing DEVICE_INITIAL_SDK_INT at also passes basic+device. Still no strong though.

That's the expected result from this module, strong integrity was never meant to be passed using the default software attestation keybox provided.