Closed JapanSinks closed 2 years ago
Yep health sync personally checks the signature of Samsung Health and refuses to work if shealth is modded. I tried to patch Health Sync a couple months ago but ended up giving up, as Health Sync stops connecting to Google if its own signature is changed through any type of mod. :/
If anyone's got the experience to patch Health Sync, I'll attach my patch thus far and a not-very-descriptive logcat:
healthsync_shealth_custom_cert.patch
--- smali_classes3/com/samsung/android/sdk/healthdata/HealthDataStore.smali
+++ smali_classes3/com/samsung/android/sdk/healthdata/HealthDataStore.smali
@@ -374,217 +374,9 @@
.method private static checkSignature([Landroid/content/pm/Signature;)Z
- ----------
+ .locals 1
+
+ const/4 v0, 0x1
+
+ return v0
.end method
logcat -D * | grep nl.appyhapps.healthsync
:
# clicked the "Check google account connection" button
05-04 00:10:26.687 1262 2507 I ActivityTaskManager: START u0 {act=com.google.android.gms.auth.GOOGLE_SIGN_IN pkg=nl.appyhapps.healthsync cmp=nl.appyhapps.healthsync/com.google.android.gms.auth.api.signin.internal.SignInHubActivity (has extras)} from uid 10279
05-04 00:10:28.350 3410 3410 I GoogleInputMethodService: GoogleInputMethodService.onStartInput():1885 onStartInput(EditorInfo{inputType=0x0(NULL) imeOptions=0x0 privateImeOptions=null actionName=UNSPECIFIED actionLabel=null actionId=0 initialSelStart=-1 initialSelEnd=-1 initialCapsMode=0x0 hintText=null label=null packageName=nl.appyhapps.healthsync fieldId=-1 fieldName=null extras=null}, false)
# chose my google account
05-04 00:10:28.365 1262 2507 W InputManager-JNI: Input channel object '1a8c53b nl.appyhapps.healthsync/com.google.android.gms.auth.api.signin.internal.SignInHubActivity (client)' was disposed without first being removed with the input manager!
05-04 00:10:28.370 3410 3410 I GoogleInputMethodService: GoogleInputMethodService.onStartInput():1885 onStartInput(EditorInfo{inputType=0x0(NULL) imeOptions=0x0 privateImeOptions=null actionName=UNSPECIFIED actionLabel=null actionId=0 initialSelStart=-1 initialSelEnd=-1 initialCapsMode=0x0 hintText=null label=null packageName=nl.appyhapps.healthsync fieldId=-1 fieldName=null extras=null}, false)
With this project being unmaintained, I'll close this issue. I hope someone can fork this repo and keep it alive.
After installing the patched version, everything works fine expect third party apps, like health sync, it would be nice if it could be fixed