- Oct 31, 2011
- 3,807
- 335
I've been working on a new MIUI Stats. This first version is the APK, with just a different URL for the POST responses to be sent. The original methods were all dealing in Python or something. Its just not what I like.
I remade the backend, and a bit of the APK to allow us to use these stats for more creative purposes. Using php and mysql. We can create charts and graphs and what not. It also is very scalable, and has been tested up to 100k records with little latency.
I have NOT pulled any more data then before. This is the same non-personal information pulled. (Version, Language, Phone type, hashed version of mac address to make unique hash)
The current test page is http://stats.miuiandroid.com However, don't look at it. Its just print_r() of 1 hour cached versions of the stats. I just want to quickly test with a variety of phones and carriers to see if my data storage is working correctly. Then I'll make a ***y looking design using the stats.
I would appreciate any help.
Download: http://miui.connortumbleson.com/miui/other/apk/MIUIStats.apk
Instructions
For anyone interested. It is a multi table design. One table is loaded into memory (HEAP), and recieves all the incoming POST requests. It then stores them until either 20 requests are in the table or 10 minutes have past. It then dumps those into the "frozen" table which contains all the phones and tabulates the stats as its added in.
The app is included. Thanks
Uninstall current APP (Use adb uninstall com.cyanogenmod.stats; )Reinstall new app (adb install MIUIStats.apk)* OPTIONAL (run adb shell)then rm /data/data/com.cyanogenmod.stats/shared_prefs/CMStats.xml (deletes cached preferences so your phone will re-hit the stat URL.Thanks
The app is included. Thanks