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

Crash when attempting to share event #259

Closed
JeffHenson opened this issue Oct 15, 2017 · 3 comments
Closed

Crash when attempting to share event #259

JeffHenson opened this issue Oct 15, 2017 · 3 comments

Comments

@JeffHenson
Copy link

Phone: Nexus 5X
Android Version: 8.0.0
Build Number: OPR4.170623.009
Etar Build Version: 1.0.12 (installed from Google Play)

When clicking on the Share button with a calendar event open, the application crashes every time. The logcat output is below.

From this documentation, it appears the method Etar is using to share the ics file is not allowed on Android N+.

logcat output:

10-15 13:59:10.173  3054  3457 I ActivityManager: Start proc 30137:ws.xsoh.etar/u0a528 for activity ws.xsoh.etar/com.android.calendar.AllInOneActivity
10-15 13:59:10.225 30137 30137 D ExtensionsFactory: No custom extensions.
10-15 13:59:10.234 30137 30137 D ExtensionsFactory: AllInOneMenuExtensions not found in properties file.
10-15 13:59:10.280 30137 30137 I AppCompatViewInflater: app:theme is now deprecated. Please move to using android:theme instead.
10-15 13:59:10.368 30137 30156 D OpenGLRenderer: HWUI GL Pipeline
10-15 13:59:10.392 30137 30156 I Adreno  : QUALCOMM build                   : 7142022, Ib5823dd10c
10-15 13:59:10.392 30137 30156 I Adreno  : Build Date                       : 06/23/17
10-15 13:59:10.392 30137 30156 I Adreno  : OpenGL ES Shader Compiler Version: EV031.18.00.00
10-15 13:59:10.392 30137 30156 I Adreno  : Local Branch                     : O11A
10-15 13:59:10.392 30137 30156 I Adreno  : Remote Branch                    : 
10-15 13:59:10.392 30137 30156 I Adreno  : Remote Branch                    : 
10-15 13:59:10.392 30137 30156 I Adreno  : Reconstruct Branch               : 
10-15 13:59:10.393 30137 30156 I vndksupport: sphal namespace is not configured for this process. Loading /vendor/lib64/hw/gralloc.msm8992.so from the current namespace instead.
10-15 13:59:10.397 30137 30156 I Adreno  : PFP: 0x00000000, ME: 0x00000000
10-15 13:59:10.400 30137 30156 I OpenGLRenderer: Initialized EGL, version 1.4
10-15 13:59:10.401 30137 30156 D OpenGLRenderer: Swap behavior 2
10-15 13:59:10.525 30137 30156 I vndksupport: sphal namespace is not configured for this process. Loading /vendor/lib64/hw/gralloc.msm8992.so from the current namespace instead.
10-15 13:59:10.576 30137 30142 I zygote64: Do partial code cache collection, code=28KB, data=24KB
10-15 13:59:10.576 30137 30142 I zygote64: After code cache collection, code=26KB, data=23KB
10-15 13:59:10.576 30137 30142 I zygote64: Increasing code cache capacity to 128KB
10-15 13:59:27.969 30137 30142 I zygote64: Do partial code cache collection, code=60KB, data=46KB
10-15 13:59:27.969 30137 30142 I zygote64: After code cache collection, code=60KB, data=46KB
10-15 13:59:27.970 30137 30142 I zygote64: Increasing code cache capacity to 256KB
10-15 13:59:28.038 30137 30137 I WebViewFactory: Loading com.android.chrome version 61.0.3163.98 (code 316309852)
10-15 13:59:28.079 30137 30137 I cr_LibraryLoader: Time to load native libraries: 3 ms (timestamps 371-374)
10-15 13:59:28.084 30137 30137 I chromium: [INFO:library_loader_hooks.cc(136)] Chromium logging enabled: level = 0, default verbosity = 0
10-15 13:59:28.084 30137 30137 I cr_LibraryLoader: Expected native library version number "61.0.3163.98", actual native library version number "61.0.3163.98"
10-15 13:59:28.092 30137 30190 W cr_ChildProcLH: Create a new ChildConnectionAllocator with package name = com.android.chrome, sandboxed = true
10-15 13:59:28.103 30137 30137 I cr_BrowserStartup: Initializing chromium process, singleProcess=false
10-15 13:59:28.112 30137 30137 W ws.xsoh.etar: type=1400 audit(0.0:1243): avc: denied { read } for name="vmstat" dev="proc" ino=4026546034 scontext=u:r:untrusted_app_25:s0:c512,c768 tcontext=u:object_r:proc:s0 tclass=file permissive=0
10-15 13:59:28.291 30137 30156 D OpenGLRenderer: endAllActiveAnimators on 0x77c6254800 (AgendaListView) with handle 0x77c4cc4580
10-15 13:59:29.345 30137 30137 D AndroidRuntime: Shutting down VM
10-15 13:59:29.346 30137 30137 E AndroidRuntime: FATAL EXCEPTION: main
10-15 13:59:29.346 30137 30137 E AndroidRuntime: Process: ws.xsoh.etar, PID: 30137
10-15 13:59:29.346 30137 30137 E AndroidRuntime: android.os.FileUriExposedException: file:///storage/emulated/0/Android/data/ws.xsoh.etar/cache/Trash%20extra%20trash%20recycling%20and%20compost%20sign%20up%20only%204723852113141192110.ics exposed beyond app through ClipData.Item.getUri()
10-15 13:59:29.346 30137 30137 E AndroidRuntime: 	at android.os.StrictMode.onFileUriExposed(StrictMode.java:1958)
10-15 13:59:29.346 30137 30137 E AndroidRuntime: 	at android.net.Uri.checkFileUriExposed(Uri.java:2348)
10-15 13:59:29.346 30137 30137 E AndroidRuntime: 	at android.content.ClipData.prepareToLeaveProcess(ClipData.java:941)
10-15 13:59:29.346 30137 30137 E AndroidRuntime: 	at android.content.Intent.prepareToLeaveProcess(Intent.java:9735)
10-15 13:59:29.346 30137 30137 E AndroidRuntime: 	at android.content.Intent.prepareToLeaveProcess(Intent.java:9741)
10-15 13:59:29.346 30137 30137 E AndroidRuntime: 	at android.content.Intent.prepareToLeaveProcess(Intent.java:9720)
10-15 13:59:29.346 30137 30137 E AndroidRuntime: 	at android.app.Instrumentation.execStartActivity(Instrumentation.java:1742)
10-15 13:59:29.346 30137 30137 E AndroidRuntime: 	at android.app.Activity.startActivityForResult(Activity.java:5153)
10-15 13:59:29.346 30137 30137 E AndroidRuntime: 	at android.app.Activity.startActivityFromFragment(Activity.java:5129)
10-15 13:59:29.346 30137 30137 E AndroidRuntime: 	at android.app.Activity$HostCallbacks.onStartActivityFromFragment(Activity.java:7602)
10-15 13:59:29.346 30137 30137 E AndroidRuntime: 	at android.app.Fragment.startActivity(Fragment.java:1179)
10-15 13:59:29.346 30137 30137 E AndroidRuntime: 	at android.app.Fragment.startActivity(Fragment.java:1158)
10-15 13:59:29.346 30137 30137 E AndroidRuntime: 	at com.android.calendar.EventInfoFragment.shareEvent(EventInfoFragment.java:1222)
10-15 13:59:29.346 30137 30137 E AndroidRuntime: 	at com.android.calendar.EventInfoFragment.onOptionsItemSelected(EventInfoFragment.java:1098)
10-15 13:59:29.346 30137 30137 E AndroidRuntime: 	at android.app.Fragment.performOptionsItemSelected(Fragment.java:2758)
10-15 13:59:29.346 30137 30137 E AndroidRuntime: 	at android.app.FragmentManagerImpl.dispatchOptionsItemSelected(FragmentManager.java:3190)
10-15 13:59:29.346 30137 30137 E AndroidRuntime: 	at android.app.FragmentController.dispatchOptionsItemSelected(FragmentController.java:367)
10-15 13:59:29.346 30137 30137 E AndroidRuntime: 	at android.app.Activity.onMenuItemSelected(Activity.java:3438)
10-15 13:59:29.346 30137 30137 E AndroidRuntime: 	at android.support.v4.app.FragmentActivity.onMenuItemSelected(FragmentActivity.java:408)
10-15 13:59:29.346 30137 30137 E AndroidRuntime: 	at android.support.v7.app.AppCompatActivity.onMenuItemSelected(AppCompatActivity.java:195)
10-15 13:59:29.346 30137 30137 E AndroidRuntime: 	at android.support.v7.view.WindowCallbackWrapper.onMenuItemSelected(WindowCallbackWrapper.java:113)
10-15 13:59:29.346 30137 30137 E AndroidRuntime: 	at android.support.v7.app.AppCompatDelegateImplV9.onMenuItemSelected(AppCompatDelegateImplV9.java:679)
10-15 13:59:29.346 30137 30137 E AndroidRuntime: 	at android.support.v7.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:822)
10-15 13:59:29.346 30137 30137 E AndroidRuntime: 	at android.support.v7.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:156)
10-15 13:59:29.346 30137 30137 E AndroidRuntime: 	at android.support.v7.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:969)
10-15 13:59:29.346 30137 30137 E AndroidRuntime: 	at android.support.v7.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:959)
10-15 13:59:29.346 30137 30137 E AndroidRuntime: 	at android.support.v7.widget.ActionMenuView.invokeItem(ActionMenuView.java:623)
10-15 13:59:29.346 30137 30137 E AndroidRuntime: 	at android.support.v7.view.menu.ActionMenuItemView.onClick(ActionMenuItemView.java:154)
10-15 13:59:29.346 30137 30137 E AndroidRuntime: 	at android.view.View.performClick(View.java:6256)
10-15 13:59:29.346 30137 30137 E AndroidRuntime: 	at android.view.View$PerformClick.run(View.java:24697)
10-15 13:59:29.346 30137 30137 E AndroidRuntime: 	at android.os.Handler.handleCallback(Handler.java:789)
10-15 13:59:29.346 30137 30137 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:98)
10-15 13:59:29.346 30137 30137 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:164)
10-15 13:59:29.346 30137 30137 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:6541)
10-15 13:59:29.346 30137 30137 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
10-15 13:59:29.346 30137 30137 E AndroidRuntime: 	at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
10-15 13:59:29.346 30137 30137 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
10-15 13:59:30.673  3054  3065 E ActivityManager: Found activity ActivityRecord{e16a559 u0 ws.xsoh.etar/com.android.calendar.AllInOneActivity t-1 f} in proc activity list using null instead of expected ProcessRecord{d6f76e2 30137:ws.xsoh.etar/u0a528}
10-15 13:59:30.681  3054  3065 I ActivityManager: Killing 30137:ws.xsoh.etar/u0a528 (adj 199): crash
10-15 13:59:30.734  3054  3079 W ActivityManager: setHasOverlayUi called on unknown pid: 30137
@laBecasse
Copy link

Phone: Nexus 5X
Android Version: 8.1.0
Etar Build Version: 1.0.12 (installed from Fdroid)

I have the same problem.

@Gitsaibot
Copy link
Contributor

I think I've found a solution for this. But I have to wait until my other Pull Request gets merged...

@laBecasse
Copy link

Thank you 😃

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

No branches or pull requests

3 participants