cordova-plugin-apkupdater
cordova-plugin-apkupdater copied to clipboard
Root Install Function Returning Error
I am having a problem with rootinstall function. This is the error I am getting:
{"message":"Root command failed: su: invalid uid/gid '-c'","stack":"de.kolbasa.apkupdater.exceptions.RootException\n at de.kolbasa.apkupdater.tools.ApkInstaller.rootInstall(ApkInstaller.java:120)\n at de.kolbasa.apkupdater.ApkUpdater.rootInstall(ApkUpdater.java:195)\n at de.kolbasa.apkupdater.ApkUpdater.lambda$execute$13$de-kolbasa-apkupdater-ApkUpdater(ApkUpdater.java:258)\n at de.kolbasa.apkupdater.ApkUpdater$$ExternalSyntheticLambda9.run(Unknown Source:4)\n at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)\n at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)\n at java.lang.Thread.run(Thread.java:923)\nCaused by: de.kolbasa.apkupdater.exceptions.InstallationFailedException: su: invalid uid/gid '-c'\n at de.kolbasa.apkupdater.tools.ApkInstaller.rootInstall(ApkInstaller.java:117)\n ... 6 more\n"}
I have verified that I the device is rooted. Any reason why it is returning this error?