Dexcom G6 [Incompatible device workaround] - Miscellaneous Android Development

Dexcom G6 is a Continuous Glucose Monitor (CGM) for reading blood sugar levels. I ordered one up to please my wife, not realizing my device isn't compatible.
After a few hours I managed to get everything working. And as far as I can tell there's no issues. Im getting the blood sugar updates, alarms, etc. Only thing I need to verify is the "share" option is working. Will test tonight after my wife gets home and I can set it up for her.
Must be rooted.
1) Download the apk.
2) Using a build.prop editor or your favorite file explorer. Change ro.product.manufacturer to samsung and ro.product.model to SM-G965F and save. The app won't open unless it passes as a compatible device, like an S9+.
Code:
ro.product.manufacturer=samsung
ro.product.model=SM-G965F
3) Reboot
4) Click the apk from your download location, it will ask you if you want to install, click yes. If it asks by what method choose "package installer". You may need to go into security and allow to install apps from unknown locations/sources.
5) Don't open the app after it installs.
6) Navigate to /data/app and look for the com.dexcom.g6-xxxxxxxxxxxxxx file. Highlight and cut. Then navigate to system/priv-app. Paste the com.dexcom.g6-xxxxxxxxxxxxxx file. Then rename to com.dexcom.g6. The "xxxxxx" was a bunch of letters and numbers that aren't relevant.
7) You shouldn't have to change permissions, but just incase make sure the apk in the com.dexcom.g6 folder is set to 644, rw-r-r.
8) Download the privapp-permissions-com.dexcom.g6.xml file below.
9) Navigate to system/etc/permissions and put the xml file there. Set permissions to 644, rw-r-r.
10) Reboot
11) The app should now open. Enter the requested Dexcom info. It'll ask to turn bluetooth on and locations. I believe course locations will work, but I had fine on for only the initial sync. It will search for the transponder for a few min, for me it was about 5min. Then all should be well.
My device is a Moto Z2 Force, a non-compatible device per Dexcom. And is working perfectly fine. Hope this helps the maybe one other person trying to get it working.:good:
Also:
I AM NOT RESPONSIBLE FOR ANYTHING NEGATIVE THAT CAN AND MAY HAPPEN TO YOUR PHONE! USE PROCEDURE AT YOUR OWN RISK!
Click to expand...
Click to collapse

I can't seem to find the ro.product line in the apk. It's driving me crazy as I'm sure it's simply something I'm overlooking.

It is not in the apk, it is on your device in the build.prop file. Use a build.prop editor to edit this on your device (search Google play store)

@gokart2
Your link is not working. Bytheway, do you know if it will work in Dexcom G5?

Works for G5 and G6
rzadas said:
@gokart2
Your link is not working. Bytheway, do you know if it will work in Dexcom G5?
Click to expand...
Click to collapse
Check out these two links. One is by the app creator, and one link is to the actual app.
Reddit.com/r/diabetes/comments/fqvmng/oc_build_your_own_dexcom_app_update_base_version/?utm_medium=android_app&utm_source=share
docs.google.com/forms/d/e/1FAIpQLScD76G0Y-BlL4tZljaFkjlwuqhT83QlFM5v6ZEfO7gCU98iJQ/viewform

I cant root my phone. (Motog7power) ..i have no pc right now.
Soo.... My question is:
Is there any other way to get the dexcom to work on my moto??

Looping
Another question. .....any way to loop a 630g that you know of? I could use some time with an artificial pancreas....

Related

How to install Google Currents (and other apps requiring the maps framework)

