Frameworks/base: Early init native bridge
Add the app directory to the arguments for starting a process. Add a check for NeedsNativeBridge and a call to PreInitializeBridge in the native fork code. Change-Id: I0b93da93251c6b4638de786bf98cf99df07c3fc2
This commit is contained in:
@@ -2796,7 +2796,8 @@ public final class ActivityManagerService extends ActivityManagerNative
|
||||
// the PID of the new process, or else throw a RuntimeException.
|
||||
Process.ProcessStartResult startResult = Process.start("android.app.ActivityThread",
|
||||
app.processName, uid, uid, gids, debugFlags, mountExternal,
|
||||
app.info.targetSdkVersion, app.info.seinfo, requiredAbi, instructionSet, null);
|
||||
app.info.targetSdkVersion, app.info.seinfo, requiredAbi, instructionSet,
|
||||
app.info.dataDir, null);
|
||||
|
||||
BatteryStatsImpl bs = mBatteryStatsService.getActiveStatistics();
|
||||
synchronized (bs) {
|
||||
|
||||
Reference in New Issue
Block a user