TWRP doesn't let me flash into System - Samsung Galaxy J7 (2017) Questions & Answers

I'm trying to flash a Pixel Experience GSI onto my 2017 Samsung (SM-J730G) using TWRP. In order to do so, I need to flash the GSI's system.img into my device's System partition. However, my TWRP only allowed me to flash into either the Boot or Recovery partitions. The other options I see in other phones (System, Vendor, Preload, etc.) are nowhere to be found.

Related

[Q] Cannot install OTA 5.1 on 5.0.2 rooted

I have 5.0.2 (LRX22G) rooted + TWRP.
I flashed the original stock recovery from LRX22G, and still I cannot sideload OTA, I'm getting error "/system/bin/app_process32 has unexpected contents".
Is this because I'm rooted?
Is there another way to upgrade to 5.1 ? Can I just flash new bootloader, system, boot and recovery images (from the factory image LMY47D) and erase cache?
(Obviously I want to preserve my apps and data while upgrading...)
Found answer here:
http://www.theandroidsoul.com/fix-e...img-android-5-0-factory-images-nexus-devices/
The only missing (last) step for my setup:
flash latest TWRP, reboot into it, flash latest SuperSU, erase Dalvik and cache, reboot.
You can flash every partition for itself. No need to wipe. But I haven't done this so far so I can't tell if it will work.
But here is a guide.
http://highonandroid.com/android-sm...-android-5-1-manually-on-nexus-4-5-6-9-and-10
I always just manually flash all the images from the new factory image EXCEPT USERDATA. Never had any issues, and all my data stays the same as it was before flashing/updating.
And HOW exactly do you DO that (on a Zenfone 2e) because I cant find any Definitive Info on the phone variant. It seems that ASUS uses the same tools for the 2e as they do for the 2 (16 Gig) but they never say FOR Sure. I have a 2e and I'd REALLY like to be able to put the newer rom on it. I keep getting the same ...app_process32 Status 7 error.
So How would I go about GETTING the Factory Rom from ASUS ,
and 2 Where can I find the "Tools" i keep hearing about
Also, Im not a noob, I've used Fastboot and ADB before, I'm just not quite a "Pro"
hippopo said:
I have 5.0.2 (LRX22G) rooted + TWRP.
I flashed the original stock recovery from LRX22G, and still I cannot sideload OTA, I'm getting error "/system/bin/app_process32 has unexpected contents".
Is this because I'm rooted?
Is there another way to upgrade to 5.1 ? Can I just flash new bootloader, system, boot and recovery images (from the factory image LMY47D) and erase cache?
(Obviously I want to preserve my apps and data while upgrading...)
Click to expand...
Click to collapse
Hello,
you can flash yourself the content of the factory image.
Unzip the content , and then the newly extracted archive you will find.
you can do such tings ...
Code:
fastboot flash <partition> <path_to_img_file>
replace <partition> with system or bootloader
<path_to_img_file> should be the absolute path to your img fileSo if i were you I would simply flash the system partition and erase cache

Flashed Android N OTA, Can i Restore Back Using TWRP Backup

Hii
I have flashed OTA zip of Android N Preview.
So my question is whether i can restore my TWRP Backup of Pure Nexus ROM to get back.
I have backed up the everything from TWRP like
Data
System
System Image
Boot
Vendor
Vendor Image.
So if its possible to restore using TWRP backup of Pure Nexus ROM that i took earlier .
what partitions do i need to restore to get back properly .
Do i need to restore
Boot , System & Data partitions to get back to Pure Nexus ROM or all partitions including System Image, Vendor image
Did you flag thru TWRP? of so did you flag modified boot IMG or kernel? To my knowledge that had to be done before rebooting into system.
To be able to restore TWRP. Also 3.0.0.0 is nor playing nice with new version so TWRP 3.0.0.1 has been released
StariX37 said:
Hii
I have flashed OTA zip of Android N Preview.
So my question is whether i can restore my TWRP Backup of Pure Nexus ROM to get back.
I have backed up the everything from TWRP like
Data
System
System Image
Boot
Vendor
Vendor Image.
So if its possible to restore using TWRP backup of Pure Nexus ROM that i took earlier .
what partitions do i need to restore to get back properly .
Do i need to restore
Boot , System & Data partitions to get back to Pure Nexus ROM or all partitions including System Image, Vendor image
Click to expand...
Click to collapse
You don't need to backup system image or vendor image, so don't worry about those in future, and definitely don't restore them. You should be fine with just restoring boot, system, data, and vendor.
Ok i flashed the Android N preview Manually using fastboot.after that flashed Modified Boot.img
flashed TWRP by Rom Racer v 3.0.0-1
Booted into twrp successfully without any problem & formatted Data Partition.
Used Android N preview for an hour or so and found that it cant be used as daily driver and also found that i couldnt live without Dt2w,s2s, xposed,root . So then reverted back to Dirty Unicorns ROM using TWRP backup that i made earlier.
So the process i followed to restore back :
Boot into TWRP
Wipe Dalvik, Data, System, Cache partitions.
flashed an older Vendor image zip of Android Marshmallow through TWRP
Restored the TWRP backup of Dirty Unicorn ROM.
And successfully reverted back to the ROM i was using earlier.

How to (re) encrypt?

I had some complex issues flashing some roms and ended up having to format userdata. Now I am unencrypted and I have not been able to get the stock rom (from the official OTA zip) to boot. I was able to get all 3 of the custom OOS roms in the development section to boot, however when i go into settings and start encryption the green android logo flashes on the screen and the device does a hot reboot without starting encryption. I have tried countless things to boot the stock rom and/or get encryption to work including flashing the stock recovery on a custom rom, and the stock recovery asks for a pattern and mine doesn't work. I am totally out of ideas so if anyone has any please help.
solved: i previously did fastboot format userdata and it didn't work. I just did fastboot format userdata, system, and cache and the full ota zip installed, the security settings say it's encrypted, and i was able to decrypt with the stock recovery. Time to flash twrp and break more stuff!
Encryption
I believe the phone encrypts when you put a screen lock on.
I put a pin on mine booted in to recovery and it was encrypted, rebooted phone, removed pin, rebooted recovery everything back to normal.
hibby50 said:
solved: i previously did fastboot format userdata and it didn't work. I just did fastboot format userdata, system, and cache and the full ota zip installed, the security settings say it's encrypted, and i was able to decrypt with the stock recovery. Time to flash twrp and break more stuff!
Click to expand...
Click to collapse
Flashing stock boot.img in bootloader mode should encrypt the phone too.
gee2012 said:
Flashing stock boot.img in bootloader mode should encrypt the phone too.
Click to expand...
Click to collapse
Where or how can one extract/get the stock boot.img?
going to twrp wipe Then format data and typing yes will re-encrypt the device
Watch this
hibby50 said:
solved: i previously did fastboot format userdata and it didn't work. I just did fastboot format userdata, system, and cache and the full ota zip installed, the security settings say it's encrypted, and i was able to decrypt with the stock recovery. Time to flash twrp and break more stuff!
Click to expand...
Click to collapse
Thanks for sharing your solution. I found myself in this precarious position today. Solved with fastboot format... Thanks!

Actual custom rom flashing instructions ??

This is my first Oneplus device and I just realized that in this device, in order to flash Custom Roms, you need to have a OOS installed beforehand plus not wiping /System partition.
So I was wondering which one is the best and quickest way to do a clean and fresh install from scratch, with the less amount of stuff from previous roms since wiping /System will end up on a bootloop.
Would it be something like this:
Starting from fresh and clean OOS latest version:
-Wipe /Data /Cache /Internal
-Flash Rom + kernel (optional) + TWRP
-Reboot recovery
-Flash Gapps + Magisk.
-Reboot System.
Is this the cleanest way to do it ?
I've seen @Koogly 's video but I dont know if theres a better way to do it.
Thank you all.
dirtyl0lharry said:
This is my first Oneplus device and I just realized that in this device, in order to flash Custom Roms, you need to have a OOS installed beforehand plus not wiping /System partition.
So I was wondering which one is the best and quickest way to do a clean and fresh install from scratch, with the less amount of stuff from previous roms since wiping /System will end up on a bootloop.
Would it be something like this:
Starting from fresh and clean OOS latest version:
-Wipe /Data /Cache /Internal
-Flash Rom + kernel (optional) + TWRP
-Reboot recovery
-Flash Gapps + Magisk.
-Reboot System.
Is this the cleanest way to do it ?
I've seen @Koogly 's video but I dont know if theres a better way to do it.
Thank you all.
Click to expand...
Click to collapse
First time from oos zip
Flash latest stock rom oos
Flash twrp zip
Wipe data and cache
Reboot to recovery
Flash latest stock rom oos zip
Flash twrp zip
Wipe data and cache
Flash custom rom zip
Flash twrp zip
Flash gapps zip
Flash magisk zip if you want root
Reboot to system
If you are already on custom
Flash lastest stock oos zip
Wipe data and cache
Flash custom rom zip
Flash twrp zip
Flash gapps zip
Flash magisk zip if you want root
Reboot to system
If going from custom to oos
Back up all your internal storage pictures videos music etc
Wipe data internal storage and cache
Flash latest stock oos zip
Flash twrp zip if you still want to customize
Reboot to recovery
Flash latest stock oos zip
Flash twrp zip if you still want to customize
Flash magisk zip if you want root
Reboot to system
If you want a custom kernel on any of these methods I would recommend booting the rim first and going through setup process the rebooting back to to twrp after and flashing the kernel
Also you will want a USB c otg port bc after the first flash your data will be encoded. You can select the otg storage via twrp to make the process easier.
If you don't have an otg cable you will need to sideload each zip via cmd prompt with fastboot tools and sideload in twrp
After all flashes are complete and you boot the rom the encrypted data will no longer be encrypted on custom rom flashing if going back to stock oos rom you lose all internal data
Most ROMs threads have instructions in main thread and those should be followed first. Some ROMs may require some bits and pieces from original oxygen rom prior to custom install
Asoip for example
Is flashing oos necessary if we unlock bootloader?
I see instructions for lineage os dont mention flashing of oos bit they have the first step as unlocking the bootloader
mustafabakrolwala said:
Is flashing oos necessary if we unlock bootloader?
I see instructions for lineage os dont mention flashing of oos bit they have the first step as unlocking the bootloader
Click to expand...
Click to collapse
You flash oos first so you have the correct vender and up to date files etc before flashing. Some ROMs require you to flash old oos versions bc their rom was based on that oos vender

TWRP/Root for Walmart ONN Gen 1 8 inch (2020 model) 100003561

I managed to port twrp to this tablet however i cannot get data to decrypt. Does anyone know what i must do to enable /data decryption in twrp. The image was developed from the twrp-3.5.2_10-0-Gigaset_GS4.img and using stock recovery for the split_img folder files. The ported twrp image boots and mounts system as well as cache, dalvik cache, and data(ecrypted of course), vendor, metadata, product, and external sdcard storage. I was hoping to be able to flash zips for instance orange state remover and maybe use super su instead of magisk for root. I hope someone is willing and or has the time to help me develop this further feel free to dm me on discord: generalkiller137#7866

Categories

Resources