Manually Flash through TWRP - Samsung Galaxy S8+ Questions & Answers

Edit:
Since I got no replies I figured I would change up my question to maybe make it easier to understand.
Does anyone know how to flash bootloader files in TWRP for a G955U?
Example:
-abl.elf/xbl.elf/tz.mbn/storsec.mbn/sec.dat/rpm.mbn/pmic.elf/NON-HLOS.bin/msadp.mbn/etc......
To their correct partitions
-sdd1 rpm/sdd2 tz/sdd3 hyp/sdd4 fsg/sdd5 sec/sdd6 pmic/sdd7 dsp/sdd8 abl/etc...
Phone usb port is dead and can't use download mode to flash. I have gotten a update.zip on PartyCyborg and tried to take it but fails when it gets to about 20% and give a "Single-SKU" error.
I have also tried to update with FlashFire after decompressing the lz4 files and it misses things like abl.elf and other bootloader files so after it's done installing the system just reboots with the standard Samsung splash and doesn't do anything, and since the usb doesn't work I can't flash with odin.
Does anyone now how to get the phone to update while being on a factory binary(used for root) and get to a stock rom with no usb.

Related

[HELP] Soft-bricked Galaxy S6 G920F [Solved]

Hello everyone. So, let's start by explaining what I have did.
For a while I had the XtreStolite Odex 2.0 edition and I wanted to try out other ROM. I have factory reset-ed when I was installing the ROM using TWRP and I somehow managed to delete all the phone's internal stuff, but I can still boot to TWRP or download mode.
I have tried to flash stock firmware using Odin 3.10.6 ( running as administrator too ) and when it gets to sboot.bin it fails right away. I have tried using Samsung Smart Switch PC Software, tells me my device is unsupported. If I try to manually find my model using the S/N, the software fully downloads then gives me an error.
I have tried to ADB sideload from TWRP Advanced menu, whenever I want to flash for example xtrestolite odex zip ( named rom.zip for short ) it goes "serving:... 21%" and gets stuck. If I try to push a zip it says "error:closed". I am no big expert in ADB, I don't know how to install the latest version, and I can't download the full Android SDK because my internet is very slow. I had Bootloader and Modem 5.1.1
I am looking for a way to move the XtreStolite ROM zip into the phone's memory so I can boot to TWRP and install the ROM. I've seen something with OTG Cable and USB but I have no real knowledge of these. If it comes as a last resort, if someone could briefly explain me how would I manage to repair the phone using the OTG Cable and USB stick.
I also have a Nandroid Backup on my PC but I don't know how to move it to the phone's storage, because it's well, bricked. When I'm trying to copy files over Mount option in TWRP, it says that it cannot copy the file, the device may be disconnected.
I had Bootloader and Modem 5.1.1, also Windows 10. I can go back to 7 or 8.1 anytime it's needed.
Much appreciations.
EDIT: I actually repaired it by flashing a stock firmware downloaded from xda ( God bless you whoever linked the mega.co.nz stock fw link ) . Thread can be deleted.
You can also flash these via odin.
http://www.sammobile.com/firmwares/database/SM-G920F/

How to flash recovery(CWM) without odin/pc

Hey, i'll describe my problem. I wanted to flash a custom rom, i copied ROM and gapps, whatever, i went to TWRP screen, deleted SYSTEM, just to be sure everything is ok, cause i was having aurora and i tought there might be some problem with compatibility. But SURPRISE, twrp decided to give me stupid errors, i downloaded 5 more ROMs just to make my phone working again. THE ERROR SHOWN WAS : "Error executing updater binary in zip "(I was able to flash gapps.zip without errors though) . I can't believe this, what should have been 10 minutes became 5 hours.
THE FACT is that i can't connect my phone to pc in any way, it's not recognized by odin in download mode( maybe because usb debugging off, but i also had recognizing problem with it, it's because charging port most probably, but i'm not going to change it now ), because i only want to flash CWM now to be able to flash ROM.
SO, im asking you to help me flash CWM using TWRP, to flash it like ZIP, i wonder if it's possible. FAST REPLY, please, i want to use my phone soon.

Bln-L24 - Flash Stock via TWRP

Hey Guys
[Update] I've managed to get Fastboot to work properly after flashing an ever older version of a MTA-Full-PV file. I have gotten TWRP re-installed & I'm trying to flash the latest stock but it's not writing.
I've seen some people talk about only flashing system/boot/vendor, and others say you can flash the full update.zip(which is not working for me). I've also tried to unpack the update file, remove the reovery.img & repackage but same issue.
Can anyone give me a guide to flashing stock via TWRP? Flashing just the system/boot/vendor failed.
I was attempting to go back to stock(like many other people here recently) and I didn't know I could use TWRP to update, so I flashed 360 via dload method.
Something didn't work properly as it flashed, and I can boot, but I'm missing something things in the rom, like their built-in updater. I've attempted to load a newer version via dload without success, 360 is the only version that seems to want to flash. If I try to re-flash it, or the companion zip, nothing happens. It doesn't wipe the existing rom or anything. I've tried doing a factory reset.
I still have my unlock code & I'd like to re-unlock the bootloader & install TWRP, however my device will not connect via USB. It will enter charge mode, but I cannot get it to be recognized by the PC.
Dev settings says it's in MTP mode. USB debug = enabled. I'd also tried enabled ADB during charge, but the PC still won't recognize it. I've had no issues with the PC/device combo previously.
I'm trying to find a better version to flash, but nothing seems to work. God knows when 8.0 will be released for US, so I would like to figure out what's going with USB. Once USB is working, I can unlock bootloader, flash TWRP, then flash a newer update.zip ?
It's very odd that no PC will recognize the device in MTP mode. I've ever tried rebooting into Fastboot mode(volume down at boot) but still nothing. I've tried multiple cables/pcs & Windows/Linux.
Any ideas why I ADB/MTP will not function? I don't believe it's a driver issue on the Windows 10 PC as it's not listed in device manager when I do a scan, even as an unknown device. Seems to enter charge mode just fine while connected to a PC, so I assume it's a software issue somewhere.

Any root for SM-J327W yet?

Hello, I was searching for a root for my "new" Samsung J3 Prime (SM-J327W) that I got from my sister. I did the OEM Unlock and in ODIN Mode, it says that it's also "FRP LOCK : OFF". So far, CF-Auto-Root didn't work and all TWRP images, that I found, wouldn't even download on the device . I tried images for the "T", "P" and "U" variants also. The "P" one, lead to bootloop (I recovered stock rom since I got it). So is there any root for this device? It's on the latest versions of firmware and Android available for it.
Did you find anything for the J327W yet? I can only find ROMs for the 320, 327P and 330. I've been having very erratic battery life for over a year. It started after a factory android update. Sometimes my battery life will drop from 70% down to less than 5% in a minute. I've done a factory reset, cleared the cache and replaced the battery but nothing has helped. Trying to put a new ROM OS on this POS is my last hope.
shane_c said:
Did you find anything for the J327W yet? I can only find ROMs for the 320, 327P and 330. I've been having very erratic battery life for over a year. It started after a factory android update. Sometimes my battery life will drop from 70% down to less than 5% in a minute. I've done a factory reset, cleared the cache and replaced the battery but nothing has helped. Trying to put a new ROM OS on this POS is my last hope.
Click to expand...
Click to collapse
I think you'll need a battery replacement at this point... I did build a TWRP ROM myself for my popeltecan (code name of J327W in Canada apparently) but, according to a TWRP Builder Developer, my device might have some kernel issues with TWRP so I can share my ROM but I am not sure it will work on your device. Do you have your stock ROM in case?
Here is a GDrive link to my recoveries, there's the stock and the twrp one but be aware that you need all the ROM if there is a problem with the twrp (that means stock : BL, AP, CP and CSC). But you can use the stock recovery to build a device tree.
https://drive.google.com/open?id=1dNZGaNvCtd5kinHNfnr8MV5Z6o2_GOj4
MikasuX14 said:
I think you'll need a battery replacement at this point... I did build a TWRP ROM myself for my popeltecan (code name of J327W in Canada apparently) but, according to a TWRP Builder Developer, my device might have some kernel issues with TWRP so I can share my ROM but I am not sure it will work on your device. Do you have your stock ROM in case?
Click to expand...
Click to collapse
Replaced the battery about 3 months ago but it made no difference. I have some vacation time coming up so will have a little more free time to look into things.
shane_c said:
Replaced the battery about 3 months ago but it made no difference. I have some vacation time coming up so will have a little more free time to look into things.
Click to expand...
Click to collapse
Maybe a factory reset would be a good idea to try. If you want to try my twrp recovery build, you'll be wiping your data anyway. I highly suggest you to get the full stock rom since even just getting back the stock recovery could end up with a weird sort of corruption (like duplicated or unknown options inside the Settings app, or at least I experienced that). I am not responsible if it breaks anything, you were warned to get your precautions such as getting the stock rom.
MikasuX14 said:
Hello, I was searching for a root for my "new" Samsung J3 Prime (SM-J327W) that I got from my sister. I did the OEM Unlock and in ODIN Mode, it says that it's also "FRP LOCK : OFF". So far, CF-Auto-Root didn't work and all TWRP images, that I found, wouldn't even download on the device . I tried images for the "T", "P" and "U" variants also. The "P" one, lead to bootloop (I recovered stock rom since I got it). So is there any root for this device? It's on the latest versions of firmware and Android available for it.
Click to expand...
Click to collapse
hi if your still looking. i looked into it and the j327u twrp does work on j327w. i had the same problem trying to gain SU access with the other image files for j327w i had to use magisk zip and install it from twrp menu. had to format data and mount system in twrp.
twrp j327u does work but i could not get supersu or magisk to work, my build is J327WVLS4BSK1 with 8.1.0 oreo. i'm not sure there's a way to get past dm-verity using the boot patch by asphyx in the TWRP threads or the universal dm-verity workaround by zackptg5.
i first flashed twrp j327u using odin, ran up against dm-verity when running supersu. both MikasuX14 and another twrp j327w version i found would also flash and load, but the touchscreen wouldn't register my input. cfar didn't work either
sfirmware (website) has workable firmware for rev 4 j327w builds in case you need to recover your phone from soft brick - i could get my build's firmware to flash using the patched odin 13.3.3 version found on this site
bytwigorlimerick said:
twrp j327u does work but i could not get supersu or magisk to work, my build is J327WVLS4BSK1 with 8.1.0 oreo. i'm not sure there's a way to get past dm-verity using the boot patch by asphyx in the TWRP threads or the universal dm-verity workaround by zackptg5.
i first flashed twrp j327u using odin, ran up against dm-verity when running supersu. both MikasuX14 and another twrp j327w version i found would also flash and load, but the touchscreen wouldn't register my input. cfar didn't work either
sfirmware (website) has workable firmware for rev 4 j327w builds in case you need to recover your phone from soft brick - i could get my build's firmware to flash using the patched odin 13.3.3 version found on this site
Click to expand...
Click to collapse
heres what i did. i soft bricked, bootlooped and had to flash firmware from sfirmware a few times to get it to work
i used a twrp for j327u i found on a another similar thread on this topic. i flashed it with odin.
once inside twrp menu i went to wipe menu, i hit format, then back to mount menu, checked boxes data/system (previously data or system wouldnt check off before formatting data).once data and system were mounted i then
plugged phone back into computer while in twrp menu. the phone showed up as J327u cut/paste the latest magisk .exe into the internal storage of j327u (on computer) . i then on twrp menu found and installed magisk exe finally got it to properly install magisk i then in reboot menu hit system and reboot.
the phone restarted after awhile like it was factory reset but once i set up the phone magisk apk was already installed and root access was available. hope this helps.
so i've been busy for a long while before looking back into this. I will try again with the J327U rom. Right now, i struggle to find stock roms of the J327W because i flashed a not working twrp apparently and it locks my boot.
The J327U TWRP didn't work for me. Though, twrp itself works but i cannot get the system to boot and i cannot get to root it, no matter what i tried, i ended up in boot loop.
I managed to root this phone without TWRP. I used Linux tools to do this so I'm not sure if it could work on Windows.
Requirements:
Stock ROM for your phone (I used samfirm.js to pull it from the Samsung servers but downloading from sammobile.com works too)
A way to extract zip files
A way to extract tar files
Heimdall flasher (https://www.glassechidna.com.au/heimdall/)
Magisk Manager APK
An Internet connection on your phone
A compatible USB connector for your phone
Of course, a SM-J327W running the stock Android firmware
Obligatory warning: This WILL void the warranty of your phone and permanently trigger the warranty void flag. It also WILL cause a factory reset, so back up all your data first.
Bear with me, because there are a lot of steps. This will take around 15 to 30 minutes.
You will need to download and extract a stock ROM for your phone. Make sure that you download a ROM for the SM-J327W and not another model. Also make sure to download the latest version available.
Stock ROMs usually come in a zip file containing a few tar.md5 files. You will only need to extract the one that starts with "AP" for this procedure.
Step 1: Extract the tar.md5 file that starts with "AP" from your stock rom.
Step 2: Open the tar.md5 file in an archive manager. You may need to remove ".md5" from the end of the file.
Step 3: Extract the boot image (boot.img) from the AP file.
Step 4: Upload the boot image and the Magisk Manager APK to your phone. You can use ADB to transfer the files. For example:
adb push boot.img /storage/emulated/0
adb push Magisk-v22.0.apk /storage/emulated/0
Step 5: Open the files app on your phone. Navigate to the internal storage and tap on the Magisk APK file to install it. You may be prompted to allow installation from unknown sources.
Step 6: Open the Magisk app. It should say that Magisk isn't installed and it shoulld say "Yes" beside "Ramdisk". Tap the cogwheel icon in the top-right corner.
Step 7: Due to a bug in Magisk, you need to install version 21 instead of the latest version (v22). Set the update channel to "Custom Channel".
Step 8: When prompted, enter the following URL: "https://raw.githubusercontent.com/t...d863d3a15c6a2276b1061a280ece80ed7/stable.json" (Without the quotes.)
Step 9: Now it's time to patch the boot.img file. Tap the button to install Magisk and select the option to patch a file. When prompted, navigate to the internal storage and select the boot.img file that you transferred previously.
Step 10: Magisk will patch the file and tell you where it saved the patched file. Transfer the patched file to your computer. You can use ADB for this, for example:
adb pull /storage/emulated/0/Download/magisk_patched_XXXXX.img
Remember to replace the Xs with the the random characters that Magisk added to the file name.
Step 11: Reboot your phone into Download mode. You can shut it down and then hold the power, home, and volume down buttons at the same time to enter Download mode or use ADB: "adb reboot bootloader"
Step 12: A warning may show about the dangers of installing a custom OS. Press the volume up key to continue.
Step 13: The screen should now show "Downloading... Do not turn off target." If your phone isn't already plugged into your computer, plug it in now.
Step 14: Use Heimdall flasher to flash the patched boot image. For example:
heimdall flash --BOOT magisk_patched_XXXXX.img
Again, replace the Xs with the random characters that Magisk added to the file name.
Step 15: After a few seconds, Heimdall should report that the flash succeeded and your phone will reboot. It may take longer than usual. Leave it to do its thing and DO NOT pull out the battery.
Step 16: Your phone will show a notice that unauthorized changes have been detected and will prompt you to factory reset it. Press the button to perform the factory reset.
Step 17: Set up your phone as if it was new. It's not rooted yet, but you're really close if you got so far.
Step 18: Once you reach the home screen, upload the Magisk Manager APK to your phone again and install it like before.
Step 19: Open Magisk Manager. It will show that Magisk is installed and may prompt you to reboot to complete installation. Do not update Magisk to v22 or you will lose root access and you will have to flash the patched image again.
In the (very unlikely) case that your phone doesn't boot after flashing the patched boot.img, you can simply flash the original boot image and it should be fixed.
CONGRATULATIONS! You just rooted your SM-J327W successfully.
I also managed to port TWRP to this phone with the touchscreen working using the kernel from a recovery image for the SM-J327P found here: https://forum.xda-developers.com/t/...-1-samsung-galaxy-j3-emerge-sm-j327p.3573607/. All the partitions are mapped correctly. Due to a bug (presumably with the kernel), the data partition can unfortunately only be mounted read-only. However, this shouldn't affect being able to flash zips on your phone and you can insert an SD card to write backups onto. In the future, I may port CWM recovery to this phone using the stock kernel to be able to mount the data partition read-write.
You can find my custom recovery attached to this reply.
Follow up: It seems that the bug that causes Magisk to fail is fixed in the latest version (v22.1.) As a result, steps 6-8 in my previous post are unnecessary.
MikasuX14 said:
Here is a GDrive link to my recoveries, there's the stock and the twrp one but be aware that you need all the ROM if there is a problem with the twrp (that means stock : BL, AP, CP and CSC). But you can use the stock recovery to build a device tree.
https://drive.google.com/open?id=1dNZGaNvCtd5kinHNfnr8MV5Z6o2_GOj4
Click to expand...
Click to collapse
link is dead do you have twrp for j327w?

[HELP] Remove boot loop without root & USB debugging?

Hi,
this is my first post on this forum, so please let me know if you are missing any information …
My problem: I'm experiencing a boot loop with my Nexus 5 after having changed its damaged battery. I didn't use it for a long time because of this damage. Now, it does start the boot sequence again, but only to the "circle" animation which it keeps showing indefinitely.
The circumstances:
I never tried to root the phone
USB debugging is not (and cannot be) enabled
I'm completely sure the problem is not caused by the power button (seems to be a common cause)
stock recovery is reachable
an old version of ClockWorkMod Recovery (from this thread) is bootable
three tested versions of TWRP won't boot
What I tried:
I unlocked the bootloader. With both the stock recovery and CWM, I tried to
wipe the device / the cache partition
flash a stock image (directly downloaded from the Google developer page)
flash a ResurrectionRemix image
None of these worked. It seems that the recovery systems are not able to write on or even to mount the necessary partitions. As the stock recovery apparently needs access to /cache for adb sideload, any attempt to flash anything results in an error message. CWM is able to sideload the zip file, but writing the image fails.
I furthermore tried the "factory" (not OTA) image from Google with its flash-all.sh script which tries to also update boot loader and other things via fastboot – every single one of these update attempts failed as well.
So, my question is: Does anyone of you know of a way to get my phone working again?
Many thanks in advance, best regards
Hørk
Hørk said:
Hi,
this is my first post on this forum, so please let me know if you are missing any information …
My problem: I'm experiencing a boot loop with my Nexus 5 after having changed its damaged battery. I didn't use it for a long time because of this damage. Now, it does start the boot sequence again, but only to the "circle" animation which it keeps showing indefinitely.
The circumstances:
I never tried to root the phone
USB debugging is not (and cannot be) enabled
I'm completely sure the problem is not caused by the power button (seems to be a common cause)
stock recovery is reachable
an old version of ClockWorkMod Recovery (from this thread) is bootable
three tested versions of TWRP won't boot
What I tried:
I unlocked the bootloader. With both the stock recovery and CWM, I tried to
wipe the device / the cache partition
flash a stock image (directly downloaded from the Google developer page)
flash a ResurrectionRemix image
None of these worked. It seems that the recovery systems are not able to write on or even to mount the necessary partitions. As the stock recovery apparently needs access to /cache for adb sideload, any attempt to flash anything results in an error message. CWM is able to sideload the zip file, but writing the image fails.
I furthermore tried the "factory" (not OTA) image from Google with its flash-all.sh script which tries to also update boot loader and other things via fastboot – every single one of these update attempts failed as well.
So, my question is: Does anyone of you know of a way to get my phone working again?
Many thanks in advance, best regards
Hørk
Click to expand...
Click to collapse
Ever fix it?

Categories

Resources