How to remove the Ubuntu Touch kernel at startup?


Question

I have tried the latest Ubuntu Touch on Nexus 5, but it was useless because an exential app doesn't work with Anbox.
So i want to try an Lineage 18.1 unofficial image.
I have installed the image with no problems.
But I cannot remove/erase the ubuntu kernel at start.
I have tried those commands


fastboot flash bootloader android/roms/twrp-3.3.1-0-hammerhead.img 
Sending 'bootloader' (13290 KB) OKAY [ 0.640s]
Writing 'bootloader' FAILED (remote: 'invalid bootloader image
')
fastboot: error: Command failed

fastboot flash recovery2 android/roms/twrp-3.3.1-0-hammerhead.img
Sending 'recovery2' (13290 KB) OKAY [ 0.640s]
Writing 'recovery2' FAILED (remote: 'partition table doesn't exist')
fastboot: error: Command failed

fastboot erase bootloader
Erasing 'bootloader' FAILED (remote: 'Partition table doesn't exist
')
fastboot: error: Command failed

How to remove the kernel at startup?


Answer

Solution found, works on Linux. The phone in example in Nexus 5 so you had to adapt to YOUR phone.
WARNING: , I am not responsible for any kind of damage to your phone, follow this solution at your own risk.
Connect the phone to usb port of a Linux pc, called "host", all commands must be run from this pc.


a)Download the factory image for Nexus 5 then connect the phone to pc WARNING: IS FOR NEXUS 5 HAMMERHEAD, you MUST select another image if use another phone.


ensure this command return the right thing


fastboot device

b)then extract the zip image, enter in the dir created and run


sh flash-all.sh

from the computer host


It will reboot in the factory image of Android 4(sic!) and then you can install Ubuntu touch or a "free" Android rom.


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