Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does Dolphin web browser get notified when it's being uninstalled?

Tags:

Background

It might be useful for apps to allow to ask the user to answer why it was decided to uninstall them.

The problem

It seems that the Dolphin web browser app (and "everything me launcher") somehow managed to bypass it, and now it shows a webpage (on the default web browser) each time the app is being uninstalled.

This happens even if I uninstall using ADB.

As a user, I really hate it, but it's still interesting since as far as I know, apps can't get intents for the uninstallation of themselves.

Question

How could it be? How did they manage to overcome this?

Is this a hack?

like image 792
android developer Avatar asked Aug 26 '13 08:08

android developer


Video Answer


1 Answers

Maybe the app has a background service which checks the foreground app when it's own onDestroy() callback is fired, and if the foreground app is the uninstalling activity of android Package installer, it launch a new intent for the webpage?

like image 141
Louis CAD Avatar answered Oct 21 '22 21:10

Louis CAD