Skip to content

Replace media scanner on newer Android versions#5969

Merged
tobiasKaminsky merged 4 commits into
masterfrom
mediaScanner
May 22, 2020
Merged

Replace media scanner on newer Android versions#5969
tobiasKaminsky merged 4 commits into
masterfrom
mediaScanner

Conversation

@tobiasKaminsky

@tobiasKaminsky tobiasKaminsky commented Apr 29, 2020

Copy link
Copy Markdown
Member

Signed-off-by: tobiasKaminsky tobias@kaminsky.me

Testing

Writing tests is very important. Please try to write some tests for your PR.
If you need help, please do not hesitate to ask in this PR for help.

unit tests
instrumented tests
UI tests

  • Tests written, or not not needed

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
@nextcloud-android-bot

Copy link
Copy Markdown
Collaborator

Unit test failed, but no output was generated. Maybe a preliminary stage failed.

@nextcloud-android-bot

Copy link
Copy Markdown
Collaborator

@elektrikfisch

Copy link
Copy Markdown

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/13722.apk

@tobiasKaminsky that APK is incredibly slow to download (~12 KB/s) and it eventually fails. I've tried a couple times. Could you please re-upload it to another location?

@elektrikfisch

Copy link
Copy Markdown

@tobiasKaminsky that APK is incredibly slow to download (~12 KB/s) and it eventually fails. I've tried a couple times. Could you please re-upload it to another location?

Disregard. I tried later and it downloaded fine.

@tobiasKaminsky tobiasKaminsky changed the title Test for #5039 Replace media scanner on newer Android versions May 8, 2020
@AndyXheli

Copy link
Copy Markdown

@tobiasKaminsky Hey buddy any updates on this? do you need someone to help test?

@tobiasKaminsky

Copy link
Copy Markdown
Member Author

Thanks for your offer, but currently there is no need for testing, as we found the cause of the problem.
One of the community is working on a real fix.
I will comment then here and then you can test it :-)

@skeletor-spills

Copy link
Copy Markdown

I'll test as well when a new build is available. Thanks Tobias.

Signed-off-by: Abdourahamane BOINAIDI <abdourahamane.boinaidi@infomaniak.com>
@nextcloud-android-bot

Copy link
Copy Markdown
Collaborator

@AndyXheli

AndyXheli commented May 19, 2020 via email

Copy link
Copy Markdown

@elektrikfisch

elektrikfisch commented May 19, 2020 via email

Copy link
Copy Markdown

Signed-off-by: Abdourahamane BOINAIDI <abdourahamane.boinaidi@infomaniak.com>
@nextcloud-android-bot

Copy link
Copy Markdown
Collaborator

@skeletor-spills

Copy link
Copy Markdown

Confirming that 14056.apk fixes the issue from #5039 on my OnePlus 7T OxygenOS 10.0.9.HD65AA Android 10 phone. Will also test the RC when it's out.

Thanks @sirambd for the push and fix.

@sirambd

sirambd commented May 19, 2020

Copy link
Copy Markdown
Member

I'm at work and only had a second to try this. I installed QA build. Manual upload was fine, no notification issues, but uploading with the option "Move file to folder" still does not keep the image in the gallery. -------- Original Message --------
On May 19, 2020, 08:08, axheli < @.> wrote: I download the QA and had it automatically upload and I manually uploaded files and photos and no issues. The ringtones notification are still there looks like the issue had been fixed Sent from Outlook Mobilehttps://aka.ms/blhgte ________________________________ From: nextcloud-android-bot @.> Sent: Tuesday, May 19, 2020 6:55:54 AM To: nextcloud/android @.> Cc: axheli @.>; Manual @.***> Subject: Re: [nextcloud/android] Replace media scanner on newer Android versions (#5969) APK file: https://www.kaminsky.me/nc-dev/android-artifacts/14055.apk [qrcode]https://camo.githubusercontent.com/410b7c4f2d30016c0158fff7f2a6c96d4327ae17/68747470733a2f2f7777772e6b616d696e736b792e6d652f6e632d6465762f616e64726f69642d6172746966616374732f31343035352e706e67 To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub<#5969#issuecomment-630770270>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOF3PGJPRZDI32HK5KBSQ73RSJXUVANCNFSM4MTZJ36A. — You are receiving this because you are subscribed to this thread. Reply to this email directly, [view it on GitHub][], or [unsubscribe][].![APEKEPQOCRWBLAJEL35YMUTRSJZDXA5CNFSM4MTZJ36KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEWMOCYQ.gif][]
[view it on GitHub]: #5969 (comment) [unsubscribe]: https://github.com/notifications/unsubscribe-auth/APEKEPRZ7RCRVUOX5YRLBP3RSJZDXANCNFSM4MTZJ36A [APEKEPQOCRWBLAJEL35YMUTRSJZDXA5CNFSM4MTZJ36KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEWMOCYQ.gif]: https://github.com/notifications/beacon/APEKEPQOCRWBLAJEL35YMUTRSJZDXA5CNFSM4MTZJ36KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEWMOCYQ.gif

@elektrikfisch you can retry now, push me if the problem persists

@AndyXheli

Copy link
Copy Markdown

Thank you very much @sirambd for pushing it!

Signed-off-by: Abdourahamane BOINAIDI <abdourahamane.boinaidi@infomaniak.com>
@nextcloud-android-bot

Copy link
Copy Markdown
Collaborator

@AndyXheli

Copy link
Copy Markdown

@sirambd Only issue i see it i have the option upload over wifi only and is keeps saying waiting on wifi and i do have it connected to wifi as well

@JorisBodin

Copy link
Copy Markdown
Member

@sirambd Only issue i see it i have the option upload over wifi only and is keeps saying waiting on wifi and i do have it connected to wifi as well

@axheli Please open another issue.
I think it happens if you already have this image in your drive.

@tobiasKaminsky

Copy link
Copy Markdown
Member Author

Wow @sirambd thank you very much for fixing this!
I tested it and it works fine for me.

@JorisBodin

Copy link
Copy Markdown
Member

@tobiasKaminsky we merge this ? :)

@nextcloud-android-bot

Copy link
Copy Markdown
Collaborator

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/14121.apk

qrcode

To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.

@nextcloud-android-bot

Copy link
Copy Markdown
Collaborator

Codacy

389

Lint

TypemasterPR
Warnings9595
Errors00

SpotBugs (new)

Warning TypeNumber
Bad practice Warnings27
Correctness Warnings64
Internationalization Warnings9
Malicious code vulnerability Warnings4
Multithreaded correctness Warnings9
Performance Warnings74
Security Warnings44
Dodgy code Warnings139
Total370

SpotBugs (master)

Warning TypeNumber
Bad practice Warnings27
Correctness Warnings64
Internationalization Warnings9
Malicious code vulnerability Warnings4
Multithreaded correctness Warnings9
Performance Warnings74
Security Warnings44
Dodgy code Warnings139
Total370

@nextcloud-android-bot

Copy link
Copy Markdown
Collaborator

@tobiasKaminsky
tobiasKaminsky merged commit eae71a3 into master May 22, 2020
@delete-merged-branch
delete-merged-branch Bot deleted the mediaScanner branch May 22, 2020 11:58
@AndyScherzinger AndyScherzinger added this to the Nextcloud App 3.13.0 milestone May 22, 2020
@AndyScherzinger

Copy link
Copy Markdown
Member

/backport to stable-3.12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ringtones disappear from sounds and tones

8 participants