steleman / address-sanitizer

Automatically exported from code.google.com/p/address-sanitizer
0 stars 0 forks source link

Avoid remounting system partition on Android #384

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Remount suppresses future OTAs and is generally dangerous.

The following approach would require changing Android code but is much safer.

The idea is to add a persistent system property that specifies a zygote wrapper 
at OS startup (much like wrap.* properties used for Valgrind, but those are 
used when fork()-ing the Zygote, and the new one will be used when starting the 
Zygote, just once).

Then we could move the zygote wrapper and the runtime library to /data (or some 
other writable place). We would still need a rooted device, of course.

Original issue reported on code.google.com by euge...@google.com on 31 Mar 2015 at 12:59