[Android Software Development] pozidrivphil:
So I managed to compile and flash TWRP 3.1.1-0 for my Samsung XCover4 (sm-g390F). It boots fine, but I can't connect to the phone using adb or adb sideload. I tried putting some files on a 16gb microSD, but twrp fails to mount that too. I tried wiping and formatting /data, but there's some red text, permission denied. I also spotted: "E: error creating fstab" Does anyone know what the deal is here?

Thanks!!

The recovery.fstab I used to compile TWRP:

/boot	emmc	/dev/block/platform/13540000.dwmmc0/by-name/BOOT
/recovery	emmc	/dev/block/platform/13540000.dwmmc0/by-name/RECOVERY	flags=backup=1
/system	ext4	/dev/block/platform/13540000.dwmmc0/by-name/SYSTEM
/data	ext4	/dev/block/platform/13540000.dwmmc0/by-name/USERDATA	flags=encryptable=footer
/cache	ext4	/dev/block/platform/13540000.dwmmc0/by-name/CACHE
/external_sd	vfat	/dev/block/mmcblk1p1 /dev/block/mmcblk1p1	flags=display="Micro SDcard";storage;wipeingui;removable
/usb-otg vfat /dev/block/sda1 /dev/block/sda flags=display="USB-OTG";storage;wipeingui;removable

I extracted the recovery.fstab from the stock recovery and compiled twrp again, but with that one, TWRP wasn't even able to show the different partitions in mount, just an empty list.

The stock recovery.fstab:

# Copyright (c) 2011, Code Aurora Forum. All rights reserved.

#

# Redistribution and use in source and binary forms, with or without

# modification, are permitted provided that the following conditions are

# met:

# * Redistributions of source code must retain the above copyright

# notice, this list of conditions and the following disclaimer.

# * Redistributions in binary form must reproduce the above

# copyright notice, this list of conditions and the following

# disclaimer in the documentation and/or other materials provided

# with the distribution.

# * Neither the name of Code Aurora Forum, Inc. nor the names of its

# contributors may be used to endorse or promote products derived

# from this software without specific prior written permission.

#

# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED

# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF

# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT

# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS

# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR

# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF

# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR

# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,

# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE

# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN

# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

# <src>	<mnt_point>	<type>	<mnt_flags and options>	<fs_mgr_flags>

/dev/block/platform/13540000.dwmmc0/by-name/EFS	/efs	ext4	default	recoveryonly

/dev/block/platform/13540000.dwmmc0/by-name/BOOT	/boot	emmc	default	recoveryonly

/dev/block/platform/13540000.dwmmc0/by-name/RECOVERY	/recovery	emmc	default	recoveryonly

/dev/block/platform/13540000.dwmmc0/by-name/CACHE	/cache	ext4	default	recoveryonly

/dev/block/platform/13540000.dwmmc0/by-name/SYSTEM	/system	ext4	default	recoveryonly

/dev/block/platform/13540000.dwmmc0/by-name/USERDATA	/data	ext4	default	wait,length=-16384

/dev/block/mmcblk1p1	/sdcard	vfat	default	recoveryonly

/dev/block/platform/13540000.dwmmc0/by-name/RADIO	/modem	emmc	default	recoveryonly

/dev/block/platform/13540000.dwmmc0/by-name/HIDDEN /preload ext4 default recoveryonly

/dev/block/platform/13540000.dwmmc0/by-name/CPEFS	/cpefs	ext4	default	recoveryonly