HELP:Decrypt data custom rom password in j415f - Samsung Galaxy J4+ Questions & Answers

I tried to install treble RR and lineage 15.1 on j4+ but Phone didn't open and reboot to recovery Is there password samsung add in img like vendor efs hidden to make data mounted but corrupted
I use format data and install magisk but all in vain still reboot to recovery and system didn't open .

Related

Official twrp app and TWRP backup

TWRP official app when searching for device doesn't have my device listed and TWRP manager can't detect Twrp does anyone know why this might be?
Also I'm having trouble backing up using twrp it fails with the error code 255? I've tried to unmount data change the time but still fails.
TWRP is not officially released for Mate 9, it's unofficial build/s.
And that error just mean you're encrypted, like Mate 9 is by default.
To remove encryption you'll have to Format - Format Data (This wipes everything including internal sdcard), after this you will have to flash SuperSU 2.82 SR3+, Magisk v14 (14.3+ doesn't remove encryption flag so it won't work without modifying Magisk source) or modify your boot image manually.
And then download and flash Public + HW zip for your firmware from http://pro-teammt.ru/firmware-database/

GSI for the Galaxy A20 (Android 10)

What is GSI?
GSI stands for Generic System Image and will allow you to install an alternative ROM on your Galaxy A20?
No longer will we be restricted to the Samsung ROM.
These ones worked for me. If they don't work for you, go to the list of all GSIs. There are plenty to choose from. Select arm64 ab files.
Q GSIs
1. AOSP 10
https://github.com/phhusson/treble_experimentations/releases
2. Pixel Experience, EvolutionX & Havoc
https://forum.xda-developers.com/pr...iscussion/gsi-expressluke-built-gsis-t4003457
3. Crdroid
https://sourceforge.net/projects/amber-gsi/files/crDroid v6.1/crDroidAndroid-10.0-20200104--v6.1-arm64-ab-vanilla.img.xz/download
Custom Android 10 boot screens
https://forum.xda-developers.com/galaxy-a20/themes/a20-custom-splash-screen-android-10-gsi-t4019693
List of all GSIs
https://github.com/phhusson/treble_experimentations/wiki/Generic-System-Image-(GSI)-list
physwizz collection
A collection of guides, kernels and ROMs. Guides Complete Guide to the A20 GSIs for the A20 Quick Root and TWRP for the A20 Making my First Kernel for the A20 A20 Rooting Guide Making Your Own ROM Making Your Own Version of QwizzROM-a20...
forum.xda-developers.com
Before you Start
1. Make sure your phone is rooted
For A20: https://forum.xda-developers.com/galaxy-a20/how-to/root-samsung-galaxy-a20-rooting-guide-t3954872
For A30: https://forum.xda-developers.com/galaxy-a30/how-to/root-galaxy-a30-magisk-canary-relaese-t3936481
2. Install TWRP and remove data encryption.
For A20: https://forum.xda-developers.com/ga...p-samsung-galaxy-a20-custom-recovery-t3955271
For A30: https://forum.xda-developers.com/galaxy-a30/development/recovery-twrp-galaxy-a30-t3968085
Quick root and TWRP together for the A20: https://forum.xda-developers.com/galaxy-a20/how-to/guide-quick-root-twrp-galaxy-a20-t4069423
3. Backup only 3 parts: boot, data & system (not system image) onto external SD or usb-otg. If something goes wrong you should be able to restore the phone using TWRP.
4. Also use SMS Backup and Restore so you don't lose your messages or calls.
5. Make sure your Ext SD card is Fat32. I've noticed that GSIs don't recognise ExFat.
Android 10 (Q)
1. Installation
1. Begin with stock ROM
2. Reboot into TWRP ( then mount product - system - vendor)
Back boot data and system
3. Wipe both caches, data & system
4. Install GSI
5. Flash Magisk and physwizz GSI kernel from here https://forum.xda-developers.com/t/kernel-physwizz-kernel-for-the-galaxy-a20.4180107/
6. Reboot.
2. Installing GApps
Some GSIs come with GApps. If you're doesn't and you want to have GApps, then use this method.
a.-Resize system partition so you can install OpenGAPPS, go to wipe, advanced wipe, select system, select repair or change file system and select resize file system. If you get error 1 unmount and mount the system partition and try again
b. Install GApps
3. Fixing Navbar
As soon as you boot up. Run Magisk and install this module.
View attachment navbar-enabler.zip
4. Android 10 Backup
Backup Data only (EvolutionX and Havoc 3.0 will do boot/data/system backup and restore),
5. Android 10 Restore
1. Reinstall GSI (a - h above)
2. Restore Data
3. Install GApps (if needed)
Reboot
To Access larger SD cards
Unzip the file below
Use TWRP file manager to copy this file to
/system/system/bin
Tap on to file
Press chmod755
Reboot system
Android 11 (R)
wIP
Some interesting links.
https://forum.xda-developers.com/showpost.php?p=80177833&postcount=199
phhusson treble releases
https://github.com/phhusson/treble_experimentations/releases
GSIs for A50
https://forum.xda-developers.com/galaxy-a50/how-to/guide-guide-how-to-flash-gsi-t3934005/page1
AOSP GSIs
https://source.android.com/setup/build/gsi
GSI for the A70
https://forum.xda-developers.com/galaxy-a70/how-to/gsi-testing-thread-t3956230
List of all GSIs
https://github.com/phhusson/treble_experimentations/wiki/Generic-System-Image-(GSI)-list
Project Treble
https://forum.xda-developers.com/project-treble
Lolinet mirror
https://mirrors.lolinet.com/firmware/gsi/
Only this one for install? I Will Search another gsi
alexHdz said:
Only this one for install? I Will Search another gsi
Click to expand...
Click to collapse
It looks like this one comes with GApps and su built in.
physwizz said:
It looks like this one comes with GApps and su built in.
Click to expand...
Click to collapse
WiFi not working I guess
alexHdz said:
WiFi not working I guess
Click to expand...
Click to collapse
I thought that problem was only for Android 10
I tried to install GSI today but it didn't work.
Had to do a factory reset.
physwizz said:
Possible Installation Instructions (they will become more precise as more information becomes available)
1. Make sure your A20 is rooted (https://forum.xda-developers.com/showpost.php?p=80021195&postcount=4)
2. Backup with Titanium Backup
3. Install TWRP
https://forum.xda-developers.com/showpost.php?p=80028118&postcount=2
4. Backup system onto external SD or usb-otg (exclude data)
5. Install GSI from TWRP.
a. Download the desired GSI (it MUST be A/B_arm64 Variant)
-One GSI can be found here (https://forum.xda-developers.com/showpost.php?p=80177833&postcount=199)
b. unpack it if it wasn't in .IMG format
c. Go to TWRP , Install , Install IMAGE
d. Pick your GSI and select SYSTEM IMAGE
e. Reboot to TWRP Recovery
f. Flash "GSI_Fix_boot.zip"
View attachment 4815497
If you can't get TWRP you may need to install via Odin.
I'm not sure of any of this at the moment.
Click to expand...
Click to collapse
Hi guys! I try to install android 10 gsi, however when I go into twrp mode not recognizing the rom img what can it be?
I rooted and twrp A205G
physwizz said:
Possible Installation Instructions (they will become more precise as more information becomes available)
1. Make sure your A20 is rooted (https://forum.xda-developers.com/showpost.php?p=80021195&postcount=4)
2. Backup with Titanium Backup
3. Install TWRP
https://forum.xda-developers.com/showpost.php?p=80028118&postcount=2
4. Backup system onto external SD or usb-otg (exclude data)
5. Install GSI from TWRP.
a. Download the desired GSI (it MUST be A/B_arm64 Variant)
-One GSI can be found here (https://forum.xda-developers.com/showpost.php?p=80177833&postcount=199)
b. unpack it if it wasn't in .IMG format
c. Go to TWRP , Install , Install IMAGE
d. Pick your GSI and select SYSTEM IMAGE
e. Reboot to TWRP Recovery
f. Flash "GSI_Fix_boot.zip"
View attachment 4815497
If you can't get TWRP you may need to install via Odin.
I'm not sure of any of this at the moment.
Click to expand...
Click to collapse
i tried install any GSI on my A205F , but it's keeps bootloop , any suggestions to fix ?
hwp_2804 said:
i tried install any GSI on my A205F , but it's keeps bootloop , any suggestions to fix ?
Click to expand...
Click to collapse
I have the same problem on 205yn.
which method did you use to install twrp. there are some 205f users having trouble installing twrp
physwizz said:
I have the same problem on 205yn.
which method did you use to install twrp. there are some 205f users having trouble installing twrp
Click to expand...
Click to collapse
i use methods 1 and 2 , both also the same
twrp is working , but my internal storage seems like corrupted .
hwp_2804 said:
i use methods 1 and 2 , both also the same
twrp is working , but my internal storage seems like corrupted .
Click to expand...
Click to collapse
So method 1 have you the same result as method 2
Can you backup with either method?
Method 1
For the SM-A205YN
Download the A205YN custom recovery from here
https://forum.xda-developers.com/sho...&postcount=169
No need to patch it. Just flash it with Flashify.
If this first method works for a different version, please let me know.
Method 2
For the SM-A205G,
Download the composite recovery from here.
https://forum.xda-developers.com/sho...&postcount=198
Install to ap slot using Odin.
I haven't tested this yet so be wary. I'm going to try it today.
Format data (this is NOT the same as Wipe data) (In TWRP: Wipe -> Format Data)
Reboot back into recovery
Install GSI from TWRP. : Install , Install IMAGE
Pick your GSI and select SYSTEM IMAGE
Reboot to TWRP Recovery
Flash "GSI_Fix_boot.zip"View attachment GSI_Fix_boot.zip
Flash this zipView attachment Disable_Dm-Verity_ForceEncrypt_08.18.2019.zip
Reboot
That didn't work.
Reinstalling now ?
physwizz said:
I haven't tested this yet so be wary. I'm going to try it today.
Format data (this is NOT the same as Wipe data) (In TWRP: Wipe -> Format Data)
Reboot back into recovery
Install GSI from TWRP. : Install , Install IMAGE
Pick your GSI and select SYSTEM IMAGE
Reboot to TWRP Recovery
Flash "GSI_Fix_boot.zip"View attachment 4815771
Flash this zipView attachment 4815767
Reboot
That didn't work.
Reinstalling now
Click to expand...
Click to collapse
Try this:
Links donwload:
ROM: Android 10 GSI Treble (A-Only):
https:// enrt.eu/ FpMD
FixZygote V2 and Permissiver v5
https://androidfilehost.com/?w=files&flid=279429
Instalation:
1- Into TWRP mode
2- Wipe/ advanced wipe/ system. data and cache
3-Install/ select internal storage/ search rom image and install
4-Install/ FixZygote and Permissiver v5
5-reboot
PS: I haven't tested it yet on A205G as my twrp doesn't recognize any img rom!
Theus01 said:
Try this:
Links donwload:
ROM: Android 10 GSI Treble (A-Only):
https:// enrt.eu/ FpMD
FixZygote V2 and Permissiver v5
https://androidfilehost.com/?w=files&flid=279429
Instalation:
1- Into TWRP mode
2- Wipe/ advanced wipe/ system. data and cache
3-Install/ select internal storage/ search rom image and install
4-Install/ FixZygote and Permissiver v5
5-reboot
PS: I haven't tested it yet on A205G as my twrp doesn't recognize any img rom!
Click to expand...
Click to collapse
How did you install your TWRP?
physwizz said:
How did you install your TWRP?
Click to expand...
Click to collapse
I rooted for magisk and twrp used method 2 of the post!
Theus01 said:
I rooted for magisk and twrp used method 2 of the post!
Click to expand...
Click to collapse
I just changed method 2
physwizz said:
I just changed method 2
Click to expand...
Click to collapse
I did the twrp process again by the new method 2 but still the same error, the internal storage is having problems it does not appear the folders or files! and to install a GSI rom it must be the internal memory because the SD card does not work!
Theus01 said:
I did the twrp process again by the new method 2 but still the same error, the internal storage is having problems it does not appear the folders or files! and to install a GSI rom it must be the internal memory because the SD card does not work!
Click to expand...
Click to collapse
did you go to mount and mount everything

Magisk/Twrp for GSI (Won't work on stock)

I have a Twrp backup with the boot img patched with Magisk/Twrp boot to recovery boots GSI with magisk boot to recovery hold volume up while rebooting to recovery will boot twrp for this boot img to work u have to be on the vendor of the boot img which is also in the backup so the phone won't bootloop this vendor is modified to work with GSIs pass the magisk environmental setup and notch fix so swiping down is like swiping down on stock.... to implement notch fix go to developer settings hide display cut and choose the first hide option and your notch will be fixed...
Thanks @Spaceminer for the twrp for without this none would of been possible
please note twrp will only boot with a android 9 vendor and your GSI will only boot with magisk and twrrp with the vendor in the backup cause it matches the boot img, GSIs only boot when the vendor and boot img match
the boot img & vendor img in the backup is from Channel/Retail (PPY29. 105-160-4)
Instructions
If on android 9 stock
1. Boot to bootloader
2. fastboot - w
3. fastboot GSI of your choice
4. fastboot boot twrp.img
5. format data
6. Place the twrp folder you downloaded from the zip into your devices internal storage which will be available after u format data
7.Resize system
8.Flash gapps zip if gapps is needed
9.wipe dalvick
10. go to twrp restore boot and vendor
11. reboot to recovery and phone will boot after boot is complete install magisk manager it will do the environmental setup phone will reboot and u will have magisk.... ( if u want the best experience with magisk on this device I recommend that you use havoc cause with the lineage GSI magisk doesn't play nice but with havoc its stable also when making a backup it's boot, system image, vendor image, data if u chose system instead your backup will bootloop your device upon restoration)
Download (twrp img is in twrp folder remove it and place it in ADB folder)
https://mega.nz/file/7t03DLhL#jjS9vgrJMlDS-_-hsApyx4uJ6L8wXCN8HtjSqJrg2ds
if u wanted to do this manually to install the latest canary or stable version magisk need to patch twrp to the recovery flash phh root boot up install magisk manager give it root permissions with phh superuser from apk mirror now with elevated permissions the option patch directly will be avaliable cause u got root (it's the recommended option ?) chose recovery and leave the other 2 unchecked patch the img and reboot to recovery the phone will reboot os with magisk and u hold up while booting recovery will boot twrp after that backup that boot img in twrrp for future installation of the GSI of your choosing....
Hello,
Already figured it out.
Is there any way to flash a Android 10 ROM (treble) without loosing magisk ?
thanks for your help!
xcode22 said:
Hello,
Already figured it out.
Is there any way to flash a Android 10 ROM (treble) without loosing magisk ?
thanks for your help!
Click to expand...
Click to collapse
Everytime u flash a GSI just use the vendor and boot from the twrp folder and your android 10 GSI Will have magisk and twrp no need for data disabler zip cause my backup already has the vendor and boot patches enabled for decryption so twrp will be accessible via boot to recovery
([emoji88]Havoc GSI[emoji88])
Also have edxposed for Android 10 since the one in the repo won't work cause it needs a custom magisk with merged patches for xposed to work on android 10 this version has the patches in the edxposed so having to use a custom magisk won't be an issue cause as ya know obtaining magisk and twrrp in this device was unknown into this OP was made
([emoji88]Havoc GSI[emoji88])
Thanks so much for the instructions, only way i could install on G7 play.
The only thing is I always have to boot in recovery mode to start the system.
If I boot normal it starts again. Any way to solve this ?
I think somehow I flashed my ROM to the recovery partition ?
thank you!!
xcode22 said:
Thanks so much for the instructions, only way i could install on G7 play.
The only thing is I always have to boot in recovery mode to start the system.
If I boot normal it starts again. Any way to solve this ?
I think somehow I flashed my ROM to the recovery partition ?
thank you!!
Click to expand...
Click to collapse
Your on a GSI go in your system settings and activate advance boot and when u have to reboot just put reboot to recovery and you don't have to worry about manually rebooting to recovery everytime u have to reboot also no way u installed the rom to the recovery partion our device doesn't have a recovery partion the recovery lives within the boot img
([emoji88]Havoc GSI[emoji88])]
thanks, not sure if I can do this with my Treble gsi (phhusson).
The other thing is that some things got messed up after instalation for example I cannot put in a passcode for the phone.
Is there no other way to install magisk on the G7 play ?
Maybe this has to do with the vendor and boot beeing different model than mine wich is XT 1952-2 (latin american model)
thanks
xcode22 said:
thanks, not sure if I can do this with my Treble gsi (phhusson).
The other thing is that some things got messed up after instalation for example I cannot put in a passcode for the phone.
Is there no other way to install magisk on the G7 play ?
Maybe this has to do with the vendor and boot beeing different model than mine wich is XT 1952-2 (latin american model)
thanks
Click to expand...
Click to collapse
The reason the lockscreen doesn't work is cause the device is decrypted which is essential for the device to be able to reboot to twrp my vendor has the decryption patches for the full functionality of twrp however if u don't care about twrp and just want magisk just patch a fresh version of your boot img in magisk manager with the patch a file option and fastboot that boot img to your device install fresh GSI with your vendor so it will boot encrypted since your vendor doesn't have the decryption zip patches in the vendor... However with this method to have full functionality with magisk u will have to remove from vendor/bin/init mimi hab if this file isn't removed your magisk won't pass the environmental setup... U be given root privileges with magisk before u have to do the environmental setup so u can remove that file...
([emoji88]Havoc GSI[emoji88])
PoochyX said:
The reason the lockscreen doesn't work is cause the device is decrypted which is essential for the device to be able to reboot to twrp my vendor has the decryption patches for the full functionality of twrp however if u don't care about twrp and just want magisk just patch a fresh version of your boot img in magisk manager with the patch a file option and fastboot that boot img to your device install fresh GSI with your vendor so it will boot encrypted since your vendor doesn't have the decryption zip patches in the vendor... However with this method to have full functionality with magisk u will have to remove from vendor/bin/init mimi hab if this file isn't removed your magisk won't pass the environmental setup... U be given root privileges with magisk before u have to do the environmental setup so u can remove that file...
([emoji88]Havoc GSI[emoji88])
Click to expand...
Click to collapse
Yes I understand, sounds logic. I tried to follow your guide but it didn't work.
I did the following:
1. Followed your first instructions with restore vendor and boot in the end to have magisk twrp (Now on Android 10).
2. patched the boot.img (stock one Android 9) with magisk and pulled via adb on computer
3. fastboot flash boot boot.img (patched)
4. Fastboot flash system gsi.img (android 10)
After that I get a bootloop if I go via normal boot and recovery doesn?t boot either.
In the end I tried to flash the stock vendor.img but everything stayed the same.
Not sure how to remove the file in the /vendor/bin, with twrp ?
xcode22 said:
Yes I understand, sounds logic. I tried to follow your guide but it didn't work.
I did the following:
1. Followed your first instructions with restore vendor and boot in the end to have magisk twrp (Now on Android 10).
2. patched the boot.img (stock one Android 9) with magisk and pulled via adb on computer
3. fastboot flash boot boot.img (patched)
4. Fastboot flash system gsi.img (android 10)
After that I get a bootloop if I go via normal boot and recovery doesn?t boot either.
In the end I tried to flash the stock vendor.img but everything stayed the same.
Not sure how to remove the file in the /vendor/bin, with twrp ?
Click to expand...
Click to collapse
PoochyX on telegram dm me I walk you threw it
([emoji88]Havoc GSI[emoji88])
xcode22 said:
Yes I understand, sounds logic. I tried to follow your guide but it didn't work.
I did the following:
1. Followed your first instructions with restore vendor and boot in the end to have magisk twrp (Now on Android 10).
2. patched the boot.img (stock one Android 9) with magisk and pulled via adb on computer
3. fastboot flash boot boot.img (patched)
4. Fastboot flash system gsi.img (android 10)
After that I get a bootloop if I go via normal boot and recovery doesn?t boot either.
In the end I tried to flash the stock vendor.img but everything stayed the same.
Not sure how to remove the file in the /vendor/bin, with twrp ?
Click to expand...
Click to collapse
The easiest way I know of is from the stock OS using termux and root.
Code:
su
setenforce 0
mkdir /mnt/x && chmod 0755 /mnt/x
mount -o loop /dev/block/by-name/vendor_a /mnt/x
Now navigate to /mnt/x and everything from vendor will be in there. Find the file and delete it with a root explorer. Then unmount the partition and the changes will be permanent. Doing it this way gets around FEC, which is what prevents you from changing anything in vendor.
Code:
umount /mnt/x
If you need to work on the other vendor partition just change out vendor_a with vendor_b
Any recommendation about what GSI to choice for XT1952-6 variant?
mickem said:
Any recommendation about what GSI to choice for XT1952-6 variant?
Click to expand...
Click to collapse
Chaos GSI Bluetooth works without disabling audio effects (so u can use viper with bluetooth headset) it's clean stock with minimum stuff added to it and works with gravitybox then you got havoc that has the majority of stuff gravity has off the rip so it's not as minimum so more memory usage is needed and Bluetooth only works with the phh disable audio effects work around also magisk works good on both of these lineage is good also if you don't care about magisk working cause with our device magisk has issues on lineage don't know if it was fixed on a recent bulid however if lineage is your preference there is a phh root for it so u can be functional
([emoji88]Havoc GSI[emoji88])
My device is xt1952-4. I downloaded the latest firmware (PPYS29-105-160-4-8), and installed it to both slots. I am currently using Resurection Remix Pie. Is your patched boot.img and vendor compatible with the newer firmware or will I get a downgrade error?

How to reinstall Magisk/root after updating to MIUI 12.5.2?

I should have expected this but after updating to MIUI 12.5.2, Magisk/root is no longer installed and the Magisk App only offers the option to "Select and Patch a File" , which I understand requires a full wipe and I don't want to do that.
Orangefox is also corrupted. I can still boot to it but it doesn't prompt me for my encryption code, so it can't access the data partition. Maybe I can just reflash that but can I flash Magisk from there after that to restore root without having to wipe the phone?
So it appears that the problem is MIUI 12.5 (or any MIUI ROMS based on Android 11), prevent decryption working in recovery mode. https://wiki.orangefox.tech/en/guides/encryption
I tried flashing TWRP and that doesn't decrypt the storage and just shows gibberish filenames too.
So, if we can't decrypt in recovery mode, we can't make backups and we can't install Magisk to restore root to make backups with apps like Titanium, what are we supposed to do?

TWRP 3.7 Locked data partition (f2fs) and bricked Lineage OS 18.1

IMPORTANT: /data CANNOT be wiped. Pictures are irreplaceable (I know should have backed up first, but you'll see why I couldn't)
Here's what happened:
Phone had Lineage OS recovery and OS 18.1
Forgot pattern unlock.
Tried to dirty flash Lineage 19.
Reboot
Recovery error: /data is inaccessible
Loaded TWRP to use file manager to delete pattern files.
Reboot
TWRP asking for pattern to decrypt /data/media, unknown
Looked for pattern files, pattern files didn't exist
Deleted lockscreen.db file.
Reboot
TWRP Pattern unlock is gone. now asking for password.
No passwords work, including default_password.
Can't decrypt /data/media/0 by any means.
Cannot pull using ADB without key which is unkown.
Discovered f2fs isn't supported in new TWRP (WTH!?)
Tried downgrading to TWRP 3.1, won't load.
Tried dirty flashing stock ROM, fails
I have tried many variations of recovery, bootloaders and ROMs
The best I can get is TWRP 3.7 with lineage 19 that just hangs on the Loading animation. Let it go for 2 hours, nothing.
Please please help me. My end goal was to get the pictures so I could upgrade to Lineage OS 19.

Categories

Resources