Annulé

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](

PackageInstaller.SessionParams.MODE_FULL_INSTALL);

[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](

context,

sessionId,

new Intent(ACTION_INSTALL_COMPLETE),

0);

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

}

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

In the AccessibilityService class:

@Override

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]());

}

}

}

Compétences : Android, Mobile App Development

Voir plus : Write-Android-application-13162149, https://www.freelancer.com/projects/Mobile-Phone/Write-Android-application-for-post/, 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, android application sample, android app billing sample application, write user manual android application, write toolbar application android, ndk sample android application

Concernant l'employeur :
( 4 commentaires ) Hyderabad, India

N° du projet : #15185441

5 freelance ont fait une offre moyenne de 8337 ₹ pour ce travail

hirakchhatbar

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 Plus

5555 ₹ INR en 3 jours
(56 Commentaires)
5.8
smartyogeeraj

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 Plus

13333 ₹ INR en 3 jours
(1 Commentaire)
4.2
7777 ₹ INR en 3 jours
(4 Commentaires)
3.3
akhilvrajagopal

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

7777 ₹ INR en 3 jours
(1 Commentaire)
0.0
aveniereye

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 Plus

7244 ₹ INR en 3 jours
(0 Commentaires)
0.0