[WIP] ClockworkMod Recovery - FreeXperia - Xperia Play Android Development

Hi,
here comes Recovery for Play of Team FreeXperia.
Download here: (Beta1 - Update 20.06.2011 - 18:28h GMT+1)
http://www.multiupload.com/VC3JRZ74H0
Broken:
Cannot backup&restore boot partition (kernel related)
To test use this command:
fastboot boot recoveryPLAY.img
Button mapping: (thanks Logseman)
Back- Back
Home/Vol UP - Up
Menu/Vol DOWN - Down
Search - OK
Please DO NOT FLASH! This recovery is designed to work just as recovery, if you flash it to your device it will NOT boot system anymore!
Please test and report functions. If there are errors please include EXACT outpot of errormessage.
Thanks to Blagus for his Xperia Play Kernel!
To gain root on every ROM (Stock ones too) just flash the attached RootXperia.zip via Recovery
Regards
Bin4ry & Team FreeXperia

I assume we need to install the custom kernel first?

No! You have NOT to install custom kernel to use this.
Just issue the command i wrote on your windows console. Then phone boots into recovery!
Regards

Logseman said:
I assume we need to install the custom kernel first?
Click to expand...
Click to collapse
The recovery image is structured exatcly as boot.img, with the difference in executable files - regular boot.img boots Android system from /system partition, while recovery boots into... well, recovery
So, since it's structured just as boot.img, you have to pack kernel inside as well. That's where, in this case mine, zImage comes in handy instead of unpacking SE's special boot.img structure, it was easier to take zImage from standard boot.img.

ive just tried it now, boots into CWM fine, im going to try a nandroid and report back

It looks weird in this DDMS capture, but in the phone it looks all right (black background, orange text). I've had no error messages of any kind.
Button mapping:
Back- Back
Home/Vol UP - Up
Menu/Vol DOWN - Down
Search/Power - OK
{
"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"
}

This capture looks funny
But important is how it looks on device. I doubt that ddms cannot capture 32bit framebuffers
Regards
Bin4ry

Ok, i did a nandroid, rebooted, booted back into bootloader and fastboot erased /system/, pushed the recovery back and tried to restore /system/ but i get the error " Error formatting system " i also get the same error in the mounts & storage menu can i flash the nandroid image from fastboot?
*edit* no it wont let me flash it from fastboot, it tells me the image is too large lol probably because i moved some widgets and lwp's to /system/, no worries i'll flash the image in the development section.

Recovery booted fine, did a nandroid backup worked fine, not sure i want to follow suit and delete a load of stuff and try restore. will wait to see what androhero and bin4ry can figure out first with andro's issue

mehmehmen said:
Recovery booted fine, did a nandroid backup worked fine, not sure i want to follow suit and delete a load of stuff and try restore. will wait to see what androhero and bin4ry can figure out first with andro's issue
Click to expand...
Click to collapse
try and clear cache, see if you get the same error? if the action works it wont matter if cache gets formatted

I hope you can help me figure this out, because right now I am astonished at least.
I've been poking around with ClockworkMod, and getting a couple of errors. I know there is an error reporting utility inside CWM, "Report Error" in "advanced" so I made use of it. However, the log would save to "/sdcard/clockworkmod/recovery.log".
Since I'm using the custom kernel, I'm not able to use the sdcard as it seems to be improperly mounted. It shows as mounted in CWM, I unmounted it and remounted it again to no avail... though it can be mounted on the computer properly.
However, that's not the point. I thought I'd do a search on "recovery" with Root Explorer, wanting to find the Recovery.log somewhere else. And boy, did I find it. I found the two recovery logs I saved inside the folder /data/system/dropbox . I happen to have DB installed in my Android. But not only that, I found my kmsg logs, and boot logs, registered there as well.
Hereby I attach the two recovery logs. Does it make sense that these kinds of logs are saved in such a folder? Am I worrying unnecessarily?

this is one of the reaons why google take root access off us in the first place isnt it?

Thanks for the logs.Dunno why they was stored in DB folder
@AndroHero:
Yes just restore the img files from backup via fastboot flash.
Regards
Bin4ry

where excatly do i put the play recovery.img?

crispyduckling said:
where excatly do i put the play recovery.img?
Click to expand...
Click to collapse
just put it in the same folder as fastboot.exe

When backing up the progress bar doesn't work and it can take some minutes, so just be patient when doing a back-up.
Are their any specific options you like us to play with?

