[APP][2.1+] Trust - Event Logger

Search This thread

Dark3n

Recognized Developer
Sep 14, 2007
2,567
5,175
twitter.com
attachment.php

Hi XDA,

i want to introduce my newest app called "Trust".

An image says more than 1000 words, so have some screenshots first:

It currently logs the following events:
  • Foreground apps
  • Installed/deleted/replaced/restartet/cleared apps
  • Power connect/disconnect
  • Shutdowns/Boots
  • Screen on/off events
  • Lockscreen events
  • Loss of wifi/cell connectivity
  • Removed media
  • Calls

I'm open for suggestions if you have ideas for features.

There is a free and a pro version.
The free version shows the last 24 hours while the pro shows unlimited events.

 

Attachments

  • attachment.php.jpg
    attachment.php.jpg
    17.5 KB · Views: 8,974
  • qrfree.png
    qrfree.png
    638 bytes · Views: 5,631
Last edited:

Dark3n

Recognized Developer
Sep 14, 2007
2,567
5,175
twitter.com
Code:
Changelog:
v2.0.1
- Fixed dialog colors on gingerbread devices

v2.0
- Revisited and improved a lot of code
- Improved the UI
- Added app foreground activity tracking
- Added wifi SSID to wifi events

v1.2.8
- Added portuguese (brazil) as language

v1.2.7
- App related events now show a link to the apps web/gplay site in their details
- Small code changes 

v1.2.6
- Fixed leading 00 on numbers not being saved
- Fixed two crashes

v1.2.5
- Added excel date/time to export columns
- Added option to change displayed time style
- Tweaked formatting a little bit

v1.2.4
- added Italian as language

v1.2.3
- Fixed possibly FC on DetailsDialog when resuming app
- Changed export format once more (date;time;timestamp;ID;type;extra;description)

v1.2.2
- Fixed notification not being removed
- Added a formated date column to the exported database file

v1.2.1
- Fixed crash when setting password
- Tweaked ics menu button
- Settings now ask for pattern on resume too

v1.2.0:
- Events are stored forever unless specified otherwise in settings
- Added option to export database to CSV
- Some work on the UI dialogs
- Translation preparations

v1.1.2:
- Wifi only devices should now see the app on the market too

v1.1.1:
- Small change to the manifest to increase device compatibility

v1.1:
- First public release of Trust
 
Last edited:

short/y

Senior Member
Mar 9, 2006
658
67
Silly-con Valley
This is brilliant! -- I've been wanting an app that would track my app installs/uninstalls/updates for quite a while. I bought the Pro version because, well, aside from the fact that I like having this kind of data, I've been a supporter of yours for a while, dark3n :)

One thing I'd like to see is the ability to export the data into a CSV and maybe also the ability to schedule an export.

I also notice that I can't install it on my XOOM. Do you have plans to support tablets?
 

Dark3n

Recognized Developer
Sep 14, 2007
2,567
5,175
twitter.com
This is brilliant! -- I've been wanting an app that would track my app installs/uninstalls/updates for quite a while. I bought the Pro version because, well, aside from the fact that I like having this kind of data, I've been a supporter of yours for a while, dark3n :)

One thing I'd like to see is the ability to export the data into a CSV and maybe also the ability to schedule an export.

I also notice that I can't install it on my XOOM. Do you have plans to support tablets?

CSV export is definitely possibly, i have not worked with it yet, so i will read up on that.

Regarding your XOOM, i have not knowingly put restrictions on it aside from android 2.1+. Is it possible that your XOOM runs a custom density? The market doesn't like custom densities ;-), send me an email and i will send you the files until we find a solution if it is not the density.

Thanks for supporting my work.
 

short/y

Senior Member
Mar 9, 2006
658
67
Silly-con Valley
CSV export is definitely possibly, i have not worked with it yet, so i will read up on that.

Regarding your XOOM, i have not knowingly put restrictions on it aside from android 2.1+. Is it possible that your XOOM runs a custom density? The market doesn't like custom densities ;-), send me an email and i will send you the files until we find a solution if it is not the density.

Thanks for supporting my work.
I run a Team EOS ICS ROM so I doubt it. I certainly don't change the resolution. I'll send you an email shortly.

Edit: I copied the APK over to my XOOM and it works just fine.


Sent from my Galaxy Nexus using Tapatalk 2
 
Last edited:

Dark3n

Recognized Developer
Sep 14, 2007
2,567
5,175
twitter.com
Just pushed v1.2.0 to the market
How long events are kept is now variable from 1 day to forever (see settings).

The menu offers an export function, which writes all database entries into a .csv file, with the following syntax:

Code:
time;ID;type;extra;description
1339799055212;180;24;"";"Restored wifi connection"
 
  • Like
Reactions: ZaneZam

short/y

Senior Member
Mar 9, 2006
658
67
Silly-con Valley
The CSV update works great, thank you! And adding unlimited storage is a nice benefit. I like to track things that happen on my phone and this gives me the opportunity to track pretty much everything in one place.

I think maybe the epoch on the date stamp doesn't match what Excel and the other spreadsheet programs use (including Google' spreadsheet format). I"m not sure what your time base is but would it be possible to export it as something that the spreadsheets recognize?
 

Dark3n

Recognized Developer
Sep 14, 2007
2,567
5,175
twitter.com
  • Like
Reactions: short/y

short/y

Senior Member
Mar 9, 2006
658
67
Silly-con Valley
Excel date/time is (currentTimeMillis() / 86400000) + 25569. I can always apply that correction myself but for an export to CSV, IMHO, it makes sense for you to convert to that format before writing the data.

EDIT: Excel uses a format called a "serial date" -- ddd.ttt where ddd is the number of days since January 0, 1900 (yes, January ZERO -- ddd = 1 is January 1, 1900) and ttt is the percentage of a day that has passed. Since the Android base is UTC, one must adjust for your local timezone :) In California we're on DST right now so we're -7 hours from UTC which means we subtract 7/24 from that value or approximately -0.29166667.
 
Last edited:

Dark3n

Recognized Developer
Sep 14, 2007
2,567
5,175
twitter.com
An update is going up in a few minutes.
I fixed the notification not being removed when the service is stopped and added another column to the exported file containing the fully formatted date.

Looks something like this:
Code:
time;ID;type;extra;description;formateddate
1340110467055;1;1;"1.2.1(6)";"Log recording started.";"19.Jun.2012 14:54:27"
 
  • Like
Reactions: short/y

short/y

Senior Member
Mar 9, 2006
658
67
Silly-con Valley
An update is going up in a few minutes.
I fixed the notification not being removed when the service is stopped and added another column to the exported file containing the fully formatted date.

Looks something like this:
Code:
time;ID;type;extra;description;formateddate
1340110467055;1;1;"1.2.1(6)";"Log recording started.";"19.Jun.2012 14:54:27"
Uhhh ... ahhh .... ahem, I appreciate the update but is there any chance you could replace the formatted date with the serial date? I REALLY don't wanna be a pain about this but, see, I'd like to be able to sort in various ways and if the date is already formatted, it's not so easy to use as a sort column in Excel and various other spreadsheets. I suppose I should've been more direct and succinct in what I was asking for and I apologize for that. The Excel serial date format is really what I'd prefer. With the two date fields as they are I have to manipulate one or the other of them to make it usable for me. I can understand if you don't want to replace the current formatted date field and I certainly don't want you to add another date field.

If, by chance, you decide to make a change, since most spreadsheets will display the full text of the last column without requiring any interaction from the user, I'd suggest putting the two date fields together at the beginning of the exported data and leave the description as the last field.
 

Dark3n

Recognized Developer
Sep 14, 2007
2,567
5,175
twitter.com
Can you post me a link of your desired conversion?
I have googled a bit, but could not find something i liked.

Edit:

I published 1.2.3 just now, as there was a bug i wanted fixed.

Changelog:
Code:
v1.2.3
- Fixed possibly FC on DetailsDialog when resuming app
- Changed export format once more (date;time;timestamp;ID;type;extra;description)
 
Last edited:

short/y

Senior Member
Mar 9, 2006
658
67
Silly-con Valley
Can you post me a link of your desired conversion?
I have googled a bit, but could not find something i liked.

Edit:

I published 1.2.3 just now, as there was a bug i wanted fixed.

Changelog:
Code:
v1.2.3
- Fixed possibly FC on DetailsDialog when resuming app
- Changed export format once more (date;time;timestamp;ID;type;extra;description)
Thanks for the update! Sorry I missed your earlier message. The formula is listed in my post but I'll see if I can find the web page I got it from. Really, all that needs to be done is to take the value returned from currentTimeMillis(), divide it by 86,400,000 and add 25,569 to get UTC. In other words
Code:
(currentTimeMillis() / 86400000) + 25569

Ah, found it! Here's the URL. Note that I applied the formula to your column labelled "timestamp" and it converts it to a date/time value that Excel recognizes. I guess you don't do much with spreadsheets, huh? :)

Edit: forgot to include the URL http://www.cpearson.com/excel/datetime.htm
 
Last edited:

bradwdx

Member
Dec 21, 2010
24
6
any chance for an option to toggle between showing 'hours ago' and a time stamp right in the app?

thanks!

Sent from my SGH-T999 using Tapatalk 2
 

Top Liked Posts

  • There are no posts matching your filters.
  • 21
    attachment.php

    Hi XDA,

    i want to introduce my newest app called "Trust".

    An image says more than 1000 words, so have some screenshots first:

    It currently logs the following events:
    • Foreground apps
    • Installed/deleted/replaced/restartet/cleared apps
    • Power connect/disconnect
    • Shutdowns/Boots
    • Screen on/off events
    • Lockscreen events
    • Loss of wifi/cell connectivity
    • Removed media
    • Calls

    I'm open for suggestions if you have ideas for features.

    There is a free and a pro version.
    The free version shows the last 24 hours while the pro shows unlimited events.

    5
    I didn't forget this app :).
    Released an update yesterday.
    We are at v2.0.1 now.

    I've updated the UI, improved the code with new stuff i learned.
    I also added the wifi SSID to events and foreground apps are now tracked too!
    3
    Code:
    Changelog:
    v2.0.1
    - Fixed dialog colors on gingerbread devices
    
    v2.0
    - Revisited and improved a lot of code
    - Improved the UI
    - Added app foreground activity tracking
    - Added wifi SSID to wifi events
    
    v1.2.8
    - Added portuguese (brazil) as language
    
    v1.2.7
    - App related events now show a link to the apps web/gplay site in their details
    - Small code changes 
    
    v1.2.6
    - Fixed leading 00 on numbers not being saved
    - Fixed two crashes
    
    v1.2.5
    - Added excel date/time to export columns
    - Added option to change displayed time style
    - Tweaked formatting a little bit
    
    v1.2.4
    - added Italian as language
    
    v1.2.3
    - Fixed possibly FC on DetailsDialog when resuming app
    - Changed export format once more (date;time;timestamp;ID;type;extra;description)
    
    v1.2.2
    - Fixed notification not being removed
    - Added a formated date column to the exported database file
    
    v1.2.1
    - Fixed crash when setting password
    - Tweaked ics menu button
    - Settings now ask for pattern on resume too
    
    v1.2.0:
    - Events are stored forever unless specified otherwise in settings
    - Added option to export database to CSV
    - Some work on the UI dialogs
    - Translation preparations
    
    v1.1.2:
    - Wifi only devices should now see the app on the market too
    
    v1.1.1:
    - Small change to the manifest to increase device compatibility
    
    v1.1:
    - First public release of Trust
    2
    Trust can't detect crashes or similar events, it only scribbles down regular events send by the system.
    I won't integrate this into Trust either, but i have an app planned that will go that direction (i.e. smarter logcat app).

    I can let you guys know once i have something like a beta version ready.
    1
    Just pushed v1.2.0 to the market
    How long events are kept is now variable from 1 day to forever (see settings).

    The menu offers an export function, which writes all database entries into a .csv file, with the following syntax:

    Code:
    time;ID;type;extra;description
    1339799055212;180;24;"";"Restored wifi connection"