Samsung J2 Prime TWRP + ROOT - Miscellaneous Android Development

Rooting And TWRP for Samsung J2 Prime SM-G5325
By: Aldous M.C
https://forum.xda-developers.com/member.php?u=7506444
warning: not for noobs who dont know anything about odin/flashing/rooting
I found this in 4pda.ru forums i could not really understand even the page was translated from russian to english. though i figured out how they did this
The concept was to create a odin package with a patched boot.image of samsung a3 with twrp recovery.img inside odin package then flashing it thru odin and after that flashing back the stock boot.img of Samsung J2 Prime then booting directly to recovery to flash SuperSU to patch the Stock Boot.img to make TWRP stick and not be replaced by stock recovery or giving a SEAndroid enforing error when booting to TWRP
So this is how you do it. First you need A full official firmware of Samsung SM-G532G (J2 Prime) Odin, and a Tar-Tool to convert boot.img from firmware to a odin package
WHAT YOU NEED (download links below)
1. Download latest firmware for J2 prime
2. Open Firmware file open the AP file, inside you will see folders and the boot.img. extract the boot image by draging it out from the AP file
3. Download tar-tool and extract folder to deskop or anywhere then Place boot.img inside TAR-Tool
4. then run the ImgToTar.MD5.bat file and you will see a boot.tar.md5 file appear. (do not rename it to anything else odin will not recognize this as boot.img and will not flash)
5. Now you have a Odin flashable boot.img from your original firmware. place it somewhere you can easily access we will use it later.
FLASHING THE TWRP
1. on your phone go to developer options and enable usb debbuging and toggle oem unlock to ON
2. power of your phone
3. Open odin on pc and click AP then select/browse the A3 boot img+TWRP odin package select it.
4. then go to options tab uncheck the auto reboot and do not check anything else just the auto-reboot
5. Open your phone to ODIN mode Press and hold home key + Volume down then power
6.Plug in your phone to your pc and press volume up to continue download
7. in PC start the download in Odin if it says pass go to next step
8. at this point you cannot power off the device all you have to do is remove the battery and put it back in BUT DO NOT TURN IT ON YET!
9. Go to ODIN mode again on your phone and the flash the stock boot.img you created with the TAR-Tool (REMEMBER TO ALWAYS UNCHECK AUTO-REBOOT in Odin so you will not end up with a reboot after a succesful flash. again you cannot turn off the phone, just pull the battery and put it back in. Do not turn it on yet dont boot it else your TWRP recovery will be replaced by stock or put you in a boot loop
10. Now Go to Recovery mode, while phone is powered off Press and hold home key + volume up + power key.
11, Tadaa, you have your TWRP recovery booted, now you can flash SUPERSU (use flashable SuperSU 2.79 or latest)
[almost forgot before doing all this place the SuperSU flashable zip on both storages internal and sdcard]
12. now the stock boot.image is patched by SuperSU and it will now hold the TWRP even after reboot.
13. Your done turn your phone on and you have a rooted Samsung J2 Prime.
DOWNLOADS
https://yadi.sk/d/zsYDiUSk3FJHPX - A3+TWRP odin package
https://forum.xda-developers.com/showthread.php?t=2446269 - TAR-Tool
https://drive.google.com/uc?id=0B4fZWSYgVIIOR2kxSVBsYTdmWFE - SAMSUNG J2 Prime FIRMWARE (SM-G532G) you can also find other sources with updated firmwares for your region.
BIG thanks to:
Mk.Mourad for the Tar-Tool script
A Russian comrade JacobN of 4pda,ru forum for the A3+twrp odin package
i am not responsible for anything that happens to your phone while doing this. tested by me and will work if you follow carefully all procedures.
Aldous M.C

twrp keep read only ....
thanks it's worked
but my phone stuck on bootloop samsung logo......it won't start up .......
e : failed to mount / efs (invalid argument )
e : failed to mount / efs (invalid argument )
e : failed to mount / efs (invalid argument )
dm-variety failed...........
how to fix it ...
please help me
thanks

thanks for this. my phone's AP is G532GDXU1AQC1 will this work?. BL is G532GDXU1AQC1 and CP is G532GDXU1AQA3. thank yo:good:u!. i've been waiting for someone speaking in english to make a root for j2 prime. it seems that the forum in 4pda only supports g532f variant of j2 prime.

room4two said:
thanks for this. my phone's AP is G532GDXU1AQC1 will this work?. BL is G532GDXU1AQC1 and CP is G532GDXU1AQA3. thank yo:good:u!. i've been waiting for someone speaking in english to make a root for j2 prime. it seems that the forum in 4pda only supports g532f variant of j2 prime.
Click to expand...
Click to collapse
i am already rooted. thanks for this method!. no problems at all

Can I use this with Baseband version AQA3 and Build number AQC1 ?

does this work on dual sim version? SM-G532G/DS?
and if by chance, you could post pictures
thanks!

chalermla said:
Can I use this with Baseband version AQA3 and Build number AQC1 ?
Click to expand...
Click to collapse
ive tried this and it worked for aqa3 aqc1

room4two said:
ive tried this and it worked for aqa3 aqc1
Click to expand...
Click to collapse
Is your phone also the dual-sim version? Thanks anyway, :good::good:

thanks bro, this method is done, sorry my english
Phone: samsung j2 prime (SM-G532M)
Pais: Bolivia
Empresa: VIVA
Compilacion: MMB29T.G532MUMU1AQD2
Para los de habla hispana remarco lo importante en el procedimiento desmarcar en odin el reseteo automatico y no tocar nada mas
para salir del menu download quiten la bateria y la colocan de nuevo, por nada del mundo prendan el telefono hasta realizar todo el procedimiento
resumen:
1.- entrar al menu download y flashear con odin el A3_boot_twrp_recovery.tar.md5. Quitar bateria y volver a colocarla
2.- entrar al menu donwload y flashear con odin boot.tar.md5 creado por ustedes en base del original. Quitar bateria y volver a colocarla
3.- entrar al menu de twrp con vol+,menu,power e instalar super su (SuperSU-v2.82-201705271822.zip)
4.- encender normalmente y vuala root 100%

Thanks
OHHHHH WAOOOOW.....
THANKS a Lot Man....You Are Great.....
Finally, I have found for which i was searching since i bought my j2 prime....
Finally,i have Rooted the latest firmware of my Grand Prime+/j2 prime g532f available on Samsung website...Now I have TWRP and Have installed Xposed....Now I Can Download Direct Files Into SD Card From Uc Browser and have full access to sd card....
I Can Instal Large Games In SD Card.....
Wow I am very Happy and Satisfied with my Mobile now....

help me
hey help me plz, give me ur official boot.img and recovery.img my galaxy j2 prime is bootloop

ajireza said:
hey help me plz, give me ur official boot.img and recovery.img my galaxy j2 prime is bootloop
Click to expand...
Click to collapse
Flash a stock firmware...it will be okay...

Procedure continues to apply Magisk
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Following the procedure given in the first post, Magisk can also be installed. I'll continue with a new step 10:
10) If you followed the original thread and installed SuperSU, you'll need to uninstall it in order to proceed. Unroot your phone using this unSU script. If you haven't yet, ignore this.
11) To install latest Magisk, DOWNLOAD the following:
Latest Magisk
Latest Magisk Manager
(Verify you're downloading the latest versions in this thread here.)
Place these downloads in your SD Card and also extract the stock boot.img from your firmware AP file, as described before. We'll need it.
12) Now press and hold Vol Up + Home + Power will boot usa into TWRP. Now we need to first install the stock boot.img. This is done because Magisk installer will complain if it detects this patched boot.img we used in earlier steps to boot TWRP and thus fail. Installing the stock boot.img will let us install Magisk successfully. SO in TWRP, go to Install / Install Image and browse to the boot.img file; then select "Select Partition to Flash Image: Boot" and flash it.
13) Go back to TWRP home and proceed to install Magisk Zip file. The installer should end without any errors.
14) Reboot your Samsung to system, and you can now install Magisk Manager (allow unknown sources, you know this already). Once done, open it. You'll be greeted with beautifil green ticks :good:
TWRP will still be there when you need it.
ENJOY!!!!
Thanks to a lot to @4ld0u5 for the original thread.

Hello, I'm helping a friend root his/her SM-G532G/DS
Is this method will work for the stock rom mentioned below (link) or is this stock rom legit for SM-G532G/ds ?
thank you very much.
http://updato.com/firmware-archive-select-model?record=10D3009C4CAA11E7963AFA163EE8F90B

metafaniel said:
Following the procedure given in the first post, Magisk can also be installed. I'll continue with a new step 10:
10) If you followed the original thread and installed SuperSU, you'll need to uninstall it in order to proceed. Unroot your phone using this unSU script. If you haven't yet, ignore this.
11) To install latest Magisk, DOWNLOAD the following:
Latest Magisk
Latest Magisk Manager
(Verify you're downloading the latest versions in this thread here.)
Place these downloads in your SD Card and also extract the stock boot.img from your firmware AP file, as described before. We'll need it.
12) Now press and hold Vol Up + Home + Power will boot usa into TWRP. Now we need to first install the stock boot.img. This is done because Magisk installer will complain if it detects this patched boot.img we used in earlier steps to boot TWRP and thus fail. Installing the stock boot.img will let us install Magisk successfully. SO in TWRP, go to Install / Install Image and browse to the boot.img file; then select "Select Partition to Flash Image: Boot" and flash it.
13) Go back to TWRP home and proceed to install Magisk Zip file. The installer should end without any errors.
14) Reboot your Samsung to system, and you can now install Magisk Manager (allow unknown sources, you know this already). Once done, open it. You'll be greeted with beautifil green ticks :good:
TWRP will still be there when you need it.
ENJOY!!!!
Thanks to a lot to @4ld0u5 for the original thread.
Click to expand...
Click to collapse
Thanks

Can you upload stock boot.img for j2 prime g532f ....i am waiting...i have no computer.... ??

I'm sorry. I couldn't understand this part..
2. Open Firmware file open the AP file, inside you will see folders and the boot.img. extract the boot image by draging it out from the AP file
Please assist. TQ..

i already followed step by step . but after i reboot i need to enter password that i don't know i had. please help me asap

i have the problem with my twrp . are u already solve the problem u faced?
pheak28 said:
thanks it's worked
but my phone stuck on bootloop samsung logo......it won't start up .......
e : failed to mount / efs (invalid argument )
e : failed to mount / efs (invalid argument )
e : failed to mount / efs (invalid argument )
dm-variety failed...........
how to fix it ...
please help me
thanks
Click to expand...
Click to collapse
I have the same problem with my twrp too sir . just like yours. can anyone help me?

Hello brother. Im already rooted with SuperSU. I want to try Magiisk. Is it okay if I flash my J2 Prime with the stock rom and then root it directly using Magisk?

Related

BLU DASH 5.0 D410a Stock ROM Images + Root + TWRP

STOCK ROM IMAGES BLU DASH 5.0 D410a V27-GENERIC Android Kitkat 4.4.2 MT6572 Chipset (no UBIFS)
PLEASE READ THE INSTRUCTIONS BEFORE FLASHING YOUR PHONE SO THAT YOU WON'T BRICK IT.
EDIT: 14 January 2015. Updated the TWRP 2.8.2.0 download link. Fixed the problem where ADB and MTP was not functioning in TWRP. Added backup support for a few other partitions including the Baseband.
EDIT: 19 January 2015. Changed method of rooting and added flashable zip with modified kernel to add init.d support (that was tested and is functioning properly.)
STEP 1
BACKUP YOUR MEDIATEK DEVICE
Prerequisites
All of the software is for Windows.
Download and Extract the MTK USB Drivers and the SP Flash Tool found closest to the top of the list at:
http://mtk2000.ucoz.ru/
Press the play button to the right of the file to start the download.
Download MTK Droid Root & Tools
Latest version can be found by following the link of the following post.
http://forum.xda-developers.com/showpost.php?p=38320254&postcount=1
Hint: Click the show content button to see the link to another forum with the download link
Direct Download Link of MTK Droid Root & Tools if you are having problems getting the link.
http://depositfiles.com/files/ne1gnposp
You will need Winrar to extract the files.
That can be downloaded from: http://www.rarlab.com/download.htm
READ HERE ON HOW TO BACKUP: http://forum.xda-developers.com/showpost.php?p=38337401&postcount=5
Thanks to @rua1 for the instructions and software.
NOTE: I WOULD RECOMMEND BACKUPING UP THE USRDATA PARTITION AS WELL TO DO THAT USE HEX "0X96B40000" AS THE LENGTH DURING READ BACK IN SP FLASH TOOL
To flash the DASH 5.0 you need to use the Preloader to do it.
STEP 2
Installing the Preloader Driver (READ this section entirely before trying)
Open Device Manager
Start -> Run
Type:
Code:
devmgmt.msc
Press Enter
Turn off the phone until it is completely shut down with nothing plugged in the USB port. You will see the screen go black and shortly afterwards it will vibrate.
With Device Manager open, connect the USB cable to the phone without turning it on.
You will see the MT65XX Preloader appear (see image)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Quickly double click MT65XX Preloader before it disappears, if it disappered, just unplug and plug back in the cable and try again.
Under the Driver tab, click Update Driver, click Browse my computer for driver software.
Using the Browse button find the MTKUSBAll folder you extracted and click on "New inst. win 7&8x64" and click OK
Click Next
If you get the message "Windows can't verify the publisher of this driver software", just click "Install this driver software anyway"
Click Close
Click Close
After the driver is installed you can unplug the phone.
STEP 3
Uploading the image files to the phone{/B}
WARNING: The BLU-DASH-5.0_141022_BLU-D410a-V27-GENERIC_FOR_SP_FLASH_TOOL.zip file has all of the necessary images but do not flash them unless you trying to recover from a brick.
DO NOT FLASH THE PRELOADER.BIN AS IT MAY BRICK YOUR PHONE.
THE ONLY FILES I HAVE PERSONALLY TESTED ARE boot.img, factory_NONmodified_recovery.img and system.img
Download BLU-DASH-5.0_141022_BLU-D410a-V27-GENERIC_FOR_SP_FLASH_TOOL.zip from here:
http://d-h.st/3L9G
See Step 5
Extract the SP Flash Tool.
Extract the system.img and MT6572_Android_scatter.txt (and/or boot.img and factory_NONmodified_recovery.img, if you wish)
Open the SP Flash Tool
Click the Download tab
Click the Scatter-loading button and select the MT6572_Android_scatter.txt file.
Click the location of ONLY the parition(s) you are going to flash: ANDROID = SYTEM partition (system.img), BOOTIMG = KERNEL (boot.img) and RECOVERY=RECOVERY (factory_NONmodified_recovery.img or custom recovery file)
Select the image file (e.g. system.img or system_rooted.img)
MAKE SURE ALL OTHERS ARE NOT TICKED
Click the Download button.
Plug in the phone or unplug and plug it back in to start flashing the images to the phone.
Note: This can also be done with the battery removed.
Your phone will have root.
STEP 4 - Adding TWRP
First we need to rename the file recovery-from-boot.p found in the /system folder.
Using a File Manager with root permissions rename
Code:
recovery-from-boot.p
to
Code:
recovery-from-boot.bak
OR
From an adb shell, rename the file
Code:
su
cd /system
mv recovery-from-boot.p recovery-from-boot.bak
Now turn off the phone and with SP Flash Tool flash TWRP 2.8.2.0. Download link below.
NOTE: Select only the RECOVERY partition to flash. TWRP themes are supported as well as the Aroma File Manager.
http://d-h.st/aQmt
STEP 5 - Rooting and adding init.d support
Go to http://download.chainfire.eu/supersu
Download the latest SuperSU.
Go to http://d-h.st/AJQ
Download the init.d support zip file.
Boot to TWRP while connected to a PC with adb tools run the command
Code:
adb reboot recovery[/url]
OR
Hold down the power select Reboot and hold down the volume up button until you see the TWRP logo.
Via the install menu, flash the SuperSU zip and inti.d support zip.
ALL DONE!
THANKS:
[user=631273]@Chainfire[/user] for SuperSU
[user=5119815]@rua1[/user] for MTK Droid Root & Tools and instructions on how to use SP Tools
[user=4478781]@yuweng[/user] for creating the tool to make TWRP for MediaTek devices
[user=912474]@Dees_Troy[/user] for TWRP
I will give a brief explanatoin and will elaborate more when I have the time.
For Root:
Thanks to @Chainfire
I basically mounted the system.img in a Linux OS and copied the files from the SuperSU v2.36 zip file and placed them in their relevant directories added the relevant permissions, etc.
For init.d scripts
Thanks to @alireza7991
See his thread: http://forum.xda-developers.com/showthread.php?t=2287540
I modified the kernel to boot and created a flashable zip that adds busybox to /system/xbin and creates the necessary folders then flashes the modified kernel.
For TWRP:
Thanks to @yuweng
I used Easy Magic TWRP Installer for MTK. See http://forum.xda-developers.com/showthread.php?p=53752834#post53752834
It worked but changed my partition information for some reason even though the size fit my paritition size. I wiped my phone and lost my baseband and recovered it. Posted a new thread on how to do that. See http://forum.xda-developers.com/android/software-hacking/restore-baseband-mt65xx-devices-t2967949
That is why I posted the image file so no one has to face that problem too. I tested it and it is functioning without any problems.
You can follow yuweng's thread to make it smaller if your partition size is smaller than 6MB for some phones, at a cost of course.
Anyone looking for baseband files can check http://forum.xda-developers.com/android/software-hacking/restore-baseband-mt65xx-devices-t2967949
For anyone wanting to use Link2SD on this, I have created a flashable zip to use with a custom recoveery that adds init.d support, installs Link2SD as a system app and adds a modified mount script that functions properly.
Requires root and a SD card with the second partition formatted as EXT4.
Download -> http://d-h.st/Dcgh
After flash this rom only get Blu screen, wipe and cache reset and the same, trun to V14 again and power on ok, this v 27 in the 2 variants, stock and rroted not start.
jorgefar said:
After flash this rom only get Blu screen, wipe and cache reset and the same, trun to V14 again and power on ok, this v 27 in the 2 variants, stock and rroted not start.
Click to expand...
Click to collapse
What procedure did you use to flash it?
SP_Flash_Tool_exe_windows_v5.1420.00
Scatter File from V27
selected only:
Recovery: non modified...
Boot: boot.img
Android : System.img or System Rooted
Flashed OK
Only Blu screen and restar...
Im currently on V14 Ok
jorgefar said:
SP_Flash_Tool_exe_windows_v5.1420.00
Scatter File from V27
selected only:
Recovery: non modified...
Boot: boot.img
Android : System.img or System Rooted
Flashed OK
Only Blu screen and restar...
Im currently on V14 Ok
Click to expand...
Click to collapse
Your phone is a BLU Dash 5.0 D410a and NOT the 5.0+ or 5.0 Studio right?
It sounds like your kernel (boot.img) is not booting the /system partition. Try flashing the /system and recovery partitions only for now and see what happens. Do not flash the boot.img
Thanks for you le answer! Thats right, is a Blu Dash 5.0 D410a, I try on Monday the suggested and post results!!!
Hi again, flashed system and recovery only, stuck on Blu screen again, try wipe and reset cache, stuck on screen Blu,any recomendation??
Added a flashable zip to add init.d and install LInk2SD with a modified mount script to run properly on this phone, BLU DASH 5.0 D420a running V27 Android 4.4.2.
See post #3
dechronic said:
Your phone is a BLU Dash 5.0 D410a and NOT the 5.0+ or 5.0 Studio right?
It sounds like your kernel (boot.img) is not booting the /system partition. Try flashing the /system and recovery partitions only for now and see what happens. Do not flash the boot.img
Click to expand...
Click to collapse
I'm having the same problem as Jorgefar. Mine is on v24 instead of v14 though after the factory update to 4.4.2. I rooted it with kingroot, but I would like to have twrp recovery. I've done everything you instructed him, but mine gets stuck in the bootloop as well. I thought i could just flash the recovery, and did the rename on the recovery file, but that didn't work still had factory recovery. After that I did the entire procedure and got the bootloop.
Sexyr said:
I'm having the same problem as Jorgefar. Mine is on v24 instead of v14 though after the factory update to 4.4.2. I rooted it with kingroot, but I would like to have twrp recovery. I've done everything you instructed him, but mine gets stuck in the bootloop as well. I thought i could just flash the recovery, and did the rename on the recovery file, but that didn't work still had factory recovery. After that I did the entire procedure and got the bootloop.
Click to expand...
Click to collapse
After installing TWRP you need boot into TWRP before booting into Android and install the latest SuperSU. The install-recovery.sh will replace TWRP with the stock recovery on the first boot if SuperSU is not installed, which renames it.
After flashing TWRP with the Smart Phone Flash Tool, disconnect the cable, press the power button and then hold the volume up button to enter TWRP.
dechronic said:
After installing TWRP you need boot into TWRP before booting into Android and install the latest SuperSU. The install-recovery.sh will replace TWRP with the stock recovery on the first boot if SuperSU is not installed, which renames it.
After flashing TWRP with the Smart Phone Flash Tool, disconnect the cable, press the power button and then hold the volume up button to enter TWRP.
Click to expand...
Click to collapse
Cool got it and am on v27 now. thanks..... now if ony there were other roms for it ah well, at least i'm rooted again with recovery.
can i flash this on BLU Dash 5.0 D400a
dechronic said:
Anyone looking for baseband files can check http://forum.xda-developers.com/android/software-hacking/restore-baseband-mt65xx-devices-t2967949
For anyone wanting to use Link2SD on this, I have created a flashable zip to use with a custom recoveery that adds init.d support, installs Link2SD as a system app and adds a modified mount script that functions properly.
Requires root and a SD card with the second partition formatted as EXT4.
Download -> http://d-h.st/Dcgh
Click to expand...
Click to collapse
This say file no longer available..could it be downloaded elsewhere?
Does this work on 5.0+?
Stiffymeister said:
Does this work on 5.0+?
Click to expand...
Click to collapse
Don't think so but I think I have a 5.0+ image. Anything in particular you looking for? I should be able to provide it tomorrow
i have tried everything as you said but after using the flash too and b4 installing recovery it says my phone is not rooted so it wont let me rename the recovery file. should i have a rooted system image in the scatter file cause i dont see one in the files i extracted. p.s. i downloaded all the files you linked so if im missing something can someone please point me in the right direction. thanks
blu dash 5.0 d410a v27
dlongnasty said:
i have tried everything as you said but after using the flash too and b4 installing recovery it says my phone is not rooted so it wont let me rename the recovery file. should i have a rooted system image in the scatter file cause i dont see one in the files i extracted. p.s. i downloaded all the files you linked so if im missing something can someone please point me in the right direction. thanks
blu dash 5.0 d410a v27
Click to expand...
Click to collapse
I probably need to redo the steps for a couple of the posts.
Download the TWRP at http://d-h.st/aQmt
Upload it to the phone. Make sure that only recovery is ticked in the Smart Phone Flash Tool (SP Flash Tool) and select the file you downloaded. You should be able to figure out the rest based on my instructions.
Flash SuperSU which can be downloaded from http://download.chainfire.eu/supersu
It will rename the file that would put back the original recovery.
That should be it.
got it working thanks. are their any custom roms for the d410a?

