How to flash android AOSP 10 to device?


Question

I used to run Android AOSP 6.1 on my Nexus 5 by manually flashing the boot, cache, system, userdata, recovery images one by one using fastboot. I managed to successfully flash Android 6.1 on my Nexus 5 following this tutorial https://www.youtube.com/watch?v=m5BMfvO9Xi0



I have managed to build Android AOSP 10 and my goal is to flash it to my Pixel 2. First thing I noticed is that the output dir looks a bit different now. There are a few different images and there is no more recovery.img. The Android 10 Factory 10 dir contains this images:



enter image description here



I tried to manually flash the boot, dtbo, system_other, system, vbmeta & vendor images but the device ends up in a boot loop.



Does anyone know how to flash the Android 10 AOSP images to a device?



Thank you in advance!


Answer

The recovery is now built into the boot image instead of having a separate partition. So, a separate recovery image does not exist.
The files you have are supposed to be flashed to their respective partitions:



Boot to boot,
System to system,
Vendor to vendor,
Vbmeta to vbmeta,
Dtbo to dtbo



You can avoid the system_other as it is to build a dummy into your inactive boot slot. It isn't actually used. But if you want, you can flash it to the inactive slot. You check current active slot by using this command: fastboot getvar current-slot. Then flash to that slot by adding the slot suffix (example: If current slot is a, flash it to b - fastboot flash system_b system_other.img



Remember that you need to perform a wipe of internal storage from either fastboot (fastboot -w) or by going into the Android Recovery mode.


Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes