3 ms·
APKTool is so great. Earlier versions Android were way more loose with everything, there were tons of undocumented APIs, permissions weren't granular, didn't ma
by martythemaniak 5y ago
APKTool is so great. Earlier versions Android were way more loose with everything, there were tons of undocumented APIs, permissions weren't granular, didn't map to things that well, etc.
2012-2013 I wrote a parental control app for Android that "locked" down the device so you could give it to your kid and it would only run what you wanted it to run for however long you wanted, like "30 mins of games per day". To do this properly, you needed a task manager, ability to kill other apps, guard against being uninstalled, etc. This was not possible with the permissions that were available by being an app on Google Play, it was possible only if your APK was signed by Google or the carrier with system-level permissions.
Nevertheless, I cobbled together a collection of tricks that managed to do it well enough - my app was a home launcher and when it detected a game running past allowed time, it would "kill" the app by pressing the home button, thus brining itself to the front. It had to take over the status bar to prevent you from swiping down to access settings, etc.
Anyway, I relied on APKTool a lot to disassemble other apps which were doing things that I needed (like drawing over the status bar), because they had already figured out how to use these undocumented APIs. I could not have done it without APKTool.
- deadclementine 5y agoDo you still have the code for this app? I was thinking of making something similar.
- pfyra 5y agoHave a look at "Family Link". It is not perfect, but it can limit usage of apps and the whole device to specific times (and more).
- deadclementine 5y agoI have used family link, it's kind of all or nothing deal. I want the ability to define block schedules. I want to be able to put some sort of delay when opening time wasting website so that it is not as addictive.
- martythemaniak 5y agoIt's been offline since like 2014, so probably wouldn't even work on newer Android versions. But we did have competition, so it seems like there should be equivalent functionality today.