Menu
e-lo
  • Home
    • Tech
    • Inspiration and about
  • Database
    • T-SQL
    • SQL Server quick
    • SQL server docs
    • MySql quick sheet
    • Postgre
    • InfluxDB
  • Programming
    • Automating the boring stuff
    • Python 101
    • Python Docs
    • Python Logging
    • cSharp Overview
    • Powershell Latest
    • Powershell 4 lang ref
  • Linux
    • Top CMD’s
    • Useful CMD Linux
    • ss64 Linux
    • Ubuntu
    • 30 things Ubuntu 18.04
  • Azure
    • AZ-104-MS Azure Administrator 101 quick ref
    • ARM Docs
    • ARM Tutorial
    • Azure PS ref
    • Azure CLI ref
    • Deployment scripts (intern/extern)
    • ARM Quickstart
    • ARM templates 4h
  • AzAdm
    • AD 101
    • Governance and Compliance 102
    • Administration 103
    • Virtual Networking 104
    • Storage 107 (With table (NoSQL and more))
    • Virtual Machines 108
    • Azure Virtual Machines 101
    • Monitor VM (and market)
  • Zen
    • Not thinking about anything is Zen
e-lo

Mobile App Development With Kivy & Python 3 (part 2 android release + sign and zipalign, publish)

Posted on August 18, 2019August 26, 2019 by espenk

So, folder for kivy project is zenseeker.

Buildozer init (get spec and modify it)

buildozer -v android debug

Move the apk to the phone and debug it if needed with adb logcat (press install and check the logs)

It works? Good, then get ready for keytool (save the password and alias) and signing with jarsigner.

But read this first, Publish your app:

https://developer.android.com/studio/publish

mkdir ~/keystores/

keytool -genkey -v -keystore ~/keystores/.keystore -alias -keyalg RSA -keysize 2048 -validity 10000

So then we have a keystore, cool

Next up

Open a cmd, navigate to project where the buildozer.spec is

buildozer -v android release (not not use the EXPORT keys from keystore)

This will create and usigned.apk (zenseeker-release-unsigned.apk)


Move that apk (test before signing) to the phone and install it, it works? Great, next

Cd to that folder

espen@espen-UN65U:~/project/learnkivy/learn/zenseeker/.buildozer/android/platform/build/dists/zenseeker/build/outputs/apk/release

Then run jarsigner on that file

jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ~/keystores/zen_nutshell.keystore zenseeker-release-unsigned.apk zen_nutshell_alias

Then verify the jar

jarsigner -verify zenseeker-release-unsigned.apk

jarsigner -verify -verbose -certs zenseeker-release-unsigned.apk

Move the zenseeker-release-unsigned.apk to the phone and test it, if it works, then it is success.

Then run zipalign from android (check where it is)

espen@espen-UN65U:~/.buildozer/android/platform/android-sdk/build-tools/29.0.2

espen@espen-UN65U:~/.buildozer/android/platform/android-sdk/build-tools/29.0.2$ zipalign -v 4 ~/project/learnkivy/learn/zenseeker/.buildozer/android/platform/build/dists/zenseeker/build/outputs/apk/release/zenseeker-release-unsigned.apk ~/Desktop/zenseeker.apk

Move the new zenseeker.apk to the phone and install it (it is now optimized, so should load quick), if it works, then ready for play store…..


RSS Azure

  • Azure and HITRUST publish shared responsibility matrix January 14, 2021

RSS Python

  • PEP 649: Deferred Evaluation Of Annotations Using Descriptors January 11, 2021

Cloud

ARM (7) azure (22) cmd (1) Django (4) Docker (1) e-lo (2) Flask (2) Github (9) Grafana (2) Information (1) Information Retrieval (11) JAVA (1) kivy (2) Kotlin (4) linux (11) mobile (2) Natural Language Prossesing (NLP) (2) Net.Core (1) Networking and Security (2) OPC (2) PEP8 (1) Philosophy (3) Python (41) Python Networking and Security (2) Reason (2) RMQ (2) Solr (11) Sql (10) VSC (1) Warframe (2) WMVARE (4) Zabbix (7)

Recent Posts

  • 2 TODO MS ARM Template 4h
  • TODO Cryptography with Python – Caesar Cipher
  • 3 TODO Udemy AZ-104 Microsoft Azure Administrator Exam Certification (Scott Duffy)
  • 1 TODO ARM Lab 104 MS (Deployment and more)
  • TODO Prerequisites for Azure administrators 101

Archives

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
©2021 e-lo | Powered by WordPress & Superb Themes