Coder Social home page Coder Social logo

screentrack-android's Introduction

ScreenTrack-Android

Android App for monitoring app usage. Using MVVM architecture and Dagger Hilt.

Download

Get the latest APK from releases

Screenshots

Libraries used

Data

The data is fetched from UsageStatsManager's queryEvents function.

Permissions

To use UsageStatsManager, the Manifest.permission.PACKAGE_USAGE_STATS permission is required.

Accuracy

The data should probably be accurate on most devices but I did experience a few abnormalities in the usage events of some devices. For instance, some ACTIVITY_PAUSE events without their corresponding ACTIVITY_RESUME events (which the app ignores).

License

MIT License

Copyright (c) 2020 Ashar Khan

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

screentrack-android's People

Contributors

ashar-7 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

screentrack-android's Issues

App distribution

Hi I want to publish this app on the Google play store
According to the license I can do that but still want to ask you.... should I do that ?

Using app

Hii bro
I want to ask am I free to use the source code of this app or do I have to follow some guidelines ?

Getting wrong sessions/stats for some applications

I could find some applications for which the getSessions() in AppUsageManager.kt gives Session object starting from midnight i.e from 00:00:00 to a time from where the actual first session started which is the subsequent session in the sessions list.

This causes the overall usage time to be much more than what it actually is and gives the wrong session info as well..

For reference, I am attaching some screenshots,

Issue_session_1_1
Issue_session_1_2
Issue_session_1_3

I believe this is due to the fact that we consider 'startTime' for events that are not initialized as 'timeStart' - I will test some more and put my observations here, meanwhile please check if you are getting the same issue as well.

                      UsageEvents.Event.ACTIVITY_PAUSED -> { // same as MOVE_TO_BACKGROUND
                                    // end time
                                    if(startTime == 0L) {
                                        if(!isInitialized) {
                                            startTime = timeStart
                                            endTime = event.timeStamp
                                        }
                                    } else {
                                        endTime = event.timeStamp
                                    }
                                }

I appreciate your time and effort put in this project, Thanks for this project.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.