fix: install_failure type mismatch — issue never reached GitHub
SetupActivity was sending type 'install-failure' (hyphen) but the PHP version-guard bypass list only checked for 'install_failure' (underscore). Result: if the kiosk was not on the latest released version the error was silently discarded and no GitHub issue was created. Fix: - SetupActivity: change type to 'install_failure' (underscore, consistent with KioskActivity which already used the correct name) - api/index.php: add 'install-failure' (hyphen) to the bypass list as defensive fallback so old APK builds already in the field are covered too
This commit is contained in:
@@ -868,7 +868,7 @@ class SetupActivity : AppCompatActivity() {
|
||||
val msg = intent?.getStringExtra(android.content.pm.PackageInstaller.EXTRA_STATUS_MESSAGE) ?: "status=$status"
|
||||
setGatewayUI("❌", getString(R.string.install_error_install), msg, 0xFFf87171.toInt())
|
||||
ErrorReporter.reportMessage(
|
||||
"install-failure",
|
||||
"install_failure",
|
||||
"PackageInstaller failed: status=$status msg=$msg",
|
||||
mapOf("pkg" to targetPkg, "status" to status, "msg" to msg)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user