How to test an application compiled for arm64-v8a architecture on phone with armeabi-v7a architecture?

Viewed 500

I published an application on Google Play Store. Google requires to compile it into arm64-v8a architecture. When compiled into armeabi-v7a architecture, it worked on my phone. One friend of mine was successful to install it and run it on arm64-v8a, at another friend the app crashed after start, so I offered it to more people for testing and another three reported that the app crashed after start. I would like to fix the bugs, but I'm restricted to my phone with armeabi-v7a. Is it possible to debug it with my device? Here is the source code for completeness.

1 Answers

I realized what the error is, in android 11 and higher, you need to set an additional argument to view the storage (android:requestLegacyExternalStorage="true"), see my pull request https://github.com/kivy/python-for-android/pull/2431/commits/30a28d5a71fcca4c369d3f9ae85539515d413a6e. Edit the AndroidManifest.tmpl.xml file and rebuild the project.

To do this, you need to go to the project folder, /home/<USER>/<APP>/.buildozer/android/platform/python-for-android/pythonforandroid/bootstraps/sdl2/build/templates - for example, and find there AndroidManifest.tmpl.xml and you can just copy the code from my pull request or just add the desired argument as I said above

Related