应用程序在运行 Android 11 和 12 的 Oppo A52 和 A17 上崩溃

问题描述 投票:0回答:1

我在 Xamarin 表单上为老年护理行业开发企业移动应用程序。在运行 Android 11 和 12 的 Oppo A52 和 A17 (CPH2477) 上,应用程序将崩溃。在没有任何活动的登录屏幕上,它往往会在 15 到 18 秒后持续崩溃。当全新安装时,这种情况不会发生,但当我关闭应用程序并再次启动它时,就会发生这种情况。

我尝试删除动画 SDK 链接。我们公司希望我们的应用程序能够在所有设备上运行,而不必强迫客户购买其他硬件。该应用程序使用 SQLite 和 httpclient 并读取和写入外部/内部存储。 Android 11 上的存储权限发生了变化,因此我添加了以下权限:

<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" android:maxSdkVersion="32" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="32" />
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO" android:minSdkVersion="33" />
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" android:minSdkVersion="33" />
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" android:minSdkVersion="33" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
Targets Android 13.
Minimum Android 7.1

在运行 Android 13 的 Oppo A78 上,该应用程序运行没有问题。其他品牌的所有其他移动设备也没有问题。运行 Android 7.1 的 Oppo 版本没有任何问题。这些设备有哪些问题以及如何针对它们进行编程?

原木猫:

Time    Device Name Type    PID Tag Message
07-01 14:57:56.275  OPPO CPH2069    Debug   1819    ColorAutomaticBrightnessController  Skip onSensorChanaged, pre time = 17538392, now = 17538443
07-01 14:57:56.174  OPPO CPH2069    Debug   1819    ColorAutomaticBrightnessController  Skip onSensorChanaged, pre time = 17538289, now = 17538342
07-01 14:57:56.072  OPPO CPH2069    Debug   1819    ColorAutomaticBrightnessController  Skip onSensorChanaged, pre time = 17538188, now = 17538239
07-01 14:57:56.041  OPPO CPH2069    Debug   5301    HoraeHelper getAllShellTemps tSize : 4
07-01 14:57:55.969  OPPO CPH2069    Debug   1819    ColorAutomaticBrightnessController  Skip onSensorChanaged, pre time = 17538087, now = 17538137
07-01 14:57:55.867  OPPO CPH2069    Debug   1819    ColorAutomaticBrightnessController  Skip onSensorChanaged, pre time = 17537987, now = 17538035
07-01 14:57:55.766  OPPO CPH2069    Debug   1819    ColorAutomaticBrightnessController  Skip onSensorChanaged, pre time = 17537883, now = 17537934
07-01 14:57:55.670  OPPO CPH2069    Info    5174    Athena  MemoryGuardAction: triggerMemory:1500MB, availMemory:1508MB
07-01 14:57:55.668  OPPO CPH2069    Debug   3817    Launcher.   panicValue = false
07-01 14:57:55.666  OPPO CPH2069    Debug   1819    AS.AudioService getParameters() keyValuePairs:OPLUS_AUDIO_GET_FOCUS_STACK
07-01 14:57:55.429  OPPO CPH2069    Error   3817    Launcher.ColorBubbleTextView    mForceHideDot is false
07-01 14:57:55.428  OPPO CPH2069    Info    3817    chatty  uid=10113(com.oppo.launcher) identical 2 lines
07-01 14:57:55.664  OPPO CPH2069    Debug   1819    ColorAutomaticBrightnessController  Skip onSensorChanaged, pre time = 17537782, now = 17537833
07-01 14:57:55.562  OPPO CPH2069    Debug   1819    ColorAutomaticBrightnessController  Skip onSensorChanaged, pre time = 17537680, now = 17537730
07-01 14:57:55.460  OPPO CPH2069    Debug   1819    ColorAutomaticBrightnessController  Skip onSensorChanaged, pre time = 17537577, now = 17537628
07-01 14:57:55.428  OPPO CPH2069    Error   3817    Launcher.ColorBubbleTextView    mForceHideDot is false
07-01 14:57:55.394  OPPO CPH2069    Info    8669    WeatherS_WeatherServiceManager  unBindUpdateService true
07-01 14:57:55.389  OPPO CPH2069    Warning 8669    ClockTag ClockWidget.ClockWidgetManager updateWeatherInfo -- weatherEntity is null!
07-01 14:57:55.387  OPPO CPH2069    Info    8669    WeatherS_WeatherServiceVersionUtils serviceVersionCode14006006
07-01 14:57:55.387  OPPO CPH2069    Info    8669    chatty  uid=10197(com.coloros.alarmclock) pool-2-thread-6 identical 1 line
07-01 14:57:55.387  OPPO CPH2069    Info    8669    WeatherS_WeatherServiceVersionUtils serviceVersionCode14006006
07-01 14:57:55.386  OPPO CPH2069    Info    8669    WeatherS_WeatherBaseDataTask    after doRequestFromWeatherService getLocationCityDataAndUpdateWeatherInfoIfNeeded result true
07-01 14:57:55.381  OPPO CPH2069    Error   24146   WeatherS_LocalUtils startAutoGetLocalCity has no locate city
 thread: Thread[pool-2-thread-7,5,main]
