kirklin / kirklin/hyper-unlock
Crypto error on account binding
- Dominant language
- Python
- Stars
- 8
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the bug
After binding the account on `Xiaomi 11 Lite 5G NE`, it drops an error regarding the decryption algorithm, probably after some breaking change from the vendor.
### Reproduction
After phone succussfully loads setting page, when we click bind account in the Developer options -> Mi Unlick status -> Add account and device
### System Info
```Shell
* 正在连接设备... | Connecting to device...
* 请绑定小米账号 | Please bind your Mi Account
* 已捕获请求 | Request captured
* 正在处理参数... | Processing parameters...
! 解密错误 | Decryption error: Data must be padded to 16 byte boundary in CBC mode
! 错误:解密参数失败 | Error: Failed to decrypt parameters
```
### Validations
- [x] Follow our [Code of Conduct](https://github.com/kirklin/.github/blob/main/CODE_OF_CONDUCT.md)
- [x] Read the [Contributing Guide](https://github.com/kirklin/contribute).
- [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [x] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- [x] The provided reproduction is a [minimal reproducible](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.
Contributor guide
Research direction
No source files or tests are named. Reproduce the flow on a Xiaomi 11 Lite 5G NE through Developer options → Mi Unlock status → Add account and device, then trace the decryption failure and its CBC padding error; done means account binding completes without the reported decryption errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- authentication, cryptography, security
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100