adil192 / SamsungAppsPatcher

[Unmaintained] Samsung Apps Patcher for Samsung phones with custom ROMs
https://adil.hanney.org/SamsungAppsPatcher/
77 stars 7 forks source link

patching shealth with shealth_custom_cert.patch #8

Closed ShaDisNX255 closed 2 years ago

ShaDisNX255 commented 2 years ago

I know you're officially stopped developing for this, but if you would be so kind to help me out here It looks like I'm running into this issue

patching shealth with shealth_custom_cert.patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- smali_classes9/com/samsung/android/app/shealth/util/SignatureChecker.smali
|+++ smali_classes9/com/samsung/android/app/shealth/util/SignatureChecker.smali

If you could guide me on how to bypass or fix this I would appreciate it. I'm still kind of learning how your script works, I'm not that knowledgeable

Thanks

ShaDisNX255 commented 2 years ago

Update: Ok, it moved location. It's in smali_classes 2. I updated shealth_custom_cert.patch with this information but now I'm getting this problem


Hunk #1 FAILED at 24.
Hunk #2 FAILED at 101.
Hunk #3 succeeded at 105 with fuzz 2 (offset -28 lines).
2 out of 3 hunks FAILED -- saving rejects to file smali_classes2/com/samsung/android/app/shealth/util/SignatureChecker.smali.rej

It stops here.

adil192 commented 2 years ago

Every few updates the patches need to be updated because the files in the original APK have rejigged themselves. The patch you're using is for the 6.22.0.069 update (2 June) but you're likely using the latest APK 6.21.3.001 (27 Jun).

The answer in this case is to use the older 6.21 patch here: shealth_custom_cert.patch.

This usually wouldn't happen but Samsung released a 6.21 update \~after\~ a 6.22 update for unknown reasons which requires the older patch.