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.
Jimmy McGee · May 26, 2015 at 06:00 am · 3 comments

XPrivacy for Android Lollipop – XDA Xposed Tuesday

Have you ever been on the Google Play Store and saw an app that you wanted to try, but the sheer amount of permissions put you off? Why does a LED Color app need access to my calendar? Sometimes app developers tell you that it’s because of the ads. However, other times, apps don’t explain why they are spying on your text messages. In this episode of XDA Xposed Tuesday, XDA TV Producer TK reviews an Xposed Module that enables...

XDA NEWS
Mario Tomás Serrafero · May 25, 2015 at 02:00 pm · 2 comments

XDA Office Space: Frankenstein’s Perfect IM Client?

The portal’s decentralized XDA office lies in a Hangouts chatroom, where we discuss the latest developments that hit the blogosphere, critique them and figure out what we can do to add a new or original point of view. We came to love this little virtual office, which sees messaging 24/7 due to the international nature of our team. The main problem that we have faced since early on is that Hangouts is not versatile enough for in-depth discussion.   What...

XDA NEWS
Emil Kako · May 25, 2015 at 12:32 pm · 4 comments

Which IM Client on Android is best?

With so many different messengers to choose from, it can be tough to find the best one for you and your friends to use. Hangouts, Whatsapp, Telegram and more are all battling it out for the number one spot. Let us know which IM client you think is best on Android and why.

DISCUSS
Share This