I want to build games for personal use on my phone, not to upload to a store like Google Play. However, I can't seem to export my game without signing it. Is this possible?
Is there a way to export to Android without signing the APK, such as for personal use?
This discussion was caught in the moderation queue since you have not confirmed your account yet.
Upon creating your account you should have received an account verification email. The confirmation email may have been incorrectly flagged as spam, so please also check your spam filter. Without confirming your account, future posts may also be caught in the moderation queue. You can resend a confirmation email when you log into your account if you cannot find the first verification email.
If you need any help, please let us know! You can find ways to contact forum staff on the Contact page. Thanks! :smile:
- Edited
Android requires that all APKs be digitally signed with a certificate before they are installed on a device or updated. https://developer.android.com/studio/publish/app-signing
Why don't you want to sign it? It's simple, mostly automatic and doesn't cost anything. I've exported a bunch of apps, using Android Studio or Godot, to my Android phone for testing, by installing over a USB cable.
You don't have to sign apps. Even the debug signature is enough to test on your own phone or share the APK (the users will just get a warning, but they can click okay).
But you still need a signature, even if it's only a debug signature?
@DaveTheCoder said: But you still need a signature, even if it's only a debug signature?
For debugging only, isn't there a way to actually play the game on your phone by hooking it up to a USB?
I would still just sign it, though. There's no harm in it if you do sign it just to play for personal use. :)
I believe the signature is needed to even build an APK or test it, but debug is fine. It takes 10 seconds to create.
https://docs.godotengine.org/en/stable/tutorials/export/exporting_for_android.html
Exporting an Android application typically involves generating an APK (Android Package) file, and signing that file is a standard part of the Android app development process. However, for personal use or testing purposes, you can use the Android Debug Bridge (ADB) to install and run an app on an Android device without signing it with a release key.
Here's a general overview of the process:
Enable USB Debugging on Your Device:
On your Android device, go to Settings.
Go to "About phone" or "About tablet" and tap "Build number" seven times to enable Developer Options.
Go back to Settings, and you should see "Developer Options." Enter it and enable "USB debugging."
Connect Your Device to Your Computer:
Connect your Android device to your computer using a USB cable.
Install the App Using ADB:
Open a command prompt or terminal on your computer.
Navigate to the directory where your APK file is located.
Use the following command to install the app on your device:
adb install your_app.apk
Replace your_app.apk with the actual name of your APK file.
This method allows you to install and run the app on your device for testing purposes without going through the process of signing the APK with a release key. Keep in mind that this approach is intended for personal use and testing. If you plan to distribute the app publicly or through app stores, it's crucial to follow the standard app signing procedures for security and integrity reasons.
Remember that ADB should be installed on your computer, and the device should be recognized by ADB. Also, ensure that your device is set to allow installations from unknown sources for the installation to proceed smoothly.