[Onetouch Idol 3 Android Development] Dv2y:
Not him, but I'm also a user of the 6039J. Here we go:

ls -l /dev/block/bootdevice/by-name/

Says I don't have permission. I'm supposed to write these commands on a terminal running on the phone itself, right? My phone is not rooted and su/sudo is not present it seems.

EDIT: Rooted my device with KingRoot (how can it work without fastboot? lol).

ls -l /dev/block/bootdevice/by-name/

u0_a103@idol347:/ $ ls -l /dev/block/bootdevice/by-name lrwxrwxrwx root root 1969-12-31 21:00 DDR -> /dev/block/mmcblk0p18 lrwxrwxrwx root root 1969-12-31 21:00 FactoryRP -> /dev/block/mmcblk0p36 lrwxrwxrwx root root 1969-12-31 21:00 aboot -> /dev/block/mmcblk0p21 lrwxrwxrwx root root 1969-12-31 21:00 abootbak -> /dev/block/mmcblk0p22 lrwxrwxrwx root root 1969-12-31 21:00 boot -> /dev/block/mmcblk0p23 lrwxrwxrwx root root 1969-12-31 21:00 cache -> /dev/block/mmcblk0p31 lrwxrwxrwx root root 1969-12-31 21:00 config -> /dev/block/mmcblk0p34 lrwxrwxrwx root root 1969-12-31 21:00 efsdata -> /dev/block/mmcblk0p17 lrwxrwxrwx root root 1969-12-31 21:00 fota -> /dev/block/mmcblk0p30 lrwxrwxrwx root root 1969-12-31 21:00 fsc -> /dev/block/mmcblk0p4 lrwxrwxrwx root root 1969-12-31 21:00 fsg -> /dev/block/mmcblk0p19

lrwxrwxrwx root root 1969-12-31 21:00 hdcp -> /dev/block/mmcblk0p29

lrwxrwxrwx root root 1969-12-31 21:00 hyp -> /dev/block/mmcblk0p12

lrwxrwxrwx root root 1969-12-31 21:00 hypbak -> /dev/block/mmcblk0p13

lrwxrwxrwx root root 1969-12-31 21:00 keystore -> /dev/block/mmcblk0p33

lrwxrwxrwx root root 1969-12-31 21:00 misc -> /dev/block/mmcblk0p32

lrwxrwxrwx root root 1969-12-31 21:00 modem -> /dev/block/mmcblk0p1

lrwxrwxrwx root root 1969-12-31 21:00 modemst1 -> /dev/block/mmcblk0p14

lrwxrwxrwx root root 1969-12-31 21:00 modemst2 -> /dev/block/mmcblk0p15

lrwxrwxrwx root root 1969-12-31 21:00 oem -> /dev/block/mmcblk0p35

lrwxrwxrwx root root 1969-12-31 21:00 persist -> /dev/block/mmcblk0p26

lrwxrwxrwx root root 1969-12-31 21:00 recovery -> /dev/block/mmcblk0p24

lrwxrwxrwx root root 1969-12-31 21:00 rpm -> /dev/block/mmcblk0p8

lrwxrwxrwx root root 1969-12-31 21:00 rpmbak -> /dev/block/mmcblk0p9

lrwxrwxrwx root root 1969-12-31 21:00 sbl1 -> /dev/block/mmcblk0p6

lrwxrwxrwx root root 1969-12-31 21:00 sbl1bak -> /dev/block/mmcblk0p7

lrwxrwxrwx root root 1969-12-31 21:00 sec -> /dev/block/mmcblk0p20

lrwxrwxr

wx root root 1969-12-31 21:00 simlock -> /dev/block/mmcblk0p16

lrwxrwxrwx root root 1969-12-31 21:00 splash -> /dev/block/mmcblk0p27

lrwxrwxrwx root root 1969-12-31 21:00 ssd -> /dev/block/mmcblk0p5

lrwxrwxrwx root root 1969-12-31 21:00 system -> /dev/block/mmcblk0p25

lrwxrwxrwx root root 1969-12-31 21:00 tctpersist -> /dev/block/mmcblk0p28

lrwxrwxrwx root root 1969-12-31 21:00 traceability -> /dev/block/mmcblk0p3

lrwxrwxrwx root root 1969-12-31 21:00 tunning -> /dev/block/mmcblk0p2

lrwxrwxrwx root root 1969-12-31 21:00 tz -> /dev/block/mmcblk0p10

lrwxrwxrwx root root 1969-12-31 21:00 tzbak -> /dev/block/mmcblk0p11

lrwxrwxrwx root root 1969-12-31 21:00 userdata -> /dev/block/mmcblk0p37

u0_a103@idol347:/ $

cat /proc/partitions

127|u0_a103@idol347:/ $ cat /proc/partitions

major minor #blocks name

253 0 524288 zram0

179 0 15267840 mmcblk0

179 1 65536 mmcblk0p1

179 2 1536 mmcblk0p2

179 3 1024 mmcblk0p3

179 4 1 mmcblk0p4

179 5 8 mmcblk0p5

179 6 512 mmcblk0p6

179 7 512 mmcblk0p7

179 8 512 mmcblk0p8

179 9 512 mmcblk0p9

179 10 512 mmcblk0p10

179 11 512 mmcblk0p11

179 12 512 mmcblk0p12

179 13 512 mmcblk0p13

179 14 1536 mmcblk0p14

179 15 1536 mmcblk0p15

179 16 1024 mmcblk0p16

179 17 1536 mmcblk0p17

179 18 32 mmcblk0p18

179 19 1536 mmcblk0p19

179 20 16 mmcblk0p20

179 21 1024 mmcblk0p21

179 22 1024 mmcblk0p22

179 23 32768 mmcblk0p23

179 24 32768 mmcblk0p24

179 25 1887438 mmcblk0p25

179 26 32768 mmcblk0p26

179 27 8192 mmcblk0p27

179 28 20480 mmcblk0p28

179 29 10240 mmcblk0p29

179 30 8 mmcblk0p30

179 31 262144 mmcblk0p31

259 0 1024 mmcblk0p32

259 1 512 mmcblk0p33

259 2 32 mmcblk0p34

259 3 64 mmcblk0p35

259 4 2048 mmcblk0p36

259 5 12767623 mmcblk0p37

179 32 4096 mmcblk0rpmb

u0_a103@idol347:/ $

tl;dr to 6039J users (THIS WILL NOT ALLOW FASTBOOT COMMANDS):

1. Use KingRoot to root your device.

2. Copy a TWRP img file to the phone internal storage (/sdcard).

3. Start an adb shell.

adb reboot-bootloader
adb shell

3. Do a backup of the stock recovery and replace it with TWRP by using:

su
dd if=/dev/block/bootdevice/by-name/recovery of=/sdcard/stock_recovery_backup.img
dd if=/sdcard/<TWRP filename> of=/dev/block/bootdevice/by-name/recovery

Now we can flash things and stuffs.

If you decide to use the stock ROM, just be aware that you do not have access fastboot to fix anything!

Thank you very much.