Open vaydich opened 5 years ago
Hello!
ionic 4 cordova 9
I've added your plugin to my app. But when i trying to start it first time i getting error message (notification)
"AppName has stoped"
Second time it will start. But it can be crush like this another time in random.
adb logcat stack
D/ApplicationPackageManager( 3554): getResourcesForApplication io.ionic.starter got new pi = android.app.LoadedApk@44d098e W/AASAInstall( 804): updated apk:io.ionic.starter uid:-1 D/PackageManager( 804): Renaming /data/app/vmdl556392606.tmp to /data/app/io.ionic.starter-2 D/ActivityManager( 804): removeDeletedPkgsFromLruStats called in AMS...io.ionic.starter I/ActivityManager( 804): Force stopping io.ionic.starter appid=10131 user=-1: uninstall pkg D/ActivityManager( 804): removeDeletedPkgsFromLruStats called in AMS...io.ionic.starter I/PackageManager( 804): Package io.ionic.starter codePath changed from /data/app/io.ionic.starter-1 to /data/app/io.ionic.starter-2; Retaining data and using new I/PackageManager( 804): scanFileNewer : io.ionic.starter D/PackageManager( 804): Running dexopt on: /data/app/io.ionic.starter-2/base.apk pkg=io.ionic.starter isa=arm vmSafeMode=false interpret_only=false I/dex2oat ( 5851): zip location : /data/app/io.ionic.starter-2/base.apk I/dex2oat ( 5851): xz location : /data/app/io.ionic.starter-2/arm/base.odex.xz I/dex2oat ( 5851): oat location : /data/dalvik-cache/arm/data@app@io.ionic.starter-2@base.apk@classes.dex I/dex2oat ( 5851): not exist : /data/app/io.ionic.starter-2/arm/base.odex.xz I/dex2oat ( 5851): /system/bin/dex2oat --zip-fd=11 --zip-location=/data/app/io.ionic.starter-2/base.apk --oat-fd=12 --oat-location=/data/dalvik-cache/arm/data@app@io.ionic.starter-2@base.apk@classes.dex --instruction-set=arm --instruction-set-features=div --runtime-arg -Xms64m --runtime-arg -Xmx512m --swap-fd=13 W/PackageManager( 804): Code path for pkg : io.ionic.starter changing from /data/app/io.ionic.starter-1 to /data/app/io.ionic.starter-2 W/PackageManager( 804): Resource path for pkg : io.ionic.starter changing from /data/app/io.ionic.starter-1 to /data/app/io.ionic.starter-2 I/ActivityManager( 804): Force stopping io.ionic.starter appid=10131 user=-1: update pkg D/PackageManager( 804): EAS IT Policy destCodeFile /data/app/io.ionic.starter-2 W/PackageManager( 804): Unknown permission android.permission.REQUEST_INSTALL_PACKAGES in package io.ionic.starter W/PackageManager( 804): Not granting permission android.permission.MOUNT_UNMOUNT_FILESYSTEMS to package io.ionic.starter (protectionLevel=18 flags=0x48be46) I/MSTG ( 804): io.ionic.starter is installing.. D/PackageManager( 804): Resopt: Clean up res: /data/app/io.ionic.starter-1/base.apk I/ActivityManager( 804): Force stopping io.ionic.starter appid=10131 user=0: pkg removed V/AlarmManagerEXT( 804): io.ionic.starter(10131) is removed. D/BackupManagerService( 804): Received broadcast Intent { act=android.intent.action.PACKAGE_REMOVED dat=package:io.ionic.starter flg=0x4000010 bqHint=4 (has extras) } V/EnterpriseBillingPolicyStorage( 804): getBillingProfileForVpnEngine - start - io.ionic.starter I/KLMS-2.5.481: ( 3422): KLMSAbstractReciever(): onReceive(): Intent { act=android.intent.action.PACKAGE_REMOVED dat=package:io.ionic.starter flg=0x4000010 cmp=com.samsung.klmsagent/.listner.MainReciver bqHint=4 (has extras) } | timestamp: Thu May 30 18:20:22 GMT+03:00 2019 I/KLMS-2.5.481: ( 3422): KLMSIntentService(): onHandleIntent().START: Intent { act=android.intent.action.PACKAGE_REMOVED dat=package:io.ionic.starter flg=0x4000010 cmp=com.samsung.klmsagent/.service.KLMSIntentService bqHint=4 (has extras) } I/Recents_MultiWindowAppListInfo( 1133): android.intent.action.PACKAGE_REPLACED packageName=io.ionic.starter D/BackupManagerService( 804): Received broadcast Intent { act=android.intent.action.PACKAGE_ADDED dat=package:io.ionic.starter flg=0x4000010 bqHint=4 (has extras) } W/BackupManagerService( 804): Removing schedule queue dupe of io.ionic.starter V/AlarmManagerEXT( 804): io.ionic.starter(10131) is added to mUserAppList V/EnterpriseBillingPolicyStorage( 804): getBillingProfileForVpnEngine - start - io.ionic.starter E/SPPClientService( 2869): [PackageInfoChangeReceiver] [handlePkgRemovedEvent] PackageName : io.ionic.starter, true, false D/Compatibility( 4719): intentservice saw: Intent { act=android.intent.action.PACKAGE_REMOVED dat=package:io.ionic.starter flg=0x4000010 cmp=com.sec.android.app.soundalive/.compatibility.Compatibility$Receiver bqHint=6 (has extras) } Bundle[{android.intent.extra.REMOVED_FOR_ALL_USERS=false, android.intent.extra.UID=10131, android.intent.extra.DATA_REMOVED=false, android.intent.extra.REPLACING=true, android.intent.extra.user_handle=0}] E/Drive.UninstallOperation( 3032): Package still installed io.ionic.starter D/EnterpriseDeviceManagerService( 804): onPackageUpdateFinished - packageName: io.ionic.starter, uid: 10131 D/KidsModeInstallReceiver( 3840): onReceive intent data = package:io.ionic.starter D/[0]UMC:CoreReceiver( 5648): PackageName : io.ionic.starter D/[0]UMC:CoreReceiver( 5648): do nothing for UMC Agent : io.ionic.starter D/AASAservice-UpdateReceiver( 5883): onReceive() : package = io.ionic.starter, uid = -1 D/AASAservice-AASABinder( 5883): getManagedSharedPkgList() : packageName - io.ionic.starter, uid - -1 E/Launcher.Model( 1312): onPackageChanged :io.ionic.starter D/ApplicationPackageManager( 1312): getResourcesForApplication io.ionic.starter got new pi = android.app.LoadedApk@233e7bc6 D/ApplicationPackageManager( 1312): getResourcesForApplication io.ionic.starter got new pi = android.app.LoadedApk@233e7bc6 I/UpdateIcingCorporaServi( 1372): Updating corpora: APPS=io.ionic.starter, CONTACTS=MAYBE D/ApplicationPackageManager( 1372): getResourcesForApplication io.ionic.starter got new pi = android.app.LoadedApk@300f4da D/ApplicationPackageManager( 1372): getResourcesForApplication io.ionic.starter got new pi = android.app.LoadedApk@300f4da D/ApplicationPackageManager( 3531): getResourcesForApplication io.ionic.starter got new pi = android.app.LoadedApk@10047288 D/Compatibility( 4719): intentservice saw: Intent { act=android.intent.action.PACKAGE_ADDED dat=package:io.ionic.starter flg=0x4000010 cmp=com.sec.android.app.soundalive/.compatibility.Compatibility$Receiver bqHint=5 (has extras) } Bundle[{android.intent.extra.UID=10131, android.intent.extra.REPLACING=true, android.intent.extra.user_handle=0}] D/Compatibility( 4719): intentservice saw: Intent { act=android.intent.action.PACKAGE_REPLACED dat=package:io.ionic.starter flg=0x4000010 cmp=com.sec.android.app.soundalive/.compatibility.Compatibility$Receiver bqHint=5 (has extras) } Bundle[{android.intent.extra.UID=10131, android.intent.extra.REPLACING=true, android.intent.extra.user_handle=0}] D/ActivityManager( 804): startProcessLocked calleePkgName: io.ionic.starter, hostingType: broadcast-3 I/ActivityManager( 804): Start proc 5950:io.ionic.starter/u0a131 for broadcast-3 io.ionic.starter/com.tonikorin.cordova.plugin.autostart.PackageReplacedReceiver V/BroadcastQueue( 804): [background] Process cur broadcast BroadcastRecord{97f7c99 u0 android.intent.action.MY_PACKAGE_REPLACED qIdx=4} DELIVERED for app ProcessRecord{1a94db5e 5950:io.ionic.starter/u0a131} W/ActivityThread( 5950): Application io.ionic.starter can be debugged on port 8100... I/Timeline( 5950): Timeline: Activity_launch_request id:io.ionic.starter time:953096 V/BroadcastQueue( 804): [background] Process cur broadcast BroadcastRecord{97f7c99 u0 android.intent.action.MY_PACKAGE_REPLACED qIdx=4} DELIVERED for app ProcessRecord{1a94db5e 5950:io.ionic.starter/u0a131} E/AndroidRuntime( 5950): Process: io.ionic.starter, PID: 5950 E/AndroidRuntime( 5950): java.lang.RuntimeException: Unable to start receiver com.tonikorin.cordova.plugin.autostart.PackageReplacedReceiver: android.content.ActivityNotFoundException: Unable to find explicit activity class {io.ionic.starter/io.ionic.starter.jk.cordova.plugin.kiosk.KioskActivity}; have you declared this activity in your AndroidManifest.xml? E/AndroidRuntime( 5950): Caused by: android.content.ActivityNotFoundException: Unable to find explicit activity class {io.ionic.starter/io.ionic.starter.jk.cordova.plugin.kiosk.KioskActivity}; have you declared this activity in your AndroidManifest.xml? D/ApplicationPackageManager( 804): getResourcesForApplication io.ionic.starter got new pi = android.app.LoadedApk@3b4f4f6a D/StatusBarManagerService( 804): manageDisableList userId=0 what=0x0 pkg=Window{5e73ad4 u0 d0 Application Error: io.ionic.starter} E/BufferQueueCore( 175): [Application Error: io.ionic.starter] setDefaultMaxBufferCount: setting count to 3, previous is 2 V/WindowStateAnimator( 804): Finishing drawing window Window{5e73ad4 u0 d0 Application Error: io.ionic.starter}: mDrawState=DRAW_PENDING V/WindowStateAnimator( 804): Finishing drawing window Window{5e73ad4 u0 d0 Application Error: io.ionic.starter}: mDrawState=HAS_DRAWN D/ApplicationPackageManager( 3032): getResourcesForApplication io.ionic.starter got new pi = android.app.LoadedApk@2bfdf35b D/ApplicationPackageManager( 3032): getResourcesForApplication io.ionic.starter got new pi = android.app.LoadedApk@2bfdf35b D/ApplicationPackageManager( 3032): getResourcesForApplication io.ionic.starter got new pi = android.app.LoadedApk@2bfdf35b I/ActivityManager( 804): Process io.ionic.starter (pid 5950)(adj 11) has died(159,685)
If i'll remove plugin and readd platform everything will be OK
Hello!
ionic 4 cordova 9
I've added your plugin to my app. But when i trying to start it first time i getting error message (notification)
"AppName has stoped"
Second time it will start. But it can be crush like this another time in random.
adb logcat stack
If i'll remove plugin and readd platform everything will be OK