Android PRL update - android

Would it be possible to do this programatically? So far we are opening the dialer and dialing *228... but would prefer another method. Any ideas, or possible other directions?

From my research, the Android has classes to handle the upload of PRL using OTAUtils. However each phone manufacturer has different process to update the phone dependent on chipset.
You would have to service unlock phone and write the new PRL values.
There simply does not appear to be any general API to write PRL to phone.

Related

How to Configuration Device as a Single Purpose Application Device?

I have seen this in action in places like hostels/hotels:
How can you lock/restrict/configure an android device to only use an application, while having the following or most of them?
After every boot open and lock to a specific application.
Restrict specific hardware buttons, if any. (power button or all)
Lock device to use specific applications.
Is there anything "out of the box" provided by the SDK when building your applications? And if there is something like that what is the API support for that and how low does it get, API level wise?
Do you configure your device in a specific way? Is ther a documented pipeline for that?
I would prefer something official from google rather than 3rd party applications that do that.
firet it will suport in or after android 5.0
second lock app on your device for that creaate activity for luncer startLockTask(){}
First of all Single Purpose application is supported after Android 5.0.
To lock the app on your device call a method startLockTask() in your onCreate of launcher activity.
For detailed decription see this doc.

How to provide the functionalities/features of an android app without the user having to explicitly install it

I'm trying to provide certain functionalities for an android phone that could help people in times of emergencies. (These functionalities are dependent on the phone's sensors.) The only/main approach to achieve this seems to be that of developing an app (and I am currently in the process of developing one). But, what concerns me is that the number of people using an application specifically for emergency purposes is quite low. Even if they do install, when "Insufficient Memory" pops up, an emergency app is very likely to be booted out of the phone.
Are there other ways of providing the functionalities/features of an emergency app, without the users having to explicitly install the app? Or should I just stick with the app?
Certain OEMs provide emergency features as part of their settings. Like for example, in a Samsung phone you can toggle to enable the "Send SOS messages", and then, in case of an emergency, press the power button thrice. In what way could I achieve the same?
Any help would be much appreciated...
Thanks in advance!
Without a proper application installed in user device, you cannot provide the functionality you want.
OEM's also have their applications build and packaged with the system image. If you want it, you need to be in contact with them to include your application in new devices.

How can I programmatically press phone buttons (0-9, #, * ) when a particular number calls me?

I want to write a phone app, which would automatically press some phone buttons (0-9, #, *) and then end the call when a particular number calls me. Ideally this works for windows phone 8.1. Is it possible? I can't find any API which I could use.
However, it would also work for me if a solution exists for Android. But I couldn't find a way to do it there either.
Any pointers to API documentation? Or apps which already do this?
There is no such android API. There's an API for generating it over the speaker, but none for sending it to the other side of the call. THis is a security issue- Android does not allow anyone to access call audio, in either direction.
This might work for windows phone: Windows Phone Phonecall with dtmf
BTW, a good google term to use in your search is DTMF. Its the industry name for the beep sound keys make.
Only thing I know of allowing you to do this would be to create your own Dialer as part of the platform (replacing or modifying InCallUI), I doubt that's what you're trying to do though?
If you are making a platform app, look into this code:
http://androidxref.com/5.1.1_r6/xref/packages/services/Telecomm/src/com/android/server/telecom/Call.java#843

Android: Prevent regular users from accessing safe-mode?

I'm planning to deploy an app on my android smartphone which is supposed to be used by multiple other persons. Now of course I do not want them to do things with the device they are not supposed to do so I informed myself about several different ways to make it as safe as possible (Lock-down apps, Kiosk mode, Mobile-device-management, Code-tweaks and so on).
I found some solutions that look really promising but they all share the same problem that a user could just restart the device and boot it in safe-mode where those helpful apps won't be started. However, there is one exception: I've installed a MDM app called maas360 which somehow manages to apply the restrictions that I defined even in safe-mode, for example by blocking access to the menu settings. How is that even possible? The thing is just that this is not a free app and it offers a huge variety of functions - overall it seems to be a bit excessive for my goals.
So my general question would be: is it somehow possible to restrict access to the safe-mode somehow? Maybe like a password? From what I understand it is not even possible to set a system password for Android devices that you'd have to enter once it boots (except if you set up a password for unlocking the screen first which would then be the same one... very redundant).
Disabling physical switch of volume down (in case of samsung devices) will stop access to safe mode on device. I dont find any other way to do so.

How to boot android phone programmatically?

I want to reboot targeted phone by SMS. Is it possible? How can we implement this?
According to this Android Developers thread on Google Groups, third party applications don't have permission to reboot the device.
Your problem has two core parts. Can you reboot the phone programatically? Can you write a program to intercept incoming SMS? If you answered YES to both of your question, it is possible to do this.
I am not a Android developer but i think this should be quite possible.
take a look # Android SMS intercept without notification icon or WAP-PUSH messages and http://mobiforge.com/developing/story/sms-messaging-android
I think BroadcastReceiver is the one you are looking for.
I have no idea whether you can programatically reset the android phone using java... Someone else might answer you about that
EDIT: I guess according to the link Bill has posted, 3rd party applications are not permitted to do a reset
If you mean by having an app waiting for a specific text, then only on a rooted phone.
Ranhiru's link tells you how to get the text without it giving a text notification. If your phone isn't rooted, then programs don't have access to functions like that. If it's rooted, I can't say exactly how to do it, I haven't tried yet, but have a look for the source of apps like quickboot, a lot of them have it all publically available on code.google.com
For the record, it IS possible to intercept SMS messages on a stock Android phone - I've written a little app which pops up a Toast when I get a text rather than having to go in to the messages app.
It's NOT possible to perform a normal shutdown/reboot/??? without rooting the phone or being Google (at least, convinving the phone you're Google) but that would be a violation of the developer agreement.
In fact, you will find huge barriers in your way if you try to do anything to the OS or any other app - Which is usually a good thing

Categories

Resources