bishopdynamics / superbird-tool

Cross-Platform Spotify Car Thing (superbird) hacking toolkit
135 stars 8 forks source link

Add boot slot selection for --boot_adb_kernel and --disable_avb2 #7

Closed ivybowman closed 1 year ago

ivybowman commented 1 year ago

Spotify updates the other slot usually so that can lead to updating your superbird then still booting to the old os after disabling AVB2. I didn't do it yet but I really want to do pep8 reformatting on this code, but let me know if that would be an issue or not.

I added a sub-argument to the avb and adb choices and an if statement to check what slot is chosen and adjust commands accordingly. I also added another env.txt so that there is one for each slot. Please let me know if you have any questions!

bishopdynamics commented 1 year ago

I'm totally fine if you want to do the pep8 reformatting. I'm new to argparse, so if you want to reorganize how that is working I'd be happy improvements as well.

bishopdynamics commented 1 year ago

@ivybowman FYI I am about to push an update with experimental support for restoring partition/device. After this I am going to take a bit of a break, would be a great time for you to reformat/refactor if you want

ivybowman commented 1 year ago

Sounds good! Sent with Spark On Nov 5, 2022 at 4:55 PM -0400, Bishop @.***>, wrote:

@ivybowman FYI I am about to push an update with experimental support for restoring partition/device. After this I am going to take a bit of a break, would be a great time for you to reformat/refactor if you want — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>