Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hardcode Server custom APK #11

Open
12nick12 opened this issue Aug 27, 2021 · 2 comments
Open

Hardcode Server custom APK #11

12nick12 opened this issue Aug 27, 2021 · 2 comments
Labels
question Further information is requested

Comments

@12nick12
Copy link

Hi, how hard would it be to hardcode the server info into an APK so I can deploy company wide?

Thanks,
Nick

@ocsnetworks
Copy link

This feature is available if you build the current branch source code.
In Android Studio, open the MainActivity.kt
You will see instructions towards the top of the code.

@si458
Copy link
Collaborator

si458 commented Jan 17, 2024

this is correct, file MainActivity.kt line 40(ish)
i believe you just scan the QR code from the web ui for the group you want,
then copy the URL from it to the string below

// You can hardcode a server connection string into this application by setting this string.
// Make sure to replace all $ with \$ if your link string contains the $ character
// Once set, the resulting APK will be hard coded and users can't unset this value.
val hardCodedServerLink : String? = null
//val hardCodedServerLink : String? = "mc://central.mesh.meshcentral.com,2ZNi1e2Lrqi\$nnQ7NLJCJWNwxGD9ZstiNzxs\$LIE1tcHQD45bPDvbcKzpC9zUTX9,7b4b43cdad850135f36ab31124b52e47c167fba055ce800267a4dc89fe0e581c"

@si458 si458 added the question Further information is requested label Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants