Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 38e261c8 authored by Remi NGUYEN VAN's avatar Remi NGUYEN VAN
Browse files

Do not mark in-process NetworkStack as persistent

The in-process NetworkStack runs in the system process, so it does not
need to be marked persistent.
Doing so causes a spurious com.android.networkstack.inprocess process to
be running, wasting memory.

Bug: 131046856
Test: Flashed sailfish, networking works, no extra process started
Test: Flashed walleye, networking still works
Test: aapt dump xmltree NetworkStack.apk AndroidManifest.xml unchanged
(clean cherry-pick from qt-dev)
Change-Id: I6816bcc8303a8b7a1213c0c61ee8729cc0b60f13
Merged-In: I0eb896c825ffe2581950c0bdd2b31ebd7eae0982
parent fc7fe935
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -37,7 +37,9 @@
    <uses-permission android:name="android.permission.READ_DEVICE_CONFIG" />
    <!-- Signature permission defined in NetworkStackStub -->
    <uses-permission android:name="android.permission.MAINLINE_NETWORK_STACK" />
    <application android:extractNativeLibs="false">
    <application
        android:extractNativeLibs="false"
        android:persistent="true">
        <service android:name="com.android.server.NetworkStackService">
            <intent-filter>
                <action android:name="android.net.INetworkStackConnector"/>