The full system path to the private folder would be like this. /data/data/edu.mit.appinventor.aicompanion3/files
We can save files to the private folder. But it's not about being able to write, it's about marking the file as read-only. So we can save the file, mark it as read-only and we can't modify it anymore.
@ewpatton When uploading an updated extension, are the old files deleted? Maybe if the classes.jar file is read-only, it can't be overwritten? So the files should be deleted every time companion connects? Or remove the read-only flag, then update the files and set the flag again.
You cannot use the File component for this, you must use one oft the File extension and use a full path. Or you might be able to check it, if your device is rooted.
I am using Samsung A30s on android version 11 while using the companion v2.73u still having the error "Unable to load extensions.java.lang.StringIndexOutOfBoundsException:
String index out of range: -1" just having an extension on the components list.
In version of test 2.73t2u without using ai2test server no problem at all, just crashing rarely...
And again, why is there no problem with Niotron (on Android 14)? AFAIK they didn't change anything handling/storing extensions in the assets folder of the ASD.
Honestly I don't know this error started creating like 10/14 days ago... maybe on the android software update by mistake about the permission of reading some file?
I don't know about that, but some people reported a problem in nb188 with companion in android14, but I didn't have that problem. Companion in nb188 on android14 worked fine for me. I think Samsung broke something, and now other android users must have problems because of it..
No, Samsung won't do anything. I don't really know what the problem was/is because as @Anke mentioned, they didn't report a problem with Companion on other platforms.