Skip to content

Instantly share code, notes, and snippets.

@lnikkila
Last active January 16, 2018 01:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lnikkila/e9572f21fd005dd06740 to your computer and use it in GitHub Desktop.
Save lnikkila/e9572f21fd005dd06740 to your computer and use it in GitHub Desktop.
Flashing a custom ROM (CyanogenMod) using OS X on Samsung Galaxy Tab 10.1 (WiFi) a.k.a. GT-P7510 a.k.a. p4wifi.

CyanogenMod was discontinued, but I’ll keep this up since you can probably try to flash something else using this. Also Heimdall is still very useful but not much talked about. You should probably use TWRP Recovery instead of ClockworkMod these days.

First install Heimdall using Homebrew Cask. You can also download the .pkg and install it manually. Heimdall includes a kext, so you need to reboot after installation.

$ brew cask install heimdall-suite
$ reboot

Then download the recovery image for your device. Scroll down to “Samsung Galaxy Tab 10.1 (Wifi)” and choose either the normal recovery or the touch version. I recommend the normal version, unless you really want touch controls.

Now you need to reboot into download mode to flash the recovery image. This might be a bit finicky, so I recommend that you follow these instructions to the letter:

  1. Shut down the device and disconnect the cable, if any.
  2. Hold volume down (the one next to the power button) and the power button.
  3. When you see the Samsung logo, let go of the power button, but keep the volume button pressed.
  4. When you get to the screen with the android, let go.
  5. Press volume up. You should see a warning. Press volume up again to proceed.
  6. Now connect the device to your computer using the USB cable.

Then flash the recovery image:

$ heimdall detect
  Device detected
$ heimdall flash --SOS recovery-clockwork-(some version)-p4wifi.img --no-reboot

When the command exits, shut down the device by holding the power button. Then repeat the instructions above until step #4 to get to the screen with the android.

This time, press volume down to select recovery mode, and then volume up to proceed. You should now boot into ClockworkMod Recovery.

Using the volume keys to navigate, highlight “install zip from sideload” and press the power key to select it. If you downloaded the touch version, you can just tap it.

Ensure that the device is connected to your computer. Download the latest CyanogenMod build for p4wifi and sideload it using ADB:

$ adb sideload cm-(some version)-p4wifi.zip

ADB will upload the ZIP onto the device, after which CWM Recovery installs it. This might take a while.

When it’s done, you should be automatically taken back to the CWM Recovery main menu. It’s good to wipe the cache afterwards, so choose “wipe cache partition” and confirm it. Then choose “reboot system now”.

When the device reboots, you should see the CyanogenMod boot screen. The first boot can take a long time, so get some coffee.

@ElleSkye117
Copy link

hi, the last link to the CyanogenMod is dead "Over Quota" error.

@lnikkila
Copy link
Author

@MikeLeber117 CyanogenMod is no more, LineageOS is a fork that’s still maintained. Unfortunately they don’t support p4wifi since it’s really old at this point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment