home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.mobile.android      Discussion about Android-based devices      236,147 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 234,152 of 236,147   
   Marion to knuttle   
   Re: How many apps do you have installed    
   15 Sep 25 23:26:05   
   
   XPost: misc.phone.mobile.iphone, alt.comp.freeware   
   From: marionf@fact.com   
      
   knuttle wrote:   
   > How many of those 1000 apps do you use in a week?   
      
   That's a good question, where I am one of the most organized computer users   
   you'll ever meet in your entire life - on both desktop & mobile platforms.   
     My Menus Today   
      
   Every computer, for decades, & every phone, has the same standard hierarchy   
   since you do the same things on desktops as you do on mobile devices, as   
   the folders and menus are organized by what the programs/apps do for you.   
   Row 1: time, telecom ... buy, files   
   Row 2: network, web... nature, maps   
   Row 3: pictures, audio & video   
   Row 4: todo   
   Row 5: sensor   
   Row 6: apk   
   Row 7: system   
      
   So all the most-used apps are in the home page in orderly folders (same as   
   with the Windows desktop) where I keep ordering them as I use them most.   
     Windows browsers   
      
   > How many have you not used in the last year?-+*   
      
   It's a great question, where I test software a lot, e.g., I've tested every   
   free app ever suggested on these newsgroups but I don't always delete them.   
      
   I give every app one strike and they're out, but if they pass that test,   
   then I may or may not delete the app after I am done testing it for us.   
      
   I looked up how to test for the Android UsageStats database which is only   
   accessible if the device grants the PACKAGE_USAGE_STATS permission to an   
   app (or we can figure out how to pull the raw database from the phone).   
      
   This is apparently the command to dump the current usage stats:   
    C:\> adb shell dumpsys usagestats   
         This dumped a lot of JSON-like text with entries of the form:   
          First used -> firstTimeStamp   
          Last used -> lastTimeUsed   
          Most/least used -> totalTimeInForeground   
      
   There are ways to hone that long statistics output log though:   
    C:\> adb shell dumpsys usagestats daily   
    C:\> adb shell dumpsys usagestats weekly   
      
   It's really crippling that you can't do anything like this with iOS.   
   It's amazing how brain dead iOS is in that it is a toy in all ways.   
      
   Anyway, on a real operating system (not a toy operating system like iOS),   
   you can run a command such as this one to   
    a. Pull usage stats from the device.   
    b. Filter only package= and totalTimeInForeground lines.   
    c. Pair each package with its total foreground time.   
    d. Sort by usage time (highest first).   
    e. Show the top 10 most-used apps.   
      
    C:\> powershell   
    PS\> adb shell dumpsys usagestats | Select-String -Pattern "package=",   
   "lastTimeUsed" | ForEach-Object { $_.ToString().Trim() } | ForEach-Object   
   -Begin { $pkg = "" } -Process { if ($_ -like "package=*") { $pkg = ($_ -split   
   "=")[1] } elseif ($_ -like "   
   lastTimeUsed*") { $time = ($_ -split "=")[1]; [PSCustomObject]@{ Package =   
   $pkg; LastUsed = [datetime]::ParseExact($time, "yyyy-MM-dd HH:mm:ss", $null) }   
   } } | Sort-Object LastUsed -Descending | Select-Object -First 10   
      
   Here is a PowerShell one-liner version that will give us the most recently   
   used apps (sorted by lastTimeUsed) from adb shell dumpsys usagestats on an   
   unrooted Android device.   
      
   What it will do is   
    a. Pull usage stats from your phone.   
    b. Filter only package= and lastTimeUsed lines.   
    c. Pair each package with its last-used timestamp.   
    d. Sort by most recent first.   
    e. Show the top 10.   
      
    C:\> powershell   
    PS:\> adb shell dumpsys usagestats | Select-String -Pattern "package=",   
   "lastTimeUsed" | ForEach-Object { $_.ToString().Trim() } | ForEach-Object   
   -Begin { $pkg = "" } -Process { if ($_ -like "package=*") { $pkg = ($_ -split   
   "=")[1] } elseif ($_ -like "   
   lastTimeUsed*") { $time = ($_ -split "=")[1]; [PSCustomObject]@{ Package =   
   $pkg; LastUsed = [datetime]::ParseExact($time, "yyyy-MM-dd HH:mm:ss", $null) }   
   } } | Sort-Object LastUsed -Descending | Select-Object -First 10   
      
   Note: If we want least recently used instead, all we need to do is change   
   -Descending to -Ascending.   
      
   > Other than those that came on my Moto G Pure, I have installed less that   
   > a dozen apps on my phone.   
      
   Ah. That's good to know as it helps all of us to see what our friends on   
   this newsgroup have installed on their devices. With this information we   
   can make better decisions, which is why we're always asking questions.   
      
   > Some of the MFG Installed apps I have   
   > removed, as I never used them, or have no idea what they do.   
      
   Yes. I removed all the Samsung-supplied bloatware that I could remove.   
   Many people don't know you can remove YouTube, Chrome, etc. also.   
   You replace them with the FOSS more-functional replacement apps such as   
   Aurora & NewPipe & Bromite/Chromite & FairEmail & PulseSMS, etc.   
      
   > If I never use an app, it is uninstalled.   
      
   The good news is on unrooted Android, you can uninstall almost any app from   
   the user partition, which makes it great to get rid of Google spyware.   
    C:\> adb shell pm uninstall --user 0 com.android.vending   
   And, the beauty of Android, which iOS couldn't possibly match, is that you   
   can re-install any app any time you want simply by running a command.   
    C:\> adb shell cmd package install-existing com.android.vending   
      
      
   Android always saves the original installer; iOS never does.   
   Worse, it's impossible on iOS to get the original installer back,   
   unless it's in the current App Store (which it almost never will be).   
      
   You can find the original installer on Android by running this command.   
    C:\> adb shell pm list packages -f   
   That will show the APK path before the package name, so you can tell if   
   it's in /system (pre-installed) or /data (user-installed).   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca