Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented SQLite parser plugin for android's turbo.db database #4880

Merged
merged 3 commits into from May 6, 2024

Conversation

rick-slin
Copy link
Contributor

@rick-slin rick-slin commented May 1, 2024

One line description of pull request

Implemented SQLite parser plugin for android's turbo.db database

Description:

The turbo.db database from Android devices logs the battery level for the device over time.

Notes:

All contributions to Plaso undergo code review.
This makes sure that the code has appropriate test coverage and conforms to the
Plaso style guide.

One of the maintainers will examine your code, and may request changes. Check off the items below in
order, and then a maintainer will review your code.

Checklist:

  • Automated checks (GitHub Actions, AppVeyor) pass
  • No new new dependencies are required or l2tdevtools has been updated
  • Reviewer assigned

@joachimmetz joachimmetz self-requested a review May 2, 2024 04:13
@joachimmetz joachimmetz self-assigned this May 2, 2024
@joachimmetz
Copy link
Member

Thanks for the PR, I'll take a look as time permits.

@joachimmetz
Copy link
Member

rebased with upstream for failing CI tests

Copy link

codecov bot commented May 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.11%. Comparing base (32ae7ba) to head (e48bb21).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4880      +/-   ##
==========================================
+ Coverage   85.10%   85.11%   +0.01%     
==========================================
  Files         428      429       +1     
  Lines       38836    38865      +29     
==========================================
+ Hits        33051    33080      +29     
  Misses       5785     5785              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

self.assertEqual(number_of_warnings, 0)

expected_event_values = {
'battery_level': 99,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style nit: 4 space continuation indentation.

@@ -12,6 +12,17 @@ short_source: 'LOG'
source: 'Android App Usage'
---
type: 'conditional'
data_type: 'android:event:battery'
message:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

given that both battery_saver and charge_type are enumerations, let's add their values here

@joachimmetz
Copy link
Member

@rick-slin a couple of small nits, I'll push some additional changes shortly to address them.

Copy link
Member

@joachimmetz joachimmetz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@joachimmetz joachimmetz merged commit abe91f5 into log2timeline:main May 6, 2024
10 checks passed
@joachimmetz joachimmetz added this to the 2024 May release milestone May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants