[Android General] JLowe:
Dear Augusto,

thank you for your guide! I have some questions concerning some of the steps.

Device Info

-----------------

DEVICE : Hisense A5

MODEL : HLTE202N

CHIPSET : Qualcomm Snapdragon 439

RESOLUTION: 1440 x 720

OS : Android9.0 International Stock L1657 6.03.02.00 / Kernel 4.9.112 / Rooted with actual Magisk 7.51

list of available devices

---------------------------

ls -al --color /dev/block/platform/soc/7824900.sdhci/by-name
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 DDR -> /dev/block/mmcblk0p38
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 aboot -> /dev/block/mmcblk0p41
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 abootbak -> /dev/block/mmcblk0p42
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 apdp -> /dev/block/mmcblk0p34
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 boot -> /dev/block/mmcblk0p47
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 cache -> /dev/block/mmcblk0p58
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 cmnlib -> /dev/block/mmcblk0p51
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 cmnlib64 -> /dev/block/mmcblk0p53
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 cmnlib64bak -> /dev/block/mmcblk0p54
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 cmnlibbak -> /dev/block/mmcblk0p52
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 config -> /dev/block/mmcblk0p26
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 databackup -> /dev/block/mmcblk0p64
lrwxrwxrwx 1 root root 20 1970-01-06 20:36 devcfg -> /dev/block/mmcblk0p9
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 devcfgbak -> /dev/block/mmcblk0p10
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 devinfo -> /dev/block/mmcblk0p49
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 diag -> /dev/block/mmcblk0p16
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 dip -> /dev/block/mmcblk0p29
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 dpo -> /dev/block/mmcblk0p36
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 dsp -> /dev/block/mmcblk0p11
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 dspbak -> /dev/block/mmcblk0p12
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 dtbo -> /dev/block/mmcblk0p43
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 dtbobak -> /dev/block/mmcblk0p44
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 flag -> /dev/block/mmcblk0p15
lrwxrwxrwx 1 root root 20 1970-01-06 20:36 fsc -> /dev/block/mmcblk0p1
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 fsg -> /dev/block/mmcblk0p39
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 grow -> /dev/block/mmcblk0p67
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 kdebug -> /dev/block/mmcblk0p20
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 kdebuginfo -> /dev/block/mmcblk0p60
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 keymaster -> /dev/block/mmcblk0p55
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 keymasterbak -> /dev/block/mmcblk0p56
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 keystore -> /dev/block/mmcblk0p25
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 limits -> /dev/block/mmcblk0p50
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 logdump -> /dev/block/mmcblk0p61
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 logo -> /dev/block/mmcblk0p21
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 logo1 -> /dev/block/mmcblk0p22
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 mcfg -> /dev/block/mmcblk0p33
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 mdtp -> /dev/block/mmcblk0p30
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 mdtpbak -> /dev/block/mmcblk0p31
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 metadata -> /dev/block/mmcblk0p18
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 misc -> /dev/block/mmcblk0p24
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 modem -> /dev/block/mmcblk0p37
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 modemst1 -> /dev/block/mmcblk0p13
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 modemst2 -> /dev/block/mmcblk0p14
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 mota -> /dev/block/mmcblk0p28
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 msadp -> /dev/block/mmcblk0p35
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 oem -> /dev/block/mmcblk0p27
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 persist -> /dev/block/mmcblk0p62
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 phonelog -> /dev/block/mmcblk0p59
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 prospecfg -> /dev/block/mmcblk0p17
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 recovery -> /dev/block/mmcblk0p48
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 reserve -> /dev/block/mmcblk0p19
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 reserve2 -> /dev/block/mmcblk0p65
lrwxrwxrwx 1 root root 20 1970-01-06 20:36 rpm -> /dev/block/mmcblk0p5
lrwxrwxrwx 1 root root 20 1970-01-06 20:36 rpmbak -> /dev/block/mmcblk0p6
lrwxrwxrwx 1 root root 20 1970-01-06 20:36 sbl1 -> /dev/block/mmcblk0p3
lrwxrwxrwx 1 root root 20 1970-01-06 20:36 sbl1bak -> /dev/block/mmcblk0p4
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 sec -> /dev/block/mmcblk0p40
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 splash -> /dev/block/mmcblk0p23
lrwxrwxrwx 1 root root 20 1970-01-06 20:36 ssd -> /dev/block/mmcblk0p2
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 syscfg -> /dev/block/mmcblk0p32
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 system -> /dev/block/mmcblk0p63
lrwxrwxrwx 1 root root 20 1970-01-06 20:36 tz -> /dev/block/mmcblk0p7
lrwxrwxrwx 1 root root 20 1970-01-06 20:36 tzbak -> /dev/block/mmcblk0p8
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 userdata -> /dev/block/mmcblk0p66
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 vbmeta -> /dev/block/mmcblk0p45
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 vbmetabak -> /dev/block/mmcblk0p46
lrwxrwxrwx 1 root root 21 1970-01-06 20:36 vendor -> /dev/block/mmcblk0p57