I was able to install Google Currents by manually adding the framework from the gapps zip normally used by CM7 and other roms.
I've included a View attachment maps-framework-kfire.zip modified zip (maps-framework-kfire) file with only the files you need. The files are in the folders necessary inside the zip. As we can't flash zips from recovery like other devices yet (that I know of) you'll have to put the files in manually. As this uses google services you probably need to have View attachment GoogleServicesFramework.apk installed already in your /system/apps directory (to do this if you haven't either install the market which will include this step or transfer the GoogleServicesFramework.apk there and chmod to 644 like the others below [do this before you reboot as it will be required])
1. Extract the zip file on your computer
2. Copy the extracted files to your device
3. Copy com.google.android.maps.jar into /system/framework via ADB or Root Explorer
4. Chmod (long hold select file in Root Explorer and select permissions) to 644 (owner read/write, group read, others read)
5. Copy com.google.android.maps.xml to /system/etc/permissions the same way
6. Chmod that file to the same permissions
7. Restart your Fire to allow it to recognize the new framework
8. Install this APK View attachment Google_Currents_1.0.apk
9. Open the app and select your Google account to continue
This should also allow any other apps to install that require this framework.
Works like a charm, thx a lot.
Good write up. Thanks.
works very well. Good instructions.
thanks
Worked perfectly, you rock rooobbbbb, thanks a million!!
Excellent find and easy to follow instructions. Thank you!
excellent, and now OpenTable installs too! thank you!
Glasairmell said:
Excellent find and easy to follow instructions. Thank you!
Click to expand...
Click to collapse
Ditto from me!
Happy I could help guys and gals.
Sent from my Kindle Fire using xda premium
You rock dude!
done, thanks very much!!
did not work for me :-(
Followed the instructions the files are in the correct locations and the permissions are 644
When I try and install it just says not installed. Rebooted a couple times. The instructions did not seem to mention anything about the features.xml so I also tried adding that to /system/etc/ as well with 644 still no go :-( anyone else not get this to work or run into this then figure out the solution?
kernelsandirs said:
Followed the instructions the files are in the correct locations and the permissions are 644
When I try and install it just says not installed. Rebooted a couple times. The instructions did not seem to mention anything about the features.xml so I also tried adding that to /system/etc/ as well with 644 still no go :-( anyone else not get this to work or run into this then figure out the solution?
Click to expand...
Click to collapse
I accidentally included that file, I didn't need to use it myself. You could try connecting your Fire to your computer and run logcat to live view the console of the device. That's how I saw that this was needed in the first place.
Sorry, got it working, when I read the path /system/etc/permissions it wrapped in my browser and I only put the xml in system/etc so I had placed the file a level lower. So it was my bad. thanks for the info. So far I really like the app, had been using news360 but this seems a bit nicer even though its still early.
kernelsandirs said:
Sorry, got it working, when I read the path /system/etc/permissions it wrapped in my browser and I only put the xml in system/etc so I had placed the file a level lower. So it was my bad. thanks for the info. So far I really like the app, had been using news360 but this seems a bit nicer even though its still early.
Click to expand...
Click to collapse
I did this exact same thing. Thanks for posting so that I realized my error.
BONUS: Tweetdeck now installs and works!! (A couple of other apps now working via sideload: Redbox & Speedtest.net)
Great directions. Thank you for the great work!
Sent from my Kindle Fire using Tapatalk
Thank you so much!
works for me!!
xdalaw said:
I did this exact same thing. Thanks for posting so that I realized my error.
BONUS: Tweetdeck now installs and works!! (A couple of other apps now working via sideload: Redbox & Speedtest.net)
Click to expand...
Click to collapse
Oh, this is perfect. I was going to ask about this app, explicitly.
//Tapatalk.EVO3D//
thanks
it makes KF worthwhile now ...

[Q] Renaming apks - not holding new name?!

Hey guys,
I still rename my bloat, I know, you probably see this as lame, but maybe someone has the answer anyway.
In system/app, the Motorola Migrate apk (fswriter.apk) can be renamed using root and Root Explorer, but after a minute or so, or a reboot, the apk returns to the original name (I usually add .old to the end). Just about all of the other apks I rename in that folder retain .old in the name even after a reboot. The entire contents of system/vendor/app does this. I can rename the apks, refresh and see they are still renamed, and then a minute later, or a reboot later, they drop the .old or .delete extension.
For now, I disabled the ones that appear in the app drawer, but maybe someone who is curious enough knows the answer.
Thanks,
Jason
JaBr1884 said:
Hey guys,
I still rename my bloat, I know, you probably see this as lame, but maybe someone has the answer anyway.
In system/app, the Motorola Migrate apk (fswriter.apk) can be renamed using root and Root Explorer, but after a minute or so, or a reboot, the apk returns to the original name (I usually add .old to the end). Just about all of the other apks I rename in that folder retain .old in the name even after a reboot. The entire contents of system/vendor/app does this. I can rename the apks, refresh and see they are still renamed, and then a minute later, or a reboot later, they drop the .old or .delete extension.
For now, I disabled the ones that appear in the app drawer, but maybe someone who is curious enough knows the answer.
Thanks,
Jason
Click to expand...
Click to collapse
are you rebooting into R/W mode aka recovery mode? For this line of Droids, after rooting, in order for you remove or change anything within the system you need to reboot into "recovery" and i use the quotations is because in all androids in the past (at least the ones i have had) recovery is TWRP or CWM but with our phones recovery is the OS but the OS is R/W...so make sure you are rooted and then you can either use an app like Rom Toolbox for example, use the rebooter option within and in that menu select Reboot Recovery, it'll reboot into the OS but rewritable once you are booted that way you can add and remove system apps as well as make any name changes to the system files and whatnot...hope this helps
Holo reboot in play store works great for rebooting into recovery or just a normal reboot!
Sent from my XT1080 using xda app-developers app

[solved] crashing accessibility app

To the Admins, I'm not entirely sure where you guys would want this thread...troubleshooting seemed to be the most sensible.
all right everyone, I'll explain here how I fixed this, but keep in mind I have the ATT LG G2 running KitKat with TWRP 2.7.0.0 and I'm rooted. I only recommend this for advanced users. If you aren't an advanced user, well, make sure you have a backup. I'm sure there was a faster way to fix this, but my goal wasn't to find the fastest way initially, it was to find a working way. For example, you could just ADB everything. You could also, assuming you know how to use your OS to search that deep into the device files, done a rename, copy/paste etc. etc. Not all devices are made equal, so be CAREFUL! BTW, I was in debugging mode + charge only.
WARNING: I AM ONLY OFFERING THIS FOR INSIGHT TO ADVANCED USERS THAT KNOW WHAT THEY ARE DOING - I DON'T OFFICIALLY RECOMMEND THAT ANYONE DO THIS. I AM NOT RESPONSIBLE FOR ANY TRANSMUTATION FROM LG G2 TO BRICK.
Here's what I did:
1) I opened accessibility while hooked up to the debugger in Android Studio to see that it was producing a Null Pointer Exception.
2) I have a slightly modified version of the TOT file so that I can run TWRP and still be rooted in KitKat.
3) I am rooted, so I used Root Explorer to search for accessibility and found that the file is called "LGSettingsAccessibility.apk" and .odex - it's under (WITH ROOT ONLY) /system/priv-app/
4) I searched for a system dump copy online...I found this site: http://hunterspad.com/Domains/StorageCow/Xda/Users/garyd9/Extracted System/priv-app/
I found that by typing "LGSettingsAccessibility.apk" and initially found a Google Drive version but it was posted in September of 2013 - unlikely to be the odex and apk from KitKat hahaha. I used a Google Search that searched custom range between Feb 1st and today. I found 2 links, one of which is the above.
NOTE: I don't recommend anyone do the following unless you KNOW what you are doing and definitely have a backup to restore to if things go wrong
5) I sent the link for each file to myself on Google Hangouts. I used Hangouts to download the March 14th upload of the LGAccessibilitySettings.apk and LGAcessibility.odex
5.5) I copied each of the original files (.apk and .odex) from /system/priv-app/ to my /sdcard/LGBackup folder I created using the Root Explorer app.
6) I went into the app "Root Explorer" again after downloading both files (DID NOT INSTALL IT, though it probably won't let you anyway). I checked both files and copied them.
7) I went back to /system/priv-app/ and renamed the existing files to be replaced with the extension ".bak" so that the system no longer points to those files (NOTE: Root Explorer asked me to remount as R/W (read and write vs. read-only) a good feature of root explorer to be in read-only by default; dangerous territory.
8) Bottom right corner of Root Explorer it was waiting for me to "Copy Here" when arriving at the location where I wanted to copy the files: /system/priv-app/ and after copying them I decided to be a fool and install the apk and it told me something like "app not found" or something.
9) FINALLY went into Settings and touched Accessibility and VOILA! It worked! A lot of luck involved - the odexed and apk files may not have been the proper version. I could have checked with relative ease (though likely time-consuming) by using some of my android dev skills/utilities.
WARNING: I AM ONLY RECOMMENDING THIS FOR ADVANCED USERS THAT KNOW WHAT THEY ARE DOING.
Thanks to garyd9 on XDA - without your uploaded files on storage cow, I couldn't have fixed this problem!

How to install the stock Samsung browser on Verizon S6

I noticed some people were interested in installing the Stock Samsung browser on the Verizon S6 variant so I figured I'd make a little tutorial on how to do just that.
Steps:
1.) You'll need to download the stock Samsung browser files. This can be done here.
2.) Install Root Browser from the play store. (Obviously make sure you grant it root permissions)
3.) Find the Samsung browser folder you just downloaded from Mega and unzip it. The end result will be a folder named "SBrowser_3.0.38".
4.) Copy this unzipped to your /System/app folder.
--Now we need to change the permissions so that the android system can recognize these newly placed files--
5.) Set the permissions as follows: (To set the permissions, you need to press and hold on the name of the folder or file you wish to edit, then click "Permissions") See screenshots
SBrowser_3.0.38 - rwxr-xr-x
lib (folder) - rwxr-xr-x
SBrowser_3.0.38.apk - rw-r-r
arm (folder) - rwxr-xr-x
libsbrowser.so - rw-r-r
libsecv8.so - rw-r-r
libUCProxySDK.so - rw-r-r
libUCProxyWTF.so - rw-r-r
libwbs.so - rw-r-r
6.) Exit and reboot.
Once you've done this, android will boot up with the "Android is upgrading..." screen. The "Internet" apk should now be in your app drawer.
If this helped, please hit the "Thanks" button!
*Note - I have not figured out how to enable the fingerprint scan for password entry. Not sure this is possible for our variant at this time.
Troubleshooting
If the app appears in the app drawer but force closes itself when you try to open it, you are either missing some files, or you didn't set the permissions correctly. Look at my screenshots and make sure the file sizes and permissions are correct.
If no app appears in the app drawer when you reboot, you probably didn't unzip the file before you pasted it in the /system/app directory. Remember to extract it before you copy over the files! You should have copied the "SBrowser_3.0.38" folder, not the "SBrowser_S6_alemtro" zip.
Any direction on the smart manager app? I'm following the directions in the s4 thread, but no go.
Rippley05 said:
Any direction on the smart manager app? I'm following the directions in the s4 thread, but no go.
Click to expand...
Click to collapse
Quite honestly, I was told that the smart manager is a bit of a battery hog and that an app like "Clean Master" does essentially the same thing so I never went about getting that app myself. But from looking at the directions I would just say to make sure you are putting it in the "/system/priv-app" folder instead of the "/system/app" folder and just make sure the permissions match those of other files and folders in that directory. I have heard some people have had success with it so it can be done.
Thanks for the tutorial, I didnt have a problem with setting permissions. But good to see I did it right. Any idea how to install smart manager? Put it in app/priv folder. Set permissions but not working.
Works great! +1
conflikt said:
Thanks for the tutorial, I didnt have a problem with setting permissions. But good to see I did it right. Any idea how to install smart manager? Put it in app/priv folder. Set permissions but not working.
Click to expand...
Click to collapse
I got Smart Manager to work. I just followed the same permissions as the browser. Worked like a charm.
VinceOB said:
I got Smart Manager to work. I just followed the same permissions as the browser. Worked like a charm.
Click to expand...
Click to collapse
Did you put it in /system/app or /system/private
Rippley05 said:
Did you put it in /system/app or /system/private
Click to expand...
Click to collapse
It should go into /system/priv-app
VinceOB said:
It should go into /system/priv-app
Click to expand...
Click to collapse
Appreciate the info. That's what I did, but it will not work for me. Where did you get the apk and associated files?
Rippley05 said:
Appreciate the info. That's what I did, but it will not work for me. Where did you get the apk and associated files?
Click to expand...
Click to collapse
What I did was follow the exact instructions on how to install the browser. Same permissions and everything. I got the apk from the same thread as the browser.
JGoldz75 said:
I noticed some people were interested in installing the Stock Samsung browser on the Verizon S6 variant so I figured I'd make a little tutorial on how to do just that.
Steps:
1.) You'll need to download the stock Samsung browser files. This can be done here.
2.) Install Root Browser from the play store. (Obviously make sure you grant it root permissions)
3.) Find the Samsung browser folder you just downloaded from Mega and unzip it. The end result will be a folder named "SBrowser_3.0.38".
4.) Copy this unzipped to your /System/app folder.
--Now we need to change the permissions so that the android system can recognize these newly placed files--
5.) Set the permissions as follows: (To set the permissions, you need to press and hold on the name of the folder or file you wish to edit, then click "Permissions") See screenshots
SBrowser_3.0.38 - rwxr-xr-x
lib (folder) - rwxr-xr-x
SBrowser_3.0.38.apk - rw-r-r
arm (folder) - rwxr-xr-x
libsbrowser.so - rw-r-r
libsecv8.so - rw-r-r
libUCProxySDK.so - rw-r-r
libUCProxyWTF.so - rw-r-r
libwbs.so - rw-r-r
6.) Exit and reboot.
Once you've done this, android will boot up with the "Android is upgrading..." screen. The "Internet" apk should now be in your app drawer.
If this helped, please hit the "Thanks" button!
*Note - I have not figured out how to enable the fingerprint scan for password entry. Not sure this is possible for our variant at this time.
Troubleshooting
If the app appears in the app drawer but force closes itself when you try to open it, you are either missing some files, or you didn't set the permissions correctly. Look at my screenshots and make sure the file sizes and permissions are correct.
If no app appears in the app drawer when you reboot, you probably didn't unzip the file before you pasted it in the /system/app directory. Remember to extract it before you copy over the files! You should have copied the "SBrowser_3.0.38" folder, not the "SBrowser_S6_alemtro" zip.
Click to expand...
Click to collapse
I've managed to get the FingerPrint working for autocompleting on the Verizon Galaxy S6 Edge, and posted it over on the app thread there. If you'd like me to get it working for the regular S6 send me the SecSettings2 folder within system/priv-app.
trailblazer101 said:
I've managed to get the FingerPrint working for autocompleting on the Verizon Galaxy S6 Edge, and posted it over on the app thread there. If you'd like me to get it working for the regular S6 send me the SecSettings2 folder within system/priv-app.
Click to expand...
Click to collapse
That would be awesome, Thank You. Hopefully this is everything you need, if not please let me know.
https://www.dropbox.com/s/52aw4kfupz0u4rr/SecSettings2_VZW-S6.zip?dl=0
dustinb17 said:
That would be awesome, Thank You. Hopefully this is everything you need, if not please let me know.
https://www.dropbox.com/s/52aw4kfupz0u4rr/SecSettings2_VZW-S6.zip?dl=0
Click to expand...
Click to collapse
It's been posted over here: XDA Thread Link. Let me know how it works for you!
What are the pros/cons of using the default browser over Chrome?
VinceOB said:
It should go into /system/priv-app
Click to expand...
Click to collapse
You only put it in system priv-app?? Not in system/app?? Also did you delete smart manager providers folder or did you leave it alone? As I. System priv-app there is 3 folders, smart manager, smart manager sdk. And smart manager providers. Thanks
conflikt said:
You only put it in system priv-app?? Not in system/app?? Also did you delete smart manager providers folder or did you leave it alone? As I. System priv-app there is 3 folders, smart manager, smart manager sdk. And smart manager providers. Thanks
Click to expand...
Click to collapse
Yup. Just put it in priv-app. I didnt do anything with Smart Manager Providers. Just left it alone.
VinceOB said:
Yup. Just put it in priv-app. I didnt do anything with Smart Manager Providers. Just left it alone.
Click to expand...
Click to collapse
Okay. Have you installed Viper4android?? If you don't mind could you pull audio effects.conf from system/etc for me and post on here?? jacked up my sound trying to install Viper and forgot to make a backup lol.
---------- Post added at 07:48 PM ---------- Previous post was at 07:16 PM ----------
Tried putting in just private app with no luck. Atleast I'm not seeing an icon for it
conflikt said:
Okay. Have you installed Viper4android?? If you don't mind could you pull audio effects.conf from system/etc for me and post on here?? jacked up my sound trying to install Viper and forgot to make a backup lol.
---------- Post added at 07:48 PM ---------- Previous post was at 07:16 PM ----------
Tried putting in just private app with no luck. Atleast I'm not seeing an icon for it
Click to expand...
Click to collapse
Make sure the permissions are exactly like it is for the browser. As for Viper, I haven't installed it yet. Haven't had time. Did you try rebooting after you made the changes? It should say updating apps.
I'm convinced that smart manager just will not work on some versions. Dunno why, but it won't. I have tried everything I can think of..no go
Has been posted
http://forum.xda-developers.com/ver...ps/5-12-sbrowser-returns-fingerprint-t3106759
This has been posted a long time ago.. search helps

