Skip to content

Latest commit

 

History

History
171 lines (137 loc) · 8.17 KB

Android.md

File metadata and controls

171 lines (137 loc) · 8.17 KB

This stores the notes about the Android platform.

adb tips

./adb push /yourdir/files /sdcard/Download
./adb install your.apk
./adb shell pm disable-user --user 0 com.oneplus.opbackup    
./adb shell pm enable com.oneplus.opbackup
./fastboot getvar current-slot 
./adb shell "pm list packages"  list the packages.

downgrade the oneplus version back to 10 from 11

curl https://oxygenos.oneplus.net/OnePlus6TOxygen_34.J.54_OTA_054_all_2105112238_downgrade_708a3306f3904ad4.zip adb push OnePlus6TOxygen_34.J.54_OTA_054_all_2105112238_downgrade_708a3306f3904ad4.zip /sdcard

See https://gist.github.com/Pulimet/5013acf2cd5b28e55036c82c91bd56d8

boot the device to bootloader mode.

./adb reboot bootloader

check is the devices locked or not

./fastboot oem device-info

to lock the bootloader

fastboot oem lock command 

sample device-info

(bootloader) Verity mode: true (bootloader) Device unlocked: false (bootloader) Device critical unlocked: false (bootloader) Charger screen enabled: true (bootloader) enable_dm_verity: true (bootloader) have_console: false (bootloader) selinux_type: SELINUX_TYPE_INVALID (bootloader) boot_mode: NORMAL_MODE (bootloader) kmemleak_detect: false (bootloader) force_training: 0 (bootloader) mount_tempfs: 0 (bootloader) op_abl_version: 0x31 (bootloader) cal_rebootcount: 0x31 OKAY [ 0.001s] Finished. Total time: 0.001s

android emulator

https://android.googlesource.com/platform/prebuilts/android-emulator/+/master/linux-x86_64/lib/advancedFeatures.ini

access data file and backup

https://stackoverflow.com/questions/13006315/how-to-access-data-data-folder-in-android-device https://stackoverflow.com/questions/18533567/how-to-extract-or-unpack-an-ab-file-android-backup-file

Android platform is based on Linux kernel, but it does not use glibc library due to GNU license issue. It uses the bionic C library instead of glibc library.

Notes on building AOSP

Android tools in Ubuntu

Android code search

Android development

Understanding build layer and other concepts.

Android logging

battery health

  • cat /sys/class/power_supply/battery/charge_full
  • cat /sys/class/power_supply/battery/battery_cycle
  • cat /sys/class/power_supply/bms/battery_health

double tap

apk related

building Marshmallow for Nexus S

Oneplus 6t related

Oneplus 6t

Oneplus 7

Asus zenfone 2 zoom

ASUS zenfone 4 max

camera related

Android on x86