Recently I got to know a thing called split apks, and found the slices as invalid apk files, only the base is. Unfortunately, this means the usual default package installer is unable to handle this, and as such I got to know another thing called SAI, a split apk installer, capable of working with or without root. However, being curious, I wondered how it all worked internally, and began to do a bit of research. I didn't get far, but I got to find out about pm install commands, and I happen to have root access which is apparently mandatory if I am to go this path, as the terminal won't let me run pm install-create without first running su.
The next step is pm install-write all the slices, and this is where I fall. The most obvious way for me was to cd to the directory of the slices and pm install-write them one at a time, which didn't allow me to do so, and it seems to be expecting an int rather than a directory string.
Questions (TL; DR):
Can I install split apks without any extra apps (in my example, SAI)?
Am I in the right direction with pm install commands?
If the answer to question 2 is yes, what am I doing wrong, and what should I be doing instead (it seems to want an int instead of a directory string, not sure how to convert)?
Are there any other methods I can explore (preferably rootless, but root is also fine)?
Thank you for your time.