Mobile Device Management - java

Is there a way to control an android device from an admin web interface using a php code? I have tried looking into other MDM platforms however they have a lot of requirements to be installed.

This is possible up to certain limit, like Run a certain app, delete files, create files , taking pictures, play video/audio .. anything that doesn't need users extended permission.
You need to create an app that has ability to perform what ever the task you need.
You can send an action through (SMS/notification) etc to the device.
Your app will take a action and do the necessary changes of the device.

Related

how to disable network usage for other application in android programmatically?

i have bought new android 10 just some days ago . i was using android nought for a long time . i was looking in the setting and i found that i can restrict particular application for using mobile data .
i tried and turned off mobile data for many application and i found that , restricted apps were not able to access interent and my battery life has become much more longer .
i am android developer and i had created an application like Alarm manager which notifies user on battery charging on specific percentage than had added something like battery saver , which basically does nothign except showing ad. so i decided that how can i add this mobile data restriction feature to my app .
i tried to google it but found nothing , i guess i need to make my application Admin , i don't have much idea about admin but i know that i would be able to make as many changes as i want in my application .
is any body has idea what can i do in this situation . i have not seen any simliar app on play store as well . but it could be possible that i would have missed those apps .
I don't think you can toggle connectivity for other apps from your own app, doesn't seem like the system would allow that. You COULD look into a VPN app that can inspect network connectivity, and block requests from specific apps. But I'm not sure how much battery that would save you.

Is there a way to issue the * commands to the mobile provider to query things like balance, minutes remaining etc from within android app?

The cellphone network provider in my area has a few functions you can do by dialing what I am calling the "star commands", that is you type and asterix(*) followed by the code of your command and press send and you are able to query account balances and a whole slew of other functions that the cell network has made available. I think this is common place among all cell networks.
I want to be able to make these commands and read the responses, issue other commands based on those responses and so on, all from within my android app.
Does anyone has experience doing this?
Those commands are known as USSD commands. You can use TelephonyManager.sendUssdRequest to send a USSD command, providing a callback to receive the result form the mobile network.
Bear in mind Android only introduced support for invoking them programmatically in API 26 (Android 8.0). If you need that functionality on any earlier Android, you'll need to do something hacky, writing some code that automates pressing buttons of the system UI

Is there a way to additional download and integrate activities and .xml?

I want to make an app where the the user can choose what parts of the app he wants to use. On the start the app, it should only contain the part of the code (to be very small) where the user can choose additional parts and install it. Then additional code should be downloaded from a sever.
You can try Google's App Bundler. Google provides this on android apps. You can create many of those bundlers, and delivery only those your users need.
https://developer.android.com/guide/app-bundle/

Getting user behavior on the Android Phone (App History, Browse History etc)

