forked from AdrianLxM/Esel
-
Notifications
You must be signed in to change notification settings - Fork 29
How to modify the Android Eversense App
BernhardRo edited this page Jun 19, 2022
·
6 revisions
- Install the official EversenseApp from the Playstore
- Extract the APK of this App (e.g. with MyAppSharer)
- Upload this APK (com.senseonics.gen12androidapp) to your PC
- Decompile the APK to .smali code (e.g. with Apktool)
- In the decompiled app, navigate to com.senseonics.gen12androidapp\smali\com\senseonics\db
- Copy/duplicate ConnectedTransmitterContentProvider.smali and name the new file GlucoseContentProvider.smali (see the file GlucoseContentProvider.smali in this repo for references)
- Edit GlucoseContentProvider.smali and rename every instance of
ConnectedTransmitterContentProvider
toGlucoseContentProvider
andconnectedTransmitters
toglucosereadings
(in the SQL statements) - except of line 23: for security reasons, rename the string inperformDelete
to something likedeletenotsupported
- 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) - Compile the code according the documentation of your tool you have used to decompile it
- Sign the compiled APK (See the Android Documentation for help)
- 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