TWRP and root for Doogee DG280 Leo Lollipop - Android General

This is my first contribution to XDA. It's a bit difficult to find a working TWRP custom recovery for Doogee DG280. I've found one that works on 4PDA russian site. Credits go to corresponding developers.
Before installing (very important if you don't want your device bricked):
Install only from Lollipop R15 stock ROM, not the KitKat ROM!
you need to have memory reparted (6GB internal/88MB external)! Follow thread: https://forum.xda-developers.com/showpost.php?p=65410728&postcount=26. I can give precise instructions if someone is interested
Installation:
Unlock bootloader. Stock Lollipop doesn't have an unlock bootloader entry in developer options. Proceed by putting device in fastboot mode and fastboot oem unlock. This action will perform a factory reset, so make backups previously. Your waranty is void.
Download archives recovery-twrp3.0.zip and update-recovery.zip below. This last one is a patch that prevents the replacement of the stock recovery at boot.
Unzip recovery-twrp3.0.zip, you'll get a scatter file suitable for a (6GB/88MB) partition layout and an image file. Copy update-recovery.zip to the SD card.
Open the SP Flash Tool, select the extracted scatter file (corresponding recovery image file is selected), click Download and connect the phone (after turning it off and removing the battery).
Once flashed insert the battery and clamp the Power button and Vol +, hold until the bootloader options appear (about 10 seconds). Using Vol +, select Recovery Mode and press Vol-.
In TWRP, select Install -> (Up A Level) -> sd_card -> update-recovery.zip and move the slider to the right to install.
After installation, go back to the main menu TWRP and pull out the battery. Turn the device on. (Note: this one I don't understand, why not to reboot to system directly? Perhaps to be on the safe side?)
TWRP is installed.
Note:
Perhaps recovery.img can be installed via fastboot instead of SP flash tool, although I haven't tried it:
Code:
fastboot flash recovery recovery.img
Rooting:
Now rooting is easy. Either install integrated SuperSU when prompted by TWRP and then upgrade to last one in Play Market, or flash recent zippable SuperSU in TWRP as usual
Downloads:

Related

Alcatel Flash or 6042D Stock ROM, ROOTING, CWM RECOVERY

I am not a android guy but faced lot of challenge in finding the Stock ROM for Alcatel Flash or TCL 6042D or Alcatel 6042D. Found one here but having few corrupted files due to which "settings" "message" and few others didn't worked well and in fact frequent crash. Fortunately I had another 6042D to my relative and I took CWM backup of that device and would like to share with you.
Please follow the following steps and don't do otherwise, as only these settings worked for me, other settings may not work. Please Note That these steps are applicable provided that required driver for that device is installed properly.
STEP-A: Download these three files. Please add https: to all links.
1. Stock Recovery and Scatter File package.
//drive.google.com/file/d/0B-BBKAO9380FSkI0UUMxNDc4WEk/view?usp=sharing
2. SP Flash Tool Software
//drive.google.com/file/d/0B-BBKAO9380FRjV2dF81c1VLY1E/view?usp=sharing
3. CWM Backup package
//drive.google.com/file/d/0B-BBKAO9380Fb0NoWTNTLWhtQjA/view?usp=sharing
4. Extract the three files
STEP-B: Recovery Install. No root required
1. Go to sp flash tool folder and run it.
//drive.google.com/file/d/0B-BBKAO9380FMU1NUlFZQzFVNWc/view?usp=sharing
2. Then load scatter for the device from "SPtool_stock_recovery_scatter_OT6042D" folder.
//drive.google.com/file/d/0B-BBKAO9380FRFZPRElfdDAwR0E/view?usp=sharing
//drive.google.com/file/d/0B-BBKAO9380FWmhXZmlDLU5oQzQ/view?usp=sharing
3. If scatter file loaded successfully then you will see "boot" and "recovery" is marked. You must unmark or deselect the boot file. Then double click the recovery file to choose a recovery. Do not choose the recovery from "SPtool_stock_recovery_scatter_OT6042D" folder.. Choose the recovery from "\clockworkmod\backup\2015-10-16.14.26.59\recovey.img". Then press download button.
//drive.google.com/file/d/0B-BBKAO9380FUmtsMHI2WTRMakU/view?usp=sharing
//drive.google.com/file/d/0B-BBKAO9380FQzJLNjB2cDNiQ2M/view?usp=sharing
4. Connect your phone to Computer USB. Then turn the Phone completely OFF. Then after few seconds you will see the SP flash tool is working and sending file. File transfer rate and status will be shown in status bar.
5. If things are ok then you will see a Green Circle as "OK" symbol. And you are done with installing CWM recovery. Now turn the Phone ON.
STEP-C: Installing Stock ROM
1. Copy the extracted "clockworkmod" folder to the root directory of microSD card.
2. Turn OFF the Phone and wait for vibration. After vibration press "UP VOLUME + DOWN VOLUME + POWER" key same time and wait to see Alcatel logo. Release the buttons.
3. You should see the CWM recovery screen. Now follow the steps
wipe data/factory reset
wipe cache
Goto Advance then wipe dalvic cache and go back
backup or restore
restore
Choose the file from "clockworkmod\backup\2015-10-16.14.26.59"
chose yes in confirmation screen
Wait to see "restore from SD card complete"
4. reboot system now. First boot will take some time . Have patience.
Links are from Google drive. Sometimes google does not allow download of zip files. Let me know if it happens.
Thanks and Jajakallahu Khairan
1$ payment error
i have flashed the image file, and the system prompts for making 1$ payment, however the system prompts an error system ui not responding, now i am unable to make payment and unable to use the phone either

Samsung SM-J105F root

can somebody with a recovery that I can mode to run on my phone help? I am tired of using 360root.apk I want to use SuperSU and not these apps with Chinese interface
Here are the steps I followed after some extensive reading of other peoples methods and trying every possible app that would not work:
How to install TWRP and root the Samsung Galaxy J1 Mini (SM-J105F)
The device is powered by a Spreadtrum chipsets and Android 5.1.1
Basically what you need to do to root your Samsung, is to install/flash a custom recovery such as TWRP, which other than the limited functions of the OEM recovery, has all the features you need to flash a custom rom. You then boot into this TWRP recovery and use the touch menu to install/flash the SuperSu xx.zip file to give you root. It seems that other methods to root do not work on this specific phone.
Here is an Odin3 flashable *.tar md5 TWRP file that will also make it possible to root your Samsung Galaxy J1 SM-J105F, unfortunately it has to be paid for. Find it here: http://www.saroms.co.za/product/samsung-galaxy-j1-mini-j105f-root-file/ - and follow the bellow steps to flash the TWRP custom recovery and after rooting your J105F Samsung Galaxy J1 Mini.
Note: Odin3 only flashes with xxxx.tar or xxxx.tar.md5 files. TWRP can also flash xxxx.zip files.
To get into Odin mode or Download mode on the phone, switch off phone and unplug any cable to your PC or charger. Now hold in the Home button, the lower part of the volume button (V-) and the power button simultaneously. The phone will boot into a recovery screen and if you push the top part of the volume button (V+) you will switch to the Download screen. Only now can you plug your phone into the PC and run Odin3
Once TWRP recovery has been loaded, do the following to boot into TWRP recovery: Disconnect any cables to charger or PC. Switch off the phone. Now hold in the Home button, the upper part of the volume button (V+) and the power button simultaneously. The phone will boot showing the Teamwin screen and then the menu buttons which work from the touchscreen.
If you do not want to pay for the correct TWRP recovery for your specific device, then use Google to search for the file: TWRP SM-J105H_F_M_Y 5.1.1.tar
1. Download the following files:
(i) OEM Samsung firmware for your phone in case you have to fall back and reinstall the firmware i.e.
XFV-J105FXXU0AQA3-20170329071250.zip
(ii) TWRP SM-J105H_F_M_Y 5.1.1.tar or any other custom TWRP recovery file for your model phone.
(iii) UPDATE-SuperSU-v2.79-20161211114519.zip
2. Go to Settings > About device > Software Info > and tap on Build number a few times until you are a developer.
3. You should now see and tap on 'Developer options' if you go back to Settings.
4. In Developer options. turn on 'OEM Unlock' by moving the slider to the right, Enable. Never set that setting to off once you have loaded a custom firmware or TWRP custom recovery! You phone will brick and only show *“Custom binary blocked by FRP lock” after the next reboot!! (FRP = Factory Reset Protection)
* If so install OEM firmware with Odin3 and start again.
5. Copy the UPDATE-SuperSU-v2.79-20161211114519.zip file to the root of your internal storage SD card (not external). This will be installed by using TWRP recovery. Use your PC to do this.
6. Turn the device off and boot into "Download Mode” (V- and Home and Power ... and then V+)
7. Run the Odin3 application on your PC and load the recovery *.md5 file under 'AP' or load the file: TWRP SM-J105H_F_M_Y 5.1.1.tar.
8. Connect the MS-J105f to your PC and let Odin3 connect and ID:COM will go blue and show i.e. 0 : (COM4) > then click Start.
9. The SM-J105F will power on when done. Disconnect cable and power it off again.
10. Boot into recovery (V+ and Home and Power) will now boot into TWRP.
11. You will now see the TWRP menu touch screen.
12. Tap Install > scroll to the "UPDATE-SuperSU-v2.79-20161211114519.zip" file you downloaded and copied to the phone memory tap it.
13. Swipe at the bottom slider to confirm install.
14. Tap Reboot to system when done and you should be rooted.
15. Install and run SuperSU from the app store and run.
16. Install and run Root Checker Basic.
To reinstall the OEM firmware, download the proper xxxx.zip from the Samsung website.
You must the extract the xxx.tar.MD5 file from the download
If you can get into the Download screen on your SM-J105F then use Odin3 as above, just under PA select the OEM file xxxx.tar.MD5 (it takes a short while to select properly as it a very large 2 gb file after extracting)
Hope this helps someone else. Thanks to all whose posts and contributions helped me.

Rooting CLT-L29 (P20 Pro) UK with EMU 9.1.0.381 and Magisk (and TWRP if you want)

P20 Pro with EMUI 9.1 (9.1.0.381 c782e11r1p11 clt-l29) and root!! But it only lasts until a reboot according to Magisk
Note with the latest Magisk I still cannot get root to persist after a reboot. (v20.4 20400)
Rooting without TWRP Recovery
Terms
Recovery Image= an image which runs on your phone to facilitate recovery, we are looking to patch it with a magisk binary
Stock Firmware = the OS installed on your phone by the manufacturer/network operator (branding). We aren't looking to replace this, but we do need to extract a file from the version you currently have
Stock Recovery = the recovery image installed with the P20 'eRecovery'
Recovery RAMdisk - This is where the recovery image is flashed. Alternative locations are the bootloader or the recovery partition. None of these work with EMUI 9.1
Commands are in italics
Prerequisites
adb binary
fastboot binary
Phone is backed up (unlocking the bootloader will factory reset and erase all data/apps)
Phone is plugged in and showing with 'adb devices'
You have a bootloader code
0. Unlock your bootloader
adb reboot bootloader
Once in fastboot mode type
fastboot oem unlock <unlock code>
Let the process finish.
1. Extract stock recovery image (RECOVERY_RAMDIS.img) from the Stock Firmware using Huawei Update Extractor
Get Stock Firmware for your version from :https://pro-teammt.ru/en/online-firmware-database/
Get Huawei Update Extractor from https://forum.xda-developers.com/showthread.php?t=2433454
Get the RECOVERY_RAMDIS.img file using these instructions https://www.theandroidsoul.com/extract-huawei-firmware-update-app
Rename the RECOVERY_RAMDIS.img file something logical based on your EMUI version e.g. I've renamed mine RECOVERY_RAMDIS_9_1_0_381_STOCK.img
2. Using Magisk Manager app, patch the stock recovery image extracted in Step 1
Get Magisk Manager and install the APK (IT's NOT on the Play Store (despite being called the same name)
Magisk Manager is available here. I would suggest installing a stable version or you maybe risking a boot loop.
https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
https://forum.xda-developers.com/apps/magisk/dev-magisk-canary-channel-bleeding-edge-t3839337
or google for it. This forum blocks the URL for some reason.
Once you have installed the APK...
Tap 'Install' next to 'Magisk is not installed' .
Tap 'Install' again
Tap 'Select and Patch a File', then choose the file RECOVERY_RAMDIS_9_1_0_381_STOCK.img (or whatever you called it)
3. Copy the patched recovery image file Magisk just created to your PC
(Magisk will tell you where it put it, generally in your 'Downloads' folder)
4. Flash the Patched Recovery Image using fastboot mode
Note not possible to flash the boot or recovery with Magisk/TWP on EMUI 9+ you have to flash recovery_ramdisk
adb reboot bootloader
fastboot flash recovery_ramdisk RECOVERY_RAMDIS_9_1_0_381_PATCHED.img
(replace RECOVERY_RAMDIS_9_1_0_381_PATCHED.img file with whatever you called it)
NOW read step 5. Get ready and then...
fastboot reboot
5.This step is very important l!
As soon as you issue the reboot command and the screen goes blank, you will need to press and hold volume up and power buttons simultaneously for a few seconds.
When you're doing this, unplug the USB cable. As soon as you see the Huawei logo, release BOTH keys
You will see the unlock warning, but if you did it right, you will not see instructions on the screen telling you what to press to continue etc
If you see instructions telling you to press a key combination to continue, you didn't do it right and will need to start again at step 4 after the phone reboots.
6. Check Root with Magisk Manager/Another root tool
TWRP
You can also flash TWRP using the version at https://dl.twrp.me/charlotte/ or
Alternative: Install Magisk from TWRP? search google for "install-twrp-recovery-root-huawei-p20-pro" to find a link from the custom droid
Just replace the file in step 4 with the .img file from that URL
You can only flash TWRP or MAGISK. I've not been able to load the Magisk (optained from the Magisk Manager) through TWRP as the internal storage is not accessible
and OTG storage doesn't seem to be accessible either.
I am not 100% sure how this works as magisk occupies the recovery_ramdisk just like twrp:
Connect your phone to the PC (while it’s in TWRP) mode.
In TWRP, go to ‘Advanced’ and enable ‘ADB Sideload’.
Then, enter the following command on PC: adb sideload Magisk-v20.3.zip
Boot Lockup
If you experience a boot lockup (especially when trying to boot to recovery with power + vol up) you can do an adb reboot and boot with holding vol up
This will open EMUI erecovery and you can then choose reboot to boot normally to the system.
It all worked for me, for CLT-L09. And even keeping root after rebooting. With standard Magisk 20.4.

[Error][fix][Solution][Guide]Errors in flashing custom rom in Lenovo A2016a40 and ways to tackle/fix them

CASE: After flashing lineageOs 14.1 on my Lenovo A2016a40 (chipset: MT6735M) using TWRP, I lost my IMEI and Baseband version which made my phone just like a screen with no calls, no connection, no internet. so, basically I had no option than to flashing the stock ROM (eventually I need that custom ROM as that is an upgraded one). I flashed only secro.img on the custom rom using SP Flash Tool that caused a bootloop ( I again had to took help of the stock rom ).
Now, the question is:
1. Can I flash secro.img on that custom Rom, if yes, how?
2. If not, how can I get back my baseband version?
today I flashed ressurection remix 5.8.4 on the mentioned device and that caused the exact same problem as mentioned.
Well, today I succeed after 2 weeks of sleepless nights in search of a solution that elaborates how to flash a custom rom successfully on the mentioned device(i.e. Lenovo A2016a40 (also known as Lenovo vibe B)). Now, as I felt the frustration of seeing the phone without network and everything else, I want to mention the whole process I've gone through.
Here is the step-wise guide on how to flash a custom ROM on Lenovo A2016a40 (Hope it works with other devices too)
NOTE: Here in this tutorial I'm not asking you to try a custom rom, it's upon u to use custom rom or not. this tutorial is to guide those who has already stepped into the process and get into an error or so(hope not so). any damage to your device is solely your responsibility, try in your own risk if you want.
GOOD LUCK
BEFORE FLASHING:
1. Take your normally functioning device.
2. Root that device.
For Lenovo A2016a40 I've followed this neat and clean page and found it helpfull.
Here is the summary of that really clean page (the page is a bit outdated follow my paths for updated method (as in December 2020) ).
a) Download and install Magisk Manager app on your andrid device.
b) Launch the app and tap on "install" that is on the same slide as the logo, and then choose to patch boot image by tapping on "Patch Boot Image File" after which the patching process will start which will create a image file called "magisk_patched.img".
c) Transfer that magisk patched image file on your PC.
d) Connect your device to your pc where you have stored magisk patched image.
e) Now enable "USB Debugging" and "Enable OEM unlock" from Settings>Developer's option (or, Settings>About Phone>7x tap on Build Number>Settings Home> Developer's option)
e) (Assuming you have ADB and Fastboot installed, if not follow whatever google says.) Now, open cmd on the folder where you have kept that magisk pathced image by
Code:
Shift+Right Click
and selecting "Open Command window Here" and check for your device's connectivity by typing
Code:
adb devices
in cmd, and after confirmation(seeing device's serial number) type
Code:
adb reboot bootloader
to enter fastboot mode (Fastboot Mode written on screen), confirm connectivity by
Code:
fastboot devices
, being confirmed type
Code:
fastboot oem unlock
to unlock bootloader and then do press
Code:
Volume up
button to unlock bootloader.After seeing "Okay " on command window, type
Code:
fastboot flash boot magisk_patched.img
and finally
Code:
fastboot reboot
and then press and hold
Code:
power + volume 'up'
buttons of your phone for about 10 seconds and then navigate to 'Normal mode' by using
Code:
volume up
button and confirm by using
Code:
volume down
button and wait for device to start.
f) Check Root status using Root Checker like apps
2. Backup some important system files.
This step is essentially important. I got into this from this thread.
a) Install Root Manager or similar apps and grant them root permisions.
b) Head to /dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name folder.
c) Copy the mentioned files into a safe place(generally in external sd card) or newly created folder.
Code:
expdb
nvdata
nvram
proinfo
protect1
protect2
secro
d) Now, head to /data/nvram/md/NVRAM/NVD_IMEI and copy the file named
Code:
MP0B_001
to another safe place generally in external sd card.
NOTE: All the above mentioned files are important for your device's network functioning.
e) Now, backup or replace whatever you want to keep (personal things).
FLASHING:
1. Download your preferred custom rom(.zip file) strictly for your device and transfer them into the inserted sd card or phone internal memory.
2. Install a custom reecovery.
Download your preferred custom recovery. I've used TWRP custom recovery and going to describe processes for that only.
a) Connect your device to pc and confirm connect by above mentioned method from the downloaded folder and then unlock bootloader the same way as mentioned above.
b) After unlocking bootloader run the commands as mentioned below (press "Enter" after each line)
Code:
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot reboot
c) Now, enter the menu containing "Normal mode" option by the same mentioned method and this time select "Recovery mode" and you will get into TWRP custom recovery.
NOTE: Critical error can occur if you do pull out the battery and power off the device by any other means.
NOTE. After entering TWRP you can face an error saying
Code:
/data not mounting
or something like that, in that case head toward wipe section, select "Advanced wipe", select 'Data' and select 'Repair File system', then change partition style to "ext2" and then back into "ext4" and this solves the problem.
3. Backup your system and whatever you like. (generally "secro" "nvram" & "nvdata")
4. Free space for new custom rom by entering Wipe section and selecting the following
Code:
Dalvik/ART
system
Data
Cache
Internal Stoage (if you want to or optional)
5. Install your custom rom (with Gapps and Root if you want).
Enter "Install" section select and install .zip files for custom rom, gapps and root one by one or at once, whatever you want.
AFTER FLASHING:
Welcome to your literally new phone.
while you are expecting to celebrate it, you will find some of the most frustrating errors like Unknown Basband, Null IMEI.
Now to solve those errors follow the below mentioned points one by one
1. install root manager like app and grant root permission.
2. copy and paste the 7 files that you have copied earlier (expdb, proinfo, protect1, protect2, nvdata, nvram, secro ) to the path as " /dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name", if prompted select "Overwrite", then select the files and provide them all 9 permissions you will get in permission section for those files.
3. Reboot Device.
4. now, delete the folder named "nvram" in path "/data/nvram" to get your baseband version back, as mentioned in this thread, and it worked for me, you may have to try deleting it 3-4 times continuously.
5. Reboot device.
6.Now, copy and paste the copied 'MP0B_001' file to the path as "/data/nvram/md/NVRAM/NVD_IMEI" and similarly assign all the 9 permissions asked in permission window.
7. Set APN if needed. follow this tutorial and you may not be able to save changes (hope not), if so, try putting some random name in the 'Name' field like "avghbejugcbjnsjckln".
8.Reboot Device.
Enjoy the fresh new customization.
NOTE: Keep your device's stock firmware and sp flash tool with you. it will help you get your device back from a bricking type error. try in your own risk.

Can someone help me to understand this custom ROM installation?

Hello, I'm new here, I've been dealing with certain ROM mods for a little while. My test device is an old Samsung Galaxy S4 mini (GTI9195). Now I've been sitting for a few days trying to figure out how to bring my device up to date as best as possible. Lineage OS seemed the best to me. Unfortunately there is no officially confirmed software for my device directly from Lineage, which is why I looked elsewhere. I came across this thread on XDA: https://forum.xda-developers.com/t/...520-r890-unofficial-11-0-0-lineageos-18-1-for -s4-mini.4189967/ . The user arco68 is, so to speak, the boss among S4 mini modifications. Unfortunately, I can't find exact instructions anywhere (especially for the recovery) on how to install all the packages correctly. That's why I researched. I was able to record various steps, but cannot determine if they are correct. Can someone on this forum please help me? My steps:
1. Turn on developer options
2. Turn off OEM encryption (if available)
3. USB debugging on.
4. Download and install Android platform tools in Path
5. Download and zip Magisc
7. Put the phone in bootloader/fastboot/download mode (volume down + home)
8. Flash Team Win Recovery Project (or other custom recovery).
9. Restart phone and boot into recovery mode (volume up + home + power)
10. Erase all data
11. Copy Google Apps to Phone (Optional)
12. Copy Lineage OS (or other custom rom) to phone
13. Install packages one by one (OS first)
14. Reboot device
15. Wait and set up
Okay, First of all requirement-
A portable sd card- Because after flashing twrp, you might face issue where you can't access internal storage from twrp. That's because the phone might be encrypted. You have to decrypt it by flashing a "disable dm verity- forceencrypt.zip". In this case, you might not be able to transfer files from pc when booted into twrp. So, It's a smart move to insert a sd card containing all required files before to avoid these problems.
Another requirement is samsung drivers installed in pc. I will attach that file.
Follow these steps -
1/Unlock bootloader -Go to developer options. Turn on oem unlocking. It will tell you that you're going to loss all data. Proceed. If it doesn’t tell you anything, then there is definitely some extra process to unlock bootloader of your device.(search on internet)
2/Download your phone's official firmware in pc- it will help you if anything goes wrong. Search " Sm fw" on google. Go to first site. Create an account. Search the model number, Download a firmware that matches with all your device's information in "About phone".
3/ Download the lineageos rom and twrp recovery for your model. Then install device info hw from play store to check bits(32/64). Search open gapps. Go to the website. "arm" is for 32 bit & "arm64" is for 64 bit. Select which matches to your device’s bit. Then select the android version of the custom rom. Then select "Pico". Download the file. Next, download latest magisk 25.2 from github page. Rename the apk file to "magisk.zip" Move rom,gapps, magisk.zip to SD CARD. Keep twrp in pc.
4/In pc, download latest odin software. It's an special software for samsung download mode. (There is no fastboot mode in samsung)
5/Boot your device into download mode. And connect with pc.
6/In pc, extract the twrp file(If It's in zip format). Open odin software, Go to options, turn off auto reboot. Now select "AP" & select that extracted twrp file. Click open. Then hit start button.
(Note that most of the samsung devices can't boot stock rom after flashing twrp. So you have to flash custom rom to boot your device. Follow the next step)
7/Boot into twrp wipe>format data>type "yes". Press home button. Install>Select storage>SD card>select the rom.zip. Then add more zips> select the gapps.zip. Again, add more zips> select magisk.zip. After all, swipe to flash.
After installation, reboot device.
What if anything goes wrong?
Extract the stock firmware that you downloaded from sm fw. Connect device in download mode. Open odin, select AP,BL,CP,CSC file one by one. Start flashing. You device will be alive again.

Categories

Resources