Write an Android application that can be installed as device owner

Looking for a developer to create an Android application based on [url removed, login to view] that will get list of Apps from a REST API, Silently Install the apps from the API into the Android device without user intervention. API will have app names or id of apps in the google play store.

Tasks TODO:

1) Periodically like every 5 min, GET list of app names by making a REST API call to remote server.

2) Silently install those apps from google play store as our app is configured to act as device owner.

3) Uninstall or lock(as system apps can't be uninstalled) the existing apps that are not listed in the API. (AccessibilityService class allows you to find out which Activity is at the top.)

Take sample code from [url removed, login to view]

Here is some help on "Silent install and uninstall of apps by Device Owner" [url removed, login to view]

[url removed, login to view]

public static boolean installPackage(Context context, InputStream in, String packageName)

throws IOException {

PackageInstaller packageInstaller = [url removed, login to view]().getPackageInstaller();

[url removed, login to view] params = new [url removed, login to view](


[url removed, login to view](packageName);

// set params

int sessionId = [url removed, login to view](params);

[url removed, login to view] session = [url removed, login to view](sessionId);

OutputStream out = [url removed, login to view]("COSU", 0, -1);

byte[] buffer = new byte[65536];

int c;

while ((c = [url removed, login to view](buffer)) != -1) {

[url removed, login to view](buffer, 0, c);


[url removed, login to view](out);

[url removed, login to view]();

[url removed, login to view]();

[url removed, login to view](createIntentSender(context, sessionId));

return true;


private static IntentSender createIntentSender(Context context, int sessionId) {

PendingIntent pendingIntent = [url removed, login to view](





return [url removed, login to view]();


AccessibilityService that allows you to find out which Activity is at the top.

In the AccessibilityService class:


public void onAccessibilityEvent(AccessibilityEvent event) {

if ([url removed, login to view]() == AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED) {

ComponentName componentName = new ComponentName(

[url removed, login to view]().toString(),

[url removed, login to view]().toString()


ActivityInfo activityInfo = tryGetActivity(componentName);

boolean isActivity = activityInfo != null;

if (isActivity) {

Log.i("CurrentActivity", [url removed, login to view]());




Skills: Android, Mobile App Development

See more: Write-Android-application-13162149,, Write Android application similar temple run, php/Write-Android-application-11839450, freelancer write android application, write-android-application-project, write-android-application-post-product/, write-android-application-for-sms-project, write-android-application-for-product/, Write-Android-application, write android application , write android application project, write android application 2, write android application --2, Write a android application , android application write database, write nfc android application, write location android application, write iphone android application, write iphone application gps tracking device

About the Employer:
( 4 reviews ) Hyderabad, India

Project ID: #15185441

5 freelancers are bidding on average ₹8337 for this job


Hi, I went through the stackoverflow links you shared and I can do it efficiently. Relevant Skills and Experience web services and apis integrations, use package manager class to install and uninstall apks without use More

₹5555 INR in 3 days
(56 Reviews)

Hi, I'm interested in applying for your job Thank You for posting your Requirement and 3.1 years of experience in Android Application Development We have expertise in android/ios Development and we are ready More

₹13333 INR in 3 days
(1 Review)
₹7777 INR in 3 days
(4 Reviews)

app development Relevant Skills and Experience app development Proposed Milestones ₹7777 INR - fulll

₹7777 INR in 3 days
(1 Review)

Greetings..!! I am interested in this project as it is exactly within the scope of my team. Over the last few years, we’ve worked with a variety of clients in Mobile and Website Development. I have gone through More

₹7244 INR in 3 days
(0 Reviews)