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

Issue App crashing on Opening in Android Oreo 8.1 #1356 #1369

Merged
merged 3 commits into from
Oct 14, 2018

Conversation

Vanethos
Copy link
Contributor

@Vanethos Vanethos commented Oct 13, 2018

Fixes #1356

After reading through some articles, I have found out that using strict policy on certain devices will cause a DiskReadViolation that may not be related to the app's code, but due to an external library or each hardware maker's specific software.

By outting " .permitDiskReads()" we can avert this situation. In the comment there is a link to an article where this is explained in detail.

Checklist:

  • I have checked for PMD and check-style issues
  • I have read the Contribution & Best practices Guide and my PR follows them.
  • My branch is up-to-date with the Upstream development branch.

Changes: [Add here what changes were made in this issue and if possible provide links.]

Screenshots for the change:

After reading through some articles, I have found out that using strict policy on certain devices will cause a DiskReadViolation that may not be related to the app's code, but due to an external library or each hardware maker's specific software.

By outting " .permitDiskReads()" we can avert this situation. In the comment there is a link to an article where this is explained in detail.
@codecov
Copy link

codecov bot commented Oct 13, 2018

Codecov Report

Merging #1369 into development will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@              Coverage Diff               @@
##             development    #1369   +/-   ##
==============================================
  Coverage          24.53%   24.53%           
  Complexity           757      757           
==============================================
  Files                237      237           
  Lines               8629     8629           
  Branches             349      349           
==============================================
  Hits                2117     2117           
  Misses              6429     6429           
  Partials              83       83

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5c152b6...7336f0b. Read the comment docs.

@iamareebjamal
Copy link
Member

Thank you for the PR. Please follow the PR template and mention the issue number in the fixes section and also list the changes performed

@iamareebjamal
Copy link
Member

Also, please only permit the disk reads for Oreo and above

@Vanethos
Copy link
Contributor Author

@iamareebjamal
I am deeply sorry, since I am new to the open-source community, I didn't read the correct guidelines.

I am going to fix this and send another PR, thanks!

…asia#1369

Ensuring that the strict mode policy for reading is disabled only for versions above Android 8

This wants to resolve fossasia#1369
@iamareebjamal
Copy link
Member

No need for sending another PR, you can edit this one

@Vanethos
Copy link
Contributor Author

I think I did that just now!

By pulling a commit it will update this PR, correct? (sorry for the noob questions..)

.detectAll()
.penaltyDeath();

if (android.os.Build.VERSION.SDK_INT > Build.VERSION_CODES.O) {
Copy link
Member

Choose a reason for hiding this comment

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

This should be >=

And why fully qualified class name for Build?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are correct, my mistake, on it.

@iamareebjamal
Copy link
Member

Great, now please update the PR description following the template

@Vanethos
Copy link
Contributor Author

Will do!

@Vanethos
Copy link
Contributor Author

From what I read, I had to update the description to have the "resolve" keyword and check the correct checkboxes, right?

@iamareebjamal
Copy link
Member

To quote the PR template:

Fixes #[Add issue number here. If you do not solve the issue entirely, please change the message e.g. "First steps for issues #IssueNumber]

@Vanethos
Copy link
Contributor Author

Changed! Sorry for all the inconvenience

@iamareebjamal iamareebjamal merged commit 2dd7008 into fossasia:development Oct 14, 2018
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.

3 participants