Fix bugs and add AOSP Android.bp
- gen-db.py: fix DB output path (assets/ not res/raw/) - DeviceName: use Build.DEVICE for DB lookup, Build.PRODUCT for AltDeviceNames - DeviceName: fix capitalize() for API 36 (replaceFirstChar) - DBHelper: add 24h rate-limit on update checks via SharedPreferences - DBHelper: make DB download atomic (write to .tmp then rename) - DeviceInfo: wrap getCurrentDeviceInfo() in withContext(Dispatchers.IO) - DeviceInfo: add 30-day SharedPreferences cache for device image URLs - AltDeviceNames: rewrite with Entry class + byModel index for O(1) lookup - Android.bp: add android_library module for AOSP source build
This commit is contained in:
@@ -7,7 +7,7 @@ from io import StringIO
|
||||
|
||||
# Constants
|
||||
CSV_URL = "https://storage.googleapis.com/play_public/supported_devices.csv"
|
||||
DB_PATH = "library/src/main/res/raw/android-devices.db"
|
||||
DB_PATH = "library/src/main/assets/android_devices.db"
|
||||
ZIP_PATH = "database/android-devices.zip"
|
||||
|
||||
# Ensure output directory exists
|
||||
|
||||
Reference in New Issue
Block a user