AndroHero said:
just put it in the same folder as fastboot.exe
Click to expand...
Click to collapse
cheers mate

okay so i formatted the cache and it comes back
Cach wipe complete.
E:Can't Mount /cache/recovery/log
E:Can't Open /cache/recovery/log
E:Cant mount /cache/recovery/last_log
E:Cant Open /cache/recovery/last_log
it wiped cache ok but is this error something i need to be worried about in away before attempt wipe and restore of system with my nandroid?

Do not bother trying to restore a nandroid backup: the /system partition won't get formatted and the operation will be cancelled.

The back-up made a cache.img, data.img, system.img and a .android_secure.img
I assume I can flash the system.img with fastboot like I used to do when rooting through fastboot? Could safe me the bloatware removal trouble after I get into a bootloop (yet again ).

Related

E: failed to mount /efs

Hi, I was wondering if anyone can help me.
My tablet is unable to mount my /efs directory, or whatever. And while I don't know if they are directly connected,
things like my lock screen, holding my power button to get options like Flight Mode, Data Network, Restart, Etc., is gone. And I have tried screen lock to work, it doesn't. Holding my power button shuts my tablet down (in the same amount of
time that holding it would normally bring up the options screen, as well). I also loose completely my 3g, no matter wish successfully installed rom I run. I am not new to flashing rom at all and navigate trough all kind of step regarding specifics to rom by heart. All I can remember was to try the latest Android 4.1.1 - CyanogenMod 10 Preview and failed to load it, I was stuck in the boot animation for half an hour. So I decide to go back to the new stuck 4.0.4 from my provider. That is where I found the problem. Since, I have try 4.0.4 stuck, 4.04 rooted. The problem occur the same way in every rom and everything else was juste fine. I try the 3.1 stuck and 3.2 stuck and the message E: failed to mount /efs appear when rebooting from odin install.Never been able to load any version of the latest 4.1.1 from pershot. I have found a thread about the same issues from another device http://forum.xda-developers.com/showthread.php?t=1766748. I pass the entire day reading the web for solution, but no cigars so far.
I have the a Telus samsung galaxy tab 10.1 3g.
Thanks in advance if you have any idea how to resolve the /efs mounting problem.
I will added these picture to show that I have lost all important information that is apparently store in some file inside this /efs folder. Apparently this folder as been corrupt when flashing the CyanogenMod 10 Preview especially made for my tablet. So my new question would be to ask.
Do anyone know how to restore this folder even if I have no backup of it?
{
"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"
}
on off on off
try to copy the content of the efs folder with any root browser. it will have files and folders like in the screenshot atached.
Solved.
i had exactly the same problem. Was working on it for the last two days (ofcourse i am a simpleton and rookie )
But yes at last the phone is fixed and working fine with all the parameters.
So dont worry dear. Try to follow these steps : -
1. flash a rom using odin or heimdall - either stock or Cyanogenmod. You can check the repartition if using with the pit file.
2. Root your phone if not already rooted
3. Install busybox
4. Install kTool.apk (Its a small and wonderful apk. Freely available)
5. Install any file manager that supports root browsing
6. Make a backup of your efs with the help of kTool.apk (Its simple)
7. Decompress your earlier backup and copy all the files in the root efs folder with the root explorer
8. Now rename the one that you decompressed the files from as efs.img and copy it into the internal sdcard root
9. Now retore the egs.img using the kTool.apk
This will solve the problem i guess.
Good luck
8.
No file in /efs folder, and no backup
Thanks a lot for the answer guys, but unfortunately there is nothing inside my /efs folder. It's completely empty and therefore I can't copy it, move it backup it,or anything. I also have no backup of this folder. As I understand some file in this folder contain the super important information of my own system like IEME, Serial, etc... So my concern is more like is there is a way to restore this folder even if it doesn't exist. I think the answer is no and the only solution for me is to send it back to Samsung with the stuck roms from my provider and hope for them to not deny the repair so I won't have to pay. I wonder if there is other thing to do but I am pretty sure not. If someone know something let me know. I have already contact Samsung and tell them that my 3g is broken and some strange behavior occur during OTA update. They are going to send me something for me to send the tablet for reparation. Til then I really want to know if there is something I don't understand and if there is still hope. Anyway thanks in advance for anyone who know better then me.
This is EXACTLY what's going on with my tablet, and yes, there's nothing to copy. What do we do?
I originally edited my old post with this, but I wanted to be sure the OP saw it.
I finally fixed mine. See my thread at http://forum.xda-developers.com/showthread.php?t=1876260
I hope it helps

Getting know where fast!! HTC ONE X Plus (UK)

Hi everyone trying to install a new ROM (cm12 hopefully) to my phone, the phones boot loader in unlocked ive installed TWRP 2.8.5.0 every time i select the 2 rom and gapps zip files for flashing i get error message saying failed and back to the main menu.
Please can anybody help its driving me mad.
David Thompson.
dave0147 said:
Hi everyone trying to install a new ROM (cm12 hopefully) to my phone, the phones boot loader in unlocked ive installed TWRP 2.8.5.0 every time i select the 2 rom and gapps zip files for flashing i get error message saying failed and back to the main menu.
Please can anybody help its driving me mad.
David Thompson.
Click to expand...
Click to collapse
use cm-12.1 make sure you full wipe everything (except data/media you can still format data without nuking the internal sd partition)
Make sure you select the rom FIRST then gapps, also please for the love of jesus remember to flash the boot.img once you've finished flashing the rom + gapps.
If that still fails, give me the recovery.log file.
Getting knowhere just getting FAILED message in red as per your instructions ...
it fails after the rom and g apps install i dont even get to the boot.img
dave0147 said:
Getting knowhere just getting FAILED message in red as per your instructions ...
it fails after the rom and g apps install i dont even get to the boot.img
Click to expand...
Click to collapse
Per my instructions I also said get the recovery.log for me
go to ADVANCED > COPY LOG TO SD
once you have gotten the "fail" message.
then pull it off and upload it for me.
Recovery file see attached.
dave0147 said:
Recovery file see attached.
Click to expand...
Click to collapse
I see the problem, easy fix mate.
script aborted: This package is for device: endeavoru; this device is enrc2b.
Download the ENRC2B One which is the ONE X+ not the ONE X version
https://www.androidfilehost.com/?w=files&flid=28732
The latest one is at the bottom. I also suggest you read this : http://forum.xda-developers.com/htc-one-x2/help/wifi-data-cm-roms-read-posting-t3158955
Done as you stated above but my phone is now stuck on the CM12 loading screen the animation is running but it just stays this way (left the phone for over an hour and no change).
dave0147 said:
Done as you stated above but my phone is now stuck on the CM12 loading screen the animation is running but it just stays this way (left the phone for over an hour and no change).
Click to expand...
Click to collapse
Did you flash the bootimage?
Hi Lloir,
Not sure if i did this in the right order
1. added cm12 rom zip
2. added gapps file
3. swipped and installed the two files above no error message.
4. this is where it may have gone wrong i extracted theBOOT.ing file from the CM12.zip file and added that to TWRP recovery and installed.
5. Re Booted the phone and thats where it does nothing but run the animation.
David.
dave0147 said:
Hi Lloir,
Not sure if i did this in the right order
1. added cm12 rom zip
2. added gapps file
3. swipped and installed the two files above no error message.
4. this is where it may have gone wrong i extracted theBOOT.ing file from the CM12.zip file and added that to TWRP recovery and installed.
5. Re Booted the phone and thats where it does nothing but run the animation.
David.
Click to expand...
Click to collapse
You didn't read the link I gave you. Click the Here in my signature, and follow them step by step.
dave0147 said:
Hi Lloir,
Not sure if i did this in the right order
1. added cm12 rom zip
2. added gapps file
3. swipped and installed the two files above no error message.
4. this is where it may have gone wrong i extracted theBOOT.ing file from the CM12.zip file and added that to TWRP recovery and installed.
5. Re Booted the phone and thats where it does nothing but run the animation.
David.
Click to expand...
Click to collapse
The boot.img isn't supposed to be installed within TWRP. You have to manually flash it through fastboot
Holy crap GRRRRR
done what you said followed your instructions and flashed the boot.img from your link re started the phone and now im getting the white HTC quietly brilliant boot screen then nothing happens.
thanks for your help so far.
David
dave0147 said:
Holy crap GRRRRR
done what you said followed your instructions and flashed the boot.img from your link re started the phone and now im getting the white HTC quietly brilliant boot screen then nothing happens.
thanks for your help so far.
David
Click to expand...
Click to collapse
Ok lets go through this in easy steps.
0) open the ROM ZIP with winrar/7zip and pull out the boot.img
1) reboot into recovery and Wipe system/cache/data in recovery
2) Flash rom + gapps
3) make sure the phone is CONNECTED to the pc and assuming you read the instructions from the other post you have the android adb tools
4) reboot into fastboot it will show this
{
"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"
}
(random image off the internet)
5) open up the cmd on the pc and go cd to the folder where adb is, in that folder make sure the boot.img is in there and do the following :
fastboot flash boot boot.img
fastboot reboot
sorted.
I know the rom's all boot I test them before releasing.
All done thanks so much for the help one x plus is now update my accounts and apps.
is there a way of checking if theres new ROM updates for the phone?
thanks david thompson
dave0147 said:
All done thanks so much for the help one x plus is now update my accounts and apps.
is there a way of checking if theres new ROM updates for the phone?
thanks david thompson
Click to expand...
Click to collapse
Just check the forum dude. CM-12.1 is unofficial.
Glad your all sorted now, at least you learnt something from this
Can you help with this problem ... i can change my voice mail settings from 901 to 443 it say it wont change.

Umidigi One Pro Q&A/Discussion/Project Treble

Ok I started this thread in hopes that I could get some answers from someone more knowledgeable than me on these MTK phones.
I've been reading online about flashing these GSI roms but I've seen multiple different methods. Some say use TWRP others say fastboot, or should I use SP flash tools...? And what are the proper wipes to prep for GSI flash? I've seen some say wipe everything except internal and others say just wipe dalvik/cache, and still others that say you must wipe in stock recovery then flash and boot twrp to flash system image...? Can any Umidigi Pros enlighten us a little? I'm sure google will bring more people to this page in time...or not?
I have flashed some GSI ROMs but everyone I've tried I cant seem to get root with Magisk. Magisk shows to be installed but when root apps call for root it just sits there and times out and I never get the prompt to grant root. This means I can't edit the APN which means no data which is not an option.
PS I've tried posting over in Umidigi community but it seems like a ghost town over there and I don't want to hijack any of the other threads here for our device as none of them are related to this issue.
Here also seems to be a ghost town unfortunately.....
ogeid79 said:
Here also seems to be a ghost town unfortunately.....
Click to expand...
Click to collapse
Yeah unfortunately... It's a shame such a good phone is going to waste. I blame Umidigi
razen_kain said:
Ok I started this thread in hopes that I could get some answers from someone more knowledgeable than me on these MTK phones.
I've been reading online about flashing these GSI roms but I've seen multiple different methods. Some say use TWRP others say fastboot, or should I use SP flash tools...? And what are the proper wipes to prep for GSI flash? I've seen some say wipe everything except internal and others say just wipe dalvik/cache, and still others that say you must wipe in stock recovery then flash and boot twrp to flash system image...? Can any Umidigi Pros enlighten us a little? I'm sure google will bring more people to this page in time...or not?
I have flashed some GSI ROMs but everyone I've tried I cant seem to get root with Magisk. Magisk shows to be installed but when root apps call for root it just sits there and times out and I never get the prompt to grant root. This means I can't edit the APN which means no data which is not an option.
PS I've tried posting over in Umidigi community but it seems like a ghost town over there and I don't want to hijack any of the other threads here for our device as none of them are related to this issue.
Click to expand...
Click to collapse
There are several methods to flash the GSI:
1.- BY FASTBOOT
2.- FOR A PERSONALIZED RECOVERY (TWRP)
3.- FOR FLASH TOOL.
But looks like you've already flashed them.
But you have problems with the root, this is because the libdirect-coredump.so file was installed in the vendor folder and not in the system folder.
What you have to do is the following:
/vendor/lib/libdirect-coredump.so
COPIED TO
/system/lib/libdirect-coredump.so
and
*
/vendor/lib64/libdirect-coredump.so
COPIED TO
Code:
/system/lib64/libdirect-coredump.so
drkiro said:
There are several methods to flash the GSI:
1.- BY FASTBOOT
2.- FOR A PERSONALIZED RECOVERY (TWRP)
3.- FOR FLASH TOOL.
But looks like you've already flashed them.
But you have problems with the root, this is because the libdirect-coredump.so file was installed in the vendor folder and not in the system folder.
What you have to do is the following:
/vendor/lib/libdirect-coredump.so
COPIED TO
/system/lib/libdirect-coredump.so
and
*
/vendor/lib64/libdirect-coredump.so
COPIED TO
Code:
/system/lib64/libdirect-coredump.so
Click to expand...
Click to collapse
Wow! I can't believe someone finally responded. So was this an error in the build or is there something I can do with the system image to correct it?
I still have this phone but I don't use it as my dd but I'd still like to know.
razen_kain said:
Wow! I can't believe someone finally responded. So was this an error in the build or is there something I can do with the system image to correct it?
I still have this phone but I don't use it as my dd but I'd still like to know.
Click to expand...
Click to collapse
If you have TWRP, ENTER MOUNT and mount the System partition and the vendor partition, with the TWRP file manager copy the files that I put before
I'm never able to mount anything in TWRP 3.2.3 or 3.2.3v2 on the OnePro, what am I doing wrong ?
targa said:
I'm never able to mount anything in TWRP 3.2.3 or 3.2.3v2 on the OnePro, what am I doing wrong ?
Click to expand...
Click to collapse
Are you getting errors when you attempt to mount them? They should be like "invalid argument" or something like that. In this case, you should use SP Flash Tools to flash the entire Eragon v2.5 OS with it's scatter file to your device, it -should- disable the encryption stopping you from tampering with /system and /data, and other partitions.
Also, I've been seeing people saying that you can't pass safetynet checks on the Umidigi One Pro, you can.
- Running Havoc OS 2.0
- Using Magisk v23 with modules: MagiskHide, MagiskHidePropsConfig
- Force BASIC key attestation spoofed to OnePlus 6
- Device Fingerprint spoofed to OnePlus 6
{
"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"
}
Something to note, I was not able to get the module Universal SafetyNet Fix working on the One Pro.

