Android tv 11 OS unable to add custom subtitle font
#1
Hi,
anyone has idea, how we can add custom subtitle font in android TV 11 os in Kodi 20-21?
The data folder where  the .kodi folder stored, is restricted.
Therefore unable to add any font to .kodi>media>Fonts folder.

Exist any addon for that, or can anyone create one?

thanks
Reply
#2
Hi.
If you use the android file manager (or any other file manager that you can download or install on Android) you can access the folder.
But it has to be done from Android.
Reply
#3
(2023-03-31, 20:41)ichala Wrote: Hi.
If you use the android file manager (or any other file manager that you can download or install on Android) you can access the folder.
But it has to be done from Android.

No, that not working. Tryed all . Its android tv os, and data folder restricted to all file manager..
Reply
#4
Use the internal Kodi File Manager see https://kodi.wiki/view/File_manager then to see the shortcuts that can be used refer to https://kodi.wiki/view/Special_protocol so in your case you want special://home
Reply
#5
(2023-04-01, 17:57)jjd-uk Wrote: Use the internal Kodi File Manager see https://kodi.wiki/view/File_manager then to see the shortcuts that can be used refer to https://kodi.wiki/view/Special_protocol so in your case you want special://home
The  kodi filemanager cannot see too, just the userdata folder, no more.

In my firestick ist not restrited, (not ATV 11) so there possible to made Fonts folder as media subfolder.

However, i tryed with the advancedsettings,

 <pathsubstitution>
  <substitute>
    <from>/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/media/</from>
    <to>/storage/emulated/0/Download/media/</to>
  </substitute>
 </pathsubstitution>

added all permissions ,  Apps -> Kodi -> Permissions -> Files and Media and select Allow all the time.

In this way the desired fonts visible in kodi media>subtitle settings, I can choose, but the kodi dosent apply my new fonts during media play.
Reply
#6
I had the same problem on my Philips TV with Android TV 11.

I managed to solve it by enabling ADB Network Debugging and using "adb connect <IP address of TV>" (you will need to give permission on the TV using the remote the first time you do this) followed by "adb shell".

From the shell I was able to access "/sdcard/Android/data/org.xbmc.kodi/files/.kodi/" and create a "media/Fonts" directory there and then copy the font file into it (using the mkdir and cp commands respectively).
Reply
#7
(2023-04-02, 14:20)MrMagic Wrote: I had the same problem on my Philips TV with Android TV 11.

I managed to solve it by enabling ADB Network Debugging and using "adb connect <IP address of TV>" (you will need to give permission on the TV using the remote the first time you do this) followed by "adb shell".

From the shell I was able to access "/sdcard/Android/data/org.xbmc.kodi/files/.kodi/" and create a "media/Fonts" directory there and then copy the font file into it (using the mkdir and cp commands respectively).

Can you post exactly the adb commands, what I need to write?
I have currently one media folder with Fonts subfolder with font files, in my Download folder.
thx
Reply
#8
short answer:

enable developer mode on your android device
connect to it with adb; "adb connect <ip of android>:5555" (initiates the connection)
create the folder; "adb shell mkdir -p /sdcard/Android/data/org.xbmc.kodi/files/.kodi/media/Fonts" (mkdir creates a directory, -p makes all directories in the path provided if some dont exist)
send the files to android; "adb push <fontfile> /sdcard/Android/data/org.xbmc.kodi/files/.kodi/media/Fonts/" (sends files to android from the computer running adb, make sure you are in the current directory of the font otherwise supply a full path to the source font)

long answer:

https://developer.android.com/studio/command-line/adb

how to install adb on your computer:

https://www.howtogeek.com/search/?q=how+to+install+adb

how to enable developer mode will depend on your device, you will need to google for this answer
Reply
#9
Thumbs Up 
Thank you very match!
@MrMagic 
@jepsizofye 

Thread solved.

So, what I made..

placed the font in my pc, root of C drive. arialbd.ttf

Downloaded the ADB app control to my pc, installed, connected to a box.

In the console write and enter:
adb shell mkdir -p /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/media/Fonts

then write and enter :
adb push C:/arialbd.ttf /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/media/Fonts

Now I can choose the arial bold font as subtitle..
Reply
#10
perfect, glad you got it
Reply
#11
Hello, 

I have the same problem with my new Mi Box S 2nd gen , it's using Google TV 11 and tried all the mentioned above with no luck. 

i always get Permission denied while trying to create or push the font file. 

is there any workaround for this ? can i change the path where kodi load the font file from to my external storage as example ?
Reply
#12
(2023-06-27, 22:27)MohamedYousri Wrote: Hello, 

I have the same problem with my new Mi Box S 2nd gen , it's using Google TV 11 and tried all the mentioned above with no luck. 

i always get Permission denied while trying to create or push the font file. 

is there any workaround for this ? can i change the path where kodi load the font file from to my external storage as example ?
use the kodi file manager as it has permission to its own folder - https://kodi.wiki/view/File_manager

using the 'add source' put in special://userdata so you dont have to guess where android has put the kodi folder - https://kodi.wiki/view/Special_protocol


step by step
  1. open settings
  2. open file manager
  3. click add source
  4. click where is says '<None>'
  5. enter the path special://userdata
  6. click OK
  7. open the left side to the source where the font is located
  8. open the right side to the userdata folder you just added
  9. on the left long press on the file for the context menu
  10. select copy
  11. select yes to confirm copy
Reply
#13
Thanks for your feedback but the font shall be copied to .kodi\media\fonts which doesn't appear in both situations if i added home or userdata special address
Reply
#14
special://home - /sdcard/Android/data/org.xbmc.kodi/files/.kodi/ didn't work also
Reply
#15
did you even try making the folders - since they dont exist by default?
 
  1. long press
  2. click 'make new folder'
  3. enter 'media'
  4. go into the media folder
  5. long press
  6. click 'make new folder'
  7. enter 'Fonts'

and then they will exist
Reply

Logout Mark Read Team Forum Stats Members Help
Android tv 11 OS unable to add custom subtitle font0