1. Are you ready for the Galaxy S20? Here is everything we know so far!

App to log a user out of another app

Discussion in 'Android Lounge' started by bostonpartykid, Jan 9, 2021.

  1. bostonpartykid

    Thread Starter

    Is it possible (with user permission of course) to have an app completely delete all the settings of another app? For instance if I wanted to log someone out of an another app and erase their stored login information so when they run that app again they're starting over like they just installed it?

    1. Download the Forums for Android™ app!


  2. ocnbrze

    ocnbrze DON'T PANIC!!!!!!!!!

    no........why would you want to do that? that is almost like hacking some one. and would probably violate googles guidelines for apps.
    Dannydet likes this.
  3. bostonpartykid

    Thread Starter

    It would be with user consent of course. It's for a specific use case where the user would want to be able to login to all their accounts on a system and then have this app automatically log them out of every other app and delete all their settings when they were done using it so the next user would come to the system as if it was brand new. I have a valid reason, just need to know if it's possible.
  4. ocnbrze

    ocnbrze DON'T PANIC!!!!!!!!!

    no idea never heard of something like that. i do not see how it would be possible because that would need to be able to access and use the username and password for the account on another app. something like that i could see people using that bit of code for malicious purpose even though your intent is not......so i doubt it.
  5. bostonpartykid

    Thread Starter

    But that info is stored somewhere on the device. With root access I can't imagine it wouldn't be possible to delete the settings files
  6. Hadron

    Hadron Smoke me a kipper...
    VIP Member

    With root access it's absolutely possible to delete another app's data. Heck, it's been a few years since I used it but I'm pretty sure that you could just use Titanium Backup to do that. Or you could just go into Settings > Apps, select the app and "Clear Data".

    Selectively removing some data would require knowing how the other app's database is structured, but just erasing an app's data in its entirety is doable.
    ocnbrze likes this.
  7. Unforgiven

    Unforgiven ...eschew obfuscation...

    I think another way to ask the OP's question is how to wipe data and cache for an app via another app. It sounds to me like the use case is sharing or temporary use of a device and cleaning up after the fact. I'm not sure if it is something Tasker can do or not. I think sandboxing in Android / *nix may prevent this.
    ocnbrze and kate like this.
  8. kate

    kate Dreaming of Bugdroid.

    Kind of feels like you want to turn an Android device into a kiosk?

    If you google "Android kiosk" there are options, but you'd have to research if any do exactly what you want.
    ocnbrze and Unforgiven like this.
  9. bostonpartykid

    Thread Starter

    Correct. Think of a shared device where you want to login to your accounts but then when you leave the device you want to get auto-logged out of everything for the next user to use. But there would be certain apps that would retain settings and possibly stay logged in, so I wound't want to wipe out everything, just select apps. I would know the apps ahead of time if it was just a matter of finding their settings locations and deleting the files, or is there some kind of system database I'd have to tap into, just wondering if it's even possible? Thanks
  10. bostonpartykid

    Thread Starter

    Yes it would be like a kiosk, which I know is possible, just wanted to know if this ability is possible. Thanks

Share This Page