Qeedji TAB10s Developer'S Manual Download Page 5

5

1.2  

APK Development

Prequisite

The so ware developer already knows how to develop Android APK and generate or debug APK with Android Studio.

AOSP Standard API

The standard API of AOSP 9.10.10 is based on the AOSP SDK 28.

The AOSP 9.10.10 for Qeedji embeds Chromium Web engine 83.
The 

getDeviceId

 method of the 

TelephonyManager

 class allows to get the device iden fica on UUID value.

The 

getSerial

 method of the 

Build

 class allows to get the raw PSN.

The 

BASE_OS

 sta c string of the 

Build.VERSION

 class allows to get the so ware version.

Q eedji System Java API

The 

 Qeedji 

 github is hos ng the 

tech-qeedji-system-lib-classes.jar

 Java library.

The 

tech-qeedji-system-lib-classes.jar

 Java library exposes an API for specific features.

   public class SurroundLight { 

       public static final int OFF = 0; 

       public static final int RED = 1; 

       public static final int GREEN = 2; 

       public static final int ORANGE = 3; 

       public SurroundLight(); 

       public void setColor(int color); 

       public int getColor(); 

   } 

   public class Rfid125KHz { 

       public Rfid125KHz(Context c); 

       public void setEnabled(boolean value); 

   } 

   public class DipSwitch { 

       public DipSwitch(Context c); 

       public boolean camera(); 

       public boolean microphone(); 

   } 

   public class SharedPreferenceAPI { 

       public String getPreferenceAuthority(); 

       public Object[][] initPreferences(); 

   } 

Q eedji System Javascript API

The 

 Qeedji 

 github is hos ng the 

tech-qeedji-host-webview.aar

 Android library.

The 

tech-qeedji-host-webview.aar

 Android library exposes an Javascript API for specific func onali es in a 

WebView

.

The 

tech-qeedji-host-webview.aar

 Android library embeds the 

tech-qeedji-system-lib-classes.jar

 library.

   String Host.Bluetooth().getHardwareAddress(); 

   String Host.Device().getModel(); 

   String Host.Device().getManufacturer(); 

   String Host.Device().getSerial(); 

   String Host.Device().getPsn(); 

   String Host.Device().getSoftwareVersion(); 

   String Host.Device().getDeviceName(); 

   String Host.Device().getUUID(); 

   String Host.Device().getHostname(); 

   String Host.Device().getMacId(); 

   String Host.Device().getField1(); 

   String Host.Device().getField2(); 

   String Host.Device().getField3(); 

   String Host.Device().getField4(); 

   String Host.Device().getField5(); 

   boolean Host.DipSwitch().getCamera(); 

   boolean Host.DipSwitch().getMicrophone(); 

   int Host.NetworkInterfaces().length(); 

   NetworkInterface Host.NetworkInterfaces().get(int index); 

   String NetworkInterface.getName(); 

   String NetworkInterface.getHardwareAddress(); 

   boolean NetworkInterface.isUp(); 

   void Host.NFC().start(); 

   void Host.NFC().stop(); 

   // parameter type is unused 

   callback : void onHostNFCReading(String type, String id); 

   void Host.PowerManager().goToSleep(); 

   void Host.PowerManager().wakeUp(); 

   void Host.PowerManager().reboot(); 

   void Host.ProximitySensor().start(); 

   void Host.ProximitySensor().stop(); 

   callback : void onHostProximitySensorReading(float distance); 

   void Host.Rfid125KHz().start(); 

   void Host.Rfid125KHz().stop(); 

   int Host.SurroundLight().OFF(); 

   int Host.SurroundLight().RED(); 

   int Host.SurroundLight().GREEN(); 

   int Host.SurroundLight().ORANGE(); 

   void Host.SurroundLight().setColor(int color); 

   int Host.SurroundLight().getColor(); 

   void Host.SystemButton().start(); 

   void Host.SystemButton().stop(); 

   callback : void onHostSystemButtonReading(int count); 

Summary of Contents for TAB10s

Page 1: ...Developer manual 001M AOSP 9 10 10 TAB10s 8 30...

Page 2: ...lla on is of the utmost importance Incorrect ng and or installa on may result in personal injury or loss Qeedji disclaims all liability of whatever kind if the product is assembled ed and or installed...

Page 3: ...4 1 1 4 2 1 4 3 1 5 1 6 2 1 Table of content Part I Introduc on APK Development System APK signing Qeedji System service Installa on by USB Installa on by WebDAV AOSP device mode Qeedji preferences F...

Page 4: ...i TAB10s and who already have Android APK development skills It is recommended to read rst the TAB1 0 s user manual Demo Package Content Items Descrip on Q uan ty TAB10s Qeedji tablet embedding AOSP 1...

Page 5: ...d library exposes an Javascript API for speci c func onali es in a WebView The tech qeedji host webview aar Android library embeds the tech qeedji system lib classes jar library String Host Bluetooth...

Page 6: ...der in its manifest xml version 1 0 encoding utf 8 manifest xmlns android http schemas android com apk res android package tech qeedji test1 application android icon mipmap ic_launcher android label s...

Page 7: ...d surround_light APK allows to set the surround light color and state with steady green steady orange steady red o This APK uses the SurroundLight class described in the speci c API device_info APK di...

Page 8: ...load an URL This APK uses the WebView API and the tech qeedji host webview aar Android library for Qeedji The RECEIVE_BOOT_COMPLETED and INTERNET permissions are required This APK has system privileg...

Page 9: ...g to the TAB10s USB C connector Then wait for the TAB10s is boo ng up Go in the Settings applica on and con gure the WLAN LAN debug Prerequisite have a suitable Ethernet to USB USB C or POGO type conn...

Page 10: ...private key and some applicant iden ca on used to digitally sign the request Thanks to match the lename pa ern by replacing contoso by your own organiza on name For example openssl req new key contoso...

Page 11: ...app_name android roundIcon mipmap ic_launcher_round android supportsRtl true android theme style AppTheme activity android name MainActivity intent filter action android name android intent action MA...

Page 12: ...install one or more APK by WebDAV server by USB storage device inser on update the AOSP rmware by WebDAV server by USB storage device inser on con gure the product with a Javascript le by WebDAV serv...

Page 13: ...13 1 4 1 Installa on by USB Refer to the TAB10s user manual to install with an USB storage device a new APK apk a new AOSP rmware zip or fqs a new con gura on script js...

Page 14: ...pk a new AOSP rmware zip or fqs a new con gura on script js Data To put user data with a WebDAV client drop them in the data directory of the WebDAV server On the le system of the TAB10s the data dire...

Page 15: ...he default AOSP device mode is native If the persist sys device_mode system property value is kiosk the SystemUI service inhibits the system bars and the Launcher3 service hides the AllApps view and t...

Page 16: ...creden al ID for the webdav pro l persist sys webserver webuiappli credential String RW default De ne the creden al ID for the webuiappli pro l persist sys webserver webuiadmin credential String RW de...

Page 17: ...ith the speci c 000000000000 js con gura on script tech qeedji url_launcher prefs xml Type R W Default value V alues Descrip on start_after_boot_completed Boolean RW true true false When the preferenc...

Page 18: ...uc on for the rst me there is several ways either drop your APK in the apps directory of the WebDAV server or if the TAB10s device is installed on a EX C ETH POGO adapter put your apk les at the root...

Page 19: ...he Qeedji Website for FAQ applica on notes and so ware downloads h ps www qeedji tech Qeedji FRANCE INNES SA 5A rue Pierre Joseph Colin 35700 RENNES Tel 33 0 2 23 20 01 62 Fax 33 0 2 23 20 22 59 Qeedj...

Reviews: