Replies: 2 comments
-
|
Thank you. Build instructions were slightly different for me on arch + android studio. Install jdk17: Then selecting jdk17 for "Gradle JDK" in: File > Settings > Build, Execution, Deployment > Build Tools > Gradle As an asside: jdk17 is pretty old now, might be nice long term to update to a newer version of gradle (and resolve gradle changes that break when doing so) working, with newer jdk. And update dependencies, etc... |
Beta Was this translation helpful? Give feedback.
-
|
Some users told me they have older systems and their newest package was jdk17 (also some users reported success with jdk17/bt34 in the pr), tried to create a working build and have it make use for as many people as I can. Don't want to have them mess with SDKMAN or whatever to get newer versions. Certainly someone could try building with newer versions and use Doubt the dev will start maintaining again, I think it's abandoned and users should look into alternatives like Vernet. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
This is a step-by-step tutorial on how to patch Port Authority with pull request #156 and build an unsigned (debug) APK with version 2.4.5.
Disclaimer
The steps have only been tested in Debian 12. I will try to make it as easy as possible for users with minimum to no development knowledge, but you need to at least know your way around Linux on a basic level. It's best to setup a quick Debian 12 VM for the sole purpose of building the APK and then disposing it. This way we can ensure a clean environment and reproducibility, otherwise some steps may fail. Experienced users can just copy what's needed.
Assuming you are going to use a VM and then dispose it, I will not provide cleanup steps after a successful build. It's best to use a VM so you don't end up with unnecessary packages and environment modifications on you main system after the fact.
1. Install necessary packages
2. Install and configure SDK (Command Line Tools)
Create the SDK parent directroy.
Download latest Command Line Tools and setup layout.
3. Configure environment variables in Bash
Open the rc file with
nano ~/.bashrc. Then paste the following lines on the bottom of the file.To save the changes and exit do
Ctrl+SandCtrl+X.Make the changes take effect by sourcing the file.
4. Install necessary SDK components.
5. Clone the Port Authority repository and apply PR #156.
Clone and checkout branch.
Configure Git so it doesn't complain. No need to modify these values, just copy-paste as is.
Apply the fix.
6. Build the APK
Assuming the build was successful, your APK will be in
/app/build/outputs/apk/free/debug/. Copy it in your home directory.Done
You can now move the file to your phone and install it. This is a debug and not a signed release. It doesn't change something functionally for you but you will see a Leaks app installed alongside and you are not gonna be able to uninstall it (technically not an individual app), just hide it from your drawer. This is the LeaksCanary tool and comes as a debug component, it detects memory leaks.
I can add steps to create/use your own Keystore to sign the APK and generate a full release (also disables LeaksCanary), but that is out of scope. If a handful of people ask for that, I will edit this tutorial on a later date and add optional signing steps.
Download: If you want to install a signed release instead of a debug and don't want to go through all the steps, you can download mine directly via this link. More details in my repository.
Beta Was this translation helpful? Give feedback.
All reactions