How can I delete an app in android programmatically without being the device rooted?
It's possible?
No, it is not possible. You cannot uninstall an app directly any more than you can install an app directly.
Android 4.0 (API Level 14) added ACTION_PACKAGE_UNINSTALL, so you can request that the OS uninstall some package, but this will involve user confirmation.
But why you don' t want to root your device ? It has a lot of advantages, and process of rooting is really simple. On web you can find some applications which will root your device and all you have to do is a simple click
Related
I have developed a mobile application in PhoneGap. We had a security test on the application and it has flagged that application can be installed on a rooted device and we don't want to allow this. Is there a way to restrict an application to be installed on a jailbreak phone using phonegap
Thanks
The short answer
No, you can't at install time.
The long answer
You can restrict the installation on devices by two ways:
Using the uses-feature meta tag in the manifest. Check out the doc here.
Via the android console, where you can manage restrictions on any model by excluding or including some of them as target for the install of your application.
Since the root is not a feature implemented as part of the device, it is a software restriction, you might accept users to install the application and check it at runtime if the device is rooted. Here is a link on how you can try to do it, but there is not an official way or consistent for all devices as far as I know.
If not using root in android 4.4 or after, how to record the screen and synchronize it to computers? Can anyone provide an idea or an open-source software? The old method that using root to gain access to system data is no longer working after android 4.4.. Thanks a lot.
If not using root in android 4.4 or after, how to record the screen and synchronize it to computers?
Fortunately, this is not possible, for blindingly obvious privacy and security reasons. SDK apps cannot read the screen, except perhaps on rooted devices.
We have made some changes in the "skia" library of Android OS (Froyo) and it works well in emulator.
It also worked when we pushed (replaced) the corresponding .so files in to a device.
Now we want to provide this service to the end users. Is it possible to make an application(apk) that people install to perform this task?
If not possible, then what is the best way we can provide the service to others?
If you have created a useful functionality that will be useful for a range of users you can submit your patch to Google code review (you can read how to do this here)
You cannot, unfortunately, unless
you are the device manufacturer (or Google)
you are developing a replacement system image, or target only rooted devices
I believe this would only be possible if the app has root access or you distributed a ROM to your users yourselves.
I have been searching the internet wildly for an answer to this question.
We are creating custom android app for internal use only and we would be installing that on custom andoid devices. We would like to have full control of the device through the app. The end user of this device is not meant to use anything other than the app on this device. I have sealed out all the possibilities of getting out of the app except this one possibility where the program tries to update itself and asks for user permission.
Let me repeat again, This app is not meant to be put on market, only for use with custom devices designed for specific purpose. So security is not an issue here.
The device is rooted and we have done a lot of alterations with it. But I cant quite figure out how to make this update work.
If you have any ideas/solution please share it with me. I can do anything with my device, (even dig a hole in it if required :P) as they would be custom made, and would be packaged with us before going out. Just have to make it work.
If you are talking about internally installing the APK with like an update application specifically designed to update your other application which is not managed by Google Play you may want to look into this. So between xjaphx's answer and the link I just shared you will be able to install and maintain updates.
This is as simple as how it works.
Pre-condition:
Get devices rooted
Prepare Android development environment (Android SDK, platforms-tools)
A cable to connect PC and devices.
Steps:
Open command-line if Windows or shell if Linux
type: "adb push YourApp.apk /system/app"
That's done for installation of the app. Reboot and check whether your app works or not.
How can I restrict the android application installed in device using the MDM? Guide me to solve the problem? Thanks in advance.
While I'm not sure what the Mass360 app does under the hood, there is a Device Admin API that became available in 2.2.
http://developer.android.com/guide/topics/admin/device-admin.html
You will either need to write your application with Root permissions enabled, which will allow you to control the device a little more, or you will have to do some trickery to register yourself with the device when applications are launched. I am not even sure if the latter is possible, so I would advise you look down the Root path. I am afraid I cannot post any code samples as I have not done this before.