Hi all, this is my first post in here, so bear with me...
Recently I got an XTreamer Prodigy 4k. This is a device running Android 4.4.4 that connects to your TV and plays media. Media can be streamed over the network or played off drives connected to the system via USB.
Drives connected via USB are mounted under /mnt/usb automatically by the system and appear as entries like /mnt/usb/sda1 and /mnt/usb/sda2. Unfortunately there order in which entries are mounted under /mnt/usb
varies and hence the device which was /mnt/usb/sda1 might be /mnt/usb/sdb1 tomorrow. This is a common problem with many Android media player devices.
I know from investigating previously with an OUYA that the volume label information for attached USB drives is available under /dev.
I am thinking of writing a simple Android application that will periodically check and see if any USB drives have been mounted. If a device has been mounted, the application will attempt to determine the volume label for it and, if successful, create a symlink based on the volume label (E.g. /mnt/usb/LABEL1 or /tmp/LABEL1).
I'm posting here to ask if this is feasible with a standard Android application that can be run in a non-rooted environment. While I am a developer but I have never done any Android development before and thus I wanted to check and see if my idea is worth developing or if there is some hurdle I'm unaware of...
Recently I got an XTreamer Prodigy 4k. This is a device running Android 4.4.4 that connects to your TV and plays media. Media can be streamed over the network or played off drives connected to the system via USB.
Drives connected via USB are mounted under /mnt/usb automatically by the system and appear as entries like /mnt/usb/sda1 and /mnt/usb/sda2. Unfortunately there order in which entries are mounted under /mnt/usb
varies and hence the device which was /mnt/usb/sda1 might be /mnt/usb/sdb1 tomorrow. This is a common problem with many Android media player devices.
I know from investigating previously with an OUYA that the volume label information for attached USB drives is available under /dev.
I am thinking of writing a simple Android application that will periodically check and see if any USB drives have been mounted. If a device has been mounted, the application will attempt to determine the volume label for it and, if successful, create a symlink based on the volume label (E.g. /mnt/usb/LABEL1 or /tmp/LABEL1).
I'm posting here to ask if this is feasible with a standard Android application that can be run in a non-rooted environment. While I am a developer but I have never done any Android development before and thus I wanted to check and see if my idea is worth developing or if there is some hurdle I'm unaware of...
Aucun commentaire:
Enregistrer un commentaire