[Help] Kali Nethunter installation on One Plus 6

I am new to linux (as expected) and tried installing Kali NetHunter on my android device [One Plus 6]. I was successful in installing with Android 8 but my phone keeps bricking when attempted with Android 9/10. I referred to these instructions and followed these steps:
I am looking for help and also any explanations for my understanding of the process is also appreciated very much!
1) Start developer mode, enable oem unlocking and usb debugging, and restart in fastboot mode > then from Powershell: fastboot oem unlock
Phone gets wiped so again start developer mode, usb debugging.
2) Now I download the twrp .img and zip files, also the Magisk.apk from github then rename the apk to .zip (as instructed in their documentation). Finally move these files to the internal storage of the phone.
3) Restart phone in Fastboot mode > from Powershell: fastboot boot twrp-3.x.x-x-enchilada.img (version according to android 8 or 10 respectively)
4) Now that I am temporary booted into twrp I install the twrp .zip file from here and reboot into recovery mode (TWRP that was installed).
Now I flash install the Magisk.zip and reboot the OS > Install the magisk.apk that shows up.
Following the kali nethunter documentation linked above no extra steps are needed for android 8. So I just install the Nethunter zip from Magisk app (click the modules [puzzle piece] icon and select nethunter zip). This works perfectly!!! Ps: if i flash nethunter from TWRP it says successful but bricks the phone and doesn't reboot. Don't know why but if you do please let me know or hint what i should look into to understand better.
****[NEED HELP HERE]****
FOR ANDROID 10: The Kali documentation says for disabling encryption we need to first flash Universal DM-Verity, ForceEncrypt Disabler. So I download the zip and move it to internal storage, from what I understand for my requirement I do not need to change anything in file naming. If I flash this zip using Magisk or TWRP the result is just a bricked phone that gets stuck on "The bootloader is unlocked" warning message.
If I skip this step then it bricks if I flash nethunter through TWRP and if I flash as a module using Magisk then it works fine.
According to nethunter documentation without the Universal DM-Verity, SSH capabilites should not work but on my phone it works just fine if I open the NetHunter app > Kali services > SSH (don't know an extensive way to test this or if any other functionality has been compromised without the ForceEncrypt Disabler). Am I understanding this part wrong? or in my case I do not need to flash Universal DM-Verity, ForceEncrypt Disabler? This step is what confuses me and I have tried countless times via different ways over the past summer.
The Kernel is shows is 4.9.179-perf+ with Android 10.
The reason i wanted to update to Android 10 from 8 is because I am having compatibility issues with RTL8814AU and none of the drivers I find seem to work (Android 8 kernel is 4.9.65-perf+).
Thank you for your time to read and respond!
Friend when you install magisk and disable verity and turn on your phone install the magisk app and checker root then give the necessary permissions and start the recovery mode in twrp and then install install the nethunter ZIP again what happens to me it worked like this
Amigo cuando instales magisk y disable verity y encienda tu teléfono instala la app de magisk y checker root luego da los permisos necesarios e inicia el modo recovery en twrp y luego instala instala el ZIP de nethunter de nuevo haber que pasa a mi me funcionó así

How To Guide Root RUI2.0 and RUI3.0 all models with Magisk

WARNING
Do it at your own risk , neither XDA nor me will be responsible for any damage that may occur
Overview
Rooting your device will give you freedom to enjoy plethora of features like removing OEM bloatwares , using system level Firewall , backing up and restoring all data of Apps , underclocking kernel for better battery life etc .
Requirements ​
Bootloader Unlocked Realme GT Neo 2 (Guide - https://forum.xda-developers.com/t/bootloader-unlocking-on-indian-model-rui-2-0-latest-a07.4391679/ )
A PC (windows or linux) with adb- fastboot installed
USB cable
Magisk Stable Apk
TWRP.img thanks to @ SathamHussainM from his thread on the same topic
Downloads ​ADB-FASTBOOT setup for windows https://forum.xda-developers.com/at...484757/?hash=78ebfa42e75a5def462676a93fff24c7
TWRP.img file link https://www.androidfilehost.com/?fid=17825722713688258515
Magisk23 apk Click here
Root Checker App link https://apkpure.com/root-and-safetynet-checker/com.atominvention.rootchecker/download?from=details
STEPS​Copy this file to your PC C:\adb folder and rename it to twrp.img
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Boot your device into fastboot mode Open Command Line
Go To C:\adb folder , press shift and do a right click , select open Powershell window here
Now type
fastboot devices
, press enter it should show your device now
now type
fastboot boot twrp.img
Process will take 10 second
Your device will reboot and after some time it will show TWRP logo ( it takes time 1 min approx )
wait some time
then In PC file explorer it will show realme gt neo 2 , open it
go to internal storage > Downloads and copy paste the twrp.img file and magisk alpha apk
In twrp backup BOOT , EFS, Modem ,Persist-Image
after backup is done come back to TWRP home and tap on Install button go to the folder where you saved both the files
and select Install image button , now it will show twrp.img file , tap on it then select recovery partition and swipe to confirm flash
After process is complete press Back button and come to TWRP home
Again press install button and select magisk.apk and swipe to confirm flash , this will install Magisk 23 after process is complete press home button go to reboot tab and select system
, Now phone will reboot to system
In phone open file manager and install magisk.apk
Open magisk app it will show magisk installed
just to be sure press the install button and select direct install and press Lets GO
After process is complete press the reboot button and it will boot back to system mode now
Your phone is rooted with magisk 23 and you are eligible to enjoy variety of mods and themes for your device .
Q1) Why are you not flashing recovery directly ?
A) Becuase Its risky (very low chance of flashing failing from fastboot ),So
first we boot this twrp file temporarily and backup all important partitions
When it is clear recovery is working fine , we copy the twrp.img and flash it from twrp to make it permanent .
Q2) Why are you not flashing magisk patched image ?
Ans) Becuase Its risky (the patched boot image you got may not be of your model or software version which will cause bootloop , SO
we trust in magisk to use our device boot.img to create a patched boot.img with magisk support , then we reflash magisk from magisk App to confirm it .
Is there any way to flash stock rom if twrp is installed?
This post says "for all models" but your bootloader unlocker post is for Indian model?
Just asking. It can cause misunderstanding.
Spl1tz said:
This post says "for all models" but your bootloader unlocker post is for Indian model?
Just asking. It can cause misunderstanding.
Click to expand...
Click to collapse
This guide will work for all variants of GT NEO 2 , however the unlocking guide is for Indian Variant only .
So if you somehow managed to unlock Non-Indian Model of RMX3370 you can safely follow this guide (no liabilities of OP ) to install TWRP then root your device
ultimatesprit said:
Is there any way to flash stock rom if twrp is installed?
Click to expand...
Click to collapse
Why do you want to flash stock ROM ?
If it is booting problem you can read this guide
If you just want to reset you have to first remove magisk then from TWRP do factory reset from WIPE section.
However you can try this RollBack ZIP for Indian Variant of Realme GT NEO 2
Email44841 said:
This guide will work for all variants of GT NEO 2 , however the unlocking guide is for Indian Variant only .
So if you somehow managed to unlock Non-Indian Model of RMX3370 you can safely follow this guide (no liabilities of OP ) to install TWRP then root your device
Click to expand...
Click to collapse
Ah gotcha. And now i see bootloader unlock for all variants too. Finally!
Thank you for your hard work
Email44841 said:
Why do you want to flash stock ROM ?
If it is booting problem you can read this guide
If you just want to reset you have to first remove magisk then from TWRP do factory reset from WIPE section.
However you can try this RollBack ZIP for Indian Variant of Realme GT NEO 2
Click to expand...
Click to collapse
This is my first realme device.I would prefer to keep a stock rom to flash incase any boot loop. Not decided to flash twrp permanently. i hope i can boot to stock recovery and flash rollback package to be in stock..Will it work?
Is it possible to use Kernal editor app after root to undervolt/overvolt GPU?
I have moved magisk23aplha.apk to /sdcard/download, but i can't find it in the path after click 'Install Zip', how?
lspgzz said:
I have moved magisk23aplha.apk to /sdcard/download, but i can't find it in the path after click 'Install Zip', how?
Click to expand...
Click to collapse
sry for disturbe, i got it. Just rename the file into '.zip' and install it
Spl1tz said:
ow i see bootloader unlock for all variants too
Click to expand...
Click to collapse
Incorrect. Not all variants
can we update the magisk to latest version (stable or beta) ?
Yes
reversegear said:
can we update the magisk to latest version (stable or beta) ?
Click to expand...
Click to collapse
You can Safely update to latest Magisk releases
My twrp says "internal storage 0 MB", rui3.0 any idea how to fix this?

			
				
I booted in twrp when i click any option it makes a hissing noise (in twrp) and when i try to backup says unable to mount storage (unable to mount /data/media/TWRP/.twrps faild to mount '/data' (invalid argument) also i cant see my device on my computer.
theogr91 said:
I booted in twrp when i click any option it makes a hissing noise (in twrp) and when i try to backup says unable to mount storage (unable to mount /data/media/TWRP/.twrps faild to mount '/data' (invalid argument) also i cant see my device on my computer.
Click to expand...
Click to collapse
Are you able to boot into ROM ?
What have you done before this started happening ?
coz that happens when rui gets corrupted and is unable to mount /data and If unable to boot into saystem then the only solution is to do flash stock boot.IMG and wipe all data
RMX3370 said:
Are you able to boot into ROM ?
What have you done before this started happening ?
coz that happens when rui gets corrupted and is unable to mount /data and If unable to boot into saystem then the only solution is to do flash stock boot.IMG and wipe all data
Click to expand...
Click to collapse
After i unlocked bootloader i flashed ui 2 twrp to ui3 and bricked i fixed it with ofp flash sideload from twrp i can use my phone just bs on twrp

How to install LineageOs 19 on A51?

Hi there,
I tried following this guide: [HOWTO]/[ROM] [UNOFFCIAL] How to Flash Lineage OS 19.0
However the LineageOs link is broken, so I tried searching by the name and came here: Andy Yan's personal builds // GSI Files
But I'm not sure if this would work or that I would need a special patched version or something.
Would I also need to install Android 12 beforehand?
Thanks in advance!
P.S. If someone can help me out, then I would be happy to write an updated guide!
​
Just flashed this 5mins ago. My rom was latest samsung. One UI40
A12. Works fine
Works perfectly fine for me too, only problem is that magisk complains about a wrong su version and i can't get rid of it.
Oh, and somehow, google drive won't pick my google account, can't use it somehow, everything else works.
OK..solved those 2 problems. I installed the latest google drive apk from apkmirror. I don't know if it's just a bad version on play store or if the device is identified as whatever and get's the wrong version.
To get rid of the stupid su that doesn't come from magisk, you can adb shell to device, su, and then execute /sytem/bin/phh-securize.sh. It will throw some errors, but remove the stuff and magisk doesn't complain anymore and still works flawlessly.
nEUTRon666 said:
OK..solved those 2 problems. I installed the latest google drive apk from apkmirror. I don't know if it's just a bad version on play store or if the device is identified as whatever and get's the wrong version.
To get rid of the stupid su that doesn't come from magisk, you can adb shell to device, su, and then execute /sytem/bin/phh-securize.sh. It will throw some errors, but remove the stuff and magisk doesn't complain anymore and still works flawlessly.
Click to expand...
Click to collapse
Thanks for the info, finally got magisk to work properly after running phh-securitize!
Hi it's my first time in a forum, sorry for my bad English, but I want to root my A51 with magisk and flash the lineage OS 19 ROM and install twrp on my phone, but I don't know exactly how to do, and which file of lineage OS I have to choose here are they all working for a51 android 12 ??
Hello,
my problem is: I can not install the TWRP-11-3.6.2-a51-20220602-0515.img. The SM-A515F will not boot in to the latest TWRP. Only the version twrp-a51-3.5.0_10-1_ianmacd.tar will be installed an I can enter in to it.
Then I select the image of the Lineagos 19 for this phone to install, and I got this error messages:
Error opening: /data/bootchart (Permission denied), /data/misc (Permission denied) etc ...
@shanman-2
In your signature, you have an SM-A515F with LineageOS 19 and TWRP-11... installed
What has you done, for this installation?
Thanks for your help.
Greenatic said:
Salve è la mia prima volta in un forum, scusate il mio pessimo inglese, ma voglio fare il root del mio A51 con magisk e flashare la ROM di lineage OS 19 e installare twrp sul mio telefono, ma non so esattamente come fare, e quale file del sistema operativo di lignaggio devo scegliere qui funzionano tutti per a51 Android 12?
Click to expand...
Click to collapse
You have to download this (lineage-19.0-20220211-UNOFFICIAL-treble_arm64_bgS-vndklite.img), if you are going to use this guide in the top of this Page (https://forum.xda-developers.com/t/howto-rom-unoffcial-how-to-flash-lineage-os-19-0.4423111/) you wil understand all of it
tiptel170 said:
Hello,
my problem is: I can not install the TWRP-11-3.6.2-a51-20220602-0515.img. The SM-A515F will not boot in to the latest TWRP. Only the version twrp-a51-3.5.0_10-1_ianmacd.tar will be installed an I can enter in to it.
Then I select the image of the Lineagos 19 for this phone to install, and I got this error messages:
Error opening: /data/bootchart (Permission denied), /data/misc (Permission denied) etc ...
@shanman-2
In your signature, you have an SM-A515F with LineageOS 19 and TWRP-11... installed
What has you done, for this installation?
Thanks for your help.
Click to expand...
Click to collapse
So here is the latest update:
Code:
1. Download here this ROM:
https://samfw.com/firmware/SM-A515F/DTM/A515FXXS5FVI2
2. Unpack the zip-files
for ZIP in $(ls *.zip); do yes | unzip $ZIP; done
3. Rename from m5 to tar
for MD5 in $(ls *.md5 |sed -e "s/.md5//"); do mv $MD5.md5 $MD5; done
4. Unpack the tar files
for TAR in $(ls *.tar); do tar -xvf $TAR; done
5. Unpack the lz4 files
LZ4 in $(ls *.lz4); do yes | lz4 $LZ4; done
6. Flashing the img files to the phone
heimdall flash --SUPER super.img --BOOT boot.img --CACHE cache.img --DTBO dtbo.img --METADATA metadata.img --OMR omr.img --PRISM prism.img --RECOVERY recovery.img --USERDATA userdata.img --VBMETA vbmeta.img --VBMETA_SAMSUNG vbmeta_samsung.img
7. Flashing the bin files to the phone
heimdall flash --CM cm.bin --KEYSTORAGE keystorage.bin --RADIO modem.bin --CP_DEBUG modem_debug.bin --BOOTLOADER sboot.bin --UH uh.bin --UP_PARAM up_param.bin
8. Unlock the bootloader in the download mode ( keep pressing together Vol+ and Vol- and conecting to the USB-port of the computer ). And then keep Vol+ for 2 sec. for unlocking.
9. Boot the phone
10. Connect the phone with the USB-cable to the computer
11. Preparing the phone for the devoling mode, and accept all the avsings in the phone.
12. Computer: adb shell
13. a51:/ $ reboot download
14. Use this: TWRP-11-3.6.2-a51-20220602-0515, this will working with the new stockrom
The I made this steps:
Code:
3.3 Flashing Sequence:
In TWRP Follow this sequence:
3.3.1. Wipe data, dalvik, cache
3.3.2. flash disable_dm_verity
3.3.3. flash multidisabler
3.3.4. Wipe internal storage (Backup might be advisable, if you didn't format data anyways)
3.3.5. reboot recovery
3.3.6. flash chondone with lineage-19.0-20220211-UNOFFICIAL-treble_arm64_bgS-vndklite.img in the same folder renamed to system.mg
3.3.7. Wipe data
3.3.8. Reboot
This is from: DerTopher
Source:
[link] https://forum.xda-developers.com/t/howto-rom-unoffcial-how-to-flash-lineage-os-19-0.4423111/ [/link]
Than I will boot the LOS 19.1, but there is no booting up, only start - restart - start etc....
Only I can enter in to the TWRP.
Is there an solution? I made an "heimdall print-pit" but this not work.
Thank you for the support...
How to change quantity of slots in home to 3 slots ?
Update 01/29/2023:
Whit this version of the android it will function well.
You have to download this version: lineage-20.0-20230115-UNOFFICIAL-arm64_bvS-vndklite.img.xz
This step is verry importand!
Code:
3.3.6. flash chondone with lineage-19.0-20220211-UNOFFICIAL-treble_arm64_bgS-vndklite.img in the same folder renamed to system.mg
The correct form:
Code:
3.3.6.1 rename lineage-20.0-20230115-UNOFFICIAL-arm64_bvS-vndklite.img in to system.img and keep it in the same folder likes the chondone zip-file!
3.3.6.2 Then flash the chondone zip-file, and don't worry about the error massege "can not find the /oem ..."
Thanks for the help and the support for me Hy gays - this an grate jop - keep doing.
The Samsung Android Version 12 is on this phone slow, and has a lot of bolt apps inside.

[KERNEL][CUSTOM] for Galaxy A11 (Snapdragon)

A115m R kernel v1.3
Qualcomm SDM450 Snapdragon 450
For Android 11 OneUI 3.1
Thanks to @ for module loading fix
bugs:
?
Installation
Post 2
Kernel source code
physwizz - Repositories
physwizz has 172 repositories available. Follow their code on GitHub.
github.com
@physwizz
Installing physwizz custom kernels
INSTALL AT YOUR OWN RISK
I AM NOT RESPONSIBLE FOR ANY BRICKED PHONES
But I will help any well-mannered person to recover.
Note: physwizz kernels work best with debloated stock or with wizzROM
Other custom ROMs may not be supported
A. Preparation
1. Root the phone
2. Compress your patched boot.img to make boot.tar
3. Copy boot.tar to PC
B. Installation
Method 1
Install from twrp
Reboot to recovery
Backup boot and dtbo (if available)
Install kernel zip
Wipe both caches
Reboot
Method 2
Install kernel from terminal.
1. Download magisk module (magic flash zip) https://github.com/Magisk-Modules-Alt-Repo/magic-flash
2. Install module and reboot.
3. Open terminal.
4. Navigate to folder containing kernel zip.
Use
ls to list contents
and
cd to change directories
5. Type su
6. Type flash kernel zip
7. Reboot
Method 3
Using ADB
Install adb tools on pc
Connect to PC
Copy zip file to adb folder on pc
Open terminal on pc
Navigate to adb folder
Type
adb sideload filename.zip
Method 4
Using boot.img
Install AIK Mobile from magisk modules https://t.me/physwizz2/82
Use rootexplorer to access
/data/local/AIK-MOBILE
Add patched boot.img and tap unpackimg.sh
Exit the folder and return to see the files.
Edit the files (eg to add a new Image
rename Image to boot.img-zImage and insert in split-image folder)
Tap repackimg.sh
Rename new_image.img to boot.img
Compress boot.img to boot.tar
Copy boot.tar to PC
Reboot phone to download mode
Install boot.tar from odin
C. Removal
Method 1
Reboot to recovery
Restore boot and dtbo
Reboot
Method 2.
Reboot phone to download mode
Install patched boot.tar from odin
@physwizz
So far 16 people have downloaded the file.
Any feedback?
Hi, mate. Is this kernel compatible with LineageOS GSI ROM? I'm using A115F as a test phone for experiments but I can't seem to find an appropriate kernel for my device. Somehow, samsung's stock kernel won't cooperate with LOS GSI causing File Transfer (MTP) and others features to fail. That's it, thanks.
Alright, just tested it out and I found some issues.
Here's the list of what I found so far.
1. WiFi not working
2. Bluetooth not working
3. SIM Card fails to get signal (sometimes it works)
4. MTP still not working (I hope someone fix this issue)
I'm using LOS GSI a64 image. Samsung A115F (Galaxy A11) Snapdragon 450
I'll update this list, if I found a new one.
jcatrdev said:
Alright, just tested it out and I found some issues.
Here's the list of what I found so far.
1. WiFi not working
2. Bluetooth not working
3. SIM Card fails to get signal (sometimes it works)
4. MTP still not working (I hope someone fix this issue)
I'm using LOS GSI a64 image. Samsung A115F (Galaxy A11) Snapdragon 450
I'll update this list, if I found a new one.
Click to expand...
Click to collapse
Ok
does it come with root?
My model a115m its work for me ?
physwizz said:
OK
Click to expand...
Click to collapse
jcatrdev said:
Tudo bem, acabei de testar e encontrei alguns problemas.
Aqui está a lista do que encontrei até agora.
1. Wi-Fi não funciona
2. Bluetooth não funciona
3. O cartão SIM não recebe sinal (às vezes funciona)
4. O MTP ainda não está funcionando (espero que alguém corrija esse problema)
Estou usando a imagem LOS GSI a64. Samsung A115F (Galaxy A11) Snapdragon 450
Vou atualizar esta lista, se eu encontrar uma nova.
Click to expand...
Click to collapse
if you don't mind, could you help me to install LOS GSI a64?? I've been stuck in stock for a long time
swamp66 said:
if you don't mind, could you help me to install LOS GSI a64?? I've been stuck in stock for a long time
Click to expand...
Click to collapse
Download Android 11 GSI (arm64 ab) with GApps
1. Unzip img file
2.Wipe data and system from TWRP recovery
3. Install system.img into system partition
4. Install my kernel
5. Reboot
i tested in stock and a lot didn't work here :
camera, flashlight, wifi, games make the phone restart, I only tested cod mobile
unfortunately if it is not resolved this makes the use unfeasible
Obs: but thanks to the developer for making stuff for the a115m, currently there is very little about this device
swamp66 said:
i tested in stock and a lot didn't work here :
camera, flashlight, wifi, games make the phone restart, I only tested cod mobile
unfortunately if it is not resolved this makes the use unfeasible
Obs: but thanks to the developer for making stuff for the a115m, currently there is very little about this device
Click to expand...
Click to collapse
Thanks for feedback.
I'll look at it.
I don't own this device
Hello, mate, do you know any way to enter ADB sideload mode on the Galaxy A11? I have the Android 12 firmware installed. Thank you in advance!
raidenmania02 said:
Hello, mate, do you know any way to enter ADB sideload mode on the Galaxy A11? I have the Android 12 firmware installed. Thank you in advance!
Click to expand...
Click to collapse
Using ADB
Install adb tools on pc
Connect phone to PC in normal mode
Copy zip file to adb folder on pc
Open terminal on pc
Navigate to adb folder
Type
adb sideload filename.zip
Can I sideload a GSI?
raidenmania02 said:
Can I sideload a GSI?
Click to expand...
Click to collapse
I haven't tried
Use TWRP
Is this work for Sm-a115f/ds , its verry lagged and if someone called me there are a black screen and i can't do anything. Can anyone help me please ??
Muhamad fawaz said:
Is this work for Sm-a115f/ds , its verry lagged and if someone called me there are a black screen and i can't do anything. Can anyone help me please ??
Click to expand...
Click to collapse
Reinstall your stock firmware

Categories

Resources