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).
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
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 |
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.
Note: Unlocking the bootloader will erase all data on your device.
twrp.img.tar
file in a convenient location.twrp.img.tar
file.yes
to confirm.To build TWRP for the Samsung Galaxy M02s (m02s
), follow the steps below.
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
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.
mkdir twrp-m02s
cd twrp-m02s
repo init -u https://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni.git -b twrp-12.1
repo sync -j$(nproc --all)
git clone https://github.com/mlm-games (or) TeamWin/android_device_samsung_m02s.git -b twrp device/samsung/m02s
source build/envsetup.sh
lunch omni_m02s-eng
mka recoveryimage
After the build completes successfully, find the recovery image at:
out/target/product/m02s/recovery.img
If needed, create a .tar
file for Odin:
cd out/target/product/m02s/
tar -H ustar -c recovery.img > recovery.tar
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