android: Fix install (#33277)

self.config["android"]["target"] is unset, causing an exception.
We can just use self.target.triple() instead.

Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
This commit is contained in:
Jonathan Schwender 2024-09-01 22:17:34 +02:00 committed by GitHub
parent a62612a025
commit 35ca050bfb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -330,7 +330,7 @@ class CommandBase(object):
def get_apk_path(self, build_type: BuildType):
base_path = util.get_target_dir()
base_path = path.join(base_path, "android", self.config["android"]["target"])
base_path = path.join(base_path, "android", self.target.triple())
apk_name = "servoapp.apk"
return path.join(base_path, build_type.directory_name(), apk_name)