Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Is it possible to run this script on PC? #61

Open
extrablocked opened this issue Jun 12, 2024 · 3 comments
Open

Is it possible to run this script on PC? #61

extrablocked opened this issue Jun 12, 2024 · 3 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@extrablocked
Copy link

I would like to run this script on my PC sicne everything else isn't working, I was wondering if it was possible and if it is how?

@Hackintosh98
Copy link

You can I guess. mi-fastboot for Android is fastboot for Linux / PC. you can emulate the apk

@Pineapplenuts
Copy link

You can I guess. mi-fastboot for Android is fastboot for Linux / PC. you can emulate the apk

I tried running this on linux, it worked for the most part until the last command, the first command resulted in "fast boot is already installed" , using fastboot in place of the last command where mi-fastboot is needed fails because it presumably makes a call to xiaomi's servers

@RohitVerma882 RohitVerma882 added enhancement New feature or request question Further information is requested labels Oct 8, 2024
@xNandrianinAx
Copy link

You can do it with pc.. You just need a cellphone to get the unlock token.

Step:

1- Install adb driver on your PC.
2- Enable USB debugging on the target phone.
3- Connect your phone using USB Cable.
4- Install the termux apk and set it up by following the instructions on this repository. (Only the installation step).
5- Install the account.apk on the target phone and login and copy the DATA once logged in.
6- Transfer the DATA you copied into the cellphone where you installed the termux since it's needed to get the unlock token.
7-Open terminal or CMD on your PC and type "adb reboot fastboot" to reboot your phone into fastboot mode.
8- Now, type "fastboot getvar product" and "fastboot getvar token"
9-Copy the token you get on the CMD into the phone where the termux is installed.
10-Now, type in the termux the command: ./get_token.sh --region=REGION --product=PRODUCT --token=TOKEN DATA
11-Once you receive the unlock token, type in the terminal or CMD on your PC: fastbooot oem unlock <your_unlock_token>

NOTE: DO NOT REBOOT THE DEVICE ONCE YOU ENTER FASTBOOT MODE. THIS WILL RESET THE TOKEN

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants