Escolar Documentos
Profissional Documentos
Cultura Documentos
27 November 2018
Lecture 1
Sources
• Programming Android 1, 3
• developer.android.com
• Google directly manages Nexus and Pixel devices, so they have the “purest” OS
with least custom additions
Link: https://www.statista.com/statistics/271774/share-of-android-platforms-on-mobile-devices-with-android-os/
Link: https://developer.android.com/about/dashboards/
• Some Android OS versions have security bugs which were fixed in later versions
– No central update service, so old phones stay old
– Some old phones can’t handle newer OS versions
– People root phones to install newer Android OS version
• Apps written for a particular API level should work on any phone at that API level
– Rooted device with unofficial OS version ?
• Since 5.0, App’s Java source code compiled to Dalvik Byte Code (dex) for APK
files
– Akin to Java byte code, but not the same
– Android OS uses just-in-time compilation to convert dex to binary instructions
– On installation, compiled to native Android Run Time (ART) code
– After installation, runs native code
• Older versions run DEX inside Dalvik Virtual Machine (DVM) instances
Link: https://www.idc.com/promo/smartphone-market-share/vendor
– Older version was based on Eclipse / Android Development Toolkit
– Can also develop using Visual Studio and Xamarin
App source code is compiled into dex, digitally signed, then stored in an APK file
• Compatible with ZIP, fixed structure with file names and directories
• Device’s Application Installer parses APK and installs it
• Stored on device after install in a hidden directory
• Android Run Time (ART) compiles dex into natively executable files to run
Link: https://www.idc.com/promo/smartphone-market-share/vendor
27 Nov 2018 SE 435: Development in the Android Environment 15
Trend: Cross Platform
• Build in system-
specific language, C#,
JavaScript, etc.
• Compile to Android or
iOS
Link: https://www.theverge.com/2018/10/2/17929908/microsoft-app-mirroring-android-windows-10-desktop
1. Enforce download fees: App store charges and passes along some
– Some thieves copy real apps, repackage them, distribute themselves
– Some copy for money
– Some add malware functionality before
Link: https://www.theverge.com/2018/7/18/17580694/google-android-eu-fine-antitrust
Link: https://www.theverge.com/2018/10/16/17984074/google-eu-android-licensing-bundle-chrome-search