Skip to content

How to modify the Android Eversense App

BernhardRo edited this page Jun 19, 2022 · 6 revisions
  1. Install the official EversenseApp from the Playstore
  2. Extract the APK of this App (e.g. with MyAppSharer)
  3. Upload this APK (com.senseonics.gen12androidapp) to your PC
  4. Decompile the APK to .smali code (e.g. with Apktool)
  5. In the decompiled app, navigate to com.senseonics.gen12androidapp\smali\com\senseonics\db
  6. Copy/duplicate ConnectedTransmitterContentProvider.smali and name the new file GlucoseContentProvider.smali (see the file GlucoseContentProvider.smali in this repo for references)
  7. Edit GlucoseContentProvider.smali and rename every instance of ConnectedTransmitterContentProvider to GlucoseContentProviderand connectedTransmitters to glucosereadings (in the SQL statements) - except of line 23: for security reasons, rename the string in performDelete to something like deletenotsupported
  8. Modify com.senseonics.gen12androidapp\AndroidManifest.xml: Replace line 32 (<provider android:authorities="com.senseonics.gen12androidapp.transmitter"...) with: <provider android:authorities="com.senseonics.gen12androidapp.transmitter" android:grantUriPermissions="true" android:exported="true" android:name="com.senseonics.db.ConnectedTransmitterContentProvider"/> <provider android:authorities="com.senseonics.gen12androidapp.glucose" android:grantUriPermissions="true" android:exported="true" android:name="com.senseonics.db.GlucoseContentProvider"/> (see the file AndroidManifest.xml in this repo for references)
  9. Compile the code according the documentation of your tool you have used to decompile it
  10. Sign the compiled APK (See the Android Documentation for help)
  11. Uninstall the original Eversense App on your phone (Warning: the local history of your CGM readings in your Eversense App will get lost) and install your new APK. The new App will behave just like the original one - except of the difference that the CGM reading can be accessed from other Apps e.g. by ESEL

Some more details can also be found in the corresponding README

Clone this wiki locally