Question [TWRP] Metadata is System? - Samsung Galaxy A12

I installed TWRP and wanted to do an advanced wipe, it turns out that among the available options is not System but Metadata is there. I won't do the wipe yet because I don't want to risk my device.

Related

Encryption question.

Problem. Device no longer fully boots due to changing the dpi [smallest width in developer settings] to a value that systemui doesn't like.
Proposed solution. I can take a full data backup [encrypted I believe] via stock recovery, I can then install twrp [data will need to be wiped to unlock bootloader]. After that I can write a script into /system to wipe systemui/settings userdata and correct the problem after boot - then reflash stock recovery & restore userdata.
Questions. Does the above sound doable? Will encryption be broken in there somewhere, so the restored data won't work? Is there encryption related data in another partition that I should backup before wiping data?
[adb doesn't pick up the device - so can't do the easy wm size fix]

clean install latest android pie

Hi,
I'm on 9.0.2 pie with root, blue's park kernel and magisk.
I'm getting frequent camera freeze and only way to come back on focus is to force reboot.
How to clean install latest android pie build? Sorry if this is answered but I'm not finding a complete steps anywhere here.
Thanks
Hi,
Follow the guide from the 3rd post from here: https://forum.xda-developers.com/oneplus-6/how-to/awaited-android-pie-oxygenos-beta-t3831803. -> Instructions for downgrading from Android P Beta version to MP version.
You will go back to latest stable Oreo and this will wipe all your data. After that, you will receive OTA update for latest stable PIE.
Or you can simply do a factory reset from Setting. If you want to remove Magisk and TWRP, just install the latest 9.0.2 again through Local Upgrade.
Good luck.
Do you have TWRP installed?
I recently did the MSM Downloader refresh. Worked great.
Then I went to the 9.0.2 and have had 0 issues
b.huss2 said:
Do you have TWRP installed?
Click to expand...
Click to collapse
Yes i have blueapark twrp installed
leonalewis said:
Yes i have blueapark twrp installed
Click to expand...
Click to collapse
Alright, then this is easy, and it will work fine if you are already running 9.0.2 (otherwise you have to worry about security patch level and I won't go into that here). Make sure you have OOS 9.0.2 full zip, latest TWRP installer (I used the new official TWRP), and Magisk (I used 17.3) on your internal memory. We will wipe all of this later, so make sure you follow along precisely or else you will have nothing there to install. If you don't fully follow what I mean by any of this, or if you have any questions about why, don't hesitate to ask before you do something you're not sure of.
Start in recovery:
> Wipe system, data, and cache > install ROM and TWRP > Reboot recovery
> Wipe system, data, and cache > install ROM and TWRP > Reboot recovery
(I didn't make a typo; you basically just done that twice but you now have a fresh install on both slots.)
> Install Magisk (if you want root) > Format data (the full wipe that requires confirmation) > reboot system
b.huss2 said:
Alright, then this is easy, and it will work fine if you are already running 9.0.2 (otherwise you have to worry about security patch level and I won't go into that here). Make sure you have OOS 9.0.2 full zip, latest TWRP installer (I used the new official TWRP), and Magisk (I used 17.3) on your internal memory. We will wipe all of this later, so make sure you follow along precisely or else you will have nothing there to install. If you don't fully follow what I mean by any of this, or if you have any questions about why, don't hesitate to ask before you do something you're not sure of.
Start in recovery:
> Wipe system, data, and cache > install ROM and TWRP > Reboot recovery
> Wipe system, data, and cache > install ROM and TWRP > Reboot recovery
(I didn't make a typo; you basically just done that twice but you now have a fresh install on both slots.)
> Install Magisk (if you want root) > Format data (the full wipe that requires confirmation) > reboot system
Click to expand...
Click to collapse
Alright thanks this should be added in sticky probably.
b.huss2 said:
Alright, then this is easy, and it will work fine if you are already running 9.0.2 (otherwise you have to worry about security patch level and I won't go into that here). Make sure you have OOS 9.0.2 full zip, latest TWRP installer (I used the new official TWRP), and Magisk (I used 17.3) on your internal memory. We will wipe all of this later, so make sure you follow along precisely or else you will have nothing there to install. If you don't fully follow what I mean by any of this, or if you have any questions about why, don't hesitate to ask before you do something you're not sure of.
Start in recovery:
> Wipe system, data, and cache > install ROM and TWRP > Reboot recovery
> Wipe system, data, and cache > install ROM and TWRP > Reboot recovery
(I didn't make a typo; you basically just done that twice but you now have a fresh install on both slots.)
> Install Magisk (if you want root) > Format data (the full wipe that requires confirmation) > reboot system
Click to expand...
Click to collapse
Can we skip that last format data part if we want to keep our data? Like keeping that data won't mess with the system anyway right?
Ankit Chahar said:
Can we skip that last format data part if we want to keep our data? Like keeping that data won't mess with the system anyway right?
Click to expand...
Click to collapse
sure you could skip it, but there is a ton of crap that android system likes to keep in you sdcard partition. I personally like to clear all of that junk when I'm going for a clean start. The op wanted a fresh start so I give him what I would do and I know works (especially if you're trying to squash bugs).
curious if this fixed your issue OP?
Have the same issue and it's driving me nuts.
All I have found on official forums is clearing camera cache (which doesn't work)
Have also seen people say that it persisted even after a factory reset
On the same set up as OP too

[ Guide ] Direct Flashing GSI Image to Logical Partitions on Samsung Galaxy with Dynamic partitions

Disclaimer: It may be work on other android device with dynamic partitions, tested only on Samsung Galaxy. USE AT YOUR OWN RISK!
Thanks to @Yillié who built Dynapatch v1.5 that make it possible to direct flash GSI rom to logical partitions with dynamic partitions.
Note from Developer :​As this is still in beta phase right now, there is no check for whether the device is infact even dynamic or not or even if the mounts are present already in fstab or not. So only flash if you have a device that is launched with Android 10 or above and only has the option of flashing super image and not system image, vendor image etc individually.
Patch Install Instructions​
First, your phone must be installed TWRP Recovery. I suggest you to add null vbmeta.img to the TWRP then reflash it via ODIN. You must use null vbmeta.img, Don’t ignore this!
Enter TWRP recovery
Select Install – select DynaPatch-v1.5.zip, Swipe to confirm Flash
Select Reboot – Recovery or Turn Power off
One time only to flash this patch except you reflash the TWRP recovery
GSI Install Instructions​
Enter TWRP recovery
Select Wipe – Advanced wipe ( select “Dalvik, Cache, System” ) – Swipe to wipe
Select Install – Install Image – [ your GSI image ] – select “System Image” and Swipe to confirm flash
Select Wipe – Format data ( type “yes” and confirm )
Select Reboot – System
Download link in this video description​
I heard there's dynapatch v2.0 for newer A/B devices. If anyone able to get it, lemme know.

Samsung devices (2) stuck in system boot splash

HI,
I have 2 Samsung devices with TWRP installed, and I can access the TWRP recovery menu. When I install the flash ROM and try to boot, devices are stuck in system boot forever.
Device 1: SM-T800, with LineageOS 14.1 previously. I opened an email and the device got hacked, so I did a factory reset (which failed), then re-flashed the latest TWRP and recovered rescue mode. Now when I flash the Lineage ROM (from TWRP) the device does not boot to system but keeps showing the splash screen. I think the hack might have placed immutable files under system. could I format this partition to zero it out via ADB? What other choices are there?
<EDITED>
Device 2: Galaxy S3 GT-I9300 - I solved this so i removed this section.
Thank you for any help.
Beeblebrox-BSD said:
HI,
I have 2 Samsung devices with TWRP installed, and I can access the TWRP recovery menu. When I install the flash ROM and try to boot, devices are stuck in system boot forever.
Device 1: SM-T800, with LineageOS 14.1 previously. I opened an email and the device got hacked, so I did a factory reset (which failed), then re-flashed the latest TWRP and recovered rescue mode. Now when I flash the Lineage ROM (from TWRP) the device does not boot to system but keeps showing the splash screen. I think the hack might have placed immutable files under system. could I format this partition to zero it out via ADB? What other choices are there?
Device 2: Galaxy S3 GT-I9300, with working TWRP. This device is giving a "Failed to mount /efs (Invalid argument)" error. The previous setup was shared storage with sdcard and encryption on both internal and sdcard. The sdcard got corrupted, hence the error. This post suggests running
Code:
dd if=/dev/zero of=/dev/block/bootdevice/by-name/modemst1
but the device does not have identifiable boot device under /dev/block. I think this might work if I can identify the boot partition name?
Thank you for any help.
Click to expand...
Click to collapse
Flash a custom ROM for i9300 via TWRP. Download a custom ROM for i9300 and the appropriate Gapps to go with the ROM, store them on external sdcard. When you are in TWRP, before you flash your ROM, select the "Wipe" option, then select "advanced wipes", on the next menu, choose the system partition, data partition, cache partition and dalvik cache partition then swipe the slider to wipe. Then go back to home screen in TWRP and choose the "Install" option, then choose your ROM file and your Gapps file then swipe to flash. When the flash is finished, select the "Reboot system" option and see if it boots into system.
If that doesn't work, we will take some steps further back and try starting from the beginning.
Keep in mind that some of the custom ROMs for i9300 may have a different partition structure and partition sizes than the stock firmware for i9300 has and may require resizing certain partitions such as the system partition by flashing a custom PIT file like the Galaxy S2 had to do before it flashed certain custom ROMs.
Hi, thanks for the input.
* I had already solved the GT-I9300 issue before your post (I should have added to thread rather than edit the original post). I solved issue with that device by including system partition in the wipe.
* For the SM-T800, I used a LineageOS-14.1 that I had stored somewhere. That also did not work, until I only flashed Lineage and did not include any GApps. If I really need it, I can always flash later. I assume the latest GApps 7.1 build conflicts with older ROMs.
An unexpected problem was the lack of current ROMs for the 2 devices. SM-T800 has nothing other than last build Lineage-14-1-20190205. The I9300 has several unofficial ROMs floating around for newer Android versions, but they are all debug/dev builds with enabled options that drain the battery very quickly.
If anyone comes across a decent ROM for either of these devices please LMK. Thanks.

how to flash any custom ROM for your device.

Hi there
NOTE: please follow this steps one by one.
Disclaimer: i am not responsible if your device got bricked, i use this method for my samsung galaxy A20e and it works.​
well when i wanted to flash a custom rom for the first time, i didn't find any steps to follow, i just picked out the rom then flash it via twrp and rebooted and that was a big mistake, the rom booted but i wasn't able to do anything, so today you will see the right way to flash .
First of all, you need to have twrp installed.
then download the rom version that you want for example, i used this rom for my device: https://sourceforge.net/projects/derpfest/files/a20e/
next put the file that you have downloaded in an sdcard.
then reboot to recovery, you can do it by powering off your phone then hold the volume up and power keys until you see twrp's logo.
click wipe option, the advanced, after that check all the partitions there except sdcard and usb-otg (and vendor if it is not included), for my device i wiped system, vendor, data, cache, dalvik and cache, but it may be different for you, now swipe to the right to confirm wiping.
when the wiping process has been finished, exit advanced wipe and choose format data, you will be asked if you are sure, type yes.
go back to the main twrp window, then select flash, click select storage and choose sdcard(or usb-otg if you are using it), then you will see the zip file and install it.
reboot and that's it !! it is depending on your phone's speed now, just be patience.
enjoy your time in that rom, cause you will change it soon *__*.

Categories

Resources