All work and credits to qqq1971.
Working on HiMedia 2th, 3th, 4th generation from any series if adb is enabled.
Android_DExxx hostname preserved
Active/inactive password setting preserved
Download:
Samba_conf_patch_v1.0.6Change log:
1. Created
2. Added the ability to install on Android 5
3. Restored access to sdcard
4. (Skip)
5. Rewrite to apply in smb.conf
6. RUN_ME.bat improve
- autobackup smb.conf when patch apply
- add Backup(pull) smb.conf
- add Restore(push) smb.bak
- add Install custom smb.conf
Note:
- not smb.conf inside of archive start with v1.0.5.
- performance maybe are different between original qqq1971
his made better fining tuning for Android 7.0 witch are not support by Android 4.4.2 / 5.1.1 SDK.
Who doesn't follow on 4pda samba transfer speed to Q10/Q5 Pro patch
Before vs After apply patch

OK, I have made it sticky. Also I've cleaned up the title so it matches the other patch threads.
qqq1971, I hope you don't mind but I have mentioned your patch and this thread to HiMedia. They may find some, erm, inspiration from it..
Of course. By the way, pcristi offered a more elegant solution. Besides, I have no way to test for Andriod 5.1.1 (thanks for his help on this).