[General Topics] DeadShadow80:
This guide is meant to less techie people, and written in detail. Please don't mind me if I overexplain. If you have any questions, feel free to comment them.

Also, I am not responsible for anything you do to your phone; you assume your responsibility for anything you do because of this guide.

Scenario:

So, lets say that you tried to flash an zip file on your android using sideload, but the zip required another file to be in the same directory as it, in order to work.

After flashing the zip and getting an error, your phone may not get pass the logo of the brand and be soft bricked.

Also, you formatted your external sd as internal, and cant access your usual location with files in the recovery.

In this case, don't worry, as I'm here to help you unbrick your phone without reinstalling the rom.

Things you will need:

your phone

a computer connected to your phone with an usb cable

the proper drivers for your phone

a custom recovery like cwm or twrp installed on your phone

probably root, although I'm not sure

and finally the adb (android development bridge) utility

Where to get a custom recovery?

- https://www.xda-developers.com/how-to-install-clockworkmod/

or search on xda under at your device's forum

Where to download adb from?

- https://xdaforums.com/showthread.php?t=2588979 (this one comes with the drivers)

- https://dl.google.com/android/repository/platform-tools-latest-windows.zip (just the adb files)

So lets get started:

First, get your phone into Recovery mode (on samsung hold power button volume up and home button), and connect it to your pc with a usb cable.

Open ADB by shift + right clicking the folder platform-tools in witch it is located. Click on "Open Command Prompt window here" or "Open Powershell window here" (depends on your windows settings).

You need to find a location on your phone that is accessible through the flash zip menu from your recovery. (from sdcard / from sdcard1 or whatever your external sd is called)

In my case, i could get to see folder 0 and obb from "flash zip from sdcard".

To find a suitable folder:

In the window, type

adb.exe shell

if you opened cmd, or

./adb.exe shell

if you opened powershell.

This will open a terminal that will run commands on your phone.

(Now you can type commands in the cmd window that will be run on your phone.)

Type in

cd /sdcard/0

to go to the main sd card location that is accessible in recovery when you go to flash a zip from there.

(if you can get to another folder where you could a flash a zip from, change the location to that place)

You can use here the command

ls

to view objects in the folder you are in.

After you are done, type

exit

to exit.

To solve the soft-brick

, you need to reflash the zip, but with the files it needed in the same directory.

Type in the ADB window

./adb.exe push "location of the file you are sending" "location of the folder you are sending to (eg. /sdcard/0)"

if you are in powershell, or without the ./ if you are in cmd.

Use this until you have sent all the files needed for a successful flash.

Then just use the "flash zip" utility from your recovery with the location you have sent the files to, on your phone, to complete the flash, and solve the half-brick.

Restart your phone and you should be good to go.

Thanks to the following threads, that helped me put this together, and solve this problem on my phone:

https://xdaforums.com/showthread.php?t=1927198

https://xdaforums.com/showthread.php?t=2588979​