Dual Boot Ubuntu Touch and Android Redmi7A Codename Pine - Redmi 7A Questions & Answers

I wanted a Linux and Android in the same Cellphone. About Android, it's a Linux but with difference and it has all the features. Let's know 'how can we boot Ubuntu Touch and Android in the same Cellphone'.
1. First of all we need to unlock the bootloader of our device.
2. ADB and Fastboot drivers must be installed. Or you can download Android SDK Platform tools .
3. USB-Debugging must be enabled.
4. Connect phone with PC via USB. Reboot phone to fastboot mode (Volume-down + Power).
5. Drop the recovery image into the adb folder and open command prompt.
6. Enter the following commands:
Code:
fastboot devices
fastboot flash recovery recovery.img
fastboot reboot
TWRP 3.3.1-1
[If you already have custom recovery then just skip.]
7. Reboot to recovery (Volume-Up + Power; release Power when phone turns on, keep holding Volume-Up until you see screen of TWRP). If TWRP asks for PIN, enter the PIN of your unlock screen.
8. Wipe > Cache and System from Advanced Wipe. Format Data > Yes. Now reboot to recovery.
9. Flash firmware and vendor arm64.
10. Flash any Android GSI ARM64-AB. (I flashed AOSP ARM64-AB GO)
11. Flash Ubuntu Touch GSI. It works in arm64 a/ab.
12. Now which one you want to boot. If you want to boot Ubuntu Touch then flash Halium_Boot, if you want Android then Android_Patched_Boot, it's your choice.
Credits :
erfanoabdi (ubport gsi)
nikp123 & YaAlex (arm64 kernel)
Phhusson (AospGo GSI)
TheGame455 (firmware and vendor)
Khushraj Rathod (VoLTE Fix)
VoLTE-Fix for Android
VoLTE is not working in Ubuntu Touch GSI
Ubuntu Touch Passphrase : phablet
Special thanks to Canonical Ltd, ubport and Xiaomi.

Thanks
Is it possible to install only UBuntu Touch in this phone, without Android?

Jazzda said:
Thanks
Is it possible to install only UBuntu Touch in this phone, without Android?
Click to expand...
Click to collapse
What you want, GSI isn't good! It takes data partition.

Some people can not understand dual boot means you can keep both, and if you don't want another then just skip that part and only flash one.
First having a Custom Recovery
1. Unlocked Bootloader of Phone.
2. ADB and Fastboot drivers must be installed on PC/Laptop.
3. USB Debugging Enabled in Phone.
4. Connect phone with PC via USB.
5. Reboot phone to fastboot mode (Volume-down +Power).
Or Open command prompt in adb folder and type :
adb devices
adb reboot bootloader
6. Place the recovery image into the adb folder. Enter the following commands:
fastboot devices
fastboot flash recovery recovery.img
fastboot reboot
[Note: If you already have custom recovery then skip above.]
Installation Guide:
1. Reboot to recovery (Volume-Up + Power).
2. Wipe > Cache and System from Advanced Wipe. Format Data > Yes. Now reboot to recovery.
3. Flash firmware and vendor arm64.
Ubuntu Touch
4. Flash Ubuntu Touch GSI.
Android
5. Flash any GSI of ARM64-AB of Android.
6. Flash Boot Image.
Switching OS between Ubuntu and Android : Just keep both the Boot Zip file in storage and flash whichever you wanna boot.
Downloads :
TWRP Recovery
fw-vendor-arm64_pine_11.0.11_GLOBAL
For Ubuntu
Halium_Boot_Pine
Ubuntu Touch GSI
For Android
Redmi7A_patched_boot_11.0.11global_64bit
AOSP ARM64-AB GO
[AOSP GO GSI of Phhusson is working smoothly and takes less space, because it's go-edition.]

I think it's clear now, thanks
fw-vendor 11.0.11 vs 10.2.5, what's the difference and/or whats best?

i followed the steps after reboot the screen is stuck in fastboot mode.where to download hallium boot the link is broken

redmikos said:
i followed the steps after reboot the screen is stuck in fastboot mode.where to download hallium boot the link is broken
Click to expand...
Click to collapse
It's illegal to share kernel without copyright, so there is no sharing buddy, search it somewhere else. These days gpl, gnu has changed their definition. In past you could share without any restriction but not now. So why should I share them and get caught in legal proceedings.
You got it now!

at first thank you very much,are you still working on it? i have problem while record video, actually when i try to open the file, it looks corrupt and i can't run it, can i try to change some setting?sometime it work sometime no, i don t know why

Related

Need help fixing my bricked phone

Hey Guys,
I have a redmi 3s prime and i tried to install lineage os on it, during the process i accidentaly flashed twrp over both the recovery and the boot. Now i cannot get into the recovery (and fastboot) unless i flash it over boot before rebooting my phone. After that i AM able to flash an new rom but it seems to always have wifi issues.
atm i am trying to flash the xiaomi developers global rom to see if it makes any difference. My main goal is to flash TWRP and a curstom rom (linage or resurrectionremix).
Can anyone help me?
Thanks alot!
Update #1
The flashing of the global developer rom worked and the wifi seems to work aswell, i will try to boot into fastboot and recovery.
Update #2
Its seems i am able to boot into fastboot and recovery again
Update #3
Following a tutorial for flashing TWRP and a custom rom but cant se2 anyone help me here?:
Code:
>>> Check then next step to root :
- launch minimal adb tool (previously installed)
- type : adb devices (to list phone connected) it will appear "unauthorized"
- on the phone : accept the computer
- re type : adb devices
it has changed in "authorized"
- type : adb reboot bootloader
it will go in fastboot mode (the same that power + vol down)
- type : fastboot devices
your phone will appear as in adb mode (unless the bad signed driver is choosen in win10 ; i won't repeat it again)
- type (optional) : fastboot oem device-info (to verify if bootloader is locked or unlocked)
now, we go to root
- type : fastboot boot twrp.img (if it is your renamed twrp copied in the minimal adb folder)
link for TWRP guide at the end if needed
!!! it will boot temporary in this recovery but it will keep your original recovery !!!
> allow to modify system (don't keep the "read only" if you want to root or flash recovery later)
go to settings to set date, hours, language, set custom options...
My optional advices :
- save your EFS & persist partitions or all whole partitions (except cache) to make a backup
- export this backup in computer or SD card in case of future problem
(EFS, persist are usefull to save and restore your IMEI in particular)
- you can flash directly TWRP with fastboot command : fastboot flash recovery twrp.img
>>> Root :
Now flash DM-verity patch, then superSU.zip to root and accept to wipe dalvik/cache after, finally reboot !
Device is rooted ! and you have kept the original recovery.
the reboot is quite long like rom update (because of cache rebuild)
sometimes, parts of theme are lost after rooting : just restore your theme
some devices don't need DM-verity patch as explained upper
superSU app shows "systemless root" from android 6+, it is normal, read below
>>> Change the Recovery by TWRP (optional) :
Now you are rooted, you have 2 methods :
- Install one TWRP app with googleplay and flash recovery through app on rooted device.
New official app in development (flash/backup .img & .tar)
- OR reboot in fastboot mode (with TWRP app method or power+vol- method or adb reboot recovery method)
in fastboot mode, and type commands :
fastboot devices
fastboot flash recovery twrp.img
(be sure your twrp.img is unlocked and correctly copied/renamed in minimal adb folder)
Now, long press power to turn OFF phone
power + vol+ (release power at vibration) to enter in TWRP or by TWRP app or Updater app or under Windows with minimal adb reboot recovery command
Note for devices with DM-verity : flashing TWRP needs to have patched system with DM-verity patch before because you will modify system most of time - generally, you don't need to patch again because you have ever done it in previous steps - in case of bootloop : go to fastboot mode, boot in TWRP with command and patch it.
Chainfire has recently modified superSU for android 6+ devices with DM-verity to install root without modify the system : it's called "systemless root". When you flash superSU.zip, it detects automatically android version, cleans old files and installs with appropriate method. Maybe no need to patch boot in this case with DM patch.

Switching Custom Roms no TWRP

Very new to this so explain to me like I'm 5
I installed Ubuntu Touch on a Nexus 4. The install went fine, I did not install TWRP - wasn't required hadn't really planned on experimenting more. However, now I would like to try both Lineage and Paranoid Android.
How do I proceed at this point? Do I need to re-install original ROM or can I install TWRP directly? I am assuming that to install either OS I need to have TWRP installed - is that right?
Again, if you could please keep it simple - I am still swimming in the shallow end of the pool with Custom ROMs and Android.
Thanks
You said you already installed Ubuntu Touch.
I'm presuming that you have unlocked your bootloader before doing so and that you might have used the terminal and might be running Ubuntu.
If this is correct it should be no problem for you to:
- With your device powered off, press and hold the volume down button and then the power button simultaneously until the screen turns on to enter "Fastboot mode"
- Connect your device to your PC
- Open a terminal window and type
Code:
fastboot devices
if that does return
Code:
no permissions fastboot
it can be fixed by running fastboot as root from now on, i.e.
Code:
sudo fastboot [...]
- next, enter
Code:
fastboot oem device-info
if the output contains the line
Code:
(bootloader) Device unlocked: true
you are able to flash a custom recovery.
- To flash the recovery go directly dl.twrp.me/mako, and download the latest (topmost) image.
Now, find out where the image is downloaded and open a terminal there.
Then enter this command
Code:
fastboot flash recovery twrp-3.3.1-0-mako.img
(again with sudo if necessary)
- Reboot and you should be good to go
Code:
fastboot reboot
Thanks, that worked fine. Appreciate the step by step instructions.
I'm glad it worked for you
Does it mean, that u have Ubuntu, and android?
If possible can u share the screen shot or TWRP and boot options

[RECOVERY][UNOFFICIAL][melsuhl] TWRP 3.1.1-0 touch recovery for HTC One M8_Eye

Instructions to unlock the bootloader and install TWRP:
1. Install this, fastboot/adb : http://forum.xda-developers.com/show....php?t=2588979
- when install the adb installer, select Y for system-wide and N for drivers
- you can open Command Prompt from any where that you like when it is system-wide.
2. Install HTC USB drivers - http://www.htc.com/us/support/softwa...c-manager.aspx
- it will install the needed drivers.
3. Unlock the bootloader
- follow the instructions given here to unlock the bootloader - https://www.htcdev.com/bootloader/
- Note: you will not find One M8_Eye in the list so select “All Other Supported Models” at the end of the list.
4. Flash the TWRP
- Download TWRP for HTC One M8_Eye form here
- make sure 'USB Debugging' is turned on from 'Developers options' and phone is connected to the pc
- then run,
Code:
adb reboot fastboot
- after rebooting your phone into bootloader...run,
Code:
fastboot flash recovery <location of your recovery.img>
- then run,
Code:
fastboot reboot
- to boot into the recovery run,
Code:
adb reboot recovery
and you have successfully installed TWRP.
Donate:
Liked my work? Give me a beer
Downloads:
Download TWRP 3.1.1-0 for HTC One M8_Eye
tqs bro
which is more stable pixel or lineage
NSH021 said:
which is more stable pixel or lineage
Click to expand...
Click to collapse
Both ROMs are completely stable but my personal favourite is LineageOS.
Ps. You should have asked this question in one of the ROM thread.
Is not working for me, it goes to the stock recovery menu ... I download many times and tried to install in different ways including from the MicroSD and using another TWRP to install this ...

X2Pro - C.29 Stock to LOS with Magisk

Firstly, I would like to thank @karthick mostwanted for his work and a thumbs up for keeping Lineage OS updated.
I have an Indian Unit of X2 Pro with 128 Gigs of RAM and I got the ROM working with FP and the payment apps at once. Everything works good here. Only thing which I did not like is the camera, so I'm using PixelPlus GCAM on this ROM.
Coming to the steps (assuming ADB & Fastboot drivers installed) -
1. Unlock the Bootloader. For the same Install the In Depth Test app (pm if you do not get the links for the app on Google) and apply. After a successful review message on the app, use the following commands.
adb reboot bootloader (For reboot into fastboot mode)
fastboot flashing unlock
Select the confirmation dialog on the screen and its done. Then type fastboot reboot for the phone OS to boot. It will erase all your data too.
2. Next step is to install TWRP img file by Mauronofrio (Google it). Download vbmeta.img also, you will get in LOS thread downloads section. Copy the recovery file and vbmeta into the ADB folder where the powershell/cmd is running so the you can fetch it. Reboot into the fastboot mode and give the following command.
fastboot flash recovery recoveryfilename.img
DO NOT REBOOT YET. Immediately type fastboot flash --disable-verification vbmeta vbmeta.img and enter. Don't reboot, with help of Volume and power button combination, boot directly into recovery. Remember, do not reboot phone in any other mode or even the present OS because it will wipe the recovery installed.
3. Format Data. (Don't Wipe, Use FORMAT DATA Option). Wipe Cache & Dalvik.
4. Keep the Files in a USB Storage such as Lineage OS, Magisk 20.3, Open Gapps Nano ARM 64.
5. Insert the USB drive through an OTG and go to TWRP mount option and mount external storage. It will start showing files. Now go to install and select OS. Wait, don't run now. Add Gapps to the same queue and then run.
6. After successful installation, wipe cache and dalvik and reboot your phone.
7. After you setup everything, again boot into TWRP recovery and install magisk 20.3.
You are done and all set !
Note - Do not remove/uninstall system apps using root access in LOS, it may break. Happened with me when I tried to uninstall DuckDuckGo, it went into bootloops.
Will be happy to answer any doubts for this installation. Comment below if you need further help !
oreopie said:
Note - Do not remove/uninstall system apps using root access in LOS
Click to expand...
Click to collapse
Do you mean by using apps like titanium backup, systemapp remover or similar?
Did you rooted with new lineage OS 18 ?

flashing ROMs

After flashing SuperiorOS and also LineageOS Android 11 I get message "No OS installed" after reboot system after flashing and it is stuck on booting screen then and it only helps to flash official build via fastboot. What am I doing wrong? I am doing clean flash.
P.S.: I get many errors about something with vendor that failed with red letters while flashing
Dont worry here are the steps i follow every time and it works for me
- Download platform and fastboot drivers
- Download TWRP from offical website for tissot there should be one .img and other zip file latest version is 3.4.0-0 i think
- Download ROM whichever you like
- Press and hold power button with volume down until it boots to fastboot connect your phone to pc make sure you have fastboot drivers installed
- Open command prompt with administrator privileges locate to platform folder where you have fastboot.exe before doing anything type fastboot devices if it shows few numbers and fastboot than it means you are good to go
- Make sure you put TWRPxxxxx.img file in platform for easy access type fastboot boot TWRPxxxx.img or which link for ur twrp image file press enter after few seconds your phone will be booted up in twrp from there go ahead and transfer TWRPxxxx.zip to your internal or sd card and flash it when its done from twrp restart it to recovery wipe , delvik cache , data , system ---> flash rom zip than install twrpxxxx.zip again restart to recovery than go ahead and intall nikGapps 11 and ( MagiskR if you want root access ) when its done restart to system it should boot into OS without any problem it will take some time
dont worry about vendor errors i get them everytime but without any issues its normal
Hope it helps if you need anything ask away

Categories

Resources