mlm-games / twrp_galaxy_m02s

TWRP/OFOX Device tree for Galaxy M02s.
Apache License 2.0
0 stars 1 forks source link

TWRP Device tree for Galaxy M02s and A02s.

Tested on M02s (Does boot on A02s but careful flashing GSIs according to this issue: https://github.com/mlm-games/twrp_galaxy_m02s/issues/5 , Edit: actually the issue might have been caused by gapps being flashed later according to this post and this one too) So if anyone else has also tried and has prior knowledge related to flashing, pls open an issue, i'll just remove the text after recieving some clarity abt. the issue (and once pls read the issue referred to above before trying)

Check the releases and this XDA thread for instructions

Thanks to everyone who helped and whose repositories I've used

base-tree -> https://github.com/ravindu644/twrp_galaxy_m02s

Kernel-source -> https://gitlab.com/mlmstudios1/m02s-kernel

The touch doesnt work on inital boot but it works after turning the screen off for 5secs and then turning the screen on (maybe twice or thrice to verify).

Troubleshooting

If you are not able to get it to load to twrp, flash any disabled vbmeta.img for the device instead of the google's null vbmeta.img

Stock files (recovery.img.lz4, dtbo.img, boot.img): https://github.com/mlm-games/twrp_galaxy_m02s/releases/tag/v3.7.1-0.2

Generic stuff

TWRP Recovery for Samsung Galaxy M02s (SM-M025F)

TWRP Logo


Device Information

Device Info Specification
Device Name Samsung Galaxy M02s
Model Number SM-M025F, SM-M025M, SM-M025G
Codename m02s
SoC (Chipset) Qualcomm Snapdragon 450 (SDM450)
CPU Octa-core 1.8 GHz Cortex-A53
GPU Adreno 506
RAM 3 GB / 4 GB
Storage 32 GB / 64 GB internal storage
MicroSD microSDXC support (dedicated slot)
Battery Non-removable Li-Po 5000 mAh battery
Display 6.5 inches PLS IPS LCD, 720 x 1600 pixels (~270 ppi)
Rear Camera Triple: 13 MP (wide), 2 MP (macro), 2 MP (depth)
Front Camera 5 MP
Android OS Android 10 with One UI Core 2.5
Release Date January 2021

Features


What's Working


Known Issues


Disclaimer

Warning: Installing custom recovery and modifying your device can void your warranty and may result in device malfunctions if not done properly. Proceed at your own risk. Neither the developers nor anyone else is responsible for any damage that may occur to your device by using this software.


Installation Instructions

Prerequisites

Steps

1. Enable Developer Options and USB Debugging

2. Unlocking the Bootloader

Note: Unlocking the bootloader will erase all data on your device.

3. Flashing TWRP Recovery with Odin

4. Boot into TWRP Recovery

5. Disable DM-Verity (Force Encryption also recommended)

6. Boot into System


References


Build Instructions

To build TWRP for the Samsung Galaxy M02s (m02s), follow the steps below.

Prerequisites

Steps

1. Install Required Packages

sudo apt-get update
sudo apt-get install git-core repo gnupg flex bison gperf build-essential zip curl zlib1g-dev \
gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev \
lib32z-dev ccache libgl1-mesa-dev libxml2-utils xsltproc unzip python

2. Set Up Repo Tool

mkdir -p ~/bin
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
export PATH=~/bin:$PATH

Add the above export PATH line to your ~/.bashrc or ~/.profile to make it persistent.

3. Initialize the Repo

mkdir twrp-m02s
cd twrp-m02s
repo init -u https://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni.git -b twrp-12.1

4. Sync the Source Code

repo sync -j$(nproc --all)

5. Clone the Device Tree, Kernel, and Vendor Trees

git clone https://github.com/mlm-games (or) TeamWin/android_device_samsung_m02s.git -b twrp device/samsung/m02s

6. Set Up the Build Environment

source build/envsetup.sh

7. Select the Device to Build

lunch omni_m02s-eng

8. Start the Build

mka recoveryimage

9. Retrieve the Built Recovery Image


Credits

Additional Resources


Notes


Disclaimer: Installing custom recovery and modifying your device involves risks. Proceed at your own risk. Neither the developers nor anyone else is responsible for any damage that may occur to your device by using this software.


You may need to factory reset or wipe data after using multidisabler and flashing magisk.zip (renaming the apk). Do not reboot after flashing magisk and factory resetting before checking for the "bootloader is already unlocked" text in developer options.

Look at this link and this link for qdl (for flashing in edl mode source code and what it needs from the device) to compile for fixing a device stuck in EDL mode. Example