I'm making an app for my school. This app needs to disable the phone for a certain amount of time (one hour). This means that I have to disable all hardware keys.
It only has to be able to run on one phone, which is running on android Jelly Bean. After some research, I found out that it I'm unable to accomplish this without making a Home Screen app. But I was wondering if it is able to accomplish this with root? I have rooted my device. If yes, how am I able to do this?
Thanks in advance.
Well you need to study about Kiosk Mode. Kiosk mode applications are applications that lock the device and do not allow the user to run any other application other than the kiosk application.
Related
I'd like to know if there's a way to disable going into safe mode on Android.
As an example, on a Samsung Galaxy S21, Google's Family Link app (used for parental supervision) does exactly this - when the app is running a user can no longer hold down on the power button in the UI to reboot in safe mode.
I have experience writing in Xamarin, and would appreciate any guidance - haven't been able to find anything on this yet!
Thanks!
I am working on a project which requires a device lock Button that enables users from the app to lock the entire device. Is there a way, package or any Platform plugin that I can use to implement that?
Thanks guys.
It's not possible on non jailbroken device, apple doesn't give any API for that.
I think that's because user have access to hardware button anytime.
I am developing one application in which there is Background Service, I want my application always run in background.
In Samsung device android 7.0 user can put the application in sleep mode, but I don't want user to do it because there is Background service is running.
Also it is good if I my app is listed in Unmonitered app list instead of direct listed in power saver mode.
When I install whatsapp it does that actually, it listed in Inmonitered app list.
Thanks.
Here I am suggesting for the only Samsung devices,
You can do it by using Knox SDK which is used to create the application with custom configuration for Samsung device,
Here also some link which helps you.
Response from Samsung moderator after question like same you
https://seap.samsung.com/forum-topic/applicationpolicyaddpackagetobatteryoptimizationwhitelist-does-not-work-normally
Maybe this all will help you.
I have a requirement to create an app that should run 24/7. I don't care about battery drain, becoz app will not be submitted to PlayStore and its only for the selected user.I also understand app will only last for one day, that is acceptable in my case.
The application functionality mainly dependent on network and Bluetooth functionality and the most of the code written in pre marshmallow and changing the whole implementation is not a right option for me now.
So is there any way to create the app without any restriction? Also, As observed some of the Device manufacturers put an extra layer of battery optimization to make this worse.
I tried to create a dummy foreground service with partial wakelock, but this not seems to be working. and even whitelisting the app didn't solve the issue.
There is no proper documentation from Google about what are the functionalities will be affected from doze/standby. According to Google doc the background task will not be suspended, it only deferred until the next maintenance window. If that is the case, App should be able to print all the app that is missed during doze period. But as observed app will print the log only during the maintenance window. The is will break the expected behavior.
Whitelisting is a good option but app will be still be affected by the doze mode. What is the reason to restrict the app behavior even when the user explicitly chose not to? It very frustrating when the app behaves differently in different device OS, Manufacturer etc.
Sorry for the story. I would like to understand is there any way to completely disable Doze and standby mode without changing the existing implementation? I have gone through the various document, but there is NO WAY to achieve this 100%. Please share your thoughts
I have a requirement to create an app that should run 24/7
Write a program for a desktop operating system. Or, perhaps find a mobile device that runs Linux and write a program for it. Or, create a custom version of Android that disables Doze/app standby. Or, see if there is some Android hardware that meets your requirements and does not apply Doze/app standby (e.g., devices that naturally are always plugged in, such as Android TV or a Chromebox).
So is there any way to create the app without any restriction?
No, sorry.
I would like to understand is there any way to completely disable Doze and standby mode without changing the existing implementation?
No, sorry.
I had implemented one launcher app for tab. This app is working good in normal mode but issue in safe mode. I am not able to set my app as launcher app in safe mode. Can anyone tell me how i can run my app as launcher app in safe mode.
Possible solutions is
Run my app as Launcher app.
Disable safe mode feature of android.
If device will go in safe mode, then ask password first to open this device.
If anyone knows better solution from above,please mention in comment. but i need this launcher app to be run in safe mode.
Thanks in advance.
Basically, you can't. The safe mode is designed to load built-in apps only
Only system apps run in safe mode. All the apps installed by the user doest not work..and there is a reason for that.
I think your ultimate goal is to create a kiosk mode. Where you want to restrict the user. You can two things:
If you are providing the mobile device you can use COSU from android 6.0 and above where there are APIs to disable safe mode. To access these apis your app needs to be the device owner.
You can access APIs to read UI contents of other apps and enforce clicks on them. To read other apps and enforce click you need to get special permission(Accessibility). Using this you can auto install apps, disable dialogs..