Blackberry home

This is NOT my work I'm only posting a link to the original thread. Fully working! The keyboard is weird but kind of cool.
How I installed. I downloaded every file, I wanted to try it all. then extracted them all to the same folder. Then I copied the priv-app folder into System root/system using FX Explorer (you need root) any root Explorer will do the trick. After that just reboot. With the launcher you can use icon packs as well!
http://forum.xda-developers.com/showthread.php?t=3244542
Don't forget to thank @entrysky for all his hard work.
Mentions that CWM or TWRP Recoveries are needed?
I just extracted the zips then copied the priv-app into System using a root explorer and rebooted. Worked for me, I'm guessing flashfire might work but could take longer to do.
Hope this helps.
englishmale said:
I just extracted the zips then copied the priv-app into System using a root explorer and rebooted. Worked for me, I'm guessing flashfire might work but could take longer to do.
Click to expand...
Click to collapse
Still not quite sure exactly what you are doing here. Each Zip has it's own priv-app folder. What exactly are you combining before putting it into the system folder?
FYI: Flashing zips in order with Flashfire didn't work.
I extracted each one into the same folder, so all the apps ended up in the same priv-app folder as seen in this pic. Then I copied the priv-app folder.
Here is a step by step guide with pictures.
1) download the files.
2) get RAR from Google play. https://play.google.com/store/apps/details?id=com.rarlab.rar
3) open RAR and go to where you download the files, select all the files you want (see first PIC)
4) click the extract button and tick overwrite without prompt. (See PIC 2) then click OK.
5) using a root explorer open the files you just extracted i use FX
6) open the system folder (see PIC 3)
7) copy priv-app (see PIC 4+5)
8) go to your system(ROOT) (see PIC 6)
9) scroll down to the system folder then open it (see PIC 7)
10) in FX there is a padlock at the top to allow read/write click this (see PIC 8, 9 and 10)
11) Go to clipboard then paste select merge/overwrite (see PIC 11 and 12)
12) Long press the middle button on the back of your phone in the middle of volume up/down and select reboot.
13) click thanks
@mase123987 done a step by step guide for you with pictures. Hope it helps
englishmale said:
@mase123987 done a step by step guide for you with pictures. Hope it helps
Click to expand...
Click to collapse
Very much appreciate the effort! Unfortunately, even though I followed your directions perfectly, I still don't have any of the apps. I'm not sure if using flashfire to flash the files previously screwed something up.
That's strange? Did you download 1-4 as these are the main files you need. As you can see its worked for me. Have you tried to fix permissions?
Thank you for sharing. BTW, have you tried BB HUB? also, what about permissions? Maybe I missed but you didnt mentioned anything about it.
I've used the hub its quite handy having all your notifications in one place, also the password keeper is very handy for storing and generating passwords.
Permissions need to be 644 there are apps which will fix it all automatically for you or you can do it manual set to read/write then read and read. See PIC
I have copied resources, productivity edge, services, launcher and hub, but nothing works. Changed permissions for folders and files.. I took only priv folders from zips and coppied to system..
That's strange, i can't be the only one it works for? Did you download the BlackBerry exchange services fixed?
englishmale said:
That's strange, i can't be the only one it works for? Did you download the BlackBerry exchange services fixed?
Click to expand...
Click to collapse
priv folder in fixed zip is empty, no apk inside... btw I extradited it on PC, then transferred to sd.
Strange? I've zipped what I used and uploaded it to my Google drive there is also 2 apps in the app folder I didn't bother with these t.b.h. I've only just noticed them lol. Try extracting the zip the copy app and pri-app into your root system folder let me know if it works? You might have a corrupt download or 2.
Here's the link:
https://drive.google.com/file/d/0B2sMKdcrmUR1TXJ6YWZXTVZ6c00/view?usp=docslist_api
http://forums.crackberry.com/androi...-any-android-device-no-root-required-1059855/
if anyone is still interested in BB apps

Categories

Resources