I'm trying to create a universal updater-script but I'v run into a bit of a wall. I can't find any universal way to mount a given partition.
In order to mount something in the edify scripting language I need to provide
a fs_type
, partition_type
, name
, mount_point
. I expect partition_type
, name
, mount_point
to be fairly universal, but fs_type
could be all over the place.
My only idea is to try mounting in a bunch of different filesystems and checking after each attempt if it's mounted.
I will have root access to the device over adb
beforehand. Is there a reasonable/programmatic way to do this with adb
?