Skip to content

Instantly share code, notes, and snippets.

@imReker
Last active November 12, 2024 23:59
Show Gist options
  • Save imReker/fba069c6cae7407509863b0ed78da2a7 to your computer and use it in GitHub Desktop.
Save imReker/fba069c6cae7407509863b0ed78da2a7 to your computer and use it in GitHub Desktop.
plist for Apple Watch to Enable ECG v2 and Atrial Fibrillation(IRNF)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>EnableCardioFitnessNotifications</key>
<true/>
<key>EnableStationaryDiscordanceDetection</key>
<true/>
<key>EnableAtrialFibrillationDetection</key>
<true/>
<key>BradycardiaThresholdBPM</key>
<integer>45</integer>
<key>EnableBradycardiaDetection</key>
<true/>
<key>StationaryDiscordanceMinimumBPM</key>
<integer>120</integer>
</dict>
</plist>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CompletedBuddyVersion</key>
<integer>2</integer>
</dict>
</plist>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ElectrocardiogramWatchAppInstallIsAllowed</key>
<true/>
<key>HKAtrialFibrillationDetectionOnboardingCompleted</key>
<integer>1</integer>
<key>HKElectrocardiogramOnboardingCompleted</key>
<integer>4</integer>
</dict>
</plist>
@vinixtor
Copy link

vinixtor commented Nov 5, 2024

Creating Backup now. Will check once it's done.

@vinixtor
Copy link

vinixtor commented Nov 5, 2024

OK, I did the backup, then the Editable Backup.... then going into HomeDomain>Library>Preferences. I do have all 3 files there. Not Sure if my App is bringing all 3 files since I started this thing back in iOS 17, but now, as for Today, Using iOS 18.2 beta 2,. I do have those 3 files.

I do have ECG feature working, but not AFib History. Not sure what else to check. I have not tried to replace all 3 files again, but I don't want to test that if I will get the same results as with ECG feature only enabled.

@vinixtor
Copy link

vinixtor commented Nov 5, 2024

No Oxygen feature working since using AWU2 Black edition

@vinixtor
Copy link

vinixtor commented Nov 5, 2024

BTW, just updated to WatchOS 11.2 Beta

@MN0X
Copy link

MN0X commented Nov 5, 2024

any updates

BTW, just updated to WatchOS 11.2 Beta

@chinaa108
Copy link

chinaa108 commented Nov 5, 2024

I Just used this on iOS 18.2 beta 2 and can confirm ecg is working, however afib history is not working. Devices used 16 pro max and ultra2

edit: ecg works on watch, however on the iPhone it’s showing that it’s not available on the watch.

@MN0X
Copy link

MN0X commented Nov 5, 2024

Did u use imazing for backup ?

@chinaa108
Copy link

yup

@katofelinus
Copy link

katofelinus commented Nov 5, 2024

OK, I did the backup, then the Editable Backup.... then going into HomeDomain>Library>Preferences. I do have all 3 files there. Not Sure if my App is bringing all 3 files since I started this thing back in iOS 17, but now, as for Today, Using iOS 18.2 beta 2,. I do have those 3 files.

I do have ECG feature working, but not AFib History. Not sure what else to check. I have not tried to replace all 3 files again, but I don't want to test that if I will get the same results as with ECG feature only enabled.

Thanks a lot for your help.

It could be that the 3rd file came from IOS 17. We still don´t know if it is needed in IOS 18 and WatchOS 11. I could try both options: replacing just 2 files or replacing 2 files and adding the 3rd.

It would be interesting to know it from ImReker

@chinaa108
Copy link

Question: can we get these plists from activated watches/phones in supported regions and copy them over?

@katofelinus
Copy link

OK, I did the backup, then the Editable Backup.... then going into HomeDomain>Library>Preferences. I do have all 3 files there. Not Sure if my App is bringing all 3 files since I started this thing back in iOS 17, but now, as for Today, Using iOS 18.2 beta 2,. I do have those 3 files.

I do have ECG feature working, but not AFib History. Not sure what else to check. I have not tried to replace all 3 files again, but I don't want to test that if I will get the same results as with ECG feature only enabled.

Ok. I did the editable backup with iMazing, replaced 2 files and added the 3rd, restored to my iPhone and the ECG is NOT activated. Something changed from IOS 17 to IOS 18 that does no let us enable ECG with the 3 files that did it in IOS 17 and 16.

If somebody is able to enable ECG in IOS 18, please let me know how is done.

@katofelinus
Copy link

It would be great if @imReker could do a revision of this code for IOS 18 and WatchOS 11. Last revision was on March 2023 (IOS 16 and WatchOS 9

@MN0X
Copy link

MN0X commented Nov 12, 2024

@imReker @katofelinus Any happy news ? and please is it required that the apple watch to be bought from a concerned region ? thank uu

@katofelinus
Copy link

katofelinus commented Nov 12, 2024

@imReker @katofelinus Any happy news ? and please is it required that the apple watch to be bought from a concerned region ? thank uu

Unfortunately, no happy news. I could not activate ECG in IOS 18.1 and WatchOS 11 with the 3 files posted here. Something changed in IOS 18. ImReker has not answered yet. Hope he will. Regarding your other question, I understand you have to BUY & ACTIVATE the Apple Watch in an approved country, otherwise, it will not activate the ECG.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment