Allowing Adoptable storage on the Samsung J5 20165 – J500H
There are a few tricks for this particular phone
1- We need to replace the recovery system with TWRP
Enable phone developer mode, then USB debugging and OEM override (Disable protection)
Download ODEN
Download the TWRP .TAR file for your device, for the Samsung J5 2016 (J500H), you should find i here
https://twrp.me/samsung/j53gxx.html
reboot your system into bootloader mode (Vol down, Home and power at the same time for 3 seconds to start the phone)
Open ODEN, chose the tar file for AP, and upload the TWRP
Now, don’t let the phone reboot into the system or it will overwrite the bootloader with the original one, instead
once the phone starts rebooting, hit, Volume UP and home button and power at the same time, and TWRP will patch the
system once it opens in recovery mode so that it won’t overwrite the new TWRP
Reboot system, and boot with Power, Home, And volume down button for bootloader change
From this point on, you can enter into TWRP with the Home, Vol UP and Power button combination at boot time
Now download the patch to enable adoptable storage and store it to the SD card (adoptable_storage_enabler_ashyx) from here https://forum.xda-developers.com/galaxy-tab-a/how-to/patch-adoptable-storage-enabler-t3507387
Start the recovery mode (TWRP mode)
Hit install and chose the file you have downloaded
That’s all you need
Now, next thing you will need to do is to format the SD card using the guide here
http://www.tech-g.com/2019/12/01/storing-whatsapp-video-and-photo-to-sd-card-with-no-compromise/