alesimula / wsa_pacman

A GUI package manager and package installer for Windows Subsystem for Android (WSA)
GNU General Public License v3.0
3.86k stars 834 forks source link

[Bug] Can't install .xapk #135

Open Mitia99 opened 11 months ago

Mitia99 commented 11 months ago

There is an issue installing this specific .xapk file WSA Pacman 1.5.0 is connected image Bug Infinite loading image Additional info

Ty for investigating,

alesimula commented 10 months ago

@Mitia99 Hello, sorry for the late response; The app reads XAPK files with a manifest.json file, as shown in this website: https://openxapkfile.net/manifest.html, which your archive is missing;

This file is what I use to extrapolate data from the manifest, you don't need all elements to be present, but you certainly need: "package_name" (the .apk file will need to have the same name as the package_name, but don't put ".apk" at the end of package_name) and "version_code" (I'm actually not sure whether this was required, better put it in to be sure, it's there to check whether the currently installed version is superior, equal or inferior to the one you are installing)

In your case, you also need to insert the "expansions" property as shown in the first website I linked (you don't need "install_path" though, unless it's different than the "file" property, and the "install_location" property is ignored entirely

Mitia99 commented 10 months ago

@Mitia99 Hello, sorry for the late response; The app reads XAPK files with a manifest.json file, as shown in this website: https://openxapkfile.net/manifest.html, which your archive is missing;

This file is what I use to extrapolate data from the manifest, you don't need all elements to be present, but you certainly need: "package_name" (the .apk file will need to have the same name as the package_name, but don't put ".apk" at the end of package_name) and "version_code" (I'm actually not sure whether this was required, better put it in to be sure, it's there to check whether the currently installed version is superior, equal or inferior to the one you are installing)

In your case, you also need to insert the "expansions" property as shown in the first website I linked (you don't need "install_path" though, unless it's different than the "file" property

Hi, It's ok. Thanks for your reply.

I don't really understand technical details but as I said WSA Sideloader can sideload it so I hope that it WSA Pacman can as well