Dynamic system updates что это
DSU Sideloader
Версия: 2.03
Последнее обновление программы в шапке: 17.06.2023



Для функционирования программы необходимы права root пользователя.
Краткое описание:
Установка сторонних GSI через DSU
Описание:
DSU (Dynamic System Updates) — это функция, представленная в Android 10, которая позволяет разработчикам загружать GSI от Google, не затрагивая текущий системный раздел. Это делается путем создания новых разделов для хранения GSI и отдельных пользовательских данных для загрузки на них при желании.
DSU Sideloader позволят запускать любые стороние GSI
Требуется Android: 10
Требуется устройство с динамическими разделами
Русский интерфейс: Нет
Разработчик: VegaBobo
Источник: GitHub
Имя пакета: vegabobo.dsusideloader
Скачать:
Версия: 2.03 app-release.apk ( 4.89 МБ )
Сообщение отредактировал Lux Darkus — 18.06.23, 14:27
Тип: Модификация
Версия: 2.03
Краткое описание: RUS by Rekembus
Полный перевод на русский
Сообщение отредактировал Rekembus — 18.06.23, 21:36
Использование программы может привести к кирпичу?
Сообщение отредактировал stasyn218 — 19.06.23, 01:42
stasyn218, нет
Добавлено 19.06.2023, 23:20:
stasyn218, проблема в устройстве
Вопрос, теперь DSU работает через shizuku. Будет работать на google pixel 6 без разблокировки загрузчика
Сообщение отредактировал WinHakCheck — 19.06.23, 23:42
Я так понимаю, это продолжение Дуалбутпатчера?
Сообщение отредактировал kurbanbah — 27.06.23, 10:12
Electrokeen, если образ подвержен(подпись совпадает с той, что разрешена в загрузчике), то загрузчик может быть не открыт. Так же, как можно dsu запускать не имея рут прав. С закрытым загрузчиком просто телефон минут 5 грузиться, потом перезапускается в обычную ОС. В логах ругается на то, что проверка образа не прошла и загрузчик не загрузил его
Добавлено 24.07.2023, 21:25:
Хотел ещё такую вещь спросить. Возможно ли каким-то то боком отключить сброс беометрических данных после загрузки в dsu? Потому что слетает биометрия, а это геморойно. На биометрию у меня завязаны шифрование архивов данных, и потеря её не очень приятное дело. Слышал, что можно отключить на некоторых телефонах, но начинают банковские приложения истерить на этот счёт. У самого устройство samsung s21 ultra(exynos). Рут есть и загрузчик открыт.
пробовал уже много образов (в основном от nippon-а) и никакой не грузится. после нажатия кнопки в уведомлении перезагружается. НО сразу после этого перезагружается еще раз и выдает надпись dm-verity corruption. что в этой ситуации делать? :blush:
tecno camon 19, бутлоадер разблокирован и рут есть
Сообщение отредактировал fleerin — 29.08.23, 21:26
fleerin, Тоже самое на Poco m3 pro, но доходит до бутанимации, потом в углу телефона imei, и — все
Сообщение отредактировал goulsan — 12.09.23, 19:10
fleerin, и
goulsan, смотри внимательно, чтоб образ совпадал с требованиями и чтобы там только system раздел был, а не super. И если дсу не грузит, значит в вендоре проблема, либо в самом образе. Дсу отрабатывает как надо
Dynamic System Updates
Dynamic System Updates (DSU) allows you to make an Android system image that users can download from the internet and try out without the risk of corrupting the current system image. This document describes how to support DSU.
Kernel requirements
In addition, DSU relies on the device-mapper-verity (dm-verity) kernel feature to verify the Android system image. So you must enable the following kernel configs:
- CONFIG_DM_VERITY=y
- CONFIG_DM_VERITY_FEC=y
Partition requirements
Starting in Android 11, DSU requires the /data partition to use the F2FS or ext4 file system. F2FS gives better performance and is recommended, but the difference should be insignificant.
Here are some examples of how long a dynamic system update takes with a Pixel device:
- Using F2FS:
- 109s, 8G user, 867M system, file system type: F2FS: encryption=aes-256-xts:aes-256-cts
- 104s, 8G user, 867M system, file system type: F2FS: encryption=ice
- 135s, 8G user, 867M system, file system type: ext4: encryption=aes-256-xts:aes-256-cts
If it takes much longer on your platform, you may want to check if the mount flag contains any flag that makes “sync” write, or you can specify an “async” flag explicitly to get better performance.
The metadata partition (16 MB or larger) is required for storing data related to the installed images. It must be mounted during first stage mount.
The userdata partition must use F2FS or ext4 file system. When using F2FS, include all F2FS related patches available in the Android common kernel.
DSU was developed and tested with kernel/common 4.9. It's recommended to use kernel 4.9 and higher for this feature.
Vendor HAL behavior
Weaver HAL
The weaver HAL provides a fixed number of slots for storing user keys. The DSU consumes two extra key slots. If an OEM has a weaver HAL, it needs to have enough slots for a generic system image (GSI) and a host image.
Gatekeeper HAL
The Gatekeeper HAL needs to support large USER_ID values, because the GSI offsets UIDs to the HAL by +1000000.
Verify boot
If you want to support booting Developer GSI Images in LOCKED state without disabling verified boot, include Developer GSI keys by adding the following line to the file device/<device_name>/device.mk :
Rollback protection
When using DSU, the downloaded Android system image must be newer than the current system image on the device. This is done by comparing the security patch levels in the Android Verified Boot (AVB) AVB property descriptor of both system images: Prop: com.android.build.system.security_patch -> '2019-04-05' .
For devices not using AVB, put the security patch level of the current system image into the kernel cmdline or bootconfig with the bootloader: androidboot.system.security_patch=2019-04-05 .
Hardware requirements
When you launch a DSU instance, two temporary files are allocated:
-
A logical partition to store GSI.img (1
We recommend reserving at least 10 GB of free space before launching a DSU instance. DSU also supports allocation from an SD card. When an SD card is present, it has the highest priority for the allocation. SD card support is critical for lower-powered devices that might not have enough internal storage. When an SD card is present, make sure it's not adopted. DSU doesn't support adopted SD cards.
Available frontends
You can launch DSU using adb , an OEM app, or the one-click DSU loader (in Android 11 or higher).
Launch DSU using adb
To launch DSU using adb, enter these commands:
Launch DSU using an app
The main entry point to DSU is the android.os.image.DynamicSystemClient.java API:
You must bundle/preinstall this app on the device. Because DynamicSystemClient is a system API, you can't build the app with the regular SDK API and you can't publish it on Google Play. The purpose of this app is:
- Fetch an image list and the corresponding URL with a vendor-defined scheme.
- Match the images in the list against the device and show compatible images for the user to select.
Invoke DynamicSystemClient.start like this:
The URL points to a gzipped, non-sparse, system image file, which you can make with the following commands:
The filename should follow this format:
- o.aosp_taimen-userdebug.2018dev.raw.gz
- p.aosp_taimen-userdebug.2018dev.raw.gz
One-click DSU loader
Android 11 introduces the one-click DSU loader, which is a frontend in the developer settings.

Figure 1. Launching the DSU loader
When the developer clicks the DSU Loader button, it fetches a pre-configured DSU JSON descriptor from the web and displays all applicable images in the floating menu. Select an image to start the DSU installation, and the progress shows on the notification bar.

Figure 2. DSU image installation progress
By default, the DSU loader loads a JSON descriptor that contains the GSI images. The following sections demonstrate how to make OEM-signed DSU packages and load them from the DSU loader.
Feature flag
The DSU feature is under the settings_dynamic_android feature flag. Before using DSU, make sure the corresponding feature flag is enabled.

Figure 3. Enabling the feature flag
The feature flag UI might be unavailable on a device running a user build. In this case, use the adb command instead:
Vendor host system images on GCE (optional)
One of the possible storage locations for the system images is the Google Compute Engine (GCE) bucket. The release administrator uses the GCP storage console to add/delete/change the released system image.
The images must be public access, as shown here:

Figure 4. Public access in GCE
The procedure to make an item public is available in the Google Cloud documentation.
Multiple-partition DSU in ZIP file
Starting in Android 11, DSU can have more than one partition. For example, it can contain a product.img in addition to the system.img . When the device boots, the first stage init detects the installed DSU partitions and replaces the on-device partition temporarily, when the installed DSU is enabled. The DSU package may contain a partition that doesn't have a corresponding partition on the device.

Figure 5. DSU process with multiple partitions
OEM-signed DSU
To make sure all images running on the device are authorized by the device manufacturer, all images within a DSU package must be signed. For example, assume there’s a DSU package that contains two partition images like below:
Both system.img and product.img must be signed by the OEM key before they are put into the ZIP file. The common practice is to use an asymmetric algorithm, for example, RSA, where the secret key is used to sign the package and the public key is used to verify it. The first stage ramdisk must include the paring public key, for example, /avb/*.avbpubkey . If the device already adopted AVB, the existing signing procedure will suffice. The following sections illustrate the signing process and highlight the placement of the AVB pubkey that is used to verify the images in the DSU package.
DSU JSON descriptor
The DSU JSON descriptor describes DSU packages. It supports two primitives. First, the include primitive includes additional JSON descriptors or redirects the DSU loader to a new location. For example:
Second, the image primitive is used to describe released DSU packages. Inside the image primitive there are several attributes:
The name and details attributes are strings that are shown on the dialog for the user to select.
The cpu_api , vndk , and os_version attributes are used for compatibility checks, which are described in the next section.
The optional pubkey attribute describes the public key that pairs with the secret key that's used to sign the DSU package. When it’s specified, the DSU service can check if the device has the key used to verify the DSU package. This avoids installing an unrecognized DSU package, for example installing a DSU signed by OEM-A to a device made by OEM-B.
The optional tos attribute points to a text file that describes the terms of service for the corresponding DSU package. When a developer selects a DSU package with the terms of service attribute specified, the dialog box shown in Figure 6 opens, asking the developer to accept the terms of service before installing the DSU package.

Figure 6. Terms of service dialog box
For reference, here's a DSU JSON descriptor for the GSI:
Compatibility management
Several attributes are used to specify the compatibility between a DSU package and the local device:
cpu_api is a string that describes the device architecture. This attribute is mandatory and is compared with the ro.product.cpu.abi system property. Their values must match exactly.
os_version is an optional integer that specifies an Android release. For example, for Android 10, os_version is 10 and for Android 11, os_version is 11 . When this attribute is specified, it must be equal to or greater than the ro.system.build.version.release system property. This check is used to prevent booting an Android 10 GSI image on an Android 11 vendor device, which is currently not supported. Booting an Android 11 GSI image on an Android 10 device is allowed.
vndk is an optional array that specifies all VNDKs that are included in the DSU package. When it's specified, the DSU loader checks if the number extracted from the ro.vndk.version system property is included.
Revoke DSU keys for security
In the extremely rare case when the RSA key pair used to sign the DSU images is compromised, the ramdisk should be updated as soon as possible to remove the compromised key. In addition to updating the boot partition, you can block compromised keys using a DSU key revocation list (key blacklist) from an HTTPS URL.
The DSU key revocation list contains a list of revoked AVB public keys. During DSU installation, the public keys inside the DSU images are validated with the revocation list. If the images are found to contain a revoked public key, the DSU installation process stops.
The key revocation list URL should be a HTTPS URL to ensure the security strength, and is specified in a resource string:
The string's value is https://dl.google.com/developers/android/gsi/gsi-keyblacklist.json , which is a revocation list for Google-released GSI keys. This resource string can be overlayed and customized, so that OEMs who adopt the DSU feature can provide and maintain their own key blacklist. This provides a way for the OEM to block certain public keys without updating the device's ramdisk image.
The format of the revocation list is:
- public_key is the SHA-1 digest of the revoked key, in the format described in the generating the AVB pubkey section.
- status indicates the revocation status of the key. Currently, the only supported value is REVOKED .
- reason is an optional string describing the reason for revocation.
DSU procedures
This section describes how to perform several DSU configuration procedures.
Generate a new key pair
Use the openssl command to generate an RSA private/public key pair in .pem format (for example, with size 2048 bit):
The private key might not be accessible and is only kept in a hardware security module (HSM). In this case, there might be a x509 public key certificate available after key generation. See the Adding the pairing pubkey to the ramdisk section for instructions to generate the AVB public key from a x509 certificate.
To convert an x509 certificate to PEM format:
Skip this step if the certificate is already a PEM file.
Add the pairing pubkey to the ramdisk
The oem_cert.avbpubkey must be put under /avb/*.avbpubkey to verify the signed DSU package. First, convert the public key in PEM format to AVB public key format:
Then include the public key in the first stage ramdisk with the following steps.
Add a prebuilt module to copy the avbpubkey . For example, add device/<company>/<board>/oem_cert.avbpubkey and device/<company>/<board>/avb/Android.mk with content like this:
Make the droidcore target depend on the added oem_cert.avbpubkey :
Generate the AVB pubkey attribute in the JSON descriptor
The oem_cert.avbpubkey is in the AVB public key binary format. Use SHA-1 to make it readable before putting it into the JSON descriptor:
This will be the content of the pubkey attribute of the JSON descriptor.
Sign a DSU package
Use one of these methods to sign a DSU package:
Method 1: Reuse the artifact made by the original AVB signing process to make a DSU package. An alternative approach is to extract the already signed images from the release package and use the extracted images to make the ZIP file directly.
Method 2: Use the following commands to sign DSU partitions if the private key is available. Each img within a DSU package (the ZIP file) is signed separately:
For more information about adding add_hashtree_footer using avbtool , see Using avbtool.
Verify the DSU package locally
It’s recommended to verify all local images against the pairing public key with these commands:
The expected output looks like this:
Make a DSU package
The following example makes a DSU package that contains a system.img and a product.img :
After both images are signed, use the following command to make the ZIP file:
Customize the one-click DSU
By default, the DSU loader points to a metadata of GSI images which is https://. google.com/. /gsi-src.json .
OEMs can overwrite the list by defining the persist.sys.fflag.override.settings_dynamic_system.list property that points to their own JSON descriptor. For example, an OEM may provide JSON metadata that includes GSI as well as OEM proprietary images like this:
It’s possible for an OEM to chain published DSU metadata as shown in Figure 7.

Figure 7. Chaining published DSU metadata
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Полезная функция Android 11: пользователи смогут попробовать обновления перед установкой
Google только-только официально выпустила Android 10, но в Сети уже стали появляться подробности о ее преемнице. Так, Android 11 предложит довольно полезную возможность не устанавливать обновления сразу, а сначала попробовать их. Эта технология уже даже получила собственное название — Dynamic System Updates (DSU).

Хотя производители тщательно тестируют обновления, всегда есть шанс того, что после его установки что-то пойдет не так. DSU устранит эту проблему, дав возможность попробовать обновление перед его установкой. Как сообщается, пользователь даже сможет установить на это обновление приложения, чтобы проверить их совместимость.
Реализуется DSU достаточно просто — через создаваемый в системе временный раздел. Если пользователю не понравится обновление, или после установки выявятся какие-то проблемы, то от него можно будет отказаться, просто перезагрузив смартфон и указав при включении основной раздел.
Как сообщается, Google уже тестирует DSU с разными производителями готовых устройств, сама же функция будет реализована в следующей бета-версии Android 11.
Что такое динамические обновления системы? Как запустить новую версию Android в качестве гостевой ОС

Добрый день, друзья. Хотите попробовать новое ПЗУ на своем Андроид гаджете без замены старого? Динамические обновления системы (DSU) позволяют запускать новейшую версию Андроид в качестве гостевой ОС.

DSU — это опция, представленная в Андроид 10, позволяющая скачивать и запускать новый образ ОС Андроид в качестве гостевой ОС на используемом телефоне. Это невероятно полезно в том случае, если вы хотите опробовать новую версию Андроид или протестировать стандартный Android, не стирая текущую систему.
Если вы относитесь к опытным пользователям Андроид, то у вас есть возможность скачать общий образ ОС (GSI), используя функцию DSU Loader, которая изначально предлагается во многих телефонах Android. Давайте посмотрим, как это сделать?
Как использовать загрузчик DSU Android для установки GSI?
GSI — это стандартное ПЗУ Android, которое возможно поставить на любой телефон Андроид, поддерживающий Project Treble. С помощью DSU Loader вы можно запускать GSI без необходимости стирать существующее системное программное обеспечение.
DSU Loader доступен на Андроид 11, следующих версиях и служит инструментом в параметрах разработчика вашего устройства. Данная опция помогает вам настраивать GSI и заниматься управлением исключительно через системный дизайн пользователя.
К сожалению, доступность опции DSU имеет прямую зависимость от брэнда телефона.
Гугл внедрил опцию DSU Loader на всех устройствах, начиная с Pixel 3. Samsung же этого не сделал. Другие производители, которые предоставляют эту функцию, включают Xiaomi, Nothing, Sony, OnePlus и другие. Это руководство также поможет вам проверить, установлена ли на вашем устройстве функция DSU Loader?
Шаг 1: Включите режим разработчика на своем устройстве
По умолчанию, опция загрузки DSU недоступна, пока вы не включите режим разработчика. Для этого, запустите приложение «Параметры», затем нужно открыть раздел «О телефоне», прокрутить страницу вниз до номера сборки запись, и нажимать на него непрерывно, пока не появится сообщение с подтверждением. Подробнее о включении режима разработчика можно узнать здесь…

Шаг 2. Скачайте предпочитаемый GSI с помощью опции DSU
- Во-первых, проверьте ваше Интернет-соединение. Далее, войдите в Настройки> Система> Режим разработчика, перейдите к записи DSU Loader и коснитесь ее, для выполнения поиска всех поддерживаемых GSI на вашем телефоне.
- Во всплывающем окне выберитеПакет DSU,затем GSI, выбранную вами для установки. Если вы предпочитаете GSI с приложениями Google, то выберите тот, в котором указано GMS.
- Нажмите кнопку «Согласиться», чтобы принять условия предоставления услуг, и начнется загрузка GSI. Если вы защищали свое устройство с помощью PIN-кода, шаблона или пароля, то введите пароль для авторизации процесса загрузки.

Вы можете отслеживать процесс загрузки с помощью уведомления о динамических обновлениях системы. Наберитесь терпения для завершения процессов загрузки и установки. Прогресс будет зависеть от скорости вашего Интернет-соединения.

Шаг 3. Перезагрузите устройство, чтобы загрузить GSI
После завершения установки уведомление DSU предлагает вам два варианта: «Отменить» и «Перезапустить». Если вы передумали загружать загруженный GSI, коснитесь опции «Отменить». Чтобы загрузиться с помощью только что установленного образа системы, коснитесь опции «Перезапустить» в уведомлении.

Как только устройство перезагрузится, вы будете загружены в систему GSI в качестве гостевой ОС. Вы можете осмотреться, протестировать интересующие функции и многое другое. Помните, что не все функции могут работать так, как в стандартной системе, и что любые сохраненные вами данные будут потеряны после перезагрузки.
Вы можете использовать ОС DSU столько, сколько захотите, а когда закончите изучение, используйте следующий шаг для возвращения к исходным настройкам.
Шаг 4. Возвращение к исходной системе устройства
После того, как вы закончите знакомство с новой системой, пришло время вернуть предыдущую. Чтобы это сделать, опустите шторку уведомлений и нажмите на опцию «Перезапустить» в уведомлении про динамические обновления ОС. Также, можно просто провести перезагрузку телефона.

Следует отметить одну вещь: в некоторых случаях вам необходимо разблокировать загрузчик на телефоне, для скачивания образа DSU.
Установите Android GSI с помощью DSU Loader
Динамические обновления системы (DSU) — это функция, которая упрощает прошивку GSI не применяя дополнительные знания. Она устраняет возможность сбоев в работе вашего устройства, как это возможно, если использовать обычный метод ADB и Fastboot для прошивки сборок Андроид GSI. Google продолжает совершенствовать эту опцию, и мы можем только надеяться, что все OEM-производители воспользуются этим преимуществом. Успехов!