Dynamic System Updates (DSU) - Android Developers
Dynamic System Updates (DSU) is a system feature introduced in Android 10 that does the following:
- 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.
DSU is a feature provided by your device’s manufacturer. Refer to your device manufacturer’s support page for availability. Google has enabled DSU on Pixel 3 and newer devices since the Android 10 Beta 4 release.
Install GSIs using DSU and the command line
This section describes how to install a GSI using DSU and the command line.
Launch DSU
Launch DSU using the adb tool.
Download a GSI from the GSI release page or another GSI image server.
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.imggzip the GSI.
gzip -c system_raw.img > system_raw.gzPush the GSI to the device.
adb push system_raw.gz /storage/emulated/0/Download/Launch DSU using adb.
adb shell am start-activity \ -n com.android.dynsystem/com.android.dynsystem.VerificationActivity \ -a android.os.image.action.START_INSTALL \ -d file:///storage/emulated/0/Download/system_raw.gz \ --el KEY_SYSTEM_SIZE $(du -b system_raw.img|cut -f1) \ --el KEY_USERDATA_SIZE 8589934592A notification like this one shows the status of the installation.
Boot into the GSI
After DSU installs the GSI, a DSU menu appears as a persistent notification inside the system notification drawer (see figure 1).
At this point, you can do one of the following:
- Boot into the GSI by tapping Restart.
- Clean up the GSI by tapping Discard.
Switch back to the device's original system image
After you are done testing your app using the GSI, you can perform a cold reboot to boot the system back into its original system image.
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.
The following command enables sticky mode:
adb shell gsi_tool enableThe following commands disable sticky mode:
adb shell gsi_tool disable adb shell gsi_tool enable -s adb shell gsi_tool disableInstall GSIs using DSU and the DSU Loader
Android 11 introduced the DSU Loader, a tool available in the device's developer options that lets you download, install, and manage GSIs entirely through the system's UI.
To install a GSI using the DSU Loader, follow these steps on a device running Android 11 or higher:
- Enable developer options on your device.
- Open your device's Settings app, then tap Developer options > DSU Loader.
Choose the GSI that you want to install on your device.
Agree to the GSI terms and conditions.
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.
After the download has finished, tap Restart to boot the GSI.
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 and discussing topics on Stack Overflow.
Từ khóa » Dfu Loader Là Gì
-
DSU Loader Của Android 11 Giúp Các Nhà Phát Triển Thử Nghiệm ứng ...
-
Chế độ DFU Là Gì? Chúng Hữu Dụng Trong Trường Hợp Nào?
-
DSU Loader | Cộng đồng VSmart Việt Nam
-
Cách Cài đặt ROM GSI Trên điện Thoại Android 12 Beta đơn Giản Nhất
-
Chế độ DFU Là Gì? Cách đưa IPhone Về Chế độ DFU - PhoneHouse
-
Chế độ DFU Trên Các Thiết Bị IOS Là Gì? Nên Sử Dụng Chế độ Này Khi ...
-
Chế độ DFU Là Gì? Cách đưa IPhone Về Chế độ DFU Cực đơn Giản
-
DSU Loader In Android 11 Helps Developers Test Apps On Stock ...
-
[Android] Những Thay đổi Trên Android 11 Mà Các Developer Cần Lưu ý
-
Hướng Dẫn Reset Hoặc đưa IPhone 7 Về DFU Mode
-
NẠP CODE CHO STM32 BẰNG BOOT LOADER
-
Iphone Quên Passcode Và Disable Passcode Do Nhập Sai Nhiều Lần
-
Cách Xoá Jailbreak Khi Jailbreak Bằng Checkra1n - ThuThuatJB
-
Hướng Dẫn Sử Dụng Checkra1n để Jailbreak Tất Cả Các Phiên Bản ...
-
Mina Loader V1.0 - Boot DIAG IPhone Jailbreak - RomGốc.Net
-
Hướng Dẫn Cách Jailbreak IOS 13 Bằng Checkra1n - BB Nha Trang
-
▷ Cách Mở Khóa ICloud IPhone 5 Miễn Phí [2019] »
-
Ứng Dụng Bẻ Khóa Greenpois0n ( GreenPoison ) IOS 4.3.5
-
Jailbreak Ios 12.4.7 Iphone 6 - Hỏi Đáp