• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

Oppo A5S (CPH1909) Custom recovery and device Tree

Search This thread

J0shua-code

Member
Mar 14, 2015
19
8
I compiled TWRP and OrangeFox recovery for A5s

Bugs:
  • Decryption doesn't work
  • MTP doesn't work while in recovery mode
  • you tell me
Decryption doesn't work but you can still sideload using "adb sideload <filename.zip>" command

This was my first time compiling custom recovery and I was unable to find patches for OPPO (colorOS) to fix the encryption issue, so if you have any ideas please post here

Device Tree:
 

Attachments

  • OrangeFox_CPH1909.img
    24.2 MB · Views: 71
  • twrp_CPH1909.img
    24.6 MB · Views: 93
  • Like
Reactions: rootinhoppo

llxxVENOMxxll

Senior Member
Jun 21, 2021
87
17
BLU VIVO 8L
Realme C20
flags=encryptable;fileencryption="xxxx"
Add the flags to /data in the recovery.fstab. Find the encryption algorithm from the stock recovery.fstab.

If you have some time to spare, I have a much similar device to this (OPPO A31). I can give you my tree, will you build one for me. Please and Thanks.
 

J0shua-code

Member
Mar 14, 2015
19
8
flags=encryptable;fileencryption="xxxx"
Add the flags to /data in the recovery.fstab. Find the encryption algorithm from the stock recovery.fstab.

If you have some time to spare, I have a much similar device to this (OPPO A31). I can give you my tree, will you build one for me. Please and Thanks.

I can try building for your device, but I will have to see if I still have twrp sources on my old laptop that I used to build.


"Add the flags to /data in the recovery.fstab. Find the encryption algorithm from the stock recovery.fstab."

I need some more information on this
 

llxxVENOMxxll

Senior Member
Jun 21, 2021
87
17
BLU VIVO 8L
Realme C20
Is the 'bootloader' present in the device? Asking this coz OPPO devices don't have a bootloader and fastboot binary installed. I tried installing the module in my device but my device still does not reboot to bootloader. Upon "adb reboot bootloader" and "adb reboot fastboot" my phone just does a simple reboot.

I know you installed the fastboot NDK through magisk. But I doubt if it's the actual bootloader or it mimics it. Any chance you could show me how the interface looks like? A small short video would do it. Also this necessary to add the bootloader presence to the boardconfig.mk.
 

J0shua-code

Member
Mar 14, 2015
19
8
Is the 'bootloader' present in the device? Asking this coz OPPO devices don't have a bootloader and fastboot binary installed. I tried installing the module in my device but my device still does not reboot to bootloader. Upon "adb reboot bootloader" and "adb reboot fastboot" my phone just does a simple reboot.

I know you installed the fastboot NDK through magisk. But I doubt if it's the actual bootloader or it mimics it. Any chance you could show me how the interface looks like? A small short video would do it. Also this necessary to add the bootloader presence to the boardconfig.mk.

Yes the bootloader was not present on the device before I installed the module

"adb reboot bootloader" would just reboot the device

After you install the module when you type the command the device stays on black screen (no text is displayed) unless you flash something or unlock the device

I would have added some photos but I was trying to flash gsi rom which bricked the device

So I will post them later today or tomorrow if you want
 

J0shua-code

Member
Mar 14, 2015
19
8
Code:
#
# ADDITIONAL_DEFAULT_PROPERTIES
#
ro.factory_mode=0
ro.oppo.factory_mode=0
security.perf_harden=1
ro.allow.mock.location=0
ro.adb.secure=1
ro.secure=1
ro.debuggable=0
#
# BOOTIMAGE_BUILD_PROPERTIES
#
ro.bootimage.build.date=Sat Mar 16 01:45:16 CST 2019
ro.bootimage.build.date.utc=1552671916
persist.sys.usb.config=none

# begin build properties
# autogenerated by buildinfo.sh
ro.build.id=O11019
ro.build.version.sdk=27
ro.build.version.preview_sdk=0
ro.build.version.codename=REL
ro.build.version.all_codenames=REL
ro.build.version.release=8.1.0
ro.build.version.security_patch=2019-02-05
ro.build.type=user
ro.build.user=root
ro.build.host=CP-ubuntu-123
ro.build.tags=release-keys
ro.build.flavor=full_oppo6765_18511-user
# ro.product.cpu.abi and ro.product.cpu.abi2 are obsolete,
# use ro.product.cpu.abilist instead.
ro.product.cpu.abi=arm64-v8a
ro.product.cpu.abilist=arm64-v8a,armeabi-v7a,armeabi
ro.product.cpu.abilist32=armeabi-v7a,armeabi
ro.product.cpu.abilist64=arm64-v8a
ro.product.manufacturer=OPPO
ro.product.locale=en-US
ro.wifi.channels=
# ro.build.product is obsolete; use ro.product.device
# Do not try to parse description, fingerprint, or thumbprint
ro.build.description=full_oppo6765_18511-user 8.1.0 O11019 1552671920 release-keys
ro.build.characteristics=default
# end build properties
#
# from device/oppo/oppo6765_18511/system.prop
#
#
# system.prop for generic sdk
#

rild.libpath=mtk-ril.so
rild.libargs=-d /dev/ttyC0


# MTK, Infinity, 20090720 {
wifi.interface=wlan0
# MTK, Infinity, 20090720 }

# MTK, mtk03034, 20101210 {
ro.mediatek.wlan.wsc=1
# MTK, mtk03034 20101210}
# MTK, mtk03034, 20110318 {
ro.mediatek.wlan.p2p=1
# MTK, mtk03034 20110318}

# MTK, mtk03034, 20101213 {
mediatek.wlan.ctia=0
# MTK, mtk03034 20101213}


#
wifi.tethering.interface=ap0
#

ro.opengles.version=196610
#ro.kernel.qemu=1
#ro.kernel.qemu.gles=0

wifi.direct.interface=p2p0
#dalvik.vm.heapgrowthlimit=256m
#dalvik.vm.heapsize=512m

# USB MTP WHQL
ro.sys.usb.mtp.whql.enable=0

# Power off opt in IPO
sys.ipo.pwrdncap=2

ro.sys.usb.storage.type=mtp

# USB BICR function
ro.sys.usb.bicr=no

# USB Charge only function
ro.sys.usb.charging.only=yes

# audio
ro.camera.sound.forced=0
ro.audio.silent=0

ro.zygote.preload.enable=0

# temporary enables NAV bar (soft keys)
qemu.hw.mainkeys=0

ro.kernel.zio=38,108,105,16
#ro.kernel.qemu=1
#ro.kernel.qemu.gles=0
#ro.boot.selinux=disable

# Disable dirty region for Mali
#debug.hwui.render_dirty_regions=false

ro.sf.lcd_density=480

# performance
ro.mtk_perf_simple_start_win=1
ro.mtk_perf_fast_start_win=1
ro.mtk_perf_response_time=1

# disable ipo for development
sys.ipo.disable=1

#ifdef ODM_WT_EDIT
#[email protected]_WT.Ad.Engineeringmode, 2018/10/10, Add for WT version
ro.build.display.wtid.mp=SW_S98607CA1_V015_M10_O_USER
ro.build.display.wtid.ato=SW_S98607CA1_V030_M10_O_USRD_ATO
#endif /* ODM_WT_EDIT */

#
# ADDITIONAL_BUILD_PROPERTIES
#
ro.treble.enabled=true
persist.sys.dalvik.vm.lib.2=libart.so
dalvik.vm.isa.arm64.variant=cortex-a53
dalvik.vm.isa.arm64.features=default
dalvik.vm.isa.arm.variant=cortex-a53
dalvik.vm.isa.arm.features=default
net.bt.name=Android
dalvik.vm.stack-trace-dir=/data/anr
############################## Add OPPO Info Project Begin ##############################
ro.separate.soft=18511
ro.oppo.market.name=OPPO A5s
############################## Add OPPO Info Common Begin ##############################
ro.build.date.Ymd=190316
ro.build.date.ymd=190316
ro.build.date.YmdHM=201903160130
ro.build.date.utc=1552672148
ro.build.version.incremental=1552672148
ro.build.date=Sat Mar 16 01:49:08 CST 2019
ro.xxversion=V0.5
ro.product.brand=OPPO
ro.vendor.product.brand=OPPO
ro.product.model=CPH1909
ro.vendor.product.model=CPH1909
ro.build.product=CPH1909
ro.product.device=CPH1909
ro.product.name=CPH1909
ro.vendor.product.name=CPH1909
ro.vendor.product.oem=CPH1909
ro.vendor.product.device=CPH1909
ro.build.version.ota=CPH1909EX_11.A.17_0170_201903160130
ro.build.display.id=CPH1909EX_11_A.17
ro.build.kernel.id=4.9.77
ro.mediatek.version.release=CPH1909_11_A.17_190316
persist.version.confidential=false
ro.build.version.opporom=V5.2.1
ro.oppo.version=US
persist.sys.timezone=America/New_York
persist.sys.oppo.region=US
ro.build.master.date=201901140247
persist.power.useautobrightadj=true
persist.sys.oppodebug.tpcatcher=14
persist.sys.oppo.log.config=0
persist.anr.dumpthr=1
ro.aee.enforcing=no
persist.sys.assert.enable=false
persist.sys.assert.panic=false
persist.sys.assert.state=false
persist.sys.assert.enabletip=0
ro.build.release_type=true
persist.anr.enhancement=0
gr.use.leader=true
gr.apk.number=5
gr.download.url=http://otafs.coloros.com/googles/7a3341ea988614321a209c55265d381f
dalvik.vm.heapmaxfree=16m
dalvik.vm.heapminfree=4m
dalvik.vm.heapstartsize=16m
dalvik.vm.heaptargetutilization=0.75
persist.sys.oppo.junklog=false
persist.sys.oppo.junkmonitor=true
ro.reserve1.get=/dev/block/platform/bootdevice/by-name/reserve1
persist.bluetooth.enableinbandringing=true
gr.use.leader=true
gr.apk.number=5
ro.script.version=1.0
persist.sys.disable_rescue=true
ro.trackingId.com.lzd.appid=/data/etc/appchannel/lazadaChannel.txt
ro.trackingId.com.daraz.appid=/data/etc/appchannel/darazChannel.txt
ro.trackingId.com.shop.appid=/data/etc/appchannel/shopChannel.txt
ro.appsflyer.preinstall.path=/data/etc/appchannel/pre_install.appsflyer
ro.sys.reserve.integrate=true
persist.sys.log.lfeh.test=false
persist.sys.log.lfeh.default=false
persist.sys.log.lfeh=true
persist.sys.log.lfeh.delete=false
persist.bluetooth.disableabsvol=true
persist.bluetooth.avrcpversion=avrcp13
############################## Add OPPO Info End ##############################
persist.bluetooth.iot.on=true
persist.vendor.bt.iotinfo.report.enable=true
sys.oppo.gift=1
persist.sys.oem_smooth=1
persist.sys.nw_lab_test=0
persist.sys.cfu_auto=1
persist.sys.nw_mbn_icon=0
persist.rcs.supported=0
ro.camera.videoeis.enable=0
ro.build.soft.daily.version=false

############################## Add OPPO Info Common End ##############################
ro.lcd.backlight.txd_ili=11,1010,20,361,540,839,1099,1365,1651,1795,2034,2047
ro.lcd.backlight.hlt_ili=11,1010,20,361,540,839,1099,1365,1651,1795,2034,2047
ro.lcd.backlight.huaxian_ft=11,1010,20,361,540,839,1099,1365,1651,1795,2034,2047
ro.lcd.backlight.lide_ft=11,1010,20,361,540,839,1099,1365,1651,1795,2034,2047
ro.lcd.backlight.lide_ili=11,1010,20,361,540,839,1099,1365,1651,1795,2034,2047
ro.lcd.backlight.huaxian_nt=11,1010,20,361,540,839,1099,1365,1651,1795,2034,2047
ro.lcd.backlight.skyw_nt=11,1010,20,361,540,839,1099,1365,1651,1795,2034,2047
ro.display.rc.size=72,72,72,72
ro.oppo.screen.heteromorphism=255,0:465,55
ro.product.hw=18511
############################## Add OPPO Info Project End ##############################
 

J0shua-code

Member
Mar 14, 2015
19
8
What's the issue?
I completed and tested it on a headless machine. It was successful.
I was away for a while. Orange Fox had some missing files had to manually download them.
Compilation was successful but the recovery using your device tree doesn't work, causes the device to boot straight into system.

I was able to get the decrypt data message to pop up (On TWRP) using some settings from your Board.mk (Numbers are shown when I have a pattern lock, If I have a normal text password normal keyboard is shown without number keys on top) But it fails to decrypt the data. (I will provide the device tree which worked in a while)

Also another thing, The bootloader/ fastboot was available on older version of rom using the magisk module method, But when I updated the rom to new version (April 2021 v5.2.1) I was unable to get into fastboot mode, Thankfully the MTk byypass works and I was able to flash custom recoveries through there without fastboot


Also

I made xposed module to patch the annoying Your device is rooted status bar message
 
  • Like
Reactions: llxxVENOMxxll

llxxVENOMxxll

Senior Member
Jun 21, 2021
87
17
BLU VIVO 8L
Realme C20
This should be the final Device Tree and I am damn sure this fixes all problems. Build this with the Orange fox 9.0 branch and also remember to manually clone the directory of ui.xml. I doubt it to be causing the problem. It should have been missed from the latest manifest.
 
  • Like
Reactions: J0shua-code

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    What's the issue?
    I completed and tested it on a headless machine. It was successful.
    I was away for a while. Orange Fox had some missing files had to manually download them.
    Compilation was successful but the recovery using your device tree doesn't work, causes the device to boot straight into system.

    I was able to get the decrypt data message to pop up (On TWRP) using some settings from your Board.mk (Numbers are shown when I have a pattern lock, If I have a normal text password normal keyboard is shown without number keys on top) But it fails to decrypt the data. (I will provide the device tree which worked in a while)

    Also another thing, The bootloader/ fastboot was available on older version of rom using the magisk module method, But when I updated the rom to new version (April 2021 v5.2.1) I was unable to get into fastboot mode, Thankfully the MTk byypass works and I was able to flash custom recoveries through there without fastboot


    Also

    I made xposed module to patch the annoying Your device is rooted status bar message
    1
    This should be the final Device Tree and I am damn sure this fixes all problems. Build this with the Orange fox 9.0 branch and also remember to manually clone the directory of ui.xml. I doubt it to be causing the problem. It should have been missed from the latest manifest.
  • 2
    Is the 'bootloader' present in the device? Asking this coz OPPO devices don't have a bootloader and fastboot binary installed. I tried installing the module in my device but my device still does not reboot to bootloader. Upon "adb reboot bootloader" and "adb reboot fastboot" my phone just does a simple reboot.

    I know you installed the fastboot NDK through magisk. But I doubt if it's the actual bootloader or it mimics it. Any chance you could show me how the interface looks like? A small short video would do it. Also this necessary to add the bootloader presence to the boardconfig.mk.

    Yes the bootloader was not present on the device before I installed the module

    "adb reboot bootloader" would just reboot the device

    After you install the module when you type the command the device stays on black screen (no text is displayed) unless you flash something or unlock the device

    I would have added some photos but I was trying to flash gsi rom which bricked the device

    So I will post them later today or tomorrow if you want
    2
    Code:
    #
    # ADDITIONAL_DEFAULT_PROPERTIES
    #
    ro.factory_mode=0
    ro.oppo.factory_mode=0
    security.perf_harden=1
    ro.allow.mock.location=0
    ro.adb.secure=1
    ro.secure=1
    ro.debuggable=0
    #
    # BOOTIMAGE_BUILD_PROPERTIES
    #
    ro.bootimage.build.date=Sat Mar 16 01:45:16 CST 2019
    ro.bootimage.build.date.utc=1552671916
    persist.sys.usb.config=none
    
    # begin build properties
    # autogenerated by buildinfo.sh
    ro.build.id=O11019
    ro.build.version.sdk=27
    ro.build.version.preview_sdk=0
    ro.build.version.codename=REL
    ro.build.version.all_codenames=REL
    ro.build.version.release=8.1.0
    ro.build.version.security_patch=2019-02-05
    ro.build.type=user
    ro.build.user=root
    ro.build.host=CP-ubuntu-123
    ro.build.tags=release-keys
    ro.build.flavor=full_oppo6765_18511-user
    # ro.product.cpu.abi and ro.product.cpu.abi2 are obsolete,
    # use ro.product.cpu.abilist instead.
    ro.product.cpu.abi=arm64-v8a
    ro.product.cpu.abilist=arm64-v8a,armeabi-v7a,armeabi
    ro.product.cpu.abilist32=armeabi-v7a,armeabi
    ro.product.cpu.abilist64=arm64-v8a
    ro.product.manufacturer=OPPO
    ro.product.locale=en-US
    ro.wifi.channels=
    # ro.build.product is obsolete; use ro.product.device
    # Do not try to parse description, fingerprint, or thumbprint
    ro.build.description=full_oppo6765_18511-user 8.1.0 O11019 1552671920 release-keys
    ro.build.characteristics=default
    # end build properties
    #
    # from device/oppo/oppo6765_18511/system.prop
    #
    #
    # system.prop for generic sdk
    #
    
    rild.libpath=mtk-ril.so
    rild.libargs=-d /dev/ttyC0
    
    
    # MTK, Infinity, 20090720 {
    wifi.interface=wlan0
    # MTK, Infinity, 20090720 }
    
    # MTK, mtk03034, 20101210 {
    ro.mediatek.wlan.wsc=1
    # MTK, mtk03034 20101210}
    # MTK, mtk03034, 20110318 {
    ro.mediatek.wlan.p2p=1
    # MTK, mtk03034 20110318}
    
    # MTK, mtk03034, 20101213 {
    mediatek.wlan.ctia=0
    # MTK, mtk03034 20101213}
    
    
    #
    wifi.tethering.interface=ap0
    #
    
    ro.opengles.version=196610
    #ro.kernel.qemu=1
    #ro.kernel.qemu.gles=0
    
    wifi.direct.interface=p2p0
    #dalvik.vm.heapgrowthlimit=256m
    #dalvik.vm.heapsize=512m
    
    # USB MTP WHQL
    ro.sys.usb.mtp.whql.enable=0
    
    # Power off opt in IPO
    sys.ipo.pwrdncap=2
    
    ro.sys.usb.storage.type=mtp
    
    # USB BICR function
    ro.sys.usb.bicr=no
    
    # USB Charge only function
    ro.sys.usb.charging.only=yes
    
    # audio
    ro.camera.sound.forced=0
    ro.audio.silent=0
    
    ro.zygote.preload.enable=0
    
    # temporary enables NAV bar (soft keys)
    qemu.hw.mainkeys=0
    
    ro.kernel.zio=38,108,105,16
    #ro.kernel.qemu=1
    #ro.kernel.qemu.gles=0
    #ro.boot.selinux=disable
    
    # Disable dirty region for Mali
    #debug.hwui.render_dirty_regions=false
    
    ro.sf.lcd_density=480
    
    # performance
    ro.mtk_perf_simple_start_win=1
    ro.mtk_perf_fast_start_win=1
    ro.mtk_perf_response_time=1
    
    # disable ipo for development
    sys.ipo.disable=1
    
    #ifdef ODM_WT_EDIT
    #[email protected]_WT.Ad.Engineeringmode, 2018/10/10, Add for WT version
    ro.build.display.wtid.mp=SW_S98607CA1_V015_M10_O_USER
    ro.build.display.wtid.ato=SW_S98607CA1_V030_M10_O_USRD_ATO
    #endif /* ODM_WT_EDIT */
    
    #
    # ADDITIONAL_BUILD_PROPERTIES
    #
    ro.treble.enabled=true
    persist.sys.dalvik.vm.lib.2=libart.so
    dalvik.vm.isa.arm64.variant=cortex-a53
    dalvik.vm.isa.arm64.features=default
    dalvik.vm.isa.arm.variant=cortex-a53
    dalvik.vm.isa.arm.features=default
    net.bt.name=Android
    dalvik.vm.stack-trace-dir=/data/anr
    ############################## Add OPPO Info Project Begin ##############################
    ro.separate.soft=18511
    ro.oppo.market.name=OPPO A5s
    ############################## Add OPPO Info Common Begin ##############################
    ro.build.date.Ymd=190316
    ro.build.date.ymd=190316
    ro.build.date.YmdHM=201903160130
    ro.build.date.utc=1552672148
    ro.build.version.incremental=1552672148
    ro.build.date=Sat Mar 16 01:49:08 CST 2019
    ro.xxversion=V0.5
    ro.product.brand=OPPO
    ro.vendor.product.brand=OPPO
    ro.product.model=CPH1909
    ro.vendor.product.model=CPH1909
    ro.build.product=CPH1909
    ro.product.device=CPH1909
    ro.product.name=CPH1909
    ro.vendor.product.name=CPH1909
    ro.vendor.product.oem=CPH1909
    ro.vendor.product.device=CPH1909
    ro.build.version.ota=CPH1909EX_11.A.17_0170_201903160130
    ro.build.display.id=CPH1909EX_11_A.17
    ro.build.kernel.id=4.9.77
    ro.mediatek.version.release=CPH1909_11_A.17_190316
    persist.version.confidential=false
    ro.build.version.opporom=V5.2.1
    ro.oppo.version=US
    persist.sys.timezone=America/New_York
    persist.sys.oppo.region=US
    ro.build.master.date=201901140247
    persist.power.useautobrightadj=true
    persist.sys.oppodebug.tpcatcher=14
    persist.sys.oppo.log.config=0
    persist.anr.dumpthr=1
    ro.aee.enforcing=no
    persist.sys.assert.enable=false
    persist.sys.assert.panic=false
    persist.sys.assert.state=false
    persist.sys.assert.enabletip=0
    ro.build.release_type=true
    persist.anr.enhancement=0
    gr.use.leader=true
    gr.apk.number=5
    gr.download.url=http://otafs.coloros.com/googles/7a3341ea988614321a209c55265d381f
    dalvik.vm.heapmaxfree=16m
    dalvik.vm.heapminfree=4m
    dalvik.vm.heapstartsize=16m
    dalvik.vm.heaptargetutilization=0.75
    persist.sys.oppo.junklog=false
    persist.sys.oppo.junkmonitor=true
    ro.reserve1.get=/dev/block/platform/bootdevice/by-name/reserve1
    persist.bluetooth.enableinbandringing=true
    gr.use.leader=true
    gr.apk.number=5
    ro.script.version=1.0
    persist.sys.disable_rescue=true
    ro.trackingId.com.lzd.appid=/data/etc/appchannel/lazadaChannel.txt
    ro.trackingId.com.daraz.appid=/data/etc/appchannel/darazChannel.txt
    ro.trackingId.com.shop.appid=/data/etc/appchannel/shopChannel.txt
    ro.appsflyer.preinstall.path=/data/etc/appchannel/pre_install.appsflyer
    ro.sys.reserve.integrate=true
    persist.sys.log.lfeh.test=false
    persist.sys.log.lfeh.default=false
    persist.sys.log.lfeh=true
    persist.sys.log.lfeh.delete=false
    persist.bluetooth.disableabsvol=true
    persist.bluetooth.avrcpversion=avrcp13
    ############################## Add OPPO Info End ##############################
    persist.bluetooth.iot.on=true
    persist.vendor.bt.iotinfo.report.enable=true
    sys.oppo.gift=1
    persist.sys.oem_smooth=1
    persist.sys.nw_lab_test=0
    persist.sys.cfu_auto=1
    persist.sys.nw_mbn_icon=0
    persist.rcs.supported=0
    ro.camera.videoeis.enable=0
    ro.build.soft.daily.version=false
    
    ############################## Add OPPO Info Common End ##############################
    ro.lcd.backlight.txd_ili=11,1010,20,361,540,839,1099,1365,1651,1795,2034,2047
    ro.lcd.backlight.hlt_ili=11,1010,20,361,540,839,1099,1365,1651,1795,2034,2047
    ro.lcd.backlight.huaxian_ft=11,1010,20,361,540,839,1099,1365,1651,1795,2034,2047
    ro.lcd.backlight.lide_ft=11,1010,20,361,540,839,1099,1365,1651,1795,2034,2047
    ro.lcd.backlight.lide_ili=11,1010,20,361,540,839,1099,1365,1651,1795,2034,2047
    ro.lcd.backlight.huaxian_nt=11,1010,20,361,540,839,1099,1365,1651,1795,2034,2047
    ro.lcd.backlight.skyw_nt=11,1010,20,361,540,839,1099,1365,1651,1795,2034,2047
    ro.display.rc.size=72,72,72,72
    ro.oppo.screen.heteromorphism=255,0:465,55
    ro.product.hw=18511
    ############################## Add OPPO Info Project End ##############################
    1
    I compiled TWRP and OrangeFox recovery for A5s

    Bugs:
    • Decryption doesn't work
    • MTP doesn't work while in recovery mode
    • you tell me
    Decryption doesn't work but you can still sideload using "adb sideload <filename.zip>" command

    This was my first time compiling custom recovery and I was unable to find patches for OPPO (colorOS) to fix the encryption issue, so if you have any ideas please post here

    Device Tree:
    1
    How to unlock bootloader?

    1) Root using mtk-easy-su
    2) Install Magisk
    3) Install ADB & Fastboot for Android NDK from Magisk
    4) adb reboot bootloader
    5) fastboot flashing unlock
    6) fastboot reboot
    1
    What kind of module ?
    Magisk module - Android fastboot NDK