Tips and Tricks [Google Pixel] (sailfish)

sd_shadow

Recognized Contributor
Sep 21, 2011
16,792
7,629
253
South Dakota
goo.gl
New device new rules/tricks

The main purpose for this thread is to post info that doesn't real justify it's own thread.
Most of what is posted is what interests me, usually in no particular order.
If you think something is missing, please share (include links or as much info you can)

General Info
Have a question? Please consider asking in the
 
Last edited:

sd_shadow

Recognized Contributor
Sep 21, 2011
16,792
7,629
253
South Dakota
goo.gl
USB Drivers for using ADB/Fastboot commands
 
Last edited:

sd_shadow

Recognized Contributor
Sep 21, 2011
16,792
7,629
253
South Dakota
goo.gl
Unlocking the Bootloader - 06 Nov 2016
  • If it's a pure Google device just run
    Code:
    fastboot oem unlock
  • If you bought the Pixel from Verizon, Best Buy.... dePixel8 method will be required to unlock the bootloader

    Note: Verizon, Build Version NDE63X, Nov 2016 can be unlocked,Builds after that cannot.
    • Using dePixel8
      • Be sure Drivers are correct
      • Change screen timeout to 30 mins in settings/display options
      • Enable Developer Options
        • In Settings/About Phone >Tap build version until it says "you are developer"
        • go back to main Settings screen
        • Open Developer Options
        • Enable ADB Debugging (in Developer Options)
        • Be sure ADB and Fastboot commands are working
        • Download dePixel8
          Run in Command prompt
          Code:
          adb push dePixel8 /data/local/tmp
          Code:
          adb shell chmod 755 /data/local/tmp/dePixel8
          then
          Code:
          adb shell /data/local/tmp/dePixel8
          when you see
          Code:
          [+] getting there, about 20 more seconds please
          open the Chrome app on the phone
          then you should see
          Code:
          [+] done
          [+] rebooting your device to bootloader mode
          [+] run "fastboot oem unlock" to unlock your bootloader
          [+] P.S. Pixel is made by HTC, and dePixel8 was made by beaups
          [+] cheers jcase - copyright Streamlined Mobile Solutions, LLC
  • Discussion Thread: BL unlock for Verizon Pixel just released by murryrulz
 
Last edited:

sd_shadow

Recognized Contributor
Sep 21, 2011
16,792
7,629
253
South Dakota
goo.gl
Hotspot/WiFi Tether
Hotspot should work out of the box for most data plans except Unlimited Data plans

Verizon Unlimited Data Plans

Sprint WiFi Tethering Thread
 
Last edited:

sd_shadow

Recognized Contributor
Sep 21, 2011
16,792
7,629
253
South Dakota
goo.gl
Setting up and Using ADB/Fastboot (Android Debugging Bridge)

For Mac or Linux: see Can ADB/Fastboot be used on Linux and Mac?


Setting up ADB/Fastboot (Windows)

Using ADB/Fastboot
  • adb commands are used in normal boot/OS or in Recovery
  • fastboot commands are used in fastboot/bootloader mode



Set/Change Active System Partition with Fastboot Command in Bootloader Mode

Code:
Fastboot set_active _a
Code:
Fastboot set_active _b
 
Last edited:

sd_shadow

Recognized Contributor
Sep 21, 2011
16,792
7,629
253
South Dakota
goo.gl
Installing new security update with fastboot for a bootloader-unlocked Pixel.
Note: This is a work in progress, but it should be correct.
Even if it works for the Nov update, it may need to be written for future updates

Problem:
If you have modified the stock firmware (hosts file, root, kernel, etc.), the OTA update likely will fail

Solution:
This does not factory reset, user apps and data are not removed.
This will remove your custom kernel/root/hosts/recovery...

Install Verify Drivers
Setup ADB.exe see
Download the system image for Sailfish (Pixel) from google
For November update, there are 3 versions:
NDE63U Europe
NDE63V US, except Verizon
NDE63X Verizon

Unzip the file
Unzip xxxxxxnde63v.zip from inside the new directory/folder
Copy files to same folder as adb.exe files (unnecessary if adb is setup as global)

Open open Command Prompt (with same directory path as firmware files)

Reboot into bootloader
Code:
adb reboot bootloader
or
Power off, Hold volume down button, power on

check your boot slot (_a or _b) and following line may need to be adjusted?
Code:
system_b system_other.img



Execute fastboot commands
Code:
fastboot flash bootloader bootloader-sailfish-*.img
fastboot reboot-bootloader
fastboot flash radio radio-sailfish-*.img
fastboot reboot-bootloader
fastboot flash boot_a boot.img
fastboot flash boot_b boot.img
fastboot flash system system.img
fastboot flash system_b system_other.img
fastboot flash vendor vendor.img
fastboot flash modem modem.img
fastboot reboot

Custom Kernel, Root, and other mods will need to be reflashed


Credit
[GUIDE] Update with fastboot by @firewave
 
Last edited:

sd_shadow

Recognized Contributor
Sep 21, 2011
16,792
7,629
253
South Dakota
goo.gl
the Pixel has 2 system slots/partitions,
in theory you could have 2 different roms to choose from, that maybe an option in a future version of twrp


Sent from my XT1254 using XDA Labs
 
Last edited:

Artnig

Senior Member
Mar 5, 2014
276
54
48
I just tried reverting to stock and my phone is stuck in a bootloop and then eventually gets stuck on dead android with No command text. I followed all directions to the dot and I'm on boot slot b. Any ideas?

---------- Post added at 11:04 AM ---------- Previous post was at 10:43 AM ----------

Ok so I followed GeekMcLeod's advice about flashing system-other to the opposite partition. Since I was on boot_b I change the line in the OP to flash system_a and now my phone is booting. @sd_shadow I'm not sure if this is the case for everyone.
 
Last edited:

k.s.deviate

Senior Member
Dec 3, 2010
939
299
0
Calgary
Just a short story about my experience so far with the Pixel.

When i first got my device it wanted to update. I let it update (OTA) and rebooted. Once that was done, I unlocked the bootloader, booted TWRP flashed it, rebooted TWRP and then flashed root. All was awesome, I went to reboot and noticed that TWRP shows which boot slot you're in (I was in B). I rebooted anyway and everything works as expected.

I was curious, so I booted back into TWRP, went to reboot and changed the boot slot to A, got an error but checked it again and it shows I was in fact in boot slot A. So i rebooted... it booted into non rooted, pre update android... so it looks to me that this seamless update system applies the update the opposite partition that your in. So if you're in A and take an OTA it applies it to B and then reboots into B (updated) and the opposite will happen if you take the OTA while in B. All apps and data you've collected is shared with either system partition.

So, in theory we could take the OTA as long as we flash the recovery and (possibly) boot images before downloading and applying it. We would only have to flash TWRP and root again.

And I agree, it looks like we should be able to dual boot two different ROMS, maybe even kernels without too much messing around.

I'm sure this is not new news but I just wanted to share and maybe someone will correct me or learn from it.