Google Pixel (google-pixel): Difference between revisions
→Installation: Steps for installing TWRP |
|||
Line 69: | Line 69: | ||
== Installation == | == Installation == | ||
More details to this section are coming soon. | |||
<!-- add more sections below as necessary, e.g. Wifi, photos, ... --> | |||
=== Untested steps === | |||
Take precaution here, and keep backups. This section is all theoretical and has not been tested as of writing. | |||
* [https://twrp.me/google/googlepixel.html Download the latest TWRP (both img and zip)] | |||
* From the TWRP directory, run the fastboot command: <pre>#fastboot boot <nowiki><your-twrp.img></nowiki></pre> | |||
* At this point, TWRP will load | |||
* Navigate to Advanced > ADB Sideload | |||
* Install TWRP to your recovery partitions. This will overwrite '''both''' recovery partition slots (A and B): <pre>adb sideload <nowiki><your-twrp.zip></nowiki></pre> | |||
* Reboot the phone into fastboot | |||
* At this point you can run recovery from slot A. Be sure that slot A is active before continuing: | |||
<pre><nowiki> | |||
#fastboot set_active a | |||
#fastboot reboot bootloader | |||
#fastboot reboot recovery | |||
</nowiki></pre> | |||
== Serial Debugging == | == Serial Debugging == |
Revision as of 16:17, 3 April 2018
Manufacturer | |
---|---|
Name | Pixel |
Codename | sailfish, marlin |
Released | 2016 |
Hardware | |
Chipset | Qualcomm MSM8996 Snapdragon 821 |
CPU | Quad-core (2x2.15 GHz Kryo & 2x1.6 GHz Kryo) |
GPU | Adreno 530 |
Display | 5.0 inch AMOLED capacitive multi-touch screen, 1280x1920 |
Storage | 32/128GB |
Memory | 4GB Dual Channel LPDDR4 |
Software | |
Original software | Android 7.1 (Nougat) |
postmarketOS | |
Category | testing |
Pre-built images | no |
Mainline | no |
Flashing |
No data |
---|---|
USB Networking |
No data |
Internal storage |
No data |
SD card |
No data |
Battery |
No data |
Screen |
No data |
Touchscreen |
No data |
Multimedia | |
3D Acceleration |
No data |
Audio |
No data |
Camera |
No data |
Camera Flash |
No data |
Connectivity | |
WiFi |
No data |
Bluetooth |
No data |
GPS |
No data |
NFC |
No data |
Modem | |
Calls |
No data |
SMS |
No data |
Mobile data |
No data |
Miscellaneous | |
FDE |
No data |
USB OTG |
No data |
HDMI/DP |
No data |
Sensors | |
Accelerometer |
No data |
Magnetometer |
No data |
Ambient Light |
No data |
Proximity |
No data |
Hall Effect |
No data |
Haptics |
No data |
Barometer |
No data |
Contributors
Maintainer(s)
Note on device codenames and compatibility
The sailfish variant of the Google Pixel shares the same kernel builds as the Pixel XL (marlin). Therefore, anything here referencing sailfish should also be relevant to marlin.
What works
TLDR;
- Nothing
Installation using normal measures does not successfully boot. This is likely due to the fact that the Google Pixel's fastboot has two boot slots (A and B). What this effectively means is that fastboot allows you to dual boot. That's nice and all, but it's annoying. What we will likely have to do is flash via TWRP. Needs more investigation.
What does not work
Watch this space.
How to enter flash mode
It is required that the device is cell carrier unlocked before attempting to perform an OEM unlock using fastboot.
- Enter fastboot by shutting down the device, and hold volume down + power until you see the fastboot screen.
- Depending on the phone's previous sleep state, you may be alerted that a RAM dump is in progress. Ignore these, keep holding the buttons until you end up in fastboot.
Once cell unlocked, you must OEM unlock from fastboot through the standard command:
#fastboot oem unlock
Be sure that you are using fastboot slot A. If you need to change slots, perform:
#fastboot set_active a #fastboot reboot bootloader
At this point, you should be ready to test pmOS deployments.
Installation
More details to this section are coming soon.
Untested steps
Take precaution here, and keep backups. This section is all theoretical and has not been tested as of writing.
- Download the latest TWRP (both img and zip)
- From the TWRP directory, run the fastboot command:
#fastboot boot <your-twrp.img>
- At this point, TWRP will load
- Navigate to Advanced > ADB Sideload
- Install TWRP to your recovery partitions. This will overwrite both recovery partition slots (A and B):
adb sideload <your-twrp.zip>
- Reboot the phone into fastboot
- At this point you can run recovery from slot A. Be sure that slot A is active before continuing:
#fastboot set_active a #fastboot reboot bootloader #fastboot reboot recovery
Serial Debugging
Sounds like this is possible, given kernel has serial debugging enabled.
http://www.viruss.eu/malware/practical-android-debugging-via-kgdb/
To Do List
Doing
- [ojbr] - Investigate serial debugging. Obtained a USB FTDI device, just need to hack together a 3.5mm TRRS cable
Backlog
- Re-enable LZMA kernel image compression, add via makedepends
- Test device flashing using fastboot
- Investigate Kernel upgrade path to 4.X where MSM8996 has better support in mainline