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

Cannot save events or snapshots, permission not granted #1127

Open
jmynheir opened this issue Jan 19, 2024 · 2 comments
Open

Cannot save events or snapshots, permission not granted #1127

jmynheir opened this issue Jan 19, 2024 · 2 comments

Comments

@jmynheir
Copy link

jmynheir commented Jan 19, 2024

The version of zmNinja you are reporting:

1.7.005 

The version and OS of ZoneMinder you are using:

Fedora 39 server, Zoneminder 1.36.33

Platform zmNinja is running on

Android 13(LineageOS 20), Pixel 7 Pro,  aarch64

Did you build the package from source code yourself?
No

Describe the bug
Unable to save events, or snapshots, receive "Error - could not save"

Debug logs


Jan 19, 2024 01:50:23:731 AM INFO setting size
Jan 19, 2024 01:50:23:731 AM INFO Device is ready
Jan 19, 2024 01:50:23:729 AM INFO ******* app .run device ready
Jan 19, 2024 01:49:41:546 AM INFO EventModalCtrl: paused
Jan 19, 2024 01:49:41:542 AM INFO EventModalCtrl: paused
Jan 19, 2024 01:48:12:214 AM INFO Sharing failed with message: Couldn't find meta-data for provider with authority com.zoneminder.zmNinja.sharing.provider
Jan 19, 2024 01:48:12:198 AM INFO file location:file:///data/user/0/com.zoneminder.zmNinja/files/zmNinjaLog.txt
Jan 19, 2024 01:47:53:934 AM DEBUG Cancelling page reload timer
Jan 19, 2024 01:47:53:921 AM DEBUG removing montage temporary filter
Jan 19, 2024 01:47:47:534 AM DEBUG Permission not granted
Jan 19, 2024 01:47:47:489 AM INFO EventModalCtrl: paused
Jan 19, 2024 01:47:47:489 AM INFO EventModalCtrl: paused
Jan 19, 2024 01:47:47:489 AM DEBUG EventCtrl Pause:Deregistering broadcast handles
Jan 19, 2024 01:47:47:488 AM DEBUG EventCtrl:onpause called
Jan 19, 2024 01:47:47:472 AM DEBUG Trying to save image to album: zmNinja
Jan 19, 2024 01:47:47:471 AM INFO >>saveEvent: File path to grab is https://[OMITTED]:30003/zm/index.php?view=view_video&mode=mpeg&format=h264&eid=38780&token=<removed>
Jan 19, 2024 01:47:47:471 AM DEBUG -->Going to try and download https://[OMITTED]:30003/zm/index.php?view=view_video&mode=mpeg&format=h264&eid=38780&token=<removed>
Jan 19, 2024 01:47:47:471 AM DEBUG saveEvent  in EventModalCtrl called with video and 38780
Jan 19, 2024 01:47:47:417 AM INFO EventModalCtrl: paused
Jan 19, 2024 01:47:47:417 AM DEBUG Modal removed - killing connkey
Jan 19, 2024 01:47:47:417 AM DEBUG Setting up carousel watchers
Jan 19, 2024 01:47:47:416 AM DEBUG Rebinding watchers of eventCtrl
Jan 19, 2024 01:47:47:416 AM INFO EventModalCtrl: paused
Jan 19, 2024 01:47:47:416 AM DEBUG Modal removed - killing connkey
Jan 19, 2024 01:47:47:415 AM DEBUG Setting up carousel watchers
Jan 19, 2024 01:47:47:415 AM DEBUG Rebinding watchers of eventCtrl
Jan 19, 2024 01:47:47:415 AM DEBUG EventCtrl Pause:Deregistering broadcast handles
Jan 19, 2024 01:47:47:415 AM DEBUG EventCtrl:onpause called
Jan 19, 2024 01:47:47:380 AM DEBUG EventModalCtrl: Permission checking for write

Screenshots
Screenshot_20240119-015823_zmNinja

Additional context
Saving events and snapshots works in version 1.6.009. I noticed that when installing version 1.7.x that it doesn't ask for any permissions except for notifications

webgeek1234 added a commit to webgeek1234/zmNinja that referenced this issue Feb 9, 2024
@dukei
Copy link

dukei commented Nov 4, 2024

@webgeek1234 , why don't you make pull request with your commit to ZoneMinder/zmNinja?

@webgeek1234
Copy link
Contributor

@webgeek1234 , why don't you make pull request with your commit to ZoneMinder/zmNinja?

Because it doesn't work. Newer android versions require implementing scoped storage to access folders outside of the apps private directory. And that's significantly more complicated.

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

No branches or pull requests

3 participants