How to go 100% stock using Ubuntu ? - Xiaomi Mi A2 Lite Questions & Answers

Hi,
I want to put my phone 100% stock. So i went here : https://github.com/tkchn/daisyinstall
But as i am using ubuntu and not Windows, i asume i have to use .sh instead of .bat. Is that correct ?
So if i open a terminal in the folder were the rom is extracted and do :
chmod +x flash_all.sh
adb reboot bootloader
bash flash_all.sh
It will work right ?
Phone as at the moment usb debugging activated and bootloader unlocked. No root.
OS version is 10.0.10.0.PDLMIXM so i must use the same or i can use the recommanded version here : https://github.com/tkchn/daisyinstall ?
Thanks !!

neopbm said:
I want to put my phone 100% stock. So i went here : https://github.com/tkchn/daisyinstall
But as i am using ubuntu and not Windows, i asume i have to use .sh instead of .bat. Is that correct ?
Click to expand...
Click to collapse
Yes.
neopbm said:
So if i open a terminal in the folder were the rom is extracted and do :
chmod +x flash_all.sh
adb reboot bootloader
bash flash_all.sh
It will work right ?
Phone as at the moment usb debugging activated and bootloader unlocked. No root.
Click to expand...
Click to collapse
Yes. That's the way to fastboot flash a stock image. It writes everything, including user data.
neopbm said:
OS version is 10.0.10.0.PDLMIXM so i must use the same or i can use the recommanded version here : https://github.com/tkchn/daisyinstall ?
Click to expand...
Click to collapse
You can flash any stock flashboot (there's a thread on here that collects them). There can be issues downgrading from pie to Oreo (search for a thread with hints) but otherwise, any version should be fine.

Thanks, it works !
So the flash_all.sh file flashes the rom but leave the bootloader unlocked. If i want to relock the BL i assume i have to use flash_all_lock.sh instead ? Or flash_all_lock_crc.sh ?

neopbm said:
Thanks, it works !
So the flash_all.sh file flashes the rom but leave the bootloader unlocked. If i want to relock the BL i assume i have to use flash_all_lock.sh instead ? Or flash_all_lock_crc.sh ?
Click to expand...
Click to collapse
Both are the same, but I prefer with lock_crc one to fully 100% stock

Jebreto08 said:
Both are the same, but I prefer with lock_crc one to fully 100% stock
Click to expand...
Click to collapse
OK Thanks. So if the "lock" operate on the Bootloader, what the crc do ?

neopbm said:
OK Thanks. So if the "lock" operate on the Bootloader, what the crc do ?
Click to expand...
Click to collapse
crc used as error detection technique, for more explanations : https://en.wikipedia.org/wiki/Cyclic_redundancy_check
basically it check your storage in case there's corrupted or raw data

Related

[Tutorial][ION] Flashing Firmware and Rooting (Updated 15/11/2012)

[FONT=Albany, Arial]Flashing latest firmware (upgrading & updating) and rooting[/FONT]
For Sony Xperia ION LT28 Series – Locked and Unlocked Boot loaders.
THIS TUTORIAL IS IS NOT APPLICABLE FOR ROOTING ICS 6.1.E.3.7 LT28i and LT28h FIRMWARES.
To root these firmwares:
1. Follow Spectre's thread for Pre-rooted firmwares
OR
2. My thread for flashing stock kernel with root. (unlocked boot loaders only)
Click to expand...
Click to collapse
This guide is for everyone who wishes to flash the latest ION firmware and then proceed on to root it.
Though this guide is for Xperia ION, but I suppose, this is quite universal and applicable to all Xperia Phones.
Read carefully and understand clearly the process before starting the actual process of flashing. When in doubt, ask your queries in this forum and wait for it to get answered.
The Xperia ION Lt28 exists in 4 variants.
AT&T version with LTE. ( Lt28at )
Rogers Version with LTE. ( Lt28rogers )
International Version with LTE. ( Lt28i )
Version without LTE. ( Lt28h )
Getting Ready
There a a few very essential things that need to be sorted out before you could flash a firmware. I am listing them below.
Connecting the phone to the PC and making it recognize the phone.
(Windows only):
When you connect the phone to the PC for the first time, the phone will prompt you to install the PC Companion S/w on your pc. Go ahead and Install it. In addition to this, essential drivers required for connectivity will also be installed. In windows , both MTP and MSC modes of connectivity work. MTP mode allows access to both Internal and External SD card. MSC mode will allow access of only the External SD card.
Click to expand...
Click to collapse
(Linux Only):
It is a little tricky in the case of linux to achieve connectivity. The following are the steps you need to follow:
1. Open Command Window, “ terminal” in case of Gnome base Linux and “konsole” in the case of KDE based Linux. It should be easily accessable through menu.
2. Inside the Command Window type “ sudo gedit /etc/udev/rules.d/51-android.rules” if you are using Gnome or “sudo kwrite /etc/udev/rules.d/51-android.rules” for KDE.
3. Add the below lines into the file and save it.
#Sony Ericsson
SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", MODE="0666"
4. Execute the following command from command window:
chmod a+r /etc/udev/rules.d/51-android.rules
5. Restart Linux now.
6. Connect the phone to the PC, open Command Window and type “ lsusb” without the quotes and press Enter. You should see an output, and you should see a line with the following:
ID 0fce:6177 Sony Ericsson Mobile Communications AB
7. If you don't see it, then you have made a mistake in the previous steps. Retrace the steps again to see that they are correct.
8. Open the phone, go to settings and select Xperia Settings and then select connectivity. Select USB Connection mode as “ Mass Storage Mode (MSC)”. The MTP mode does not work in linux. The support is not yet available.
9. Now when you connect the phone to the Pc it will mount the external_sd card automatically.
The above steps just ensures that the Phone is recognized by the PC and
Click to expand...
Click to collapse
Download and Install flashtool and Drivers:
Download flashtool:
Link1 ( http://androxyde.github.com/)
Link 2 Linux ( http://www.sendspace.com/file/0pz8ru)
Link3 Windows ( http://www.mediafire.com/?9d64a4twrqd3w7y)
Click to expand...
Click to collapse
Install Drivers:
( Windows Only) After installing Flashtool, navigate into the flashtool folder and go into drivers folder. Double click on the Flashtool-drivers.exe to install the drivers. Restart the computer. This step is not required for Linux Users.
Click to expand...
Click to collapse
Download and Install Android Sdk. (Not Mandatory)
Downloading Android Sdk:
Android Sdk can be downloaded from here. ( http://developer.android.com/sdk/index.html)
Click on the “SYSTEM REQUIREMENTS” to check that you sysytem meets the minimum requirement.
The downloads are under “SDK Tools Only” section.
Click to expand...
Click to collapse
Setting up Android Sdk:
( Windows Only) Installing in Windows is as simple as clicking in the downloaded exe. After installing, start the Sdk Manager. In windows it can be accessed from the start menu. Select Tools Checkbox and then Install Button. Wait for the installation to complete.
Click to expand...
Click to collapse
Set up the PATH environment variable to access adb:
( Windows 7)
Select Computer from the Start menu
Choose System Properties from the context menu
Click Advanced system settings > Advanced tab
Click on Environment Variables, under System Variables, find PATH, and click on it.
At the end add the path to android-sdk tools and platform-tools folder.
(Windows XP)
Start -> Control Panel -> System -> Advanced
Click on Environment Variables, under System Variables, find PATH, and click on it.
At the end add the path to android-sdk tools and platform-tools folder.
Click to expand...
Click to collapse
Setting up Android Sdk:
(Linux Only)
Right click on the downloaded .tgz file and extract it. Probably, it will create a folder “android-sdk-linux”. Copy the folder to root of your home. Open the file manager and navigate to the android-sdk-linux/tools folder and click on android script to execute it.
It will start the Android Sdk Manager. Select Tools Checkbox and then Install Button. Wait for the installation to complete.
Click to expand...
Click to collapse
Set up the PATH environment variable to access adb:
(Linux Only)
Now to set up the PATH environment variable to access adb. For this you need to edit the .bashrc file to setup the path so that adb can be accessed by just typing the command.
Open the command window and type “gedit ~/.bashrc” or “kwrite ~/.bashrc” and add the following lines and save it.
export PATH=${PATH}:~/android-sdk-linux/tools
export PATH=${PATH}:~/android-sdk-linux/platform-tools
Restart the PC.
Click to expand...
Click to collapse
Proceed to POST#2 for FLASHING Steps.
Flashing and Rooting ICS on any Xperia ION
Flashing Firmware:
Now comes the easiest part.
So if you have completed the steps from post#1, then you are ready to flash the firmwares. It does not matter if your ION is on Gingerbread or Ice Cream Sandwich, the process of flashing remains the same. Flashing firmwares does not require Bootloader's to be Unlocked.
First and foremost you need to downlod the latest firmware for your Phone. So you head over to this site.
Firmware Links ( http://forum.xda-developers.com/showthread.php?t=1752345 )
After downloading the firmware, follow the Screen shot attachments with the steps below:
1. Start flashtool and click the lightening icon.
2 .Select Flash Mode.
3 .Select firmware to flash.
4. Click OK to start flash.
5. When the screen 5 pop's up, power down the phone. Press power + volume down button simultaneously. If the green led lights up, then the phone is in flash mode.
Flashtool will start flashing automatically. Once it is done flashing, it will show a message that the phone is disconnected.
Now detach the usb cable from the phone and press the power button to start the phone.
Click to expand...
Click to collapse
Proceed to POST#3 for ROOTING Steps
Rooting:
FOR LOCKED BOOT LOADERS
As per the developer of this method, it works only on ICS and JB.
To root the phone, first you need to download the rooting kit from here.
( http://forum.xda-developers.com/showthread.php?p=31545627#post31545627 )
At the time of writing, the latest version available is Version 15. ( http://ul.to/h44f6vni )
This is known to work well with Ion.
Also there is Version 13 which works well for me. ( http://www.mediafire.com/?1q4nt6b63ooaf1s )
Click to expand...
Click to collapse
This method of rooting requires the Backup & Restore utility to be installed on the phone. If it is not available by default, on your phone, download it from here. ( https://docs.google.com/file/d/0ByrrmqPijqISWElSQjV1aWVkMVk/edit?pli=1 ) and install it as a normal app.
Click to expand...
Click to collapse
Now on the phone, got to settings/developer options for ICS and enable USB debugging. Without this your phone will not be recognized by adb and you won't be able to root your phone.
Click to expand...
Click to collapse
Unzip the downloaded rooting kit to the place of your choice.
(Windows only) Connect the phone to the pc. Now navigate to the folder which contains the unzipped contents of the rooting kit. Click on the RunMe.bat. Now follow the instructions.
Click to expand...
Click to collapse
(Linux Only) I don't know if the Linux script in the latest version works or not. But it works in the the Version 13, which i have attached to this post. Open the terminal window and navigate to the folder where you have unzipped the rooting kit. Now type the following command and follow the instructions.
chmod +x runme.sh
sudo ./runme.sh
Click to expand...
Click to collapse
Click to expand...
Click to collapse
FOR UNLOCKED BOOT LOADERDS
Flash the stock kernel with Root + Cwm + Init.d support.
Download this kernel.elf and flash it using flashtool.
The Download links and Instructions are on the OP of THIS post.
Click to expand...
Click to collapse
Click to expand...
Click to collapse
LINKS
Here is Captainkrtek's ADB GUIDE
Click to expand...
Click to collapse
very well put together guide. thx
now need root instructions for ICS
vladvertigo said:
now need root instructions for ICS
Click to expand...
Click to collapse
Rooting method of Xperia S works on our phone.
http://forum.xda-developers.com/showthread.php?t=1742992
This should go in a sticky as installing ice with LTE too many threads and right now.
Sent from my LT28at using xda premium
Updated Post 2 with rooting method for ICS.
I used this to root before you posted it but it slowed ICS down to point out was almost unusable. Any thoughts on why? Did I screw something up maybe?
Sent from my LT28h using xda premium
Recon Freak said:
I used this to root before you posted it but it slowed ICS down to point out was almost unusable. Any thoughts on why? Did I screw something up maybe?
Sent from my LT28h using xda premium
Click to expand...
Click to collapse
I followed the above instructions as it is. I had pre-rooted gingerbread.
ICS is pretty fast, not as fast as Gb, but no lags either.
May be some problem with the ICS Rom zip. Try downloading it again. None have reported this problem.
I'm running it now and it flies. But as soon as I root it happens. I tried it twice from stock ATT and generic .111.
Sent from my LT28h using xda premium
Am I reading wrong? But I currently have ICS. So do I need to like re flash gingerbread then go back to ICS?
Sent from my Sony Xperia Ion
wolf0491 said:
Am I reading wrong? But I currently have ICS. So do I need to like re flash gingerbread then go back to ICS?
Sent from my Sony Xperia Ion
Click to expand...
Click to collapse
I think You will need to. Both the batch files need to be executed, to be able to get root.
ganeshbiyer said:
I think You will need to. Both the batch files need to be executed, to be able to get root.
Click to expand...
Click to collapse
That's just annoying haha. I'll wait
Sent from my Sony Xperia Ion
So I want to make sure I have this straight!
I have a stock ATT Ion 2.3.7
3. Application Settings: [Unknown sources] checked {Allowed}
4. Application Settings: Development [USB debugging] checked {Allowed}
5. Run Step 1.bat
6. Install Ice Cream Sandwich without wiping anything.
(wipe data, wipe cache and wipe apps log are not selected).
Once flashing is done, start the phone manually. It does not reboot automatically.
7. Application Settings: [Unknown sources] checked {Allowed}
8. Application Settings: Development [USB debugging] checked {Allowed}
9. Run step 2.bat
And this will give me ROOTED ICS 4.0.4 with locked bootloader?
Then what do I flash to get my LTE radio back? Just the Stock ATT baseband?
Sorry for the noobish question, my Ion is less than a week old and I havent picked insurance through best buy yet so I don't want to brick before I insure it
vpllover said:
So I want to make sure I have this straight!
I have a stock ATT Ion 2.3.7
3. Application Settings: [Unknown sources] checked {Allowed}
4. Application Settings: Development [USB debugging] checked {Allowed}
5. Run Step 1.bat
6. Install Ice Cream Sandwich without wiping anything.
(wipe data, wipe cache and wipe apps log are not selected).
Once flashing is done, start the phone manually. It does not reboot automatically.
7. Application Settings: [Unknown sources] checked {Allowed}
8. Application Settings: Development [USB debugging] checked {Allowed}
9. Run step 2.bat
And this will give me ROOTED ICS 4.0.4 with locked bootloader?
Then what do I flash to get my LTE radio back? Just the Stock ATT baseband?
Sorry for the noobish question, my Ion is less than a week old and I havent picked insurance through best buy yet so I don't want to brick before I insure it
Click to expand...
Click to collapse
Download the stock GB AT&T, when flash de-select all wipes. Checked everything esle below that Except baseband.
Sent from my LT28h using Tapatalk 2
Thanks for the guide. I had to do it solo, You might want to add in to guide for the noobs how to get into flash mode.
Where is the att ftf files located? Just in case something goes wrong
Sent from my LT28at using XDA Premium App
erichall82 said:
Where is the att ftf files located? Just in case something goes wrong
Sent from my LT28at using XDA Premium App
Click to expand...
Click to collapse
Firmwares are stickied at the top of the ion General forum.
ganeshbiyer said:
Rooting method of Xperia S works on our phone.
http://forum.xda-developers.com/showthread.php?t=1742992
Click to expand...
Click to collapse
FYI - this does have CWM in it, but because it was designed for the Xperia S it doesn't work completely. If someone would be so kind to redesign the CWM in that file for us that would be awesome!

Rooting LG H735 G4 Beat

hi, tried to search everywhere but to no avail soo far.. does anyone knows if there is an existing root guide for LG G4 Beat? its sort of a diff model but there's no sub for it so i guess ill put it at here since its still under G4 family.. :/
Do you have Android 5.0 or 5.1 installed?
First of all. Before you start to try root, download the kdz file for your phone.
The kdz is needed if something went wrong (e.g. phone not booting).
You can use the LG Flash Tool to flash the kdz to a bricked phone.
Use this link with your IMEI:
Code:
http://csmg.lgmobile.com:9002/csmg/b2c/client/auth_model_check2.jsp?esn=IMEI
If it works, please post the download link for the "kdz".
Or better post the output too, but delete your IMEI!
Your link will only work if you type:
csmgdl.lgmobile.com/dn/downloader.dev?fileKey=
and then add the rest of your url instead of the given link.
It's worth trying. You need to get a partition layout. Then @autoprime will give a full command to run in DL mode for dumping the system image, and flashing it once it's been injected with root. I can inject it for you once you have the system.img dump.
I wrote an guide how you can extract the GPT and calculate the dd parameters:
[How to] Determine dd Parameters For All LG G4 Models
http://forum.xda-developers.com/g4/h...lg-g4-t3184867
Do you know how to work with linux?
Please post the outputs of gdisk into a HIDE and CODE tag. Thank you.
Maybe you are a advanced user and can Inject root yourself with the autoroot.sh method (Inject_Root_G4.zip)?
Or do you need help?
I think you have Android 5.1.1 installed, so it is not possible to use Kingroot to root your device. Is that right?
dominik-p said:
I wrote an guide how you can extract the GPT and calculate the dd parameters:
[How to] Determine dd Parameters For All LG G4 Models
http://forum.xda-developers.com/g4/h...lg-g4-t3184867
Do you know how to work with linux?
Click to expand...
Click to collapse
Wow, thanks for that guide! I've been trying to figure out how to find the right dd params forever.
tabp0le said:
Wow, thanks for that guide! I've been trying to figure out how to find the right dd params forever.
Click to expand...
Click to collapse
Pleasure.
I think some people also knew how to do it, but no one wanted to write a guide.
AND ALWAYS CONSIDER:
You can brick your phone if you don't know what you are doing.
Backup your files before you change anything.
i think i got the link for the KDZ.. but when i
dominik-p said:
Do you have Android 5.0 or 5.1 installed?
First of all. Before you start to try root, download the kdz file for your phone.
The kdz is needed if something went wrong (e.g. phone not booting).
You can use the LG Flash Tool to flash the kdz to a bricked phone.
Use this link with your IMEI:
[CODEcsmg.lgmobile.com:9002/csmg/b2c/client/auth_model_check2.jsp?esn=IMEI[/CODE]
If it works, please post the download link for the "kdz".
Or better post the output too, but delete your IMEI!
Your link will only work if you type:
csmgdl.lgmobile.com/dn/downloader.dev?fileKey=
and then add the rest of your url instead of the given link.
Click to expand...
Click to collapse
ok i think i did it correctly.. heres the link
downloader.dev?fileKey=FWDEYI0132FMAUI263CCLO1/H73510b_00.kdz (had to cut it short cuz forum would not let me post new link :/ csmgdl.lgmobile.com/dn/ was before 'downloader')
heres the output file..
<response req_cmd="auth_model_check" status="OK">
<auth_model_check><result>OK</result>
<esn>-----MYIMEI----</esn>
<model>LGH735</model><suffix>ASEATS</suffix><msn>508KPUU032390</msn><esn_date/>
<sw_version>H73510B_00</sw_version>
<sw_url>fileKey=FWDEYI0132FMAUI263CCLO1/H73510b_00.kdz</sw_url> pkg03.lime.gdms.lge.com/dn/downloader.dev?
<sw_locale_url/><sw_recommand_uri/><app_version/><app_url/>
<cs_em_flag>N</cs_em_flag>
<cs_em_uri>N</cs_em_uri>
<chip_type>EG</chip_type>
<prod_type>2</prod_type>
<buyer>SEA</buyer>
<file_name>H73510b_00.kdz</file_name>
</auth_model_check></response>
and yes its 5.1..
would be nice if theres a step by step guide cuz last phone i tired rooting was prolly galaxy tab and it was wayy easier :/
Ok, well done. Is 10b the same version as currently installed on your device?
Some other details would be interesting:
Do you have an unbranded device?
Where did you buy it / where do you live? (country)
Are you an advanced user? Do you know how to work with linux?
The next steps will be:
Calculate your dd parameters and backup your system partition into a img file. Read my guide:
[How to] Determine dd Parameters For All LG G4 Models
http://forum.xda-developers.com/g4/h...lg-g4-t3184867
Please post the outputs of gdisk into a HIDE and CODE tag.
Post your calculated dd parameters, so that we can verify it.
IMPORTANT: Keep the original (unchanged) system.img on your computer (zip it).
Then:
Copy the img file to a linux system and mount it. Create a testfile (test.txt) on the mounted system partition.
Copy the img file back to your phone and try to "dd" it back over your system partition.
Check if you see the testfile on your system partition.
If that worked you have successfully overwritten your system partition.
Then:
Try to inject root with the Inject_Root_G4.zip on your linux system.
Copy the new img file to your phone and "dd" it over your system partition.
Please ask if you are not 100% sure what to do.
You are responsible for what you are doing with your device.
Backup all your data (photos, videos, messages...) before going one step further.
dominik-p said:
Ok, well done. Is 10b the same version as currently installed on your device?
Some other details would be interesting:
Do you have an unbranded device?
Where did you buy it / where do you live? (country)
Are you an advanced user? Do you know how to work with linux?
The next steps will be:
Calculate your dd parameters and backup your system partition into a img file. Read my guide:
[How to] Determine dd Parameters For All LG G4 Models
http://forum.xda-developers.com/g4/h...lg-g4-t3184867
Please post the outputs of gdisk into a HIDE and CODE tag.
Post your calculated dd parameters, so that we can verify it.
IMPORTANT: Keep the original (unchanged) system.img on your computer (zip it).
Then:
Copy the img file to a linux system and mount it. Create a testfile (test.txt) on the mounted system partition.
Copy the img file back to your phone and try to "dd" it back over your system partition.
Check if you see the testfile on your system partition.
If that worked you have successfully overwritten your system partition.
Then:
Try to inject root with the Inject_Root_G4.zip on your linux system.
Copy the new img file to your phone and "dd" it over your system partition.
Please ask if you are not 100% sure what to do.
You are responsible for what you are doing with your device.
Backup all your data (photos, videos, messages...) before going one step further.
Click to expand...
Click to collapse
what do u mean 10b?
not really unbranded i guess? its a mid-tier version of the LG G4.. this is the phone.. http://www.lg.com/sg/mobile-phones/lg-G4-Beat
dont think its out at the US yet
bought it at Singapore as i recontacted my phone
nope i dont know how to use linux and im %100 not sure what to do :crying:
Ok so you are not a advanced user?
10b is the version of the kdz file. Goto Settings->Phone info->software version on your phone and post your software version.
First of all: It is not possible to root your phone without linux!
You don't have to install a linux on your computer (physically) but at least in an virtual environment (virtualbox, vmware player) or as a live distribution.
What you can do without linux is try to extract the GPT.
Which OS is installed on your computer (Win 7, 8, 10)?
Download the LG_Root.zip from
http://forum.xda-developers.com/android/development/guide-root-method-lg-devices-t3049772
It contains the Send_Command.exe
You need this tool to open a special console when your phone is in download mode.
Do you know this tool and how to enter the download mode?
dominik-p said:
Ok so you are not a advanced user?
10b is the version of the kdz file. Goto Settings->Phone info->software version on your phone and post your software version.
First of all: It is not possible to root your phone without linux!
You don't have to install a linux on your computer (physically) but at least in an virtual environment or as a live distribution.
What you can do without linux is try to extract the GPT.
Which OS is installed on your computer (Win 7, 8, 10)?
Download the LG_Root.zip from
http://forum.xda-developers.com/android/development/guide-root-method-lg-devices-t3049772
It contains the Send_Command.exe
You need this tool to open a special console when your phone is in download mode.
Do you know this tool and how to enter the download mode?
Click to expand...
Click to collapse
no im not an advanced user..
its software version is : V10b-SEA-XX
so i guess its a 10b?
im using windows 7 right now
Yes you have 10b installed now.
The XX means that it is unbranded.
SEA means southeast asia.
Win 7 is fine. Send_Command will work.
Download the zip from the above-mentioned thread.
Then:
Power off your device
When the device is powered off, hold volume up and insert a USB cable connected to the PC
Wait for the drivers to install
Click to expand...
Click to collapse
and follow the steps 7-9.
dominik-p said:
Yes you have 10b installed now.
The XX means that it is unbranded.
SEA means southeast asia.
Win 7 is fine. Send_Command will work.
Download the zip from the above-mentioned thread.
Then:
and follow the steps 7-9.
Click to expand...
Click to collapse
so i just download it, put it at desktop and skip all the methods till 6-9? do i have to enable developer mode before doing it?
No you don't need developer mode.
But it is no problem if you enabled it.
Are you able to open the console with Send_Command.exe?
dominik-p said:
No you don't need developer mode.
But it is no problem if you enabled it.
Are you able to open the console with Send_Command.exe?
Click to expand...
Click to collapse
i opened send_command.exe but it just closes back.. mine is at COM1 but idk how to change it
Update: it says NOTE: Do not attempt this on devices with 5.1.1 , at the time this method was posted it worked on many firmware 5.0.2 should i still go for it? im using 5.1.1
We won't follow the guide. We will do it like here:
http://forum.xda-developers.com/g4/orig-development/root-tmo-vzw-intl-variants-soon-root-lg-t3164765
(You will also find the thread is linked there.)
The thread is just a good help for the Send_Command tool.
You don't have to change the COM port.
Are you in download mode? Do you see the "Firmware Update" screen?
Use the ports.bat and note the "netdiag" COM port.
Inside of LG_Root folder hold shift and right click a blank space you should see "Open command window here"
Click to expand...
Click to collapse
Then enter:
Code:
Send_Command.exe \\.\COM#
Replace # with your number.
dominik-p said:
We won't follow the guide. We will do it like here:
http://forum.xda-developers.com/g4/orig-development/root-tmo-vzw-intl-variants-soon-root-lg-t3164765
(You will also find the thread is linked there.)
The thread is just a good help for the Send_Command tool.
You don't have to change the COM port.
Are you in download mode? Do you see the "Firmware Update" screen?
User ports.bat and note the "netdiag" COM port.
Then enter:
Code:
Send_Command.exe \\.\COM#
Replace # with your number.
Click to expand...
Click to collapse
Yup its in download mode i have the firmware update on my screen.. still to no avail i also installed LG driver and restarted.. opened send_command.exe it just closes back
or do i just enter the script after the # after special command? at because im now at this part http://i.imgur.com/fre9Z9l.png just that when i double-click send command it just closes back
dreamnoob said:
Yup its in download mode i have the firmware update on my screen.. still to no avail i also installed LG driver and restarted.. opened send_command.exe it just closes back
or do i just enter the script after the # after special command? at because im now at this part http://i.imgur.com/fre9Z9l.png just that when i double-click send command it just closes back
Click to expand...
Click to collapse
are you opening send command from the command prompt?
Do NOT double click on the Send_Command.exe
READ again:
Inside of LG_Root folder hold shift and right click a blank space you should see "Open command window here"
Click to expand...
Click to collapse
Then enter "Send_Command.exe \\.\COM#"
dominik-p said:
Do NOT double click on the Send_Command.exe
READ again:
Then enter "Send_Command.exe \\.\COM#"
Click to expand...
Click to collapse
oh okay means im on the right path..
so now i just do this as follows?
Type "id" and press enter (no quotes).
You should get back some text starting with "uid=(0)root gid=(0)root". If not, press CTRL-C, and do step 9 again (the application sometimes doesn't respond on the first command).
Run the command specified in the section below titled 'Commands to Run' to flash the rooted system image.
After a few minutes of sitting, you should get back a "#" prompt. This indicates the process has finished.
Type "LEAVE" (no quotes) and press enter. Your phone should reboot, and your phone will be rooted.

June update help.

Hello, so I am currently rooted on the January update and decided to update to June's update and reroot.
I downloaded the official full image and tried to flash it using the flash-all command. But I am getting this error I MOST be doing something working. Any ideas or a quick guide on how to update and root June's update !?
Thank you
jblanko6 said:
Hello, so I am currently rooted on the January update and decided to update to June's update and reroot.
I downloaded the official full image and tried to flash it using the flash-all command. But I am getting this error I MOST be doing something working. Any ideas or a quick guide on how to update and root June's update !?
Thank you
Click to expand...
Click to collapse
Did you extract the files first from the factory image and place them in your SDK/platform-tools folder?
Badger50 said:
Did you extract the files first from the factory image and place them in your SDK/platform-tools folder?
Click to expand...
Click to collapse
Yes sir
jblanko6 said:
Yes sir
Click to expand...
Click to collapse
Are you using minimal adb?
Badger50 said:
Are you using minimal adb?
Click to expand...
Click to collapse
I am not sure ...
Trying with poweshell and still not getting it to work .ugh.
I was trying to flash the bootloader to both partitions and getting this .
jblanko6 said:
I am not sure ...
Trying with poweshell and still not getting it to work .ugh.
I was trying to flash the bootloader to both partitions and getting this .
Click to expand...
Click to collapse
Looks like you are using sdk/platform-tools. Are you also using a Mac laptop?
Badger50 said:
Looks like you are using sdk/platform-tools. Are you also using a Mac laptop?
Click to expand...
Click to collapse
No , windows 10 .
I know the device is being detected in fastboot mood by the computer. It might be something to do with how I am currently rooted. Most "how to " instructions only talk about partitions _a and _b.
Put a space between bootloader and C:\
bradputt said:
Put a space between bootloader and C:\
Click to expand...
Click to collapse
I agree error in syntax
jblanko6 said:
I am not sure ...
Trying with poweshell and still not getting it to work .ugh.
I was trying to flash the bootloader to both partitions and getting this .
Click to expand...
Click to collapse
there's no such fastboot command "flash_other", you don't have to flash bootloader to both partition.
use googles release of sdk not the entire thing
fastboot flash-all
and bam
You can also go straight to your platform-tools folder and double click the flash-all.bat file to start the installation :good:
Badger50 said:
You can also go straight to your platform-tools folder and double click the flash-all.bat file to start the installation :good:
Click to expand...
Click to collapse
Set it all up on a different computer at work. And still can't flash it. I was using flash-all command
jblanko6 said:
Set it all up on a different computer at work. And still can't flash it. I was using flash-all command
Click to expand...
Click to collapse
Do you have all the files you extracted from the factory image inside the platform-tools folder?? Especially the large secondary zip that has all the images?
jblanko6 said:
Set it all up on a different computer at work. And still can't flash it. I was using flash-all command
Click to expand...
Click to collapse
If still no luck, download this from Google: https://dl.google.com/android/repository/platform-tools-latest-windows.zip
Download another copy of June update in case first was corrupt.
Place all Tools files plus unzipped June update files into one folder. Make sure your usb cable is an oem Pixel cable.
Use Windows command prompt instead of Powershell. Type fastboot devices with phone connected in fastboot mode.
If you get a serial number, double click on flash-all.bat. It oughta run fine.
Okay so i have doing this fine but i can't seem to update as well
I use window latest platform tools all files in one directory where i open the cmd
Here is what it says @Badger50
Sent from my Google Pixel 2 XL using XDA Labs
michaelbsheldon said:
If still no luck, download this from Google: https://dl.google.com/android/repository/platform-tools-latest-windows.zip
Download another copy of June update in case first was corrupt.
Place all Tools files plus unzipped June update files into one folder. Make sure your usb cable is an oem Pixel cable.
Use Windows command prompt instead of Powershell. Type fastboot devices with phone connected in fastboot mode.
If you get a serial number, double click on flash-all.bat. It oughta run fine.
Click to expand...
Click to collapse
If you can look above post i am doing everything right i guess
Sent from my Google Pixel 2 XL using XDA Labs
Prattham said:
If you can look above post i am doing everything right i guess
Click to expand...
Click to collapse
It sure looks right, and I know you've done this before. What happens when you shut the phone off and then enter bootloader manually. I know it shouldn't matter, but what the heck. That's exactly what I do every month, I never boot into fastboot from the OS and adb ?
Badger50 said:
It sure looks right, and I know you've done this before. What happens when you shut the phone off and then enter bootloader manually. I know it shouldn't matter, but what the heck. That's exactly what I do every month, I never boot into fastboot from the OS and adb ?
Click to expand...
Click to collapse
I'll try it out and let you know stay put ?
Sent from my Google Pixel 2 XL using XDA Labs
Prattham said:
I'll try it out and let you know stay put ?
Click to expand...
Click to collapse
I'll be here :good::good:

My complete bootloader unlock and root guide.

So I just got this phone just for fun, it was 75 USD, and went straight to XDA to root it so i can remove some bloat etc. but holy moly i ended up have 10 tabs with different guides open, i have compiled what I did to get this phone rooted.
I want to thank everyone who made different threads about rooting and installing Magisk on this phone, i have read so many guides now so i cant remember their names!.
BUT THANK YOU!.
Let's get to it
Here is what I did for to unlock the bootloader, install magisk and root my Huawei P20 Lite ANE-LX1
First you need to install HiSuite: https://consumer.huawei.com/minisite/HiSuite_en/
and then install ADB and Fastboot drivers: https://dl.google.com/android/repository/platform-tools-latest-windows.zip
(extract the platform-tools folder to the root of your C: drive)
Plug in your phone and let it install drivers.
Then you need to downgrade your firmware to 146 using Dload method, as DCU Client can't read the bootloader unlock code on newer firmwares.
I used "Huawei P20 Lite ANE-L21 Anne-L21 8.0.0.146(C432) Firmware Android 8.0.0 EMUI 8.0.0 05014YXX androidhost.ru.zip" (https://androidhost.ru/6ti)
When finished downloading, open the zip file, open software and copy the folder "Dload" to the root of your EXTERNAL SD CARD, not internal storage!.
Now take your phone and "dial" *#*#2846579#*#* go to Software Upgrade -> SdCard Upgrade and click OK.
Your phone should now begin installing the old firmware, when the phone first boots up, dont set it up, turn it off and hold Volume up + Power and select Wipe Data/Factory Reset, Wipe Cache, and then reboot.
With the phone booted, enable USB Debugging (Settings > System > About Phone > version number > Tap it 7 times to become developer, AND click OEM-Unlock, then go to Settings > System > Developer Options > USB Debugging).
Now we need to buy 4 credits from DC-Unlocker (4 Euro) ( https://www.dc-unlocker.com/buy ) when you have 4 credits on your account, go and download https://hcu-client.com/download/hcu-client-v1-0-0-0287/ Password: hcu
extract the contents of the zip to a folder called HCU in the root of your C: drive
Open up HCU.exe, type in your username and password (check your mail, the info will be there).
Grab your phone and dial *#*#2846579#*#*, go to Background Settings -> USB Port Settings -> Manufacture Mode and press close.
Plug in your phone and let it install drivers.
Open up HCU client, select Unlock, and then Read Bootloader Code.
when you have the code, save it!
Turn off your phone
Hold volume down and power, now we are in fastboot mode.
Open CMD and write:
CD C:\platform-tools
fastboot oem unlock YOUR UNLOCK KEY HERE
Accept the stuff and unlock your bootloader, your phone will be factory reset, and all your data lost if you dont have a backup.
Turn the phone off and on again, set it up, and go to settings -> System -> System update, and update, mine was ANE-LX1 8.0.0.162(C432)
Now re-enable USB Debugging option in Developer Options.
install Magisk Manager (https://github.com/topjohnwu/Magisk/releases/download/v18.0/Magisk-v18.0.zip)
Download patched_ramdisk.img (https://mega.nz/#!GWp1ia6R!xUcg_T_17v1ktlFQPq-Ujo4DRKfAg8E4-_k2J2zLO60)
and place it in the root of your phones internal storage
Open up Magisk Manager, press install -> install -> Patch Boot Image File -> find the patched_ramdisk.img and click OK.
Now open CMD and write:
CD C:\platform-tools>
adb pull /storage/emulated/0/download/patched_boot.img
Now you should have the patched_boot.img in your platform tools folder.
Turn off your phone, hold volume down and power to get to fastboot mode.
in CMD write:
CD C:\platform-tools>
fastboot flash ramdisk patched_boot.img
reboot your phone and check if magisk was installed correctly and check if you have root.
Hope this works for you!
Great guide. Just a tip instead of using cd C:\platform-tools you can shift+right click on the adb folder and click "open powershell here". Saves some time
Thank you for this, but I have a question about this part:
Then you need to downgrade your firmware to 146 using Dload method, as DCU Client can't read the bootloader unlock code on newer firmwares.
Click to expand...
Click to collapse
Mine is ANE-LX3, what would be the equivalent to 146 so that DC-unlocker can read it?
Yes, you just need to find a firmware for LX3, i dont think flashing a 64gb firmware on a 32gb device is smart.
dcduartee said:
Great guide. Just a tip instead of using cd C:\platform-tools you can shift+right click on the adb folder and click "open powershell here". Saves some time
Click to expand...
Click to collapse
I have tried that and PowerShell doesnt Work on my pc(i have replaced shift click shortcut so its CMD indtraf) and i wanted a noob proof way to make this work
And thanks.
Where could i find the correct firmware of ANE-LX1
Just use the address bar
brugernavn said:
I have tried that and PowerShell doesnt Work on my pc(i have replaced shift click shortcut so its CMD indtraf) and i wanted a noob proof way to make this work
And thanks.
Click to expand...
Click to collapse
Maybe you already know but I learned that you can just clic the address bar in a Windo(w)s system and write 'cmd' which is exactly the same as 'open a command prompt that starts in this very specific folder'.
E.g. in attachments.
Now I just want to know what firmware to downgrade to :/
LLoTE said:
Where could i find the correct firmware of ANE-LX1
Click to expand...
Click to collapse
Use the link in my guide.
lalovzg said:
Maybe you already know but I learned that you can just clic the address bar in a Windo(w)s system and write 'cmd' which is exactly the same as 'open a command prompt that starts in this very specific folder'.
E.g. in attachments.
Now I just want to know what firmware to downgrade to :/
Click to expand...
Click to collapse
Sweet thanks!.
Try and use this firmware:.
https://androidhost.ru/9V2
Using that as a reference I found one for my region I think (C69) that says:
Integrates Google security patches released in Apr 2018 for improved system security.
Click to expand...
Click to collapse
Is this April FullOTA a safe security patch to work with DC-u?
ANE-LX3C69CUSTC69
An another one big question: I am in the believe that my P20 lite is Single-SIM. Does it matter if that FullOTA (or any ROM/Update.app/etc) says DUAL-SIM? Should I look for the oldest Single-SIM??? or a Dual-SIM file would work just fine?
lalovzg said:
Using that as a reference I found one for my region I think (C69) that says:
Is this April FullOTA a safe security patch to work with DC-u?
ANE-LX3C69CUSTC69
An another one big question: I am in the believe that my P20 lite is Single-SIM. Does it matter if that FullOTA (or any ROM/Update.app/etc) says DUAL-SIM? Should I look for the oldest Single-SIM??? or a Dual-SIM file would work just fine?
Click to expand...
Click to collapse
If its single sim, you need a single sim firmware and just use a firmware under 150, you should be okay
Would someone like to pay for me cuz I don't got a way to pay i don't have any credit cards..i know this is stupid but im just a teenager and my parents wouldn't pay for it so here i am lol
@brugernavn
Bro your instructions are super perfect tuttorial very very BIG thankx
would know exactly the firmware that would go without a bootloader unlock hunger everywhere this Huawei P20 Lite firmware ANE-L21 Anne-L21 8.0.0.166 (C432)
The only thing is that which one is right where the to sdcard firmware into the dload folder and installs without problems
because of what I was looking for and so I made a mistake to link to the Huawei P20 Lite ANE-L21 Anne-L21 8.0.0.166 (C432) in format like This post forum
what i found for dual sim so all su with unlocked bootloader hurts me
PLEASE REPLY will be glad
HEKER510 said:
@brugernavn
Bro your instructions are super perfect tuttorial very very BIG thankx
would know exactly the firmware that would go without a bootloader unlock hunger everywhere this Huawei P20 Lite firmware ANE-L21 Anne-L21 8.0.0.166 (C432)
The only thing is that which one is right where the dam to sdcard firmware into the dload folder and installs without problems
because of what I was looking for and so I made a mistake to link to the Huawei P20 Lite ANE-L21 Anne-L21 8.0.0.166 (C432) in format like aky maš na forum
what i found for dual sim so all su with unlocked bootloader hurts me
PLEASE REPLY will be glad
Click to expand...
Click to collapse
Im sorry, i dont understand what you are writing
brugernavn said:
Im sorry, i dont understand what you are writing
Click to expand...
Click to collapse
i flashnig for sdcard firmware 146 for you link
i have must firmware 166 for sdcard
you helping my for firmware 166 for huawei p20 lite dual firmware 166(c432) flashing install sdcard for servis menu upgrade
identic 146 for 166 firmware
you understand my brother ?
HEKER510 said:
i flashnig for sdcard firmware 146 for you link
i have must firmware 166 for sdcard
you helping my for firmware 166 for huawei p20 lite dual firmware 166(c432) flashing install sdcard for servis menu upgrade
identic 146 for 166 firmware
you understand my brother ?
Click to expand...
Click to collapse
You first flash 146 firmware with Service menu.
Then unlock bootloader
Then update via the settings menu
brugernavn said:
You first flash 146 firmware with Service menu.
Then unlock bootloader
Then update via the settings menu
Click to expand...
Click to collapse
Bro 166 firmware for servis menu yes ? thankx you very much
thank you very much for your guide, brugernavn.:good:
I arrived without problems at the point: "Turn the phone off and on again, set it up, and go to settings -> System -> System update, and update, mine was ANE-LX1 8.0.0.162(C432)"
but the phone can not find updates ... (i before was in 150) but this isn't a problem.
My doubt is on how to install Magisk Manager (https://github.com/topjohnwu/Magisk/...gisk-v18.0.zip) .... with TWRP ?
Thank you again
Hey, to root my p20, flashing magisk via recovery, don't need ramimage, all works fine
how to do it
how to flashing magisk via recovery? (whit TWRP or not??) you can explain the passage?
cirovi said:
thank you very much for your guide, brugernavn.:good:
I arrived without problems at the point: "Turn the phone off and on again, set it up, and go to settings -> System -> System update, and update, mine was ANE-LX1 8.0.0.162(C432)"
but the phone can not find updates ... (i before was in 150) but this isn't a problem.
My doubt is on how to install Magisk Manager (https://github.com/topjohnwu/Magisk/...gisk-v18.0.zip) .... with TWRP ?
Thank you again
Click to expand...
Click to collapse
what software are you running now?

downgrade from 10 to 9

Hey everyone, is it possible to downgrade to Android pie ?
Does simply flashing the build will do the trick ? Or it's impossible to go back to 9 ?
Thanks
youssefkr said:
Hey everyone, is it possible to downgrade to Android pie ?
Does simply flashing the build will do the trick ? Or it's impossible to go back to 9 ?
Thanks
Click to expand...
Click to collapse
I've read about several users going back to 9. However, it will take a full wipe and a clean flash of the factory image to do so :good:
I did downgrade to 9, full wipe, flashed twrp, in my case i needed root and magisk safetynet.
1902 said:
I did downgrade to 9, full wipe, flashed twrp, in my case i needed root and magisk safetynet.
Click to expand...
Click to collapse
Im debating rolling back, what rom did you settle on?
SageWilliams said:
Im debating rolling back, what rom did you settle on?
Click to expand...
Click to collapse
Latest original pie, rooted with latest magisk, if TWRP and safetynet were 100% working i would have stayed on A10, but till then i'm gonna stay on pie :angel:
I'm on 10 rooted, and can't unroot. Magisk won't uninstall from it's app. Tried to go back to 9, but it won't flash cleanly. I can sell the phone, but only if it's stock. 9 or 10, the buyer doesn't care. I can use a little help, please.
---------- Post added at 21:52 ---------- Previous post was at 21:33 ----------
How about, if I delete the sbin file in system/root, and then do a factory reset from the phone's settings?
1902 said:
I did downgrade to 9, full wipe, flashed twrp, in my case i needed root and magisk safetynet.
Click to expand...
Click to collapse
I don't need root, but please tell me how you downgraded from 10 back to 9. I really need to do this. Thanks
grunt0300 said:
I don't need root, but please tell me how you downgraded from 10 back to 9. I really need to do this. Thanks
Click to expand...
Click to collapse
Just Grab the pie factory image from https://developers.google.com/android/images
and follow the instruction on the developers' page, note that flashing this will wipe your device.
better to watch a tutorial online on how to flash a factory image :good:
1902 said:
Just Grab the pie factory image from https://developers.google.com/android/images
and follow the instruction on the developers' page, note that flashing this will wipe your device.
better to watch a tutorial online on how to flash a factory image :good:
Click to expand...
Click to collapse
Tried it, but no go. I get the command prompt box ok, but can't put anything into it.
grunt0300 said:
Tried it, but no go. I get the command prompt box ok, but can't put anything into it.[/QUOTE
I've done it by formatting data in twrp then flash pie ota, or flash the partitions (bootloader,radio,vendor) on both slots in fastboot then fastboot update (image-taimen-pq3a.190801.002.zip)
Click to expand...
Click to collapse
grunt0300 said:
Tried it, but no go. I get the command prompt box ok, but can't put anything into it.
Click to expand...
Click to collapse
Got it done. I had the files in the wrong place. It's all good now. Android 9, stock.
Im doing something wrong.
grunt0300 said:
Got it done. I had the files in the wrong place. It's all good now. Android 9, stock.
Click to expand...
Click to collapse
Hey I'm trying to downgrade myself and running into errors when trying to execute the flash-all command. Android 9 files are in the platform tools folder just like you would flash TWRP. First time downgrading. Is there a good tutorial...cause I followed the google tutorial and "flash-all" just sint working.
Driacas said:
Hey I'm trying to downgrade myself and running into errors when trying to execute the flash-all command. Android 9 files are in the platform tools folder just like you would flash TWRP. First time downgrading. Is there a good tutorial...cause I followed the google tutorial and "flash-all" just sint working.
Click to expand...
Click to collapse
Are you doing a clean install (leaving the -w intact)?
Do you have the latest SDK toolkit?
What errors are you running into?
Az Biker said:
Are you doing a clean install (leaving the -w intact)?
Do you have the latest SDK toolkit?
What errors are you running into?
Click to expand...
Click to collapse
Yes I'm using the latest SDK tools.
This is the error I recieved.
" flash-all : The term 'flash-all' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ flash-all
+ ~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (flash-all:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException"
Well the android updated to 10 on its own. I attempted to flash the newest version of Magisk onto it using TWRP. Now the phone just stays put at the google logo and wont boot further. It does boot into fastboot, So I figured I should just flash the older version back on. Also im on sailfish
---------- Post added at 11:06 PM ---------- Previous post was at 10:28 PM ----------
Also there is no "Flash-all" files that downloaded with the images. I have these files: Payload (Bin File), zipped combatability file, Meta file, care map and payload properties....
Driacas said:
Yes I'm using the latest SDK tools.
This is the error I recieved.
" flash-all : The term 'flash-all' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ flash-all
+ ~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (flash-all:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException"
Well the android updated to 10 on its own. I attempted to flash the newest version of Magisk onto it using TWRP. Now the phone just stays put at the google logo and wont boot further. It does boot into fastboot, So I figured I should just flash the older version back on. Also im on sailfish
---------- Post added at 11:06 PM ---------- Previous post was at 10:28 PM ----------
Also there is no "Flash-all" files that downloaded with the images. I have these files: Payload (Bin File), zipped combatability file, Meta file, care map and payload properties....
Click to expand...
Click to collapse
Did you unzip the factory image TWICE? Sounds like CMD isn't finding the flash-all file, which is in the folder after the second unzip.
As far as sailfish OS, I've never dealt with it so couldn't tell you one way of the other anything about it.
Driacas said:
Also there is no "Flash-all" files that downloaded with the images. I have these files: Payload (Bin File), zipped combatability file, Meta file, care map and payload properties....
Click to expand...
Click to collapse
Sounds like you downloaded the OTA file rather than the factory image file.

Categories

Resources