Is it possible to get the user behavior on the phone (for example Alpesh has an Android phone and he uses multiple apps, browser YouTube etc). Whatever he is doing on the phone I want to get all those things from behind (which apps he has installed, which app he opens and what he search on the phone, All these data I want to get programmatically so what all can be get in android).
For now I am aware that installed apps list can be get easily but I want to get usage history and what he do all on mobile.
This is not a code solution, but an answer to your question, so you can get start some where.
In my opinion your question title are asking about two things.
(part 1) Getting User Behavior on the Android Phone (part 2)(App History, Browse
History etc)
1- First part Getting User Behavior on the Android Phone:
There is a concept called context awareness. Short described; it is about gathering different information from the phone, like light sensor, motion sensor, sound, location or even user behavior etc. and depending on your app requirement and the gathered information:
You could send these information over cloud data store for statically usage
You could make your phone doing (behavior) different things depending on location, motion or what ever.
etc.
For context awareness it is an open area for pervasive computing research. And it is not just few lines of code to write, it is typically a complete solution depending on requirement. Example I have built a context awareness application to gather noise collected by phones from different locations for research purpose inspired from this framework, but I am pretty sure you can find other frameworks or even build your own, as I did in my case.
The mentioned framework has some examples.
2- The second part is about App History, Browse History etc.:
This is possible, but you still need to build a peace of software (App) to collect all these information (logs) from the phone. Hereafter you can make phone act on different conditions and/or again send it over a RESTful API over cloud service data store, there is no limit for it.
The problem is, there is no thing out of the box for your requirement. Even if you find frameworks you still need to research it and further work on it.
You can find different examples for your requirement, like to collect browser history, you can find SO question here:
Get browser history and search result in android
Or get list of installed application:
How to get a list of installed android applications and pick one to run
My point here is you need to solve small goals at a time and put your knowledge together at the end.
Both 1 and 2 can also be related to each other, depending on your achievement.
Conclusion
Make a goal to your project.
Define the main requirements and tasks of your project.
Research your options (Technology, Cost, Target Audience, What data I can or I should not collect, what is possible to collect, what is the limits, Privacy issues etc.).
Split your project in small assets and try to solve small problems/goals.
Finally you would be able to put the puzzles together and build your final application
but i want to get usage history and what he do all on mobile
This is not possible and shouldn't ever be possible. Each app is sandboxed by Android so apps cannot inspect what other apps are doing. Think about it, you wouldn't want apps to be able to intercept private information such as banking details.
Every app is isolated from the other ones. Unless you develop a system signed app, you will not be able to gather all that data.
What you could do is to develop your own Android Rom where you then develop your data collection the exact way you want. Then you need to distribute your rom, which is another story...

How to ad iphone event from windows app? Is this possible at all?

I have a local windows app written in java, kind of crm.
Employees register events, like customer future calls, visits, meetings, etc.
I would like to pass these events from windows app to their iphones, so they see the reminder. The information should be registered in windows app, not on the iphone.
Is it possible somehow? I would like to avoid writing and app on iphone.
Is this possible to access address book in similar way? Let's say that Mr A is account manager for 30 customers. I would like to sync their contacts data stored in windows app with his iphone.
Is this possible in the way that it is windows app which synchronizes the data, not the app on iphone?
Thanks in advance
Brgs
Norbert
If I understand correctly, you are wanting to interact with an iPhone from your Windows PC, without having to create an app for the iPhone? If this is the case, I don;t know that this is possible.
To send an alert to an iPhone, there is the ability to send a Push Notification from an external source (such as your Windows PC/app) onto an iPhone. This is what happens in your mail apps on your iPhone - when you get an email on your email server, it sends a Push Notification to your iPhone telling it that there is a new email to read. However, to support Push Notifications, you need to have an app on the iPhone that knows what to do with it. In other words, you will still need an app on the iPhone so that when it receives a Push Notification from your Windows app, it knows that it should display a message to the iPhone user.
As far as I know, there isn't any way to retrieve information from an iPhone from an external source without having an app on the phone. This would be a pretty bad security concern if it were possible.
Accessing or syncing contacts will also need an app on the iPhone that can interact with the contacts and send them back-forth to your windows app.
You may be able to interact with contacts on an iPhone if you have it plugged in via USB. The USB provides a direct connection to the phone, so if you wrote the write Windows socket code then you should be able to talk to the iPhone over the USB and perform some tasks on there. However, I'm not sure whether you can interact with Contacts and other phone information - it is probable that you could only interact with files stored on the phone such as music and videos?
Don't be scared to write an app to do what you want - especially for alerting the user, it is a pretty simple app to write, as it doesn't need to do much processing, doesn't need to have any user interface at all, and all the Push Notification support is already built in to standard iOS libraries.
what you could do if your windows app allows you to is to add those events to outlook calendar and then use the google sync to push those events to a google calendar which is then added in the user iphone. the reminder would then be a iphone calendar reminder. no security leak but little control on the iphone side about reminders.

Categories

Resources