Xiaomi was founded on April 6th, 2010 and its fifth anniversary is just around the corner. In the past five years, the company has grown by leaps and bounds, rising to the positions of largest smartphone OEM in China and third-largest globally and coupled with its expansion plans and 100 million sales benchmark, this anniversary warranted a fervent celebration. After teasing products on its forums for a few days, Xiaomi held the anniversary event earlier today and staying true to the...
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!
A few months ago, we came up with the idea of presenting the history of flagship devices released by some of the major Android OEMs. In this, we've had the pleasure of bringing you the stories of Sony (Ericsson) and Samsung. Now, it's time for our third and final installment. This is a very special episode, as the OEM I will talk about was heavily connected to Android and the beginnings of XDA as a whole. Yes, I'm talking about HTC, the...
Unfortunately there was a memory leak in Android 5.0.x Lollipop. Thankfully it was fixed in Android 5.1. However, at the time of this video Xposed Framework doesn’t have Android 5.1 support. So you are faced with a choice of fixing the memory leak or running your Xposed Modules. Or are you? In this episode of XDA Xposed Tuesday, XDA TV Producer TK reviews an Xposed Module that adds the Android 5.1 memory fix to pre 5.1 Lollipop devices. The module...