Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update API params #26

Merged

Conversation

vmavromatis
Copy link
Contributor

fix #23

@sethidden
Copy link

sethidden commented Aug 25, 2021

I'm wondering if this PR will ever get merged. The maintainer says in the README that "if you want to make changes just fork the repo" and that he semi-abandoned the project. The people trying to resolve #23 for themselves would need to manually build vmavromatis's fork or download from this commnet #23 (comment)

@francescotescari ?

@francescotescari
Copy link
Owner

I'm wondering if this PR will ever get merged. ?

I'll review and merge PRs regularly but not often.
When I have time I'll have a look to quick updates like this one and eventually make a release.
Thanks for contributing 🚀

@TheOneWithTheBraid
Copy link

I'm unsure whether this is related to this MR, but using the proposed version, I'm getting

[10:38:56][PSTA  ][2560ddbd] Start process (215): "./res/tools/fastboot" "-s" "XXXXX" "oem" "unlock" "9292E49B716657B6D7F1C401A42CCCA2D830B088D339365F5D80297E687EDB506685359855CD54FBCEC3B1F6656CCD002303DF385470880960E24A8A120B63558443F2AC94C932DD201FE5C04DA271C3AA4C0DEE6282BB00BB96BABE5EC5FC424XXXXX [...]"
[10:38:56][PROC  ][4dde4cbd] Process (215) output: FAILED (Command length to RawCommand() is too long)

It looks like the constructed fastboot command exceeds 64 bytes. I anyway can confirm that the cookie extraction is properly fixed.

@nidhinprathap
Copy link

Any update on this release?

@francescotescari francescotescari merged commit a335da6 into francescotescari:master Oct 5, 2021
@nidhinprathap
Copy link

@francescotescari will a build be released ?

@meysampg
Copy link

meysampg commented Oct 6, 2021

I just ran from master branch and got this error:

[11:18:08][INFO  ][5656c93a] Unlock request (/api/v3/ahaUnlock) response: {"code":0,"encryptData":"A2C9ADB2553CF5AE309E4E4CEE52CBBD8D41C09292CA3EB25EB3B8E7F3C50C99B39C5813E9E326EFB6DF139CD55BA6737D645212D7A766C79AD09769E62A55A17F3FCA252DD0C4BA35E62A7B9D8228FF6EC2F139BFDE97CA2782469A5BA18208641E8A941D8D70BC628DF6D27F9AB329CF2BD31F61AC006717F1552A835C381D91CDAEB2691231122FCD9A5F655F1AA7179910B6741A47B1B6A958231AFAF9BAF1BB31860E94C8AFA3BD0BD1CA515A59CA8E71D83CAED99E0EC8AA41C110CF30B39329D1F8AB55EA79ABC29ED5C94312F982999013DA81353536E5ACD692076322532F008E03A6325C91630188CB4A45CB07032380EE0D06845FC5269D000BDC","description":"私钥签名成功","uid":"xxxxxxxx"}
[11:18:08][INFO  ][5656c93a] Unlock request response: {"code":0,"encryptData":"A2C9ADB2553CF5AE309E4E4CEE52CBBD8D41C09292CA3EB25EB3B8E7F3C50C99B39C5813E9E326EFB6DF139CD55BA6737D645212D7A766C79AD09769E62A55A17F3FCA252DD0C4BA35E62A7B9D8228FF6EC2F139BFDE97CA2782469A5BA18208641E8A941D8D70BC628DF6D27F9AB329CF2BD31F61AC006717F1552A835C381D91CDAEB2691231122FCD9A5F655F1AA7179910B6741A47B1B6A958231AFAF9BAF1BB31860E94C8AFA3BD0BD1CA515A59CA8E71D83CAED99E0EC8AA41C110CF30B39329D1F8AB55EA79ABC29ED5C94312F982999013DA81353536E5ACD692076322532F008E03A6325C91630188CB4A45CB07032380EE0D06845FC5269D000BDC","description":"私钥签名成功","uid":"xxxxxxx"}
[11:18:08][PSTA  ][5656c93a] Start process (331): "./res/tools/fastboot" "-s" "xxxxxxx" "oem" "unlock" "A2C9ADB2553CF5AE309E4E4CEE52CBBD8D41C09292CA3EB25EB3B8E7F3C50C99B39C5813E9E326EFB6DF139CD55BA6737D645212D7A766C79AD09769E62A55A17F3FCA252DD0C4BA35E62A7B9D8228FF6EC2F139BFDE97CA2782469A5BA18208641E8A941D8D70BC628DF6D27F9AB329CF2BD31F61AC006717F1552A835C381D91CDAEB2691231122FCD9A5F655F1AA7179910B6741A47B1B6A958231AFAF9BAF1BB31860E94C8AFA3BD0BD1CA515A59CA8E71D83CAED99E0EC8AA41C110CF30B39329D1F8AB55EA79ABC29ED5C94312F982999013DA81353536E5ACD692076322532F008E03A6325C91630188CB4A45CB07032380EE0D06845FC5269D000BDC"
[11:18:08][PROC  ][7be82501] Process (331) output:                                                    FAILED (Command length to RawCommand() is too long)

The error mentioned by @TheOneWithTheBraid is valid.

UPDATE: I just merged master with linux branch on my local clone and no longer I see the mentioned problem.

@nidhinprathap
Copy link

@meysampg is it working?
I can't get the application run on Mac. Is Java 11 Mandatory?

@meysampg
Copy link

meysampg commented Oct 6, 2021

@nidhinprathap Yes, it's unlocked my device. BTW I flashed LineageOS, and I'm stuck in the boot loop now :)).

@nidhinprathap
Copy link

@nidhinprathap Yes, it's unlocked my device. BTW I flashed LineageOS, and I'm stuck in the boot loop now :)).

cant get it build in mac

@tsegazeabk
Copy link

@nidhinprathap Yes, it's unlocked my device. BTW I flashed LineageOS, and I'm stuck in the boot loop now :)).

Hi pal I'm new to this stuff but I own a redmi 9 and I was trying to unlock my bootloader and the same massage above appears, and I think you are saying you fixed it can you help me out

mokemokechicken added a commit to mokemokechicken/XiaoMiToolV2 that referenced this pull request Jul 20, 2022
agucova added a commit to agucova/XiaoMiToolV2 that referenced this pull request Dec 20, 2022
sfedia added a commit to sfedia/XiaoMiToolV2 that referenced this pull request Feb 15, 2023
@jeferson-guedes
Copy link

I have a problem, I did what I said there in PR, but when I log in to the xiaomi cloud, I get stuck on the code confirmation screen and even add my cell phone number and link it to the xiaomi cloud, I don't receive it through that link, I would have some parameter that could send different?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Xiaomi procedure failed: [getServiceToken] Missing serviceToken cookie
8 participants