07-01 14:57:55.379  OPPO CPH2069    Error   24146   WeatherS_LocalUtils startAutoGetLocalCity bg location permission:false
07-01 14:57:55.375  OPPO CPH2069    Info    8669    WeatherS_WeatherServiceManager  unBindUpdateService true
07-01 14:57:55.375  OPPO CPH2069    Info    8669    WeatherS_WeatherBaseDataTask    after doRequestFromWeatherService getResidentSecureSettingsData result true
07-01 14:57:55.367  OPPO CPH2069    Error   24146   WeatherS_WeatherCommonServiceProxy  getLocationCityInfo
07-01 14:57:55.357  OPPO CPH2069    Debug   1819    ColorAutomaticBrightnessController  Skip onSensorChanaged, pre time = 17537474, now = 17537525
07-01 14:57:55.355  OPPO CPH2069    Warning 3837    [0]DCS-MobileHelper getContryCode slotid=1,type=1,code=null,result=
07-01 14:57:55.354  OPPO CPH2069    Warning 3837    [0]DCS-MobileHelper getContryCode slotid=0,type=1,code=null,result=
07-01 14:57:55.346  OPPO CPH2069    Warning 3837    [0]DCS-MobileHelper getContryCode slotid=1,type=1,code=null,result=
07-01 14:57:55.346  OPPO CPH2069    Warning 3837    [0]DCS-MobileHelper getContryCode slotid=0,type=1,code=null,result=
07-01 14:57:55.315  OPPO CPH2069    Info    8669    WeatherS_WeatherBaseDataTask    executeRequest getResidentSecureSettingsData
07-01 14:57:55.315  OPPO CPH2069    Info    8669    WeatherS_WeatherBaseDataTask    executeRequest getLocationCityDataAndUpdateWeatherInfoIfNeeded
07-01 14:57:55.314  OPPO CPH2069    Info    8669    WeatherS_WeatherServiceManager  onServiceConnected
07-01 14:57:55.313  OPPO CPH2069    Info    8669    WeatherS_WeatherServiceManager  onServiceConnected
07-01 14:57:55.308  OPPO CPH2069    Info    8669    WeatherS_WeatherServiceManager  bindUpdateService false
07-01 14:57:55.308  OPPO CPH2069    Info    8669    WeatherS_WeatherBaseDataTask    Service has not started, bind update Service.
07-01 14:57:55.300  OPPO CPH2069    Info    8669    WeatherS_WeatherServiceManager  bindUpdateService false
07-01 14:57:55.300  OPPO CPH2069    Info    8669    WeatherS_WeatherBaseDataTask    Service has not started, bind update Service.
07-01 14:57:55.294  OPPO CPH2069    Info    8669    WeatherS_WeatherServiceVersionUtils serviceVersionCode14006006
07-01 14:57:55.294  OPPO CPH2069    Info    8669    WeatherS_WeatherServiceVersionUtils serviceVersionCode14006006
07-01 14:57:55.256  OPPO CPH2069    Debug   1819    ColorAutomaticBrightnessController  Skip onSensorChanaged, pre time = 17537374, now = 17537425
07-01 14:57:55.155  OPPO CPH2069    Debug   1819    ColorAutomaticBrightnessController  Skip onSensorChanaged, pre time = 17537272, now = 17537323
07-01 14:57:55.053  OPPO CPH2069    Debug   1819    ColorAutomaticBrightnessController  Skip onSensorChanaged, pre time = 17537170, now = 17537221
07-01 14:57:55.036  OPPO CPH2069    Verbose 1819    OppoBaseWatchdog    @WatchDog_ error e: java.io.FileNotFoundException: /d/wakeup_sources: open failed: ENOENT (No such file or directory)
07-01 14:57:54.952  OPPO CPH2069    Debug   1819    ColorAutomaticBrightnessController  Skip onSensorChanaged, pre time = 17537068, now = 17537119
07-01 14:57:54.849  OPPO CPH2069    Debug   1819    ColorAutomaticBrightnessController  Skip onSensorChanaged, pre time = 17536966, now = 17537017
07-01 14:57:54.747  OPPO CPH2069    Debug   1819    ColorAutomaticBrightnessController  Skip onSensorChanaged, pre time = 17536865, now = 17536915
07-01 14:57:54.645  OPPO CPH2069    Debug   1819    ColorAutomaticBrightnessController  Skip onSensorChanaged, pre time = 17536763, now = 17536814
07-01 14:57:54.544  OPPO CPH2069    Debug   1819    ColorAutomaticBrightnessController  Skip onSensorChanaged, pre time = 17536660, now = 17536712
07-01 14:57:54.441  OPPO CPH2069    Debug   1819    ColorAutomaticBrightnessController  Skip onSensorChanaged, pre time = 17536559, now = 17536610
07-01 14:57:54.340  OPPO CPH2069    Debug   1819    ColorAutomaticBrightnessController  Skip onSensorChanaged, pre time = 17536456, now = 17536508
07-01 14:57:54.307  OPPO CPH2069    Debug   29490   MbnSystemService    MbnTest_ EVENT_SERVICE_BINDED
07-01 14:57:54.307  OPPO CPH2069    Debug   29490   MbnSystemService    MbnTest_ Fail to find MultiMode from Meta Info
07-01 14:57:54.307  OPPO CPH2069    Debug   29490   MbnSystemService    MbnTest_ telMode:dsds mbnId:null
07-01 14:57:54.307  OPPO CPH2069    Warning 29490   QC_RIL_OEM_HOOK QCRIL_EVT_HOOK_GET_CONFIG failed w/ org.codeaurora.telephony.utils.CommandException: GENERIC_FAILURE
07-01 14:57:54.306  OPPO CPH2069    Debug   29490   QC_RIL_OEM_HOOK sendOemRilRequestRaw returns value = -2
07-01 14:57:54.306  OPPO CPH2069    Debug   4253    QcrilMsgTunnelIfaceManager  handleMessage what = 2
07-01 14:57:54.305  OPPO CPH2069    Error   4253    QcRilRequest    [1159] < OEM_HOOK_RAW error: org.codeaurora.telephony.utils.CommandException: GENERIC_FAILURE
07-01 14:57:54.305  OPPO CPH2069    Info    4253    QcrilOemhookMsgTunnel   [0]processOemHookResponse serial no: 1159 error: 2length=0
07-01 14
sqlite xamarin.forms crash android-11 oppo
1个回答
0
投票

从 google play store 下载 android 系统 webview 设备或 android 系统 webview beta 并进入开发者模式并更改 webview 提供程序。

© www.soinside.com 2019 - 2024. All rights reserved.