Skip to content

Instantly share code, notes, and snippets.

@travelhawk
Last active January 31, 2024 15:25
Show Gist options
  • Save travelhawk/991690d37c3299301a048fdaea1ad5c6 to your computer and use it in GitHub Desktop.
Save travelhawk/991690d37c3299301a048fdaea1ad5c6 to your computer and use it in GitHub Desktop.

Enable USB Debugging with custom ROM

Bypassing USB Debugging off and FRP Google Account lock enabled on a Samsung XCover4.

Model: Samsung XCover4

Tools

Bypass FRP and Google Account Lock

  1. Get Custom ROM
  2. Unzip boot.img.lz4 with lz4
  3. Unpack boot.img
  4. Edit default.prop
  5. Repack boot.img
  6. Pack back to lz4 format with lz4 -B6 --content-size in.img out.img.lz4
  7. Add to Stock ROM
  8. Pack tar file without md5

Unlock Bootloader

The OEM unlocking option was missing in the Devloper settings. This is due to a seven day lock by Samsung. Changing the date of the phone to a previous date will bypass this lock and the Unlocking option will appear again.

After that Custom ROM can be installed.

https://www.ytechb.com/fix-missing-oem-unlock-in-developer-options/

Install Modified Stock ROM

I want to modify the Stock ROM by removing unnecessary apps and adding own apps.

Root Device

  1. Download Magisk Manager App
  2. Copy AP_....tar.md5 to device
  3. Patch ROM in Magisk app
  4. Copy to patched file to PC
  5. Install using Odin

Issues

  • Only official binaries are allowed to be flashed

Links

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