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

Commit 0483b7ad authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Add DSU default userdata partition size" am: 59d40857 am: 026c077b...

Merge "Add DSU default userdata partition size" am: 59d40857 am: 026c077b am: 020b636a am: ec318a11 am: 221f4dda

Change-Id: I828edafb51eb0b0bef0bd252df7a9a57d302919c
parents 84dc812b 221f4dda
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -96,9 +96,6 @@ public class DynamicSystemClient {

    private static final String TAG = "DynSystemClient";

    private static final long DEFAULT_USERDATA_SIZE = (10L << 30);


    /** Listener for installation status updates. */
    public interface OnStatusChangedListener {
        /**
@@ -386,7 +383,7 @@ public class DynamicSystemClient {
    @SystemApi
    @TestApi
    public void start(@NonNull Uri systemUrl, @BytesLong long systemSize) {
        start(systemUrl, systemSize, DEFAULT_USERDATA_SIZE);
        start(systemUrl, systemSize, 0 /* Use the default userdata size */);
    }

    /**
+7 −0
Original line number Diff line number Diff line
@@ -82,6 +82,9 @@ public class DynamicSystemInstallationService extends Service
    static final String DEFAULT_DSU_SLOT = "dsu";
    static final String KEY_PUBKEY = "KEY_PUBKEY";

    // Default userdata partition size is 2GiB.
    private static final long DEFAULT_USERDATA_SIZE = 2L << 30;

    /*
     * Intent actions
     */
@@ -270,6 +273,10 @@ public class DynamicSystemInstallationService extends Service
        String dsuSlot = intent.getStringExtra(KEY_DSU_SLOT);
        String publicKey = intent.getStringExtra(KEY_PUBKEY);

        if (userdataSize == 0) {
            userdataSize = DEFAULT_USERDATA_SIZE;
        }

        if (TextUtils.isEmpty(dsuSlot)) {
            dsuSlot = DEFAULT_DSU_SLOT;
        }