Conan Troutman · Feb 11, 2013 at 07:00 pm

How to Enable Anonymous Usage Statistics In Your ROM

Anyone who has ever flashed a build of CyanogenMod could not have possibly failed to notice the initial notification after a fresh install. That’s right, the one asking whether or not you would like to opt in to allow the transmission of anonymous usage statistics from your device. For any developers out there who would also like to keep track of how their work is being used, XDA Senior Member mcbyte_it has made that a lot easier to implement. And as we already provide this information to Google, we may as well help out any curious developers as well, right?

The information in question is completely non-invasive and anonymous. It consists of an MD5 hash of either IMEI or WiFi MAC address, country and carrier info, device model/version and ROM name/version. It also sends a record of the first check in and last check in which enables the removal of inactive devices from the database. This should help to give developers a pretty clear picture of where their work is used and on which devices.

The process of implementing this into your ROM is pretty straightforward and consists of two procedures. The first requires you to add the Romstats.apk file into your ROM as either a system or user app (if you’d prefer to give the user the option of uninstalling as well as opting out), and making the necessary amendments to the build.prop file. The application itself is created from the original sources of the CyanogenMod statistics reporting APK, and the sources are available from a Github link in thread. The second part of the process involves setting up a web application to receive and store the data. Mcbyte_it’s solution to this is simple: PHP page and Mysql database to store the data.

Everything you need to set this up can be found in the original forum thread, so be sure to check it out if you’d like to implement this.


_________
Want something on the XDA Portal? Send us a tip!
TAGS:

Conan Troutman

Conan Troutman is an editor on XDA-Developers, the largest community for Android users. Senior Moderator, Newswriter, Recovering Meme Addict. View Conan Troutman's posts and articles here.
Mario Tomás Serrafero · Jul 29, 2015 at 12:10 pm · 1 comment

OnePlus 2 vs Moto X Style: Which is The Better Flagship?

Two big industry names have announced their newest flagship phones within the past few days. Both have also promised great performance for a cheap price, and now that we know the specifications and details about both the Moto X Style and the OnePlus 2, we can begin planning our next purchase and debating which one is better. So, judging from everything we know, which phone is more impressive?

DISCUSS
Mathew Brack · Jul 29, 2015 at 10:35 am · 2 comments

Making Your Own Xposed Modules Is Easier Than You Think

Close to the heart of XDA is the Xposed Framework by Rovo89. Most of us will have used it but you may feel that the module repository is missing something. We have the solution with several guides aimed at getting you started to build your own modules, something that may be daunting but can open an entire new field of development with a little time and effort.     Where better to start than at the beginning? Rovo89 has created a straight forward tutorial for getting started with development for Xposed....

XDA NEWS
Jimmy McGee · Jul 29, 2015 at 06:00 am · 2 comments

ZenFone 2 Lolliflash and ZenPower Giveaway!

We recently did an in-depth review of the Asus Zenfone 2 but one of the things people may not be aware of is that ASUS has actually created a line of accessories to compliment the ZenFone, or any other Android device. The Lolliflash is a Lollipop-shaped external flash and the ZenPower is a thin 10,000mAh external battery. In today's video, Jordan shows off the Lolliflash and the ZenPower Accessories. Additionally, ASUS and XDA have teamed up to give away 5...

XDA NEWS