Accidentally deleted OS, cannot install a new one on TWRP. || Nextbook Ares 11a (NX16A11264)

Long story short, I tried to update the android tablet from 5.1 to the most recent version of android and I messed up and accidentally deleted my OS. I'm trying to install a new OS on TWRP, but all the ones I try to install always fail.
Installing zip file '/external_sd/2014-12-31--19-20-36_V3.0.4.MMB29M.20170620.075926.zip'
Checking for MD5 file...
Skipping MD5 check: no MD5 file found
Invalid zip file format!
Error installing zip file '/external_sd/2014-12-31--19-20-36_V3.0.4.MMB29M.20170620.075926.zip'
Updating partition details...
...done
Every troubleshooting guides I find doesn't work, so I'm out of options on how to fix this. I also tried following this guide, but the recovery always end up failing.
Device: Nextbook Ares 11a (NX16A11264)
@resty1
What's inside the zip file?
resty1 said:
Long story short, I tried to update the android tablet from 5.1 to the most recent version of android and I messed up and accidentally deleted my OS. I'm trying to install a new OS on TWRP, but all the ones I try to install always fail.
Installing zip file '/external_sd/2014-12-31--19-20-36_V3.0.4.MMB29M.20170620.075926.zip'
Checking for MD5 file...
Skipping MD5 check: no MD5 file found
Invalid zip file format!
Error installing zip file '/external_sd/2014-12-31--19-20-36_V3.0.4.MMB29M.20170620.075926.zip'
Updating partition details...
...done
Every troubleshooting guides I find doesn't work, so I'm out of options on how to fix this. I also tried following this guide, but the recovery always end up failing.
Device: Nextbook Ares 11a (NX16A11264)
Click to expand...
Click to collapse
There is an option to skip MD5 verification
joke19 said:
There is an option to skip MD5 verification
Click to expand...
Click to collapse
That doesn't help if the zip is not in twrp format
DavidxxxD said:
@resty1
What's inside the zip file?
Click to expand...
Click to collapse
{
"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"
}
resty1 said:
View attachment 5709527
Click to expand...
Click to collapse
Unzip and put it with the folder 2014 ... in the backup folder from twrp and then recovery
joke19 said:
Unzip and put it with the folder 2014 ... in the backup folder from twrp and then recovery
Click to expand...
Click to collapse
I've done the recovery and it went through. But when I restarted the system, it still boot loops. Trying to go back to TWRP gave me an android exclamation mark. Pressing the power button after brings up this screen here below.
And wipe data don't help?
And flash twrp again with adb
joke19 said:
And wipe data don't help?
Click to expand...
Click to collapse
Tried wiping the data before recovery, but it didn't help. I'm back at TWRP.
(I used fastboot to flash TWRP)
resty1 said:
Tried wiping the data before recovery, but it didn't help. I'm back at TWRP.
(I used fastboot to flash TWRP)
Click to expand...
Click to collapse
Sorry. U have to find the stock firmware and how to flash. All links are dead, what I found. Maybe support? Good luck
joke19 said:
Unzip and put it with the folder 2014 ... in the backup folder from twrp and then recovery
Click to expand...
Click to collapse
The file structure needs to look like this:
/sdcard/TWRP/BACKUPS/[device serial]/[2014 backup folder]/recovery.emmc.win
If there is no serial number folder in BACKUPS, take a backup of some little part and it will be created. The folder inside the zip has to be next to your new backup. Then it should show up in the restore menu. Wipe data, restore boot and system.

TWRP error (operation not permited) when backup

Hello,
I need help for TWRP on my Samsung Galaxy A20e. My device is rooted for a while and TWRP is newly installed. But the problem is when I try to backup something, I got an error while creating the folder TWRP with the mension of operation not permited. I also have a problem when I touch the Install button, I see a list of folders with random generated names like in the photo. Can anybody help me to solve this problem? I can give more informations if needed.
Thanks for helping !
{
"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"
}
your device is encrypted. you must disable encryption and factory reset device in order to become TWRP functional, as TWRP cannot handle samsung encryption. or use other backup method such as Migrate.
Ok I tried what you wrote but it works only while I don't boot my device after factory reset it. If it happens, the encryption enables automatically and I can't backup anymore. Do you have a solution for this ?
you must disable encryption in /vendor/etc/fstab.samsungexynos7884
(can maybe done with zip)
https://forum.xda-developers.com/t/recovery-unofficial-twrp-3-4-0-0-for-galaxy-a20e-a202f.4141767
How am I supposed to do that ? I tried everything with this file. There is a mount option for /data "filencryption=ice". I tried to delete this with a file editor in the stock system but when I reboot my phone it reappears. When I this this in TWRP the system can't boot.
https://forum.xda-developers.com/t/recovery-unofficial-twrp-3-4-0-0-for-galaxy-a20e-a202f.4141767
Click to expand...
Click to collapse
This link cannot help me because it is just a tutorial and when I do exactly like in i get the same results. I don't unerstand why my phone has this problem and not others. If you have other ideas i would be good
there is download for Disable_Dm-Verity_ForceEncrypt_03.04.2020.zip flashable zip which is supposed to patch fstab (last step in tutorial). you must mount system/vendor writeable (checkbox in TWRP)
aIecxs said:
there is download for Disable_Dm-Verity_ForceEncrypt_03.04.2020.zip flashable zip which is supposed to patch fstab (last step in tutorial). you must mount system/vendor writeable (checkbox in TWRP)
Click to expand...
Click to collapse
I tried installing this zip file from the SD card but it didn't boot (locked on samsung logo) so I did a factory reset with TWRP and after configuring, I got the same results than before.
- in TWRP double check your vendor partition is separate partition (or directory inside system partition)
- in TWRP terminal make sure partition is mounted rw
Code:
mount /system w
mount /vendor w
mount
- install Disable_Dm-Verity_ForceEncrypt_03.04.2020.zip
- in TWRP terminal double check fstab.samsungexynos7884 file fileencryption= flag is gone
Code:
cat /vendor/etc/fstab.*
- in TWRP - wipe - format data - type yes
Thanks for the instructions. It works perfectly ! I am just an idiot because I didn't wipe /data in TWRP but I just swiped to factory reset. Thank you a lot !
maybe I was misleading you with factory reset. might be that TWRP factory reset just behaves like simple wipe, where only files are deleted excluding /data/media
formatting whole partition is required for removing encryption.
edit: Please note if you're interested in undo the patch, you must restore vendor partition. you can of course add the fileencryption= flag back with text editor yourself. However that requires linux line endings (LF) so you can't use Windows text editor (CRLF) that's why you should use Notepad++ and enable view for invisible chars with (π) button. Do not simply copy file back into /vendor you will lose file permissions. Do not use sed you still would lose secontext. only copy content of file into old existing file like this.
Code:
cat /tmp/fstab.new > /vendor/etc/fstab.samsungexynos7884
Btw if you're running custom ROM (such as LineageOS) it's possible to break samsung encryption and use AOSP encryption as fallback by deleting keystore.mdfpp.so and keystore.msm8953.so from /vendor/lib/hw. This way you can use TWRP on encrypted device.

Categories

Resources