Disable "Debug Mode" for APK?

Hello!

I create a package for Android, works without any problems. But when i put the APK on my Phone then i cant start it. I become a black screen for a second and the app closed without any errors. Then i try the *batch-file and install the APK via “USB-Debug” - it works now…

But the Problem: when i try to upload the APK on “Play Store” then google say i have to disable the “Debug Mode”.

The package is selected with “Shipping”. But where i can disable the “Debug Mode” for APK?

Hi Pelix,

For your deployment issue: Putting only the APK onto your Android device will not work; the app requires the OBB that is packaged with it, and it looks for it in a specific location. The batch file pushes the APK and OBB to your device in the locations required for the app to work.

For your Debug Mode issue: open the File > Package Project > Packaging Settings… window, expand the Project section, and enable “For Distribution.” The only major caveat there is that we have not tested uploading a For Distribution app to the Google Play store, so I can’t guarantee that it will work for now.

Hmm ok the Problem with “Debug Mode” is ok but now i become the message with “Signing Your Applications”. How i can do it with U4 Engine?

I’m not sure. As I said, we haven’t thoroughly tested that workflow yet. Our Android support is still a work in progress.

But then … what i can do with an android apk when i can use it only on my phone via “USB Debug”?

Ok i found it … thx a lot :slight_smile:

And yes, when you setup the “Signing” then you can upload the APK on Play Store and it works without the OBB. :slight_smile:

When you need a complete Tutorial for this maybe i can help… but my english is not so good :confused:

That… doesn’t sound right. The APK needs the OBB, since all of the game content is stored there. If you delete the app and OBB from your device, then redownload the APK from Google Play, does it still work?

When i search my device for the *.obb i cant found it… i found a lot of *.obb but not with this project. But when its invisible i understand now why a lot of big games use the “Update / Download”-Function in the App…

Interesting. On the devices we test, the obb is stored in /sdcard/obb/com.$COMPANY.$APP/ . I’m not sure if that is consistent across all devices.

Hmm… my /obb/ folder is empty…

But how i can use the Play-Store for my APK? Sure i can create a download system to get the *.obb but without the *.obb you cant start the APK… what is the trick with this? :smiley:

At this point, we’re in uncharted water as far as I’m concerned. We’re still ironing out how to package and deploy for distribution. We’re aiming to make this smoother in the future, but right now it’s rather use-at-your-own-risk.

This is … funny… you create a tool that has no usefull function at the moment? :smiley:

I wouldn’t say no useful function. The current workflow allows you to build and test your game locally, which is very useful. The packaging for distribution workflow is platform agnostic (in terms of what you do with the editor UI), and it works as expected for iOS. Android is a newer platform for us, so we’re still working on getting it up to parity with iOS.

But 80% of all Smartphones use Android. :smiley:
Ok then we will wait for the “better function” and use the APK with Play Store. :wink:

Buuuut … when my english is bettern then now then i can create a tutorial in forum with the title “How to create a signed APK for Play Store”. :slight_smile:

I have to say sorry my friend…

Now it works with Play-Store. You can upload the APK and the obb as extra file. :slight_smile:

Awesome! Thanks for following up about that.

Would you please describe the steps with the batch file?

When I double click it it says: *daemon not running
*daemon started successfully * on port 5037
-waiting for device -
and nothing happens.

I have enabled USB debugging mode from Settings>DeveloperOptions

Cheers

Once you’ve enabled USB debug mode, you will need to make sure your device is set to trust your PC (should pop up on your device when you first connect it after enabling debug mode). Also, make sure you have the ADB driver for your device installed.