https://github.com/cirosantilli/android-cheat
Dozens of minimal Android demo apps, each a example of one single Android API concept. Tested on Ubuntu 17.10 host, Android Studio 3, Android SDK 26, and an Android 6.0.1 device.
https://github.com/cirosantilli/android-cheat
android
Last synced: 5 months ago
JSON representation
Dozens of minimal Android demo apps, each a example of one single Android API concept. Tested on Ubuntu 17.10 host, Android Studio 3, Android SDK 26, and an Android 6.0.1 device.
- Host: GitHub
- URL: https://github.com/cirosantilli/android-cheat
- Owner: cirosantilli
- Created: 2016-01-19T22:17:38.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-01-25T15:36:45.000Z (over 8 years ago)
- Last Synced: 2025-06-05T07:10:06.253Z (about 1 year ago)
- Topics: android
- Language: C
- Homepage:
- Size: 875 KB
- Stars: 93
- Watchers: 6
- Forks: 36
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeView/.gitignore
- Security: security.md
Awesome Lists containing this project
README
# Android Cheat
Dozens of minimal Android demo apps, each a example of one single Android API concept. Tested on Ubuntu 17.10 host, Android Studio 3, Android SDK 26, and an Android 6.0.1 device.
1. [**Getting started**](getting-started.md)
1. [Examples](examples.md)
1. UI
1. [XMLLayout](XmlLayout/)
1. View
1. TextView
1. [TextViewNewlinew](TextViewNewlinew/)
1. [TextViewBold](TextViewBold/)
1. [TextViewHyperlink](TextViewHyperlink/)
1. [ScrollView](ScrollView/)
1. [ScrollingMovementMethod](ScrollingMovementMethod/)
1. [EditText](EditText/)
1. [EditText.getText](EditTextGetText/)
1. [Button](Button/)
1. [Checkbox](Checkbox/)
1. [RadioButton](RadioButton/)
1. [setTextColor](SetTextColor/)
1. [setBackgroundColor](SetBackgroundColor/)
1. [setLayoutParams](SetLayoutParams/)
1. [setLayoutParamsLinearLayout](SetLayoutParamsLinearLayout/)
1. ViewGroup
1. [RelativeLayout](RelativeLayout/)
1. [LinearLayout](LinearLayout/)
1. Media
1. [ImageView](ImageView/)
1. [Bitmap](Bitmap/)
1. [VideoView](VideoView/)
1. Screen
1. [Fullscreen](Fullscreen/)
1. [Portrait](Portrait/)
1. Activities
1. [TwoActivities](TwoActivities/)
1. [ActivityLifecycle](ActivityLifecycle/)
1. [ChangeView](ChangeView/)
1. Notifications
1. [Notification](Notification/)
1. [Toast](Toast/)
1. [AlertDialog](AlertDialog/)
1. [Fragment](Fragment/)
1. [BackgroundJobsTheory](background-jobs.md)
1. [Handler](Handler/)
1. [IntentService](IntentService/)
1. [IntentServiceTextView](IntentServiceTextView/)
1. [IntentServiceStartStop](IntentServiceStartStop/)
1. [AsyncTask](AsyncTask/)
1. [ServerSocket](ServerSocket/)
1. [Socket](Socket/)
1. [SocketAsyncTask](SocketAsyncTask/)
1. Hardware
1. [Camera](camera/)
1. [CameraOneShot](CameraOneShot/)
1. [CameraPreviewVideo](CameraPreviewVideo/)
1. [Location theory](location.md)
1.[Location](Location/)
1. [Env](Env/)
1. [Ndk](Ndk/)
1. [NdkSyslog](NdkSyslog/)
1. [NDKLog](NdkLog/)
1. [NDKLibc](NdkLibc/)
1. [NDKTwoFiles](NdkTwoFiles/)
1. Theory
1. [Root](root.md)
1. Development
1. [Build AOSP](build-aosp.md)
1. [build-aosp](build-aosp)
1. [build-aosp-hikey960](build-aosp-hikey960)
1. [Contribute to AOSP](contribute-to-aosp.md)
1. [Internals](internals.md)
1. [Device file hierarchy](device-file-hierarchy.md)
1. [Networking](networking.md)
1. [android command](android-command.md)
1. [adb](adb.md)
1. [Project file hierarchy](project-file-hierarchy.md)
1. [AndroidManifest.xml](android-manifest.md)
1. [ant](ant.md)
1. [Debugging](debugging.md)
1. [Gradle](gradle.md)
1. [Apps](apps.md)
1. [GAPPS](gapps.md)
1. [gmail](gmail.md)
1. [WhatsApp](whatsapp.md)
1. [SDK](sdk.md)
1. [aapt](aapt.md)
1. [Studio](studio.md)
1. [Emulator](emulator.md)
1. [AOSP](aosp.md)
1. [repo](repo.md)
1. [Desktop](desktop.md)
1. [POSIX](posix.md)
1. [Monitor app power consumption](monitor-app-power-consumption.md)
1. Mods
1. [CyanogenMod](cyanogenmod.md)
1. [AOKP](aokp.md)
1. [Google play](google-play.md)
1. [Open source](open-source.md)
1. [Trivia](trivia.md)
1. [GPU](gpu.md)
1. [Security](security.md)
1. [Close app](close-app.md)
1. [Fingerprint sensor](fingerprint-sensor.md)
## Chats
Mark all as read:
## Uninstallable apps
Some bloatware cannot be removed at all:
-
-
-
## Bibliography
- Android Authority
- https://www.youtube.com/channel/UCgyqtNWZmIxTx3b6OxTSALw
- https://en.wikipedia.org/wiki/XDA_Developers
- http://www.xda-developers.com/
## Small apps
Stay on top of other apps.
Sample application: take screenshot!
-
-
## Screenshot
On Xperia Z3, Power key + volume down.
## Icons
-
- only network symbols:
- 4G vs H+ vs H
- completely different WWAN standards: http://android.stackexchange.com/questions/56269/what-are-the-different-signal-indicators-avalable-on-the-notification-bar
## UI
### Status bar
Topmost bar on the screen, contains several icons like signal .
### Lock screen
What you see when you hit the power button.
### Lock screen widgets
Removed apparently in Android 5.
### Toast
## Notification history
-
## Notifications
### Transfer data to SD card notification
Disable:
- https://www.reddit.com/r/SonyXperia/comments/3101yj/how_do_i_disable_the_notification_transfer_data/
- https://talk.sonymobile.com/t5/Xperia-Z-ZL-ZR/Transfer-data-to-SD-card-notification/td-p/318761
### Application updated notification
Disable:
### New voicemail notification
Disable:
-
-
## Bloatware
Shitty software pre-installed by OEMs or carriers to get money from your personal information.
E.g., my Vivo (Brazilian carrier) + Sony Xperia Z3 has bloatware from both Vivo and Sony.
Apple forbids carriers from doing it it seems.
And on top of that, most bloatware cannot be uninstalled without rooting!!
### Skins
GUI changes made by OEMs or carriers to steal your data.
- Samsung:
- LG G UI
- HTC Sense UI
- Sony Xperia UI
### Stock device
No bloatware.
Near stock devices:
#### Google play edition
Certified near stock devices.
Died.
#### Google Nexus
No bloatware phones.
Strategy:
-
### QR code scan
No built-in apparently:
-
-
-
### Panoramic photo
Was installed by default on 5.1.1 Xperia Z3 as a "camera app".
Open the camera, and search for it.
### App version
Find:
- any way
- adb
## Linux file transfer
## Media transfer mode
## Mass storage mode
-
-
-
-
SSH method working: http://askubuntu.com/questions/189591/connecting-android-4ice-cream-sandwich-jelly-bean-kitkat-phone#comment1035980_222851
## App isolation
Each App runs under a different UID: So it just reuses Linux's security.
## HTML GUI
Android uses it's custom GUI API. Some day, maybe.
### APK
Packaging format for android apps.
#### Aligned vs unaligned
### AOKP
https://en.wikipedia.org/wiki/AOKP
http://android.stackexchange.com/questions/50491/what-is-the-difference-between-aosp-and-aokp
### ODEX
### Optimizing apps
### Dalvik cache
-
-
-
Replaced by ART in Android 5.
### ART
Successor of Dalvik.
No JIT, full AOT is done.
### x86
-
-
TODO: linked to the Intel partnership? Or that one is yet to be released?
### Java 8
Nope:
### libc
Bionic, Google-made.
### ROM
Read only memory.
Stores the OS.
Mounted under `/system`
If you root the device, you can change it, and make a custom Android however you like.
### USB debugging mode
TODO? What is that?
Enabled from Developer options
Disable the eternal notification:
### Tether
Requires root, but available on Google Store.
Carriers may require you to pay for that if you tether from their network instead of LAN, which is why Android disables it by default.
Root allows you to re-enable that.
### HBOOT
The Android bootloader?
-
## Smart lock
Unlock in some cases without a password.
On-body detection: Uses accelerometer.
Known WIFI not available it seems:
-
## Piracy
-
## Soft reset vs reboot
TODO?
-
-
Apparently soft rest is more superficial, and thus faster, but solves less problems.
## Sony Xperia
### Xperia Home
Reset home screen to device default:
Settings -> Apps -> All -> Xperia Home -> Clear data -> OK.
## Do not disturb
## Silent mode
## Blocking mode
TODO where is it?? How to turn it on?
## Linux run Android app natively
-
-
-
## Peripherals
- joystick root calibration method
## aar
## Android library project
## fugu
## Screen pinning
## Phone without battery
If you link USB power cables directly to the battery energy entry points, it works:
## Secret codes
Vary with Model, OEM and Carrier. TODO: are any built into the core?
## Hardware
## Enterprises
### Open Handset Alliance
## Hardware requirements
Memory:
-
-
## Native libraries available
TODO Which native libraries must be available on all Android systems?
OpenCL: mostly not:
-
-
-
## UART
## Serial
- via headphone jack!