List Dev-Directory incl. permissions

-------------------------------------

HLTE202N:/ # stat -c '%n %a %U %G' /dev/* /dev/__properties__ 711 root root
/dev/adsprpc-smd 664 system system
/dev/adsprpc-smd-secure 644 system system
/dev/apr_apps2 600 root root
/dev/ashmem 666 root root
/dev/at_mdm0 640 radio radio
/dev/at_usb0 640 radio radio
/dev/at_usb1 600 root root
/dev/at_usb2 600 root root
/dev/avtimer 660 system audio
/dev/battery_data 660 system system
/dev/binder 666 root root
/dev/block 755 root root
/dev/btpower 660 bluetooth system
/dev/ccid_bulk 600 root root
/dev/ccid_ctrl 600 root root
/dev/cg2_bpf 600 root root
/dev/console 600 root root
/dev/cpu_dma_latency 660 root system
/dev/cpuctl 555 system system
/dev/cpuset 555 system system
/dev/dcc_sram 600 root root
/dev/device-mapper 600 root root
/dev/diag 660 system vendor_qti_diag
/dev/dpl_ctrl 660 usb usb
/dev/epd_flash 644 system system
/dev/event-log-tags 644 logd logd
/dev/fd 777 root root
/dev/freezer 555 system system
/dev/fscklogs 770 root system
/dev/ft_rw_iic_drv 600 root root
/dev/full 666 root root
/dev/fuse 600 root root
/dev/gpiochip0 600 root root
/dev/gpiochip1 600 root root
/dev/gpiochip10 600 root root
/dev/gpiochip11 600 root root
/dev/gpiochip12 600 root root
/dev/gpiochip13 600 root root
/dev/gpiochip14 600 root root
/dev/gpiochip15 600 root root
/dev/gpiochip16 600 root root
/dev/gpiochip17 600 root root
/dev/gpiochip2 600 root root
/dev/gpiochip3 600 root root
/dev/gpiochip4 600 root root
/dev/gpiochip5 600 root root
/dev/gpiochip6 600 root root
/dev/gpiochip7 600 root root
/dev/gpiochip8 600 root root
/dev/gpiochip9 600 root root
/dev/graphics 755 root root
/dev/hw_random 600 root root
/dev/hwbinder 666 root root
/dev/i2c-2 600 root root
/dev/i2c-3 600 root root
/dev/i2c-5 660 media media
/dev/i2c-6 600 root root
/dev/icesdcc 600 root root
/dev/input 755 root root
/dev/ion 664 system system
/dev/ipa 600 root root
/dev/jpeg0 660 system camera
/dev/kgsl-3d0 666 system system
/dev/kmsg 620 root system
/dev/loop-control 600 root root
/dev/mdss_rotator 664 system system
/dev/media0 660 system camera
/dev/media1 660 system camera
/dev/media2 660 system camera
/dev/memory_bandwidth 600 root root
/dev/msm-rng 600 root root
/dev/msm_aac 660 system audio
/dev/msm_aac_in 660 system audio
/dev/msm_alac 660 system audio
/dev/msm_amrnb 660 system audio
/dev/msm_amrnb_in 660 system audio
/dev/msm_amrwb 660 system audio
/dev/msm_amrwb_in 660 system audio
/dev/msm_amrwbplus 660 system audio
/dev/msm_ape 660 system audio
/dev/msm_audio_cal 660 system audio
/dev/msm_evrc 660 system audio
/dev/msm_evrc_in 660 system audio
/dev/msm_g711alaw 600 root root
/dev/msm_g711alaw_in 600 root root
/dev/msm_g711mlaw 600 root root
/dev/msm_g711mlaw_in 600 root root
/dev/msm_hweffects 660 system audio
/dev/msm_mp3 660 system audio
/dev/msm_multi_aac 660 system audio
/dev/msm_qcelp 660 system audio
/dev/msm_qcelp_in 660 system audio
/dev/msm_rtac 660 system audio
/dev/msm_sps 600 root root
/dev/msm_wma 660 system audio
/dev/msm_wmapro 660 system audio
/dev/mtp_usb 660 root mtp
/dev/network_latency 600 root root
/dev/network_throughput 600 root root
/dev/null 666 root root
/dev/ppp 660 radio vpn
/dev/psaux 600 root root
/dev/ptmx 666 root root
/dev/pts 755 root root
/dev/qce 660 system drmrpc
/dev/qg 660 system system
/dev/qg_battery 660 system system
/dev/qseecom 666 system drmrpc
/dev/radio0 640 system system
/dev/ramdump_a506_zap 640 system system
/dev/ramdump_adsp 640 system system
/dev/ramdump_md_modem 640 system system
/dev/ramdump_memshare_DIAG 640 system system
/dev/ramdump_memshare_FTM 640 system system
/dev/ramdump_memshare_GPS 640 system system
/dev/ramdump_microdump_modem 640 system system
/dev/ramdump_modem 640 system system
/dev/ramdump_venus 640 system system
/dev/ramdump_wcnss 640 system system
/dev/random 666 root root
/dev/rfkill 600 root root
/dev/rmnet_ctrl 660 usb usb
/dev/rtc0 660 system system
/dev/sensors 660 system system
/dev/smd1 600 root root
/dev/smd11 660 radio radio
/dev/smd2 660 bluetooth bluetooth
/dev/smd21 600 root root
/dev/smd22 600 root root
/dev/smd3 660 bluetooth bluetooth
/dev/smd36 600 root root
/dev/smd4 660 system system
/dev/smd5 660 system system
/dev/smd6 660 system system
/dev/smd7 660 bluetooth bluetooth
/dev/smd8 600 root root
/dev/smd_pkt_loopback 600 root root
/dev/smdcntl0 640 radio radio
/dev/smdcntl8 640 radio radio
/dev/snd 755 root root
/dev/socket 755 root root
/dev/stune 555 system system
/dev/subsys_a506_zap 640 system system
/dev/subsys_adsp 640 system system
/dev/subsys_modem 640 system system
/dev/subsys_venus 640 system system
/dev/subsys_wcnss 640 system system
/dev/tty 666 root root
/dev/ttyMSM0 600 bluetooth bluetooth
/dev/tun 660 system vpn
/dev/uhid 660 uhid uhid
/dev/uinput 660 system bluetooth
/dev/uio0 660 system system
/dev/urandom 666 root root
/dev/usb-ffs 775 shell system
/dev/usb_accessory 660 root usb
/dev/usf1 660 system system
/dev/v4l-subdev0 660 system camera
/dev/v4l-subdev1 660 system camera
/dev/v4l-subdev10 660 system camera
/dev/v4l-subdev11 660 system camera
/dev/v4l-subdev12 660 system camera
/dev/v4l-subdev13 660 system camera
/dev/v4l-subdev14 660 system camera
/dev/v4l-subdev15 660 system camera
/dev/v4l-subdev16 660 system camera
/dev/v4l-subdev17 660 system camera
/dev/v4l-subdev18 660 system camera
/dev/v4l-subdev2 660 system camera
/dev/v4l-subdev3 660 system camera
/dev/v4l-subdev4 660 system camera
/dev/v4l-subdev5 660 system camera
/dev/v4l-subdev6 660 system camera
/dev/v4l-subdev7 660 system camera
/dev/v4l-subdev8 660 system camera
/dev/v4l-subdev9 660 system camera
/dev/video0 660 system camera
/dev/video1 660 system camera
/dev/video2 660 system camera
/dev/video32 660 system camera
/dev/video33 660 system camera
/dev/vndbinder 666 root root
/dev/wcnss_ctrl 660 system system
/dev/wcnss_wlan 660 system system
/dev/xt_qtaguid 644 root root
/dev/zero 666 root root

Step 16. Copy and paste these files from stock ramdisk folder to new ramdisk folder.

A. default.prop -> stock name was prop.default -> renamed to default.prob + edited according Step 22. -> done

B. fstab.devicename_or_chipsetname = fstab.qcom missing -> edited fstab.qcom.twrp

fstab.qcom.twrp

----------------

#<src> <mnt_point> <type> <mnt_flags> <fs_mgr_flags>
#/dev/block/platform/msm_sdcc.1/by-name/dsps /firmware_dsps vfat ro,shortname=lower wait
/dev/block/platform/msm_sdcc.1/by-name/radio /firmware_radio vfat ro,shortname=lower,context=u:object_r:firmware_file:s0 wait
/dev/block/platform/msm_sdcc.1/by-name/adsp /firmware_q6 vfat ro,shortname=lower,context=u:object_r:firmware_file:s0 wait
#/dev/block/platform/msm_sdcc.1/by-name/wcnss /firmware_wcnss vfat ro,shortname=lower wait

/dev/block/platform/msm_sdcc.1/by-name/boot /boot emmc defaults defaults
/dev/block/platform/msm_sdcc.1/by-name/recovery /recovery emmc defaults defaults
/dev/block/platform/msm_sdcc.1/by-name/misc /misc emmc defaults defaults
/dev/block/platform/msm_sdcc.1/by-name/devlog /devlog ext4 noatime,nosuid,nodev,barrier=0 wait
/dev/block/platform/msm_sdcc.1/by-name/system /system ext4 ro,noatime,barrier=0 wait
/dev/block/platform/msm_sdcc.1/by-name/cache /cache ext4 noatime,nosuid,nodev,barrier=0 wait
/dev/block/platform/msm_sdcc.1/by-name/userdata /data ext4 noatime,nosuid,nodev,noauto_da_alloc,barrier=0 wait,encryptable=/dev/block/platform/msm_sdcc.1/by-name/extra
# SD card
/devices/platform/msm_sdcc.3/mmc_host/mmc1* auto auto defaults voldmanaged=sdcard1:auto

# USB storage
/devices/platform/msm_hsusb_host/usb* auto auto defaults voldmanaged=usbdisk:auto

fstab.qcom.edited.new

---------------------------

#<src> <mnt_point> <type> <mnt_flags> <fs_mgr_flags>
-> not available, Modem or disable??? /dev/block/platform/msm_sdcc.1/by-name/radio /firmware_radio vfat ro,shortname=lower,context=u:object_r:firmware_file:s0 wait
# not available in stock disable??? /dev/block/platform/msm_sdcc.1/by-name/adsp /firmware_q6 vfat ro,shortname=lower,context=u:object_r:firmware_file:s0 wait

/dev/block/bootdevice/by-name/boot /boot emmc defaults defaults
/dev/block/bootdevice/by-name/recovery /recovery emmc defaults defaults
/dev/block/bootdevice/by-name/misc /misc emmc defaults defaults
#-> not available disable??? /dev/block/platform/msm_sdcc.1/by-name/devlog /devlog ext4 noatime,nosuid,nodev,barrier=0 wait
/dev/block/bootdevice/by-name/system /system ext4 ro,noatime,barrier=0 wait
/dev/block/bootdevice/by-name/cache /cache ext4 noatime,nosuid,nodev,barrier=0 wait
/dev/block/block/bootdevice/by-name/userdata /data ext4 noatime,nosuid,nodev,noauto_da_alloc,barrier=0 wait,encryptable=/dev/block/platform/msm_sdcc.1/by-name/extra

# SD card
# according to Step 22.
/external_sd vfat /dev/block/mmcblk1p1 flags=removable;storage;display="SDCARD"

# USB storage
# according to Step 22.
/usb-otg auto /dev/block/sda1 flags=removable;storage;display="USB-OTG"

Questions:

------------

I understand the editing that I just edit the "source" <src> and everything else I don't touch (<mnt_flags>,...)?

<mnt_flags> for system is just "/" what should I use? "/" or "/system"?

Radio isn't available, I think it's Modem?

Do I need to include the other sources from recovery.fstab.stock? (vendor,...)?

Step 16. Copy and paste these files from stock ramdisk folder to new ramdisk folder.

C. ueventd.rc -> available (see attached file) -> done

D. Any other file like ueventd.devicename.rc -> not available in stock -> editing twrp according stock, but how to get the data??? (attached ueventd.rc.twrp.txt)

Step 19. Edit the twrp.fstab file according to the newly pasted recovery.fstab

recovery.fstab.twrp

----------------------

#/dev/block/platform/sdhci-tegra.3/by-name/APP /system ext4 ro wait
#/dev/block/platform/sdhci-tegra.3/by-name/CAC /cache ext4 noatime,nosuid,nodev,nomblk_io_submit,errors=panic wait
#/dev/block/platform/sdhci-tegra.3/by-name/UDA /data ext4 noatime,nosuid,nodev,nomblk_io_submit,errors=panic wait,encryptable=/dev/block/platform/sdhci-tegra.3/by-name/MDA
#/dev/block/platform/sdhci-tegra.3/by-name/MSC /misc emmc defaults defaults
#/dev/block/platform/sdhci-tegra.3/by-name/LNX /boot emmc defaults defaults
#/dev/block/platform/sdhci-tegra.3/by-name/SOS /recovery emmc defaults defaults
#/dev/block/platform/sdhci-tegra.3/by-name/USP /staging emmc defaults defaults
#/dev/block/platform/sdhci-tegra.3/by-name/RDO /radio ext4 defaults recoveryonly

recovery.fstab.stock

------------------------

/dev/block/bootdevice/by-name/system / ext4 ro,barrier=1 wait,avb
/dev/block/bootdevice/by-name/cache /cache ext4 noatime,nosuid,nodev,barrier=1,data=ordered wait,check
/dev/block/bootdevice/by-name/vendor /vendor ext4 ro,barrier=1 wait,avb
/dev/block/bootdevice/by-name/userdata /data ext4 noatime,nosuid,nodev,barrier=1,data=ordered,noauto_da_alloc wait,check,encryptable=footer
/dev/block/mmcblk1p1 /sdcard vfat nosuid,nodev wait
/dev/block/bootdevice/by-name/boot /boot emmc defaults defaults
/dev/block/bootdevice/by-name/recovery /recovery emmc defaults defaults
/dev/block/bootdevice/by-name/misc /misc emmc defaults defaults
###BSP:hmct-ota, add for delete fingerprint template @{
/dev/block/bootdevice/by-name/persist /persist ext4 noatime,nosuid,nodev,barrier=1,data=ordered wait,check
/dev/block/bootdevice/by-name/kdebuginfo /kdebuginfo ext4 noatime,nosuid,nodev,discard,barrier=1 wait,check
###@}

recovery.fstab.edited.new

----------------------------------

/dev/block/bootdevice/by-name/system /system ext4 ro wait
/dev/block/bootdevice/by-name/cache /cache ext4 noatime,nosuid,nodev,nomblk_io_submit,errors=panic wait
/dev/block/bootdevice/by-name/userdata /data ext4 noatime,nosuid,nodev,nomblk_io_submit,errors=panic wait,encryptable=/dev/block/platform/sdhci-tegra.3/by-name/MDA
/dev/block/bootdevice/by-name/misc /misc emmc defaults defaults
/dev/block/bootdevice/by-name/boot /boot emmc defaults defaults
/dev/block/bootdevice/by-name/recovery /recovery emmc defaults defaults
## not available disable ???? /dev/block/platform/sdhci-tegra.3/by-name/USP /staging emmc defaults defaults

## not available ??? Radio = Modem ???? /dev/block/platform/sdhci-tegra.3/by-name/RDO /radio ext4 defaults

I attached also picutres from DiskInfo. Would be great to get some assistance! Thank you for your efforts!!!

View attachment 5020829

View attachment 5020307

View attachment 5020315

View attachment 5020817

View attachment 5020819

View attachment 5020821

View attachment 5020823