self-compile-Android icon indicating copy to clipboard operation
self-compile-Android copied to clipboard

Question: what exactly does it do, and how?

Open AndroidDeveloperLB opened this issue 10 years ago • 5 comments
trafficstars

I don't understand some things:

  1. Wouldn't the new APK still need user-confirmation to be installed? If not, how, and wouldn't it need to stay with the same permissions?
  2. What exactly can you change in the new APK?
  3. you say it worked on specific cases. What about other cases? Other devices and Android versions?

AndroidDeveloperLB avatar Nov 08 '15 17:11 AndroidDeveloperLB

ToDo. sorry, we need to clearly link to the arxive paper.. Google: brussee pouwelse arxive.

synctext avatar Nov 08 '15 21:11 synctext

I don't understand.

AndroidDeveloperLB avatar Nov 08 '15 21:11 AndroidDeveloperLB

@AndroidDeveloperLB: the paper http://arxiv.org/pdf/1511.00444v2.pdf

du5t avatar Nov 09 '15 05:11 du5t

@AndroidDeveloperLB Sorry for the noise. Full answers below.

  1. Wouldn't the new APK still need user-confirmation to be installed? If not, how, and wouldn't it need to stay with the same permissions?

Yes, standard install procedure.

  1. What exactly can you change in the new APK?

Very simple proof-of-principle, see screenshots below. The app name changes from "browser2" into "calculator". However, this mutation happens at the source code level and in compiled into an .apk

  1. you say it worked on specific cases. What about other cases? Other devices and Android versions?

Still very much lab work. No other known cases. Hopefully people are interested in this and want to test it on their devices.

synctext avatar Nov 09 '15 14:11 synctext

Screenshots: screenshot_2015-09-18-16-47-38

Changing icon and app name: screenshot_2015-09-18-16-48-30

First self compile step, process resources screenshot_2015-09-18-16-48-49

Compile source: screenshot_2015-09-18-16-49-29

Integrate dependencies: screenshot_2015-09-18-16-49-34

(this takes a while) screenshot_2015-09-18-16-50-09

Package app: screenshot_2015-09-18-16-55-49

Prepare installation step: screenshot_2015-09-18-17-12-52

The magic happens. Without any user intervention it asks for a freshly compiled clone of itself to be installed. screenshot_2015-09-18-17-13-11

User selected "install" screenshot_2015-09-18-17-13-20

Install completed screenshot_2015-09-18-17-17-40

Finally open the self-compiled clone of itself. screenshot_2015-09-18-17-17-55

synctext avatar Nov 09 '15 14:11 synctext