-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
Support for OnePlus One #98
Support for OnePlus One #98
Conversation
Added OnePlus One to the list of officially supported devices
Another config is needed, because after installation of a custom ROM the device switches from device code "A0001" to "bacon".
Looks good! It will be included in the next release! 🙂 Thanks a lot!
Yeah, this is currently a limitation. The detected code directly maps to the config files one-to-one, which is apparently an issue for some OnePlus devices (and also some Sony as far as I know). I'll try to address that in the next release by putting a list of device codes working with a config directly to the file. But it's perfectly fine as you did it now. 🙂 |
I got a weird issue: when I try to flash the recovery and open it, OAI / |
Thats odd 🤔 Do you mean it doesn't boot TWRP or that it doesn't continue once it's booted and hangs at adb wait-for-recovery? Can you attach the log file for that run? |
Where is it saved? Or should I just copy the terminal output? |
It's created in the same directory where you run the executable. |
(I replaced the paths with a |
Thank you :) It looks like everything worked fine 🤔 Does TWRP boot up at all? Sometimes it might be necessary to swipe right to make the recovery available for adb. |
Nope, it stays in fastboot mode... But if I run |
Could it be a problem, that the same TWRP version I try to flash is already flashed? |
Nope, it does not change anything and a magisk patched boot partition does not take a effect on it... (based on my testing) |
Hm, interesting. Looks like it doesn't boot into recovery by itself. |
Kinda, when I reboot into Recovery while it hangs on |
Even if I go into fastboot manually and type |
OAI eventually accepted it, but after multiple reboots from fastboot, twrp and adb... (I think the problem is, that from fastboot it won't boot into recovery rn, but I can't imagine why) |
If I then click continue it throws an error;
|
Hm, might actually be an issue in my code which leads to waiting for recovery to early. I will not be able to work on it since I'm travelling for the next two weeks, but then it will be high priority. If you are running the development version with python, you could try to remove line 375 and 376 in tooling.py and see if that helps. |
Ok, that fixed one of the issues, but my device apparently does not boot into recovery when |
If nothing helps, I will try to lock and unlock the bootloader again, so the device completely reformats. Then I will try again... |
Hm, that might indicate, that TWRP wasn't flashed successfully or the TWRP image has issues. A thing that helps quite often is to try a different usb-cable and usb-port, as well as a different TWRP version if you have one available. But that might not help here, since you already got it working without OAI, right? 🤔 |
I don't think, that that could be the issue - it worked before...
Yup, when I do it manually it works fine... Maybe my boot partition is borked... |
Nope, not the problem... |
Ok uhm, I got another (maybe) weird behavior: Every time the system boots now, it says "Auf Werkseinstellung zurücksetzen" and reboots into reovery, but actually does not do anything... |
Somehow I got OAI to reinstall lineage OS now... Lets see if it helps. |
When I re-unlock the bootloader with the lineage recovery, it throws an error |
I will just try and make a complete reformat of |
@tsterbak My guess is, that the bootloader of the OnePlus One uses old commands, which do not get recognized by the lineage recovery nor by TWRP... I will add a notice to the config... (It worked with the stock recovery, so bootloader is able to communicate with it. But the stock recovery image is no longer available...) |
Thank you for all the things you tried and your suggestions in the issues! :) some of the things will be added to the next release when I'm back from travelling. BTW, can you boot TWRP directly without flashing it with Either way, thanks a lot :) |
Yes I can - maybe that would be a general better solution to just boot TWRP instead of overwriting the stock recovery... (That would fix the issue with the bootloader not being able to communicate with the recovery) |
Great! You could test that with OAI by changing the command in line 372 in tooling.py to |
I modified the code a bit more and it works like a charm! Should I also implement that it is done always - regardless how it is formatted and open a PR? Edit: I already opened a PR at #111 |
I just tested it with stock recovery and new OS - worked completely fine, now the data wipe after |
OAI now only boots into TWRP instead of flashing and overwriting the existing recovery, which can cause problems with the bootloader not being able to communicate with the recovery. related to #98 (comment)
Added a config for OnePlus One (
bacon
), based on the OnePlus 5 config by @SirRGB. But it is still untested... (Hopefully I have the time to test it in the next few days / week(s))