Just upgraded to LOS 14.1 unofficial from MM - this is how - X Style (Pure) General

Thought I would make a thread, which could help someone.
My bootloader is unlocked
I was using Marshmallow LOS 13 unofficial build by Qbanin.
But these directions should be the same for anyone on MM unlocked.
You will need to know how to use ADB from PC and have platform-tools.
The reason I upgraded to 14.1 unofficial instead of official is because official requires the MM modem, and I had already flashed the stock nougat rom when i started looking for roms to flash.
Download the Nougat Stock Firmware:
https://androidfilehost.com/?fid=889964283620765304
Drop the contents of unzipped stock nougat into your platform-tools folder.
Hit the shift button and right click the mouse and 'open command window here'
Connect your MM device to your pc - booted into your current rom with usb debugging enabled
In the command windows type 'adb devices', you may need to confirm access on the screen of your phone, and try the command again.
Make sure your device is listed and authorized.
Type in the command window 'adb reboot bootloader'
Your device will reboot into the bootloader and is ready to program
Run these commands to flash stock nougat, make sure each command succeeds.
If they do not, run any command that fails multiple times until it succeeds and move on to the next, if a command fails more than 5-10 times in a row, start over from the beginning.
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash system system.img_sparsechunk.5
fastboot flash system system.img_sparsechunk.6
fastboot flash system system.img_sparsechunk.7
fastboot flash system system.img_sparsechunk.8
fastboot flash system system.img_sparsechunk.9
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot flash bluetooth BTFM.bin
fastboot erase cache
fastboot erase userdata -w
fastboot reboot
If your device reboots into bootloader repeatedly run this command:
fastboot oem fb_mode_clear
fastboot reboot
Your device will reboot, wait a while during Nougats first run.
Once Nougat is loaded and you pass setup, enable developer options and then ADB usb debugging.
run 'adb devices' command again and confirm the device is listed and authorized.
Download latest official TWRP 3.2.1.0
https://eu.dl.twrp.me/clark/
rename the file to twrp.img and place in the platform-tools folder
Download LOS 14.1 Unofficial (the latest build 2/23 is for MM modem: avoid)
Grab the 2/18 build or read around the forums for latest compatible build
https://androidfilehost.com/?w=files&flid=131793
Move the file to the root of your external sd card via MTP.
Download ARM64 7.1 OpenGapps and move to root of your external sd card
http://opengapps.org/
Run these commands in the command prompt
adb reboot bootloader
adb flash recovery twrp.img
Press 'down vol' for the recovery option and then press the power button
Phone should reboot into TWRP recovery
Allow TWRP to modify contents by swiping at the bottom.
Remember TWRP makes you swipe if your screen shuts off, so you may need to swipe twice to peform operations, ALWAYS PAY ATTENTION IN TWRP.
Select WIPE in twrp, and then ADVANCED WIPE.
Select the Data checkbox and hit the Repair or Change File System at bottom.
Select CHANGE FILE SYSTEM at bottom right.
Select F2FS and proceed with the format.
Select WIPE (again) from home screen choose to wipe dalvik,system,internal & cache
Select INSTALL from home screen and choose the LineageOS 14.1 build.
You will need to SELECT STORAGE at bottom left and choose your external card.
Add the openGapps 7.1 to the install queue as well.
Swipe to confirm flash and let the new rom and gapps install.
After complete wipe dalvik/cache and reboot.
Enjoy your new rom.
I also flashed systemless root in twrp.
https://drive.google.com/file/d/1GjKdxvoTi9YCU43HIy2XTTcB-bGnNn84/view?usp=sharing
This is for unofficial 14.1 only using the 2/10 or 2/18 build only.
The 2/23 build as I understand is a test build for MM modem only.
All future builds should be verified around the forum with hashbangs notes/recommendations as they do not exist at the time of this post.

Related

[Q] Can't install apps, can't boot into recovery & can't do factory reset

Hey guys,
i keep it short.
Rooted Google Nexus S, CyberGR-MOD ICS. matr1x kernel.
1. Problem: Can't install/update apps. Error: Package file is invalid
Install from Play Store works, but update doesn't. Install from .apk file does not work.
Tried solutions:
- Wipe Play Store Cache, Dalvik Cache etc.
- Different transfer methods (USB, WLAN, 3G)
-> No solution
2. Problem: Can't boot into recovery
I get into fastboot and choose recovery, I get the google logo for a while and then just a black screen. ClockworkMod Touch Recovery was used.
Tried solutions:
- Installed older (non touch) CWM Recovery
- Installed AmonRa
-> Still not booting into recovery
3. Can't do factory reset
When choosing to reset the phone it restarts and just shows the google logo, I waited for an hour, then I removed the battery and restartet. SD-Card was wiped, but not the phone itself.
What I want is simple: Get a running OS, where I can install/update apps again. Any ideas?
Hey guys. I fixed it. In case anyone has similar problems, here's my solution. I use Windows, if you have a Mac or Linux OS, your commands may differ.
Warning: EVERYTHING on your phone will be erased and you will have the oiginal android ROM on your phone.
1. Your phone needs to be rooted and you ne need to have fastboot on your computer.
2. Go to: developers.google.com/android/nexus/images and download the right Image for your phone and place all files in a folder. For easier use, put them in the same folder as fastboot.
3. Boot your smartphone into fastboot and connect it to your computer.
4. Start a terminal window and navigate to your fastboot directory.
5. Type in these commands one after another and press ENTER after each command (The bold parts may differ, if you downloaded a different Image than I):
fastboot erase cache
fastboot erase userdata
fastboot erase recovery
fastboot reboot-bootloader
fastboot flash bootloader bootloader-crespo-i9020xxkl1.img
fastboot reboot-bootloader
fastboot flash radio radio-crespo-i9020xxki1.img
fastboot reboot-bootloader
fastboot -w update image-soju-imm76d.zip
6. Reboot your phone, in should now start with a fresh android os.

Fix Unrecoverable bootloader error[Buster99 Solution]

Hello ,
First of all Thanks to Buster99 and his Solution for fixing this problem,
This guide is for helping you to fix Unrecoverable bootloader error, Hope it will help you out of this problem,
Step-by-step guide:
1 - Download the Stock rom .
2 - Extract downloaded file and put the blob file in fastboot folder.
3 - if you need adb,apx,fastboot drivers , i attached these drivers so you can download it from below.
4- Power off the tablet.
5- Connect the tablet to PC via USB cable.
6- Boot your tablet into the recovery mode. Press and hold Volume DOWN+Power keys together.
7- Open command prompt. For this, go to Start. Select ‘Run’ and type ‘cmd’. go to your fastboot folder.
8- type following command-lines in cmd-window:
fastboot erase system
fastboot erase recovery
fastboot erase userdata
fastboot erase boot
fastboot erase misc
fastboot erase cache
fastboot -i 0x0B05 flash system blob(depending on where you stored extracted blob file)
fastboot -i 0x0B05 reboot
Remember : Wait until you've seen in the CMD window that erase or upload is finished.
hope this solution works for whoever is facing the same problem,
I'm very glad, you saved your tablet

Moto G XT1032 boot problem

Hi i use this rom http://forum.xda-developers.com/moto-g/development/stable-aosp-caf-t3284323
and i have a problem , my phone rebooted and stuck after the boot animation in a black screen.
I tried wipe cache , nothing and then i tried fix permission and now i cant go into my recovery , restarts itself, flassed revovery again , same thing.
Now i want to flass the rom with fastboot , what wipe commands i have to do?
I found online this
fastboot erase system -w
fastboot erase boot
fastboot update rom.zip
is this ok?
Thanks
[email protected] said:
Hi i use this rom http://forum.xda-developers.com/moto-g/development/stable-aosp-caf-t3284323
and i have a problem , my phone rebooted and stuck after the boot animation in a black screen.
I tried wipe cache , nothing and then i tried fix permission and now i cant go into my recovery , restarts itself, flassed revovery again , same thing.
Now i want to flass the rom with fastboot , what wipe commands i have to do?
I found online this
fastboot erase system -w
fastboot erase boot
fastboot update rom.zip
is this ok?
Thanks
Click to expand...
Click to collapse
I literally JUST unbricked my Moto G XT1032 after searching for a long while and piecing instructions together. Here's how:
PREPARATIONS
1) Download XT1032_RETAIL-BR-SS_4.4.4_KXB21.14-L1.40_42_cid12_CFC_1FF.xml.zip
This is the stock firmware you need to flash. I haven't tried it with anything else. The instructions that follow are specific to this file, although you should be able to follow the general idea to install different ROMS.
Get the firmware (or a different one) here: http://forum.xda-developers.com/moto-g/general/index-moto-g-falcon-factory-firmware-t3110795
2) Ensure that you also have the correct Motorola drivers for this phone. Download 32-bit or 64-bit versions depending on your PC.
Get them here http://forum.xda-developers.com/showthread.php?t=2550635
3) Download MFastBoot v2
Go to http://forum.xda-developers.com/gen...ng-mfastboot-exe-to-unbrick-motorola-t3203518
or simply download the file at (https://mega.nz/#F!xUh10AAD!5NvRwDf6eAfjE3bUWZfk7g)
Note: From what I've experienced, you CANNOT use normal Fastboot on this phone. You will keep getting errors such as Failed (remote failure). You have to use MFastBoot.
Open the downloaded file. There will be two other zip files inside it. Extract all contents of mfastboot-v2.zip to a folder of your choice.
4) Download TWRP Recovery. It's usually a good idea to have a recovery, even though it's not used to flash the ROM.
Get the highest version of it here: https://dl.twrp.me/falcon/
Extract the .img file to the SAME folder as where you extracted mfastboot and rename it to twrp.img (not really necessary, but it's easier to type into the command prompt).
5) Extract all contents of XT1032_RETAIL-BR-SS_4.4.4_KXB21.14-L1.40_42_cid12_CFC_1FF.xml.zip to the SAME folder as where you extracted mfastboot.
6) Ensure the phone is off. Hold VOL DOWN first, and then press POWER button for about 5 seconds, then release POWER button before releasing VOL DOWN. You should be in fastboot mode. Plug the USB cable into the phone now.
If you see Device is locked. Status 0, follow the instructions in the UNLOCKING THE BOOTLOADER section.
If you see Device is unlocked. Status 3, continue to step 7.
FLASHING THE FIRMWARE
7) Open the folder where everything has been extracted to.
Hold CTRL+Shift and right click in an empty area of the folder. You will see a normally hidden option to "Open Command Window Here". Select that option and a command prompt window will open. If you are not seeing this, you may not have administrative rights on your account.
Type this into the command prompt: mfastboot reboot
I'm unsure if this is required or not, but mfastboot wouldn't work unless I rebooted it from the command prompt before any other instruction.
8) This is the step where the TWRP recovery and ROM files are flashed.
Type the following into the command prompt, pressing enter after each line. Alternatively, just copy each line and right click>paste into the command prompt. Credits to AgentChaos for the following:
mfastboot flash partition gpt.bin
mfastboot flash motoboot motoboot.img
mfastboot flash logo logo.bin
mfastboot flash boot boot.img
mfastboot flash system system.img_sparsechunk.0
mfastboot flash system system.img_sparsechunk.1
mfastboot flash system system.img_sparsechunk.2
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg.mbn
mfastboot erase cache
mfastboot erase userdata
mfastboot flash recovery twrp.img
If you used normal fastboot at this step, it will fail and give you an error of "Failure (remote failure)". or it will say it could not find or write to some directory.
Hopefully it does not fail, and should say OKAY after writing each file. This step will take several minutes.
If you used a different firmware than I did, you will have to flash the correct files to the correct directories, and they MAY be different than the ones listed above. I think (but I am not sure) that the only difference would be having to flash and additional sparsechunk.3 or 4. I would not suggest doing this if you aren't sure.
After all files have been flashed, do one final mfastboot reboot and press VOL DOWN and select Recovery, then press VOL UP to start it. You should see the TWRP recovery screen. The screen may glitch out but otherwise be operable. You can press REBOOT then SYSTEM to start the phone normally.
I hope this has been helpful.
UNLOCKING THE BOOTLOADER
A) Open the folder where everything has been extracted to.
Hold CTRL+Shift and right click in an empty area of the folder. You will see a normally hidden option to "Open Command Window Here". Select that option and a command prompt window will open. If you are not seeing this, you may not have administrative rights on your account.
Connect the USB and type this into the command prompt: mfastboot oem get_unlock_data
You will see a string of characters that looks like:
(bootloader) 0A40040192024205#4C4D3556313230
(bootloader) 30373731363031303332323239#BD00
(bootloader) 8A672BA4746C2CE02328A2AC0C39F95
(bootloader) 1A3E5#1F53280002000000000000000
(bootloader) 0000000
B) Go to Motorola's unlocking bootloder tool website here:
https://motorola-global-portal.custhelp.com/app/standalone/bootloader/unlock-your-device-b
You will need to create an account with a legitimate email account, which takes 1-2 minutes.
There is a text box on Motorola's site where you need to type the exact combined code you received from top to bottom with symbols included, but don't include "(bootloader)". Agree to their terms and services.
C) You will receive an email with your bootloader unlock code.
Go to the command prompt and type: mfastboot reboot to reboot the device. Alternatively, just reboot it manually.
Type: mfastboot oem unlock UNIQUE_KEY where UNIQUE_KEY is the unlock code you received. The screen should go black and you should see the word "Unlock...". The phone may stop responding at this point, in which case simply wait 1-2 minutes to ensure it is finished doing what it was doing, and then manually reboot it.
Boot into fastboot again and now your device should say "Device is unlocked. Status 3"

[Guide] How to do OTA on stock rooted Mi A1

Scenario
You are rooted with systemless SuperSU.
You have untouched /system partition.
You have unlocked bootloader.
What you'd need
fastboot and adb from platform-tools.
tissot_images_xxx.tgz - Stock ROM for your current version (before the OTA).
cfar_xiaomi_mi-a1_tissot_xxx.zip - CF-Auto-Root package for your current version (before the OTA).
SR5-SuperSU-v2.82-SR5-xxx.zip or a later version
How to install OTA
Uninstall FlashFire if it's installed. It hijacks OTA installation but fails as the device is not (yet?) supported.
Start the OTA installation. (Settings > About phone > System update)
Restart the device. You'd get into a boot loop because of the patched boot image.
Hold down the power + volume down buttons to get into Fastboot mode.
Code:
fastboot getvar all
to find out the current active slot.
Extract boot.img from tissot_images_xxx.tgz.
Code:
fastboot flash boot_x boot.img
where x is the current active slot.
Code:
fastboot reboot
You'd see the update engine screen for a bit, and then it'd reboot again.
Once you're back in Android, you should see that you're on the latest version. (Settings > About phone)
How to root for both slots
Wait for "Finishing Android update..." to complete (if it's still not done yet).
Code:
adb reboot-bootloader
to get into Fastboot mode.
Code:
fastboot getvar all
to find out the current active slot.
Code:
fastboot set_active x
where x is the inactive slot.
Extract boot.img from cfar_xiaomi_mi-a1_tissot_xxx.zip.
Code:
fastboot boot boot.img
You'd see nothing happen for a while. Just be patient. It'd reboot automatically and it'd take a while.
WARNING: Do not flash this image. If you accidentally flash it, you can reflash the stock boot.img.
Click to expand...
Click to collapse
Once you're back in Android, you should see that you're on the old version. (Settings > About phone)
Install FlashFire.
Code:
adb push SR5-SuperSU-v2.82-SR5-xxx.zip /sdcard/
(adjust the filename accordingly).
Code:
adb shell "su -c 'echo BINDSBIN=true > /data/.supersu'"
to install SuperSU in SBIN mode. Recommended.
Run FlashFire. Add "Flash ZIP or OTA" action and select the SuperSU zip. Select Slot A.
Add "Flash ZIP or OTA" action and select the SuperSU zip. Select Slot B.
Wait for "Finishing Android update..." to complete (if it's still not done yet).
Hit the flash button. Wait while FlashFire does its job. Be patient. It might reboot a few times. Do not interrupt the process.
Code:
adb reboot-bootloader
to get into Fastboot mode.
Code:
fastboot getvar all
to find out the current active slot.
Code:
fastboot set_active x
where x is the inactive slot.
Code:
fastboot reboot
and you're done.
If you want to read this in Markdown: https://gist.github.com/teohhanhui/98810ee282292157e8290e7e3ed87537
References / Credits
Guide on how to root mi A1 all future updates
Root new OTA updates [September Update]

General P11 plus 616f installation rom gsi + root

Start by downloading the official stock rom. If you had a problem with the installation or just want to go back to the original usage
Flash SP Tools
- download the latest version of Android sdk platform-tools
- Put in the platform-tools folder your boot.img and vbmeta.img that you have copied from your previously downloaded official rom.
- Then download the generic system image you want to install, put it in the platform-tools folder and rename it GSI.img
- Put your smartphone in developer mode, in the settings press 7 times on the build number
- In the menu Options for developers that appeared, you must enable OEM unlocking, enable USB debugging
- Connect the smartphone to the computer, in Configuration usb choose Connection sharing via usb
accept the requested authorization on your smartphone,
- In the platform-tools folder enter the command
adb reboot bootloader
fastboot flashing unlock Press VOL+ to confirm
fastboot flashing unlock_critical Press VOL+ to confirm
fastboot --disable-verification flash boot boot.img
fastboot --disable-verify flash vbmeta vbmeta.img
fastboot -w
fastboot reboot fastboot The tel switch to FastbootD mode and wait for a moment before entering the following command
fastboot delete system
fastboot delete-logical-partition product_a
fastboot --disable-verity --disable-verification system flash Gsi.img Wait for a moment
fastboot -w
fastboot bootloader
fastboot delete user data
fastboot reboot
Lenovo then logo rom gsi and install
evolutionx rom
Releases · ponces/treble_build_evo
Script and patches for building PHH-Treble Evolution X - ponces/treble_build_evo
github.com
rom lenovo and flashtool 616f
https://mirrors.lolinet.com/firmware/lenovo/Tab_P11_Plus/TB-J616F/TB-J616F_S240155_230210_ROW_SVC.zip
https://mirrors.lolinet.com/firmware/lenovo/Tab_P11_Plus/flashtool/MTK_Flash_Tool_v5.2104_P522.zip
Last tested rom that works
https://private.projectelixiros.com/thirteen/gsi/ProjectElixir_3.6_gsi-13.0-20230223-1108-OFFICIAL.img.xz
Root lenovo 616f
Install the Magisk app to your phone and install
In the Options menu, enable both the Preserve Force Encryption and Recovery Mode options.
Choose Select and Patch a file.
Browse to the extracted boot.img file and select it.
Magisk will now load the boot.img file and start patching.
Then the patched patched boot image file will be saved as magisk_patched.img in Internal Storage Downloads.
The file will be named as magisk_patched.img.
Transfer the magisk_patched.img file to the platform-tools folder.In the platform-tools folder enter the command
adb reboot bootloader
fastboot flash boot magisk_patched.img
fastboot reboot
successfully rooted
Magisk 25.2
https://github.com/topjohnwu/Magisk/releases/download/v25.2/Magisk-v25.2.apk
Can you make a video to review that rom on p11
It has only one flaw,
The PC does not recognize the tablet, it can only be charged, files cannot be transferred and adb does not work either.

Categories

Resources