Dynamic System Updates (DSU) - Android Developers
Dynamic System Updates (DSU) - Android Developers
Platform
Android Studio
Google Play
Jetpack
More
Search
Language
Language
Language
English
Bahasa Indonesia
Español – América Latina
Português – Brasil
中文 – 简体
日本語
한국어
Alvin Callistro
Alvin Callistro
Alvin Callistro
[email protected]
Manage your Google Account
Switch account
Sign out
Platform
Privacy Policy
Terms of Service
Overview
Releases
Multi-device
Technology
More
Filter
Android Developers
Platform
Overview
Releases
Multi-device
Wear
Technology
Large Screens
Machine Learning
Privacy
Android 5G
Android Studio
Google Play
Jetpack
Kotlin
Docs
Games
Platform Architecture
Generic System Image
Overview
Releases
Dynamic System Update
System Security
Guide for building secure government apps
Android for enterprise
Google Play Instant
Support library
Support Library Overview
Features
Packages
Setup
Revision History
Recent Revisions
Revision Archive
On this page
DSU requirements
Install GSIs using DSU and the command line
Enable the DSU feature flag
Launch DSU
Boot into the GSI
Switch back to the device's original system image
Install GSIs using DSU and the DSU Loader
Provide feedback
Android Developers
Platform
Technology
On this page
DSU requirements
Install GSIs using DSU and the command line
Enable the DSU feature flag
Launch DSU
Boot into the GSI
Switch back to the device's original system image
Install GSIs using DSU and the DSU Loader
Provide feedback
Downloads a new GSI (or other Android system image) onto your device.
Creates a new dynamic partition.
Loads the downloaded GSI onto the new partition.
Boots the GSI as a guest OS on the device.
DSU also enables you to easily switch between the current system image and the
GSI so
you can try GSI without risking corruption of the current system image.
DSU requirements
DSU depends on the Android Dynamic Partition feature and requires the GSIs to
be signed
by Google or your OEMs as a trusted system image.
Before using DSU, ensure the corresponding feature flag is enabled. You can
enable the
flag using one of the following methods:
Launch DSU
After the feature is enabled, launch DSU using the adb tool.
Note: If you build your own GSI from source, or if you download a GSI from
another
image server, your GSI might not be unsparsed. Use the following
command inside your
build tree to convert the image to an unsparsed
image: simg2img system.img
system_raw.img
-n com.android.dynsystem/com.android.dynsystem.VerificationActivity \
-a android.os.image.action.START_INSTALL \
-d file:///storage/emulated/0/Download/system_raw.gz \
After DSU installs the GSI, a DSU menu appears as a persistent notification
inside the
system notification drawer (see figure 1).
When setting the next reboot to use a GSI, you can have the GSI stay installed
through
multiple boot cycles (until discarded) by enabling sticky mode, or have
it used for only
one boot cycle by disabling sticky mode.
To install a GSI using the DSU Loader, follow these steps on a device running
Android 11
or higher:
After you agree to the terms and conditions, the GSI that you selected starts
downloading.
You can check the status of the download through the DSU
notification.
5. After the download has finished, tap Restart to boot the GSI.
6. When you want to switch back to your device's original system image, tap
Restart from
the DSU system notification.
Provide feedback
Your feedback helps us improve DSU and other GSI features. Share your thoughts
and
report GSI issues by filing GSI
bugs,
discussing topics on Stack Overflow,
and contributing
to the GSI page on Reddit.
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.
Twitter
Follow @AndroidDev on Twitter
YouTube
Check out Android Developers on YouTube
LinkedIn
Connect with the Android Developers community on LinkedIn
More Android
Android
Android for Enterprise
Security
Source
News
Blog
Podcasts
Discover
Gaming
Machine Learning
Privacy
5G
Android Devices
Large screens
Wear OS
Android TV
Android for cars
Android Things
Chrome OS devices
Releases
Android 11
Android 10
Pie
Oreo
Nougat
Marshmallow
Lollipop
KitKat
Support
Android
Chrome
Firebase
Google Cloud Platform
All products
Privacy
License
Brand guidelines
Get news and tips by email
Subscribe
Language
Language
Language
English
Bahasa Indonesia
Español – América Latina
Português – Brasil
中文 – 简体
日本語
한국어