-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
request media_location #14247
request media_location #14247
Conversation
42e0bfd
to
45e091e
Compare
#14135 (comment) - Quote with my answer/question:
Is this possible? |
Some gallery apps themselves have settings for "safe sharing" which zeros the GPS information upon sharing. Xiaomi Poco gallery is one of them (needed to disable "share without location" for proper sharing to Nextcloud app), whereas Google Foto left GPS intact. |
/backport to stable-3.30 |
thanks @tobiasKaminsky In case any (not just a custom) auto upload folder pair is found: Users should be informed explicitly that past Auto uploads didn't run since 3.30.6 (probably some time in mid December) and future Auto uploads won't run unless the new permission is granted. Is there way or a plan to ensure that those missed Auto uploads are carried out after the Photo and video permission is granted? |
How about: Re-enable Disrupted Auto Uploads Please check manually for missing file uploads since mid-December.
To re-enable Auto Uploads for all other files:
Auto Uploads stopped working because Google rejected the necessary file permission in a previous app update. Nextcloud is working with Google to rectify the situation and restore full functionality. |
7879bc4
to
89df990
Compare
app/src/main/java/com/nextcloud/client/jobs/MediaFoldersDetectionWork.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java
Outdated
Show resolved
Hide resolved
app/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java
Outdated
Show resolved
Hide resolved
app/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java
Outdated
Show resolved
Hide resolved
app/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java
Outdated
Show resolved
Hide resolved
app/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java
Outdated
Show resolved
Hide resolved
app/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java
Outdated
Show resolved
Hide resolved
app/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java
Outdated
Show resolved
Hide resolved
@tobiasKaminsky I am unable to view the storage and notification permissions. Only the Google Play warnings are appearing. Also, Codacy Static Code Analysis fails. |
viewThemeUtils.androidx.themeNotificationCompatBuilder(context, notificationBuilder) | ||
|
||
val notificationManager = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager | ||
notificationManager.notify(notificationId, notificationBuilder.build()) |
Check failure
Code scanning / CodeQL
Use of implicit PendingIntents High
An implicit Intent is created
This autofix suggestion was applied.
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix AI 6 days ago
To fix the problem, we need to ensure that the Intent
used to create the PendingIntent
is explicit. This can be done by setting the component name explicitly in the Intent
. Additionally, we should verify that all other PendingIntent
creations in the code follow the same practice.
- Modify the
Intent
on line 210 to explicitly set the component name. - Ensure that the
PendingIntent
is created with theFLAG_IMMUTABLE
flag to prevent modification by other applications.
-
Copy modified lines R210-R211
@@ -209,3 +209,4 @@ | ||
val notificationId = randomIdGenerator.nextInt() | ||
val intent = Intent(context, FileDisplayActivity::class.java).apply { | ||
val intent = Intent().apply { | ||
setClassName(context, FileDisplayActivity::class.java.name) | ||
setAction(FileDisplayActivity.AUTO_UPLOAD_NOTIFICATION) |
3fc5660
to
f2307d5
Compare
f5f8584
to
4e34e75
Compare
app/src/main/java/com/owncloud/android/ui/fragment/OCFileListFragment.java
Show resolved
Hide resolved
app/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java
Outdated
Show resolved
Hide resolved
app/src/main/java/com/nextcloud/client/jobs/MediaFoldersDetectionWork.kt
Show resolved
Hide resolved
app/src/main/java/com/nextcloud/client/jobs/MediaFoldersDetectionWork.kt
Outdated
Show resolved
Hide resolved
2957d11
to
15e5511
Compare
@tobiasKaminsky How can you suppress this or maybe reduce the condition count? |
Signed-off-by: tobiasKaminsky <[email protected]> Signed-off-by: alperozturk <[email protected]>
Signed-off-by: tobiasKaminsky <[email protected]> Signed-off-by: alperozturk <[email protected]>
Signed-off-by: tobiasKaminsky <[email protected]> Signed-off-by: alperozturk <[email protected]>
Signed-off-by: tobiasKaminsky <[email protected]> Signed-off-by: alperozturk <[email protected]>
Signed-off-by: tobiasKaminsky <[email protected]> Signed-off-by: alperozturk <[email protected]>
Signed-off-by: github-actions <[email protected]> Signed-off-by: alperozturk <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Signed-off-by: Tobias Kaminsky <[email protected]> Signed-off-by: alperozturk <[email protected]>
…ationPermission when user pressed the close button Signed-off-by: alperozturk <[email protected]>
Co-authored-by: Tom <[email protected]> Signed-off-by: Tobias Kaminsky <[email protected]> Signed-off-by: alperozturk <[email protected]>
Signed-off-by: tobiasKaminsky <[email protected]> Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
15e5511
to
12b3fff
Compare
APK file: https://www.kaminsky.me/nc-dev/android-artifacts/14247.apk |
Part of #14135 (comment)