PageOnAndroid
6510051498749449419

Install TWRP and Custom ROM in Samsung M35

Install TWRP and Custom ROM in Samsung M35
Monday, June 9, 2025

 




https://xdaforums.com/t/guide-root-twrp-and-gsi-for-samsung-galaxy-m35.4723129/



Hello everyone, this guide is about how to root your device or install twrp or install gsi or all together

Thanks​

amura11 for gsi tutorial

Abhishek Babu, Physwizz and Devhunter for TWRP
t.me/SamsungGalaxyM35 For tutorial

WARNING
You do all your actions at your own risk and I am not responsible for any actions you take with your device!
And it will delete all your data

Prepare​

  1. Download Odin - Get the most up to date patched version
  2. Download & Install Fastboot++ - This will install ADB drivers as well
  3. Download & Install Google USB Drivers
  4. Download Magisk - Follow the GitHub link

After the Prepare

To unlock the bootloader (mandatory)

To install Magisk (optional)

Installation​

To install twrp permanently (twrp does not have access to /data)

1. Power off > go to download mode by long pressing both volume keys and plug usb cable connected to pc
Continue (Press vol up)

2. Now go to odin
Select your device recovery in AP

3. Go to options > untick 'auto reboot'
Now click on start

4. After completing process

5. Long press Vol down + power button for 7 seconds until black screen appears

6. Now immediately long press vol up + power button
Release power button after seeing Samsung logo but keep pressing vol up button until you open TWRP....

7. In TWRP
- wipe > format data > type 'yes'

8. Then Reboot to recovery

Now complete process is done your TWRP is now permanent.

Installing GSI

Flashing a Generic System Image Using Fastboot and TWRP

Step 1: Boot into TWRP

1. Power off your device.

2. Boot into TWRP Recovery (this usually involves holding the Volume Up + Power button.

Step 2: Boot into Fastboot Mode

1. In TWRP, go to Reboot > Fastboot.

2. Once in Fastboot Mode, connect the device to a PC via USB.

Step 3: Installing Google Drivers

1. Extract the Driver File​

  • Locate the Downloaded File:
    Find the downloaded driver archive (usually a ZIP file) on your computer.
  • Extract the Contents:
    Use an extraction tool like WinRAR or 7-Zipto extract the archive.
    • Right-click the file and select Extract Here or Extract to [folder name].
    • Remember the folder location where the files are extracted.

2. Open Device Manager​

  • Access Device Manager:
    Press Win + X and choose Device Manager from the menu.
  • Identify Your Device:
    In Device Manager, look for your connected device. It might appear as "Unknown Device""Android Device", or "Fastboot Interface" under Other devices or Android devices.

3. Update the Driver Manually​

  • Right-Click on the Device:
    Click the right mouse button on your device entry and choose Update driver.
  • Browse for Driver Software:
    • Select Browse my computer for driver software.
    • Click the Browse button and navigate to the folder where you extracted the driver files.
    • Locate the driver’s .inf file (for example, android_winusb.inf).
  • Install the Driver:
    Follow the on-screen instructions to complete the installation. If a warning about driver signatures appears, choose to install the driver anyway.

4. Verify the Installation​

  • Check in Device Manager:
    Ensure that your device is now correctly listed (e.g., under Android Bootloader Interface).
  • Test with Fastboot:
    Open a Command Prompt window and type:
  • fastboot devices

Step 4: Flashing the GSI

1. Open Fastboot++.

2. Execute the Fastboot Commands

Run the following commands one by one:

fastboot erase system

fastboot delete-logical-partition product

fastboot flash system /path/to/your/image.img

⚠️Replace /path/to/your/image.img with the actual path of the system image file.

3. Reboot to Recovery

Once flashing is complete, reboot back into TWRP:

fastboot reboot recovery

Step 4: Format Data in TWRP

1. In TWRP, go to Wipe > Format Data.

2. Type yes and confirm.

3. Once complete, tap Next.

4. Reboot the System

5. The device will now boot into the newly flashed system.

If after flashing the GSI you have lost Magisk, go to TWRP, tap Advanced, then tap ADB Sideload, swipe, then in Fastboot++, enter the command: adb sideload /patch/to/your/apk/magisk/in/pc/Magisk-v28.1.apk
Wait until the installation is complete. After that, tap Cancel > Back, then tap the home icon at the bottom.
Go to Wipe > Format Data, type yes, then reboot.



for download GSI : 
https://github.com/mytja/treble_evo/releases




for unlocking 120FPS 

settings put system min_refresh_rate 120.0 
settings put system peak_refresh_rate 120.0

https://droidwin.com/force-120hz-refresh-rate-in-any-android-via-adb-commands/