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

Add Pixel 3a (sargo) #38

Merged
merged 7 commits into from
Nov 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion index.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@
"kagura": "Sony Xperia XZ (F8331 & F8332)",
"kugo": "Sony Xperia X Compact (F5321)",
"karin": "Sony Xperia Z4 Tablet (SGP771 & SGP712)",
"santoni": "Xiaomi Redmi 4X"
"santoni": "Xiaomi Redmi 4X",
"sargo": "Google Pixel 3a (sargo)"
}
143 changes: 143 additions & 0 deletions v1/sargo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
{
"name": "Google Pixel 3a",
"codename": "sargo",
"unlock": ["unlock", "downgrade_android", "support"],
"user_actions": {
"unlock": {
"title": "OEM unlock",
"description": "If you haven't done so already, make sure to OEM unlock your device first.",
"link": "https://source.android.com/devices/bootloader/locking_unlocking#unlocking-bootloader"
NeoTheThird marked this conversation as resolved.
Show resolved Hide resolved
},
"bootloader": {
"title": "Reboot to Bootloader",
"description": "With the device powered off, press and hold the volume down and power buttons until the screen turns on. It should say 'Fastboot Mode' underneath the warning sign.",
"image": "phone_power_down",
"button": true
},
"recovery": {
"title": "Reboot to Recovery",
"description": "With the device still at the 'Fastboot Mode' screen (if not, power off the device and press and hold volume down and power buttons until the screen turns on), select the 'Recovery Mode' option by using the volume buttons and press the power button to enter.",
"image": "phone_power_down",
"button": true
},
"downgrade_android": {
"title": "Downgrade Android",
"description": "If the device is running an Android version above 9.0, you have to downgrade to the last 9.0 release. Please make sure to flash version PQ3B.190801.002 of the factory image before proceeding.",
"link": "https://developers.google.com/android/images#sargo"
},
"support": {
"title": "Support",
"description": "For details about Ubuntu Touch support for the Pixel 3a, please head over to the UBports forum thread.",
"link": "https://forums.ubports.com/topic/4621/google-pixel-3a-sargo"
}
},
"operating_systems": [
{
"name": "Ubuntu Touch",
"sanity_check": "Are you sure?",
"options": [
{
"var": "channel",
"name": "Channel",
"tooltip": "The release channel",
"link": "https://docs.ubports.com/en/latest/about/process/release-schedule.html",
"type": "select",
"remote_values": { "type": "systemimagechannels" }
},
{
"var": "wipe",
"name": "Wipe Userdata",
"tooltip": "Wipe personal data",
"type": "checkbox"
},
{
"var": "bootstrap",
"name": "Bootstrap",
"tooltip": "Flash system partitions using fastboot",
"type": "checkbox",
"value": true
}
],
"prerequisites": [],
"steps": [
{
"type": "download",
"condition": {"var": "bootstrap", "value": true},
"group": "firmware",
"files": [
{
"url": "https://cdimage.ubports.com/devices/sargo/boot.img",
"checksum": "3125fa5cdd097cd69b8005af13e4c6a4a4cc61b83c6b13b219799def51fff2fa"
},
{
"url": "https://cdimage.ubports.com/devices/sargo/dtbo.img",
"checksum": "51e63686ee4bb15e1ddc296f8809996d645d114347daebacc561cf02d2bfce2d"
},
{
"url": "https://cdimage.ubports.com/devices/sargo/vbmeta.img",
"checksum": "854a2c2a5e82c2c49a5d9d62c70334002c7dcd9203f904952ff5fc43b2eac420"
}
]
},
{
"type": "adb:reboot",
"condition": {"var": "bootstrap", "value": true},
"to_state": "bootloader",
"fallback_user_action": "bootloader"
},
{
"type": "fastboot:set_active",
"slot": "b"
},
{
"type": "fastboot:flash",
"condition": {"var": "bootstrap", "value": true},
"flash": [
{
"partition": "boot",
"file": "boot.img",
"group": "firmware"
},
{
"partition": "dtbo",
"file": "dtbo.img",
"group": "firmware"
},
{
"partition": "vbmeta",
"file": "vbmeta.img",
"group": "firmware",
"flags": ["--disable-verity", "--disable-verification"]
}
]
},
{
"type": "fastboot:format",
"condition": {"var": "wipe", "value": true},
"partition": "userdata",
"partitionType": "ext4"
},
{
"type": "user_action",
"condition": {"var": "bootstrap", "value": true},
"action": "recovery"
},
{
"type": "adb:reboot",
"condition": {"var": "bootstrap", "value": false},
"to_state": "recovery",
"fallback_user_action": "recovery"
},
{
"type": "systemimage"
},
{
"type": "adb:reboot",
"to_state": "recovery",
"fallback_user_action": "recovery"
}
],
"slideshow": []
}
]
}