Fixed notificationHistory,deviceHealthServices_Battery,keepNotes,googleMesssages,FacebookMessenger that failed due to inability adjusting to different Android versions. #638
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Fixed multiple artifacts failure due to inability adjusting to different Android versions and undefined variables.
Changes Made
1. notificationHistory.py
continuestatementpackage_mapvariable undefined causing NameErrorpackage_mapfrom protobuf string_pool2. deviceHealthServices_Battery.py (Turbo Battery & Bluetooth)
time_offsetvariable undefined causing NameError'UTC'string literal (consistent with ALEAPP v2 architecture)3. keepNotes.py
text_search_note_content_contentcausing crashtree_entity.text(should belist_item.text)HasField()check and dynamic query buildinglist_item.text4. googleMessages.py
file_size_bytesandlocal_cache_pathin older DB versionsPRAGMA table_infovalidation5. FacebookMessenger.py
snippetand reactions in different Facebook Messenger DB versionsPRAGMA table_infoformessagesandmessage_reactionstablesTechnical Approach
All fixes follow a consistent pattern:
PRAGMA table_info(table_name)to check available columnsTesting
Impact
Files Changed
scripts/artifacts/notificationHistory.pyscripts/artifacts/deviceHealthServices_Battery.pyscripts/artifacts/keepNotes.pyscripts/artifacts/googleMessages.pyscripts/artifacts/FacebookMessenger.py