Not enough rights in Manifest #6

Open
opened 3 years ago by LEdoian · 0 comments
Owner

File based player config can only be loaded from Android/data/cz....y directory, else crash:

FATAL EXCEPTION: main
Process: cz.ledoian.android.quickplay, PID: 13001
Theme: themes:{}
android.runtime.JavaProxyThrowable: System.UnauthorizedAccessException: Access to the path "/storage/emulated/0/znelky.ini" is denied.
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x001b7] in <02baaf274db845929146c6c347b6e8cc>:0 
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options) [0x00000] in <02baaf274db845929146c6c347b6e8cc>:0 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions)
  at System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding, System.Boolean detectEncodingFromByteOrderMarks, System.Int32 bufferSize) [0x00055] in <02baaf274db845929146c6c347b6e8cc>:0 
  at System.IO.StreamReader..ctor (System.String path, System.Boolean detectEncodingFromByteOrderMarks) [0x00007] in <02baaf274db845929146c6c347b6e8cc>:0 
  at System.IO.StreamReader..ctor (System.String path) [0x00000] in <02baaf274db845929146c6c347b6e8cc>:0 
  at (wrapper remoting-invoke-with-check) System.IO.StreamReader..ctor(string)
  at QuickPlay.AppConfiguration.GetPlayerConfig () [0x00074] in <6c0c537fc155466ba0ca64611a4a69a6>:0 
  at QuickPlay.MainActivity.OnCreate (Android.OS.Bundle savedInstanceState) [0x00084] in <6c0c537fc155466ba0ca64611a4a69a6>:0 
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) [0x00000] in <02baaf274db845929146c6c347b6e8cc>:0 
  at Android.App.SyncContext+<>c__DisplayClass2_0.<Post>b__0 () [0x00000] in <9aacb91c75eb4de0b457052581b42c4c>:0 
  at Java.Lang.Thread+RunnableImplementor.Run () [0x00008] in <9aacb91c75eb4de0b457052581b42c4c>:0 
  at Java.Lang.IRunnableInvoker.n_Run (System.IntPtr jnienv, System.IntPtr native__this) [0x00008] in <9aacb91c75eb4de0b457052581b42c4c>:0 
  at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.7(intptr,intptr)
	at mono.java.lang.RunnableImplementor.n_run(Native Method)
	at mono.java.lang.RunnableImplementor.run(Unknown Source)
	at android.os.Handler.handleCallback(Handler.java:739)
	at android.os.Handler.dispatchMessage(Handler.java:95)
	at android.os.Looper.loop(Looper.java:148)
	at android.app.ActivityThread.main(ActivityThread.java:5461)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

Edit: formatting

File based player config can only be loaded from Android/data/cz....y directory, else crash: ``` FATAL EXCEPTION: main Process: cz.ledoian.android.quickplay, PID: 13001 Theme: themes:{} android.runtime.JavaProxyThrowable: System.UnauthorizedAccessException: Access to the path "/storage/emulated/0/znelky.ini" is denied. at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x001b7] in <02baaf274db845929146c6c347b6e8cc>:0 at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options) [0x00000] in <02baaf274db845929146c6c347b6e8cc>:0 at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions) at System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding, System.Boolean detectEncodingFromByteOrderMarks, System.Int32 bufferSize) [0x00055] in <02baaf274db845929146c6c347b6e8cc>:0 at System.IO.StreamReader..ctor (System.String path, System.Boolean detectEncodingFromByteOrderMarks) [0x00007] in <02baaf274db845929146c6c347b6e8cc>:0 at System.IO.StreamReader..ctor (System.String path) [0x00000] in <02baaf274db845929146c6c347b6e8cc>:0 at (wrapper remoting-invoke-with-check) System.IO.StreamReader..ctor(string) at QuickPlay.AppConfiguration.GetPlayerConfig () [0x00074] in <6c0c537fc155466ba0ca64611a4a69a6>:0 at QuickPlay.MainActivity.OnCreate (Android.OS.Bundle savedInstanceState) [0x00084] in <6c0c537fc155466ba0ca64611a4a69a6>:0 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) [0x00000] in <02baaf274db845929146c6c347b6e8cc>:0 at Android.App.SyncContext+<>c__DisplayClass2_0.<Post>b__0 () [0x00000] in <9aacb91c75eb4de0b457052581b42c4c>:0 at Java.Lang.Thread+RunnableImplementor.Run () [0x00008] in <9aacb91c75eb4de0b457052581b42c4c>:0 at Java.Lang.IRunnableInvoker.n_Run (System.IntPtr jnienv, System.IntPtr native__this) [0x00008] in <9aacb91c75eb4de0b457052581b42c4c>:0 at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.7(intptr,intptr) at mono.java.lang.RunnableImplementor.n_run(Native Method) at mono.java.lang.RunnableImplementor.run(Unknown Source) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5461) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) ``` Edit: formatting
LEdoian added the
bug
label 3 years ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Reference: LEdoian/QuickPlay#6
Loading…
There is no content yet.