Can't flash TWRP, "press any key to shutdown" in fastboot - Xiaomi Mi 9 SE Questions & Answers

Hello,
phone is a Xiaomi Mi 9 se, i had problem unlocking the bootloader using my main PC (AMD based) it kept getting stuck at 50%. Then i used a intel laptop and i unlocked the booloader.
Now i'm trying to flash a TWRP on recovery, but i cannot do anything on fastboot every command i give it the phone responds with "press a key to shutdown" and i get
FAILED (command write failed (Invalid argument)
On command line, both on the AMD and intel pc, i tried switching cables and PCs, both usb 2.0 and 3.0...
Update: So windows was installing kedacom driver for the smartphone, i managed to remove the wrong drivers (kedacom) now i see this driver by xiaomi and from what i see online is correct, but i still get the same error i don't know what to do anymore.

Burt_93 said:
Hello,
phone is a Xiaomi Mi 9 se, i had problem unlocking the bootloader using my main PC (AMD based) it kept getting stuck at 50%. Then i used a intel laptop and i unlocked the booloader.
Now i'm trying to flash a TWRP on recovery, but i cannot do anything on fastboot every command i give it the phone responds with "press a key to shutdown" and i get
FAILED (command write failed (Invalid argument)
On command line, both on the AMD and intel pc, i tried switching cables and PCs, both usb 2.0 and 3.0...
Click to expand...
Click to collapse
I think you need a special adb package for amd, but I don't remember the link try to search fastboot ryzen

redispade said:
I think you need a special adb package for amd, but I don't remember the link try to search fastboot ryzen
Click to expand...
Click to collapse
But it doesn't even work on a intel laptop... i still think it's a driver issue, Mi suite doesn't recognize the phone either. Is there another way to flash yours TWRP?

I had the dame peoblem, rebooted the PC a few times, then it works.

So windows was installing kedacom driver for the smartphone, i managed to remove the wrong drivers (kedacom) now i see this driver by xiaomi and from what i see online is correct, but i still get the same error i don't know what to do anymore.

I assume that you try to flash stock again, right? With Mi Flash Tool...

Fastboot commands (including unlocking the phone with offical tools) can fail on Intel devices.
Try this code: (Save this as .bat and run as administrator)
Code:
@echo off
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "osvc" /t REG_BINARY /d "0000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipContainerIdQuery" /t REG_BINARY /d "01000000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipBOSDescriptorQuery" /t REG_BINARY /d "01000000" /f
pause
Use the USB 2.0 port, and try again.
This thing comes from China MIUI forum.
This worked with my i7-8750H laptop, solving the "Press anykey to shutdown" problem (when unlocking however)
Also if it doesn't work for you and you wish a rollback, just delete the keys (in regedit) the batch has made and you're fully rolled back.

Catalysa said:
Fastboot commands (including unlocking the phone with offical tools) can fail on Intel devices.
Try this code: (Save this as .bat and run as administrator)
Code:
@echo off
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "osvc" /t REG_BINARY /d "0000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipContainerIdQuery" /t REG_BINARY /d "01000000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipBOSDescriptorQuery" /t REG_BINARY /d "01000000" /f
pause
Use the USB 2.0 port, and try again.
This thing comes from China MIUI forum.
This worked with my i7-8750H laptop, solving the "Press anykey to shutdown" problem (when unlocking however)
Also if it doesn't work for you and you wish a rollback, just delete the keys (in regedit) the batch has made and you're fully rolled back.
Click to expand...
Click to collapse
No luck with that, now it remains stuck at "sending recovery"

I finally did it using a third, older laptop

Catalysa said:
Fastboot commands (including unlocking the phone with offical tools) can fail on Intel devices.
Try this code: (Save this as .bat and run as administrator)
Code:
[user=8011874]@Echo off[/user]
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "osvc" /t REG_BINARY /d "0000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipContainerIdQuery" /t REG_BINARY /d "01000000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipBOSDescriptorQuery" /t REG_BINARY /d "01000000" /f
pause
Use the USB 2.0 port, and try again.
This thing comes from China MIUI forum.
This worked with my i7-8750H laptop, solving the "Press anykey to shutdown" problem (when unlocking however)
Also if it doesn't work for you and you wish a rollback, just delete the keys (in regedit) the batch has made and you're fully rolled back.
Click to expand...
Click to collapse
you are GENIUS, after almost one day searching your method worked for me
Thank you sooooo much

This worked for me and I hope the same goes for you all as well (
without using USB HUB and USB 2 port
).
I found the solution here .
Scenario:
1) Phone not detected with fastboot devices command
2) Phone goes into "Press any key to shutdown"
3) Just download this .bat file and run it as administrator
4) Remove your phone, get it back into fastboot mode (Power + Volume Down), connect it again
5) Open CMD and try to run any fastboot command & they'll run successfully.
P.S.: I too got my POCO F1 unlocked by using this with the modded MI Unlock app. Was tired of trying usb hub and extension thing though my PC is intel and not amd. It'll be happy to know how and what made it worked from technical aspect. Thank You.

Burt_93 said:
Hello,
phone is a Xiaomi Mi 9 se, i had problem unlocking the bootloader using my main PC (AMD based) it kept getting stuck at 50%. Then i used a intel laptop and i unlocked the booloader.
Now i'm trying to flash a TWRP on recovery, but i cannot do anything on fastboot every command i give it the phone responds with "press a key to shutdown" and i get
FAILED (command write failed (Invalid argument)
On command line, both on the AMD and intel pc, i tried switching cables and PCs, both usb 2.0 and 3.0...
Update: So windows was installing kedacom driver for the smartphone, i managed to remove the wrong drivers (kedacom) now i see this driver by xiaomi and from what i see online is correct, but i still get the same error i don't know what to do anymore.
Click to expand...
Click to collapse
USE this, work 100% for me, I found on youtube but i dont remenber the channel
remane to .bat

Related

(Help) IDA+Android_Server+Can't_Connect=Whats_Wrong

Question #1 (creating a Batch File to run the following Code in cmd window & then opening 2nd window to forward ports)
ok first off was trying to make a script in windows to run the following commands
Code:
adb push android_server /data/local/tmp/
adb shell
chmod 755 /data/local/tmp/android_server
su
/data/local/tmp/./android_server
-----------------
open another cmd
-----------------
adb forward tcp:23946 tcp:23946
when making a bat file it stops at the shell. have no clue how to continue?
anyone able to make a small bat script that works that is able to open a 2nd cmd to forward ports? with the other added code please
---------------------------------------------------------------------------------
Question #2
Im using IDA Pro 6.5 trying to debug a .so file
Setup for IDA:
Application & input file are the same file libepic.so
hostname is IP of the different tablets. port is 23946
im using the above commands in cmd windows to Device, tried on Transformer Tf700t & Nexus 7 (2013) both with same errors. so im missing something for sure
the IDA side says
Code:
"Could not connect to 192.168.0.15:
No connection could be made because
the target machine actively refused it."
I have tried 2 things also on the tablets (adbd-Insecure) & gave full rights to full file system with the Nexus Toolkit even.
This is what cmd window says:
Code:
C:\Program Files (x86)\IDA 6.5\dbgsrv>adb shell
[email protected]:/ # su
su
[email protected]:/ # /data/local/tmp/./android_server
/data/local/tmp/./android_server
IDA Android 32-bit remote debug server(ST) v1.17. Hex-Rays (c) 2004-2013
Listening on port #23946...
=========================================================
[1] Accepting connection from 192.168.0.27...
[1] Could not establish the connection
[1] Closing connection from 192.168.0.27...
now it does stay connected in cmd window side.
till I goto the IDA side & try to start Debugger. then a popup window says:
Code:
The file can't be loaded by the debugger plugin.
Please verify the parameters are valid
Its almost like the android server isn't starting on the Android Tablet side at all.
Any Idea's anyone?

[Q] what is the name for the htc one m8 device when changing directories in cygwin?

hey guys, i just figured out how to do the abd thing and i wanted to figure out another problem i've been having now which is "what is the name of the htc m8 device when entering it into cygwin or terminal emulator?" here's what i'm trying to do: http://forum.xda-developers.com/gal...de-internal-memory-data-recovery-yes-t1994705 (basically i need to recover some videos from my internal drive) and i'm stuck on step 6 where it says to open a new cygwin window and enter the following code:
adb forward tcp:5555 tcp:5555
cd /nexus
nc 127.0.0.1 5555 | pv -i 0.5 > mmcblk0p12.raw
however, this is originally for a nexus and i have an "htc one m8 t-mobile version" so what would i put in where it reads "cd /nexus"? i tried putting in "cd /htc_m8", "cd /htc_one", "cd /htcone" and many others with no success. what do i put in instead of "nexus" because my phone is not a nexus and is actually an "htc one m8"?
if this is confusing, basically all i really want to know is how to make a raw image disk file (the kind of file with a " .RAW " extension) so taht i can mount it with another program and perform recuva on it to recover my files.
please advise. thanks guys.

Help: press any key to shutdown in fastboot

Edit: mobile Redmi note 5(china AI version)
When in fast boot, if you pass any command through PC (Cmd or Xiaomi Tool or MiFlash Tool) mobile immediately says press to shutdown.
Commands are not working in fastboot mode. phone connects and i can hear the connected sound, then as soon as 1st command is passed or MiFlash tool tries to connect, this message appears.
Cant install Twrp, Stock Rom, cant try to unlock Bootloader again.
background: i had twrp installed. then after sometime i checked and twrp was replaced with stock recovery so i installed twrp again and flashed RR Rom. but didnt like that so installed Miui Stock rom using Twrp. few days later Twrp is replaced again and i cant install anything through fastboot. help please. i am willing to reset whole device to its 1st initial form.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
junioreinstein said:
Edit: mobile Redmi note 5(china AI version)
When in fast boot, if you pass any command through PC (Cmd or Xiaomi Tool or MiFlash Tool) mobile immediately says press to shutdown.
Commands are not working in fastboot mode. phone connects and i can hear the connected sound, then as soon as 1st command is passed or MiFlash tool tries to connect, this message appears.
Cant install Twrp, Stock Rom, cant try to unlock Bootloader again.
background: i had twrp installed. then after sometime i checked and twrp was replaced with stock recovery so i installed twrp again and flashed RR Rom. but didnt like that so installed Miui Stock rom using Twrp. few days later Twrp is replaced again and i cant install anything through fastboot. help please. i am willing to reset whole device to its 1st initial form.
Click to expand...
Click to collapse
reinstall adb drivers. https://androidfilehost.com/?fid=746010030569952951
try other usb ports
junioreinstein said:
Edit: mobile Redmi note 5(china AI version)
When in fast boot, if you pass any command through PC (Cmd or Xiaomi Tool or MiFlash Tool) mobile immediately says press to shutdown.
Commands are not working in fastboot mode. phone connects and i can hear the connected sound, then as soon as 1st command is passed or MiFlash tool tries to connect, this message appears.
Cant install Twrp, Stock Rom, cant try to unlock Bootloader again.
background: i had twrp installed. then after sometime i checked and twrp was replaced with stock recovery so i installed twrp again and flashed RR Rom. but didnt like that so installed Miui Stock rom using Twrp. few days later Twrp is replaced again and i cant install anything through fastboot. help please. i am willing to reset whole device to its 1st initial form.
Click to expand...
Click to collapse
This is due to wired Kedacom Device Driver. No matter how many times you install drivers your PC will again install this bull****. I was in this trap for a while and asked for recommendation but later on I figured out this issue and stop wasting time on this matter. I just did my job with laptop.
Please try with another PC preferable not Windows 10 machine. Hope this helps.
Yep. I also had the same problem. PC with Windows 7 solved it...
kamrul.auntu said:
This is due to wired Kedacom Device Driver. No matter how many times you install drivers your PC will again install this bull****. I was in this trap for a while and asked for recommendation but later on I figured out this issue and stop wasting time on this matter. I just did my job with laptop.
Please try with another PC preferable not Windows 10 machine. Hope this helps.
Click to expand...
Click to collapse
I am using Win 8 and still get the same behavior on my Mix 2s.
-edit When the phone is in Fasboot mode and connected to the Win 8 laptop running Mi-unlock tool, the phone instantly switches to "Press any key to shutdown" and looking in Device Manager, there is no Kedacom driver, just the Android Bootloader Interface
i switched to USB 2.0 port and it worked!
New laptop and the same problem. Solved with HUB USB.
Yippee-ki-yay said:
New laptop and the same problem. Solved with HUB USB.
Click to expand...
Click to collapse
Thank you! You help me to solve my problem.
God bless you.
fredperry said:
Yep. I also had the same problem. PC with Windows 7 solved it...
Click to expand...
Click to collapse
Same Question on Win10 and Mi Mix 2s . Change a Win10 Laptop and solved.
Mate, in most cases, this is the issue of MIUI Fastboot not being compatible with USB 3.0 ports. The solution is to use a USB 2.0 port instead or, in cases where you only have USB 3.0 ports, connect the device through a USB hub and you are good to go.
Patoilo said:
Mate, in most cases, this is the issue of MIUI Fastboot not being compatible with USB 3.0 ports. The solution is to use a USB 2.0 port instead or, in cases where you only have USB 3.0 ports, connect the device through a USB hub and you are good to go.
Click to expand...
Click to collapse
In fact, I failed on my PC (wherever USB 2.0/3.0 ports), but successed with my laptop that only has USB 3.0
Little Grey said:
In fact, I failed on my PC (wherever USB 2.0/3.0 ports), but successed with my laptop that only has USB 3.0
Click to expand...
Click to collapse
Wow, that is awkward. You're a damn lucky boy haha
Same problem happens with me.
This problem is associated with AMD as their cpu doesn't support fastboot and adb
try this solution:
use a USB 2 port
create a new txt file,write code in the { } below
{
 @Echo off
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "osvc" /t REG_BINARY /d "0000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipContainerIdQuery" /t REG_BINARY /d "01000000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipBOSDescriptorQuery" /t REG_BINARY /d "01000000" /f
pause
}
then save this file and rename it as a .bat file
right click and run as administrator.
after that the issue can be fixed
JerryLF said:
try this solution:
use a USB 2 port
create a new txt file,write code in the { } below
{
@Echo off
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "osvc" /t REG_BINARY /d "0000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipContainerIdQuery" /t REG_BINARY /d "01000000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipBOSDescriptorQuery" /t REG_BINARY /d "01000000" /f
pause
}
then save this file and rename it as a .bat file
right click and run as administrator.
after that the issue can be fixed
Click to expand...
Click to collapse
nope, not working
JerryLF said:
try this solution:
use a USB 2 port
create a new txt file,write code in the { } below
{
@Echo off
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "osvc" /t REG_BINARY /d "0000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipContainerIdQuery" /t REG_BINARY /d "01000000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipBOSDescriptorQuery" /t REG_BINARY /d "01000000" /f
pause
}
then save this file and rename it as a .bat file
right click and run as administrator.
after that the issue can be fixed
Click to expand...
Click to collapse
Thankyou it works
!!!!! for those who copy the text from the forum you have to remove space from "Contr ol" to "Control".
JerryLF said:
try this solution:
use a USB 2 port
create a new txt file,write code in the { } below
{
@Echo off
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "osvc" /t REG_BINARY /d "0000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipContainerIdQuery" /t REG_BINARY /d "01000000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipBOSDescriptorQuery" /t REG_BINARY /d "01000000" /f
pause
}
then save this file and rename it as a .bat file
right click and run as administrator.
after that the issue can be fixed
Click to expand...
Click to collapse
I registered to say thank you.
JerryLF said:
try this solution:
use a USB 2 port
create a new txt file,write code in the { } below
{
@Echo off
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "osvc" /t REG_BINARY /d "0000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipContainerIdQuery" /t REG_BINARY /d "01000000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipBOSDescriptorQuery" /t REG_BINARY /d "01000000" /f
pause
}
then save this file and rename it as a .bat file
right click and run as administrator.
after that the issue can be fixed
Click to expand...
Click to collapse
Thank you very much, just remove space between Contr ol
My solution
junioreinstein said:
Edit: mobile Redmi note 5(china AI version)
When in fast boot, if you pass any command through PC (Cmd or Xiaomi Tool or MiFlash Tool) mobile immediately says press to shutdown.
Commands are not working in fastboot mode. phone connects and i can hear the connected sound, then as soon as 1st command is passed or MiFlash tool tries to connect, this message appears.
Cant install Twrp, Stock Rom, cant try to unlock Bootloader again.
background: i had twrp installed. then after sometime i checked and twrp was replaced with stock recovery so i installed twrp again and flashed RR Rom. but didnt like that so installed Miui Stock rom using Twrp. few days later Twrp is replaced again and i cant install anything through fastboot. help please. i am willing to reset whole device to its 1st initial form.
Just try using a USB HUB, no matter the port. I worked wonders. The dumbest thing though. xD
Click to expand...
Click to collapse
mr.ghx said:
junioreinstein said:
Edit: mobile Redmi note 5(china AI version)
When in fast boot, if you pass any command through PC (Cmd or Xiaomi Tool or MiFlash Tool) mobile immediately says press to shutdown.
Commands are not working in fastboot mode. phone connects and i can hear the connected sound, then as soon as 1st command is passed or MiFlash tool tries to connect, this message appears.
Cant install Twrp, Stock Rom, cant try to unlock Bootloader again.
background: i had twrp installed. then after sometime i checked and twrp was replaced with stock recovery so i installed twrp again and flashed RR Rom. but didnt like that so installed Miui Stock rom using Twrp. few days later Twrp is replaced again and i cant install anything through fastboot. help please. i am willing to reset whole device to its 1st initial form.
Just try using a USB HUB, no matter the port. I worked wonders. The dumbest thing though. xD
Click to expand...
Click to collapse
Yeahh that seems to be the problem with either Usb 3.0 or Using Amd builds as they're not fastboot friendly.I have an amd 2500u apu, I was facing same problem using Usb hub solved that
Click to expand...
Click to collapse

after OSX Sierra upgrade - no ADB and Android File Xfer

in updating my OS to Sierra I had issues with both adb/fastboot (Terminal) and AFT working ....... at all. AirDroid worked fine.
When I plugged my G4 into my MBA, the G4 responded (ding) like it saw the Mac, but the Mac was listless.
I did the usual toggling of Dev mode and USB debug. Restarting the MBA and/or the G4. Nada.
I uninstalled Mac (PC) drivers, that I guess came over with Migration asst, using the uninstall side of LGMobileMacDriver_v5.2.
That woke up AFT, but adb was still command not found.
This is what I did to wake adb/fastboot.
1. In Terminal, go to your home folder.
cd ~/
2. Open and edit .bash_profile file
$ open -e .bash_profile
2a. If you don’t have .bash_profile file in your computer path, then create one. That should leave you ready to edit .bash_profile file
But if not, enter below command to create a new file. Once created follow Step-2.
touch .bash_profile
3. Save the below line)
export PATH=${PATH}:/ (d&d your adb/fastboot folder)
4. Refresh the file using below command
$ source .bash_profile
If that fails
$ echo $PATH
Then
adb devices
test: adb reboot bootloader
and
adb reboot recovery if you have installed on on your G4.

how to get back to pie on lg v50 SPRINT version without any kdzs guide

Sprint Downgrade from Android 10 Beta to Android 9 PIE:
MAKE A BACKUP WITH BACKUP BUILT INTO SETTINGS AND MOVE IT TO COMPUTER FROM LG Backup folder
Install python first and make sure to check add to path variables during installation - if you didn't you will have trouble later on
If you get any errors you can look up how to install the cryptography module - it seems to have fixed issues for some users
This is only recommended on Sprint devices as they have no other option. If you are thinking about installing the beta now, I would recommend you don't because final is coming out soon.
I will be putting the commands in " and do not include the " in what commands you execute
1. LG USB Drivers 4.4.2 http://tool.lime.gdms.lge.com/dn/downloader.dev?fileKey=UW00120120425
2. Download LGLAF and extract to desktop https://anonfile.com/7aa2z8Ean2/lglaf-develop_zip
3. Put your phone in Download Mode
a.) Power off your phone
b.) Plug in the cable connected to your computer and start holding volume up at the same time
4a. (At this point there are 2 ways, I recommend trying the first one first)
Open lglaf-develop folder and open a Powershell / cmd line
Make sure the path at the top is the folder directly leading to the lglaf.py file
(Shift Key + right mouse) and type: "python lglaf.py" then hit ENTER
If it says python is not recognized
4b. Open a normal command prompt and type "where python"
Copy the path (except for the /python.exe at the end)
Go to lglaf.py > open with > find another app > paste in path and select the python.exe file and click open
5. Type "!SABS 0" or "!SABS 1" to switch between A/B slots. You will have to test to see which one your in, no harm can be done by switching to already active slot.
6.Type "!CTRL POFF"
7.Type "exit"
The device will power off after you unplug the USB cable.
Don't worry if it takes a very long time to boot up - just hold power button for like 10 seconds and wait
Important: everytime you want to update, switch to the PIE slot so that the other slot gets updated and you have an official version to revert to.
Nice work, Antintin! But you forgot to create one also for G8 users. ??
Inerent said:
Nice work, Antintin! But you forgot to create one also for G8 users. ??
Click to expand...
Click to collapse
I'll do that later
antintin said:
WARNING: make a BACKUP before proceeding and save it to your computer. When I reverted to pie it put me in secure start up and I had to factory reset, it could happen to you too.
*This method is taking advantage of the a/b slot system, as when you install the Android 10 beta while being on pie, it will update the slot the you are currently not using, leaving the pie slot untouched.
This can be done to update to a newer beta and get unstuck out of the beta
1) make sure you have the lg usb drivers installed. I suggest you do the whole setup for lgup anyway.
2) https://github.com/steadfasterX/lglaf/tree/develop
Download as a zip file and unzip to desktop. Make sure you're in the develop branch (don't worry about it the link should already bring you there)
3) put your phone in download mode:
To do this 1: power off phone and plug usb cable into computer (not yet into phone)
2: press and hold the volume button in the same moment that you put the cable into your phone and wait until you get into download mode
4.) Open a powershell in the develop file.
To do this, open the develop file, and there should be another folder with the exact same name inside it (if you go inside this file you see a bunch of .py files)
Hover over this second folder with your mouse and press shift+right click. Move to open powershell window here: type "python lglaf.py" (without quotes)
5.) Type commands:
1: type !SABS 0 or !SABS 1 to switch between slots. You will have to test to see which one your in, no harm can be done by switching to already active slot. Keep in mind, the powershell will always have a # before the command, but it's important that you have the !
2: type !CTRL POFF
3: just type exit
6) device will restart after you pull cable out
7) Everytime you want to update, switch to the pie slot so the other slot gets updated and you have an official version to revert to
If you encounter any problems, join the telegram group for v50 by simply searching up v50 in the telegram app
If you have the time, please thank this post
Click to expand...
Click to collapse
Power shell wont do anything after i put the commands. I wanna go back to Pie cause i ran into roaming bug and now i dont have mobile data. This is on the LG G8 Sprint btw.
Does anyone know if it will still work after a factory reset done from recovery?
Edit: I can't seem to run the !SABS command as it is not recognized by Powershell after running the python script. Also, the python script didn't seem to do anything.
!SABS : The term '!SABS' 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
+ !SABS 1
+ ~~~~~
+ CategoryInfo : ObjectNotFound: (!SABS:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
It boots me to android 10 regardless of if I put !SABS 0 or !SABS 1
Deathmeter said:
It boots me to android 10 regardless of if I put !SABS 0 or !SABS 1
Click to expand...
Click to collapse
Did you apply an update while you were in Android 10? Did you do the rest of the commands too so it automatically restarts after u unplug?
I do the commands you posted, I put # then I copy and paste what you wrote so Im not misstyping. However when I unplug it doesn't reboot. I have to manually do it myself
Deathmeter said:
I do the commands you posted, I put # then I copy and paste what you wrote so Im not misstyping. However when I unplug it doesn't reboot. I have to manually do it myself
Click to expand...
Click to collapse
Ur not supposed to put the # it is automatically there
antintin said:
Ur not supposed to put the # it is automatically there
Click to expand...
Click to collapse
well, I got it to work, unfortunately it put me into secure startup and wants a password but I never had one set. I only had a pattern and fingerprint
Edit: I looked it up, had to enter my pattern liek they were numbers 1-9, really weird
So followed the guide and it gave me the same error that @goliath714 got. @antintin can you give us some more direction here? Telegram group is garbage... filled with a bunch of ads and ****.
---------- Post added at 08:48 PM ---------- Previous post was at 08:48 PM ----------
So followed the guide and it gave me the same error that @goliath714 got. @antintin can you give us some more direction here? Telegram group is garbage... filled with a bunch of ads and ****.
After speaking with folks in the Telegram group:
CREATE A BACKUP AND MOVE TO PC FIRST!!!
Afterwards, make sure you have PYTHON 3 installed, as well as LGUP and all the drivers.
Then you can run the powershell commands and they actually work!
Once reverted you will boot to a secure boot screen... just enter wrong password enough times to cause phone to wipe... after wiping and rebooting, plug phone in to PC and move backup back onto phone.
Use the "Restore" option in Settings to restore your data.
Profit.
crazynapkinman said:
So followed the guide and it gave me the same error that @goliath714 got. @antintin can you give us some more direction here? Telegram group is garbage... filled with a bunch of ads and ****.
---------- Post added at 08:48 PM ---------- Previous post was at 08:48 PM ----------
So followed the guide and it gave me the same error that @goliath714 got. @antintin can you give us some more direction here? Telegram group is garbage... filled with a bunch of ads and ****.
Click to expand...
Click to collapse
I've spent a lot of time trying to get this to work and Google about Python as I've never used it. Here's as far as I got. I appreciate any and all help that anyone can provide:
First, I received an error that about python:
PS C:\Users\Josh\Desktop\lglaf-master> python lglaf.py
python : The term 'python' 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
+ python lglaf.py
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (python:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Since I can't figure out how to set up python globally, I remembered the old adb days and added all of my contents to the python folder...and I get the following:
PS C:\Python30> python lglaf.py
python : The term 'python' 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
+ python lglaf.py
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (python:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Suggestion [3,General]: The command python was not found, but does exist in the current location. Windows PowerShell does not load commands from the current location by default. If you trust this command, instead type: ".\python". See "get-help about_Command_Precedence" for more details.
PS C:\Python30> .\python lglaf.py
Traceback (most recent call last):
File "lglaf.py", line 10, in <module>
import argparse, logging, re, struct, sys, binascii
ImportError: No module named argparse
PS C:\Python30>
Any help you can provide is appreciated. I'm sure I'm missing something simple.
joshw0000 said:
I've spent a lot of time trying to get this to work and Google about Python as I've never used it. Here's as far as I got. I appreciate any and all help that anyone can provide:
First, I received an error that about python:
PS C:\Users\Josh\Desktop\lglaf-master> python lglaf.py
python : The term 'python' 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
+ python lglaf.py
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (python:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Since I can't figure out how to set up python globally, I remembered the old adb days and added all of my contents to the python folder...and I get the following:
PS C:\Python30> python lglaf.py
python : The term 'python' 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
+ python lglaf.py
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (python:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Suggestion [3,General]: The command python was not found, but does exist in the current location. Windows PowerShell does not load commands from the current location by default. If you trust this command, instead type: ".\python". See "get-help about_Command_Precedence" for more details.
PS C:\Python30> .\python lglaf.py
Traceback (most recent call last):
File "lglaf.py", line 10, in <module>
import argparse, logging, re, struct, sys, binascii
ImportError: No module named argparse
PS C:\Python30>
Any help you can provide is appreciated. I'm sure I'm missing something simple.
Click to expand...
Click to collapse
Was your phone in download mode and plugged in while you ran the last one? If yes, then uninstall and reinstall python and look up how to add it to path variables. To find the python path, you can type where python into a normal command prompt, but when you add it to path variables, make sure you leave out the /python.exe part at the end
crazynapkinman said:
After speaking with folks in the Telegram group:
CREATE A BACKUP AND MOVE TO PC FIRST!!!
Afterwards, make sure you have PYTHON 3 installed, as well as LGUP and all the drivers.
Then you can run the powershell commands and they actually work!
Once reverted you will boot to a secure boot screen... just enter wrong password enough times to cause phone to wipe... after wiping and rebooting, plug phone in to PC and move backup back onto phone.
Use the "Restore" option in Settings to restore your data.
Profit.[/QUOTE
BTW there are no ads in telegram idk why you are saying there are
Click to expand...
Click to collapse
antintin said:
Was your phone in download mode and plugged in while you ran the last one? If yes, then uninstall and reinstall python and look up how to add it to path variables. To find the python path, you can type where python into a normal command prompt, but when you add it to path variables, make sure you leave out the /python.exe part at the end
Click to expand...
Click to collapse
antintin said:
Was your phone in download mode and plugged in while you ran the last one? If yes, then uninstall and reinstall python and look up how to add it to path variables. To find the python path, you can type where python into a normal command prompt, but when you add it to path variables, make sure you leave out the /python.exe part at the end
Click to expand...
Click to collapse
Yes, the phone was connected in Download mode and I confirmed that it was recognized in Device Manager. I reinstalled and repaired Python about 5 times last night. At one point I even attempted to learn Python and execute the commands in the Python command prompt that the program installed.
I also spent a good deal of time trying to figure out how to add Python to the path variable. One post I found said to reinstall it (which I did) and another gave a command prompt command which seemed to point to an older version or Python but I adapted and ran it for the newer version that I'm running and the command completed without an error.
No matter what I did, each time if I typed in "Python" or the command in the OP, I would get an error. It only seemingly accepted it when I issued ".\python lglaf.py" but I think that's because I was CD'ed into the folder with the Python .exe file.
Sent from my SM-N960U using Tapatalk
You have to install adb from Google first??
Got it to work. That was a lot to do!
d7racerx said:
Got it to work. That was a lot to do!
Click to expand...
Click to collapse
Did this method erase all data for eveyone it just for some?
Hey man, I love you, I thought I was ****ed up. It works. The only thing is that when the device startep up it ask you a password, but I did wipe data and everything perfect. Now I am updating to android 10 v20d. And to those people that it did not work, the problem is something with the python, I am telling you that because I had problem with it too, but i looked into google and I could solve the problems I was having. And thank you again, man.

Categories

Resources