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

Assistance Required for Clearing Application Data in MAUI App #26583

Open
vsfeedback opened this issue Dec 12, 2024 · 9 comments
Open

Assistance Required for Clearing Application Data in MAUI App #26583

vsfeedback opened this issue Dec 12, 2024 · 9 comments
Labels
area-core-platform Integration with platforms platform/android 🤖 s/needs-attention Issue has more information and needs another look t/bug Something isn't working

Comments

@vsfeedback
Copy link

This issue has been moved from a ticket on Developer Community.


I am currently working on a MAUI application where we are attempting to clear the complete application data programmatically. Despite trying multiple solutions, we are unable to achieve the same results as manually clearing the app data. Actually this is an workaround for bigger problem which is getting fix after clearing the application data. The user impact is huge. Application deployed in Android Tablets OS version 13.
Despite these efforts, the application crashes after executing the code to clear app data, and it does not relaunch successfully. We need the data and cache clearing process to function similarly to the default settings menu options provided by the system.
We would greatly appreciate any advice or assistance you can provide in resolving this issue. Your expertise and support would be invaluable in helping us achieve the desired functionality.
Thank you in advance for your time and assistance.
Below are the code snippets we tried:

1). var packageName = context.PackageName;
var packageManager = context.PackageManager;
var applicationInfo = packageManager.GetApplicationInfo(packageName, 0);
packageManager.ClearApplicationUserData();

2). import android.app.ActivityManager
import android.content.Context

fun clearAppData(context: Context) {
val activityManager = context.getSystemService(Context.ACTIVITY_SERVICE) as ActivityManager
activityManager.clearApplicationUserData()
}

// Usage
val context = Android.App.Application.Context
clearAppData(context)

Also we tried to run below code for giving runtime permission and check whether we can able to clear app data or cache but getting result as a false.

<uses-permission android:name="android.permission.CLEAR_APP_DATA" />
<uses-permission android:name="android.permission.PACKAGE_USAGE_STATS" />
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />

public bool CanClearAppData()
{
// Check Android version
if ((int)Build.VERSION.SdkInt >= 30) // Android 11+
{
var packageManager = Android.App.Application.Context.PackageManager;
return packageManager.CanRequestPackageInstalls();
}

// Earlier versions have fewer restrictions
return true;

}
// Runtime Permission Request
private void RequestAppDataClearPermission()
{
if ((int)Build.VERSION.SdkInt >= 30)
{
var intent = new Intent(
Android.Provider.Settings.ActionManageAppAllFilesAccessPermission,
Android.Net.Uri.Parse("package:" + PackageName)
);
StartActivityForResult(intent, REQUEST_MANAGE_STORAGE);
}
}
Here our requirement is clear app data and cache should work as default option from setting menu.
Steps are mentioned below:
1).Open Settings: Go to the Settings app on your device.
2).Navigate to Apps: Find and tap on the "Apps" or "App Management" section.
3).Select the App: Scroll through the list of installed apps and select the one you want to clear data for.
4).Open Storage: Tap on "Storage" or "Storage & cache".
5).Clear Data: Tap on "Clear Data" or "Clear Storage" and confirm the action.

After executing above code, we are able to clear app data and cache but application is crashing and not able to launch the app again.
It should work same as system default clear cache and clear app data option.

Tried multiple solution but didn't work as expected.

Need support on issue.

Thanks in advance


Original Comments

Feedback Bot on 12/4/2024, 08:35 PM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

Ramesh Kumar on 12/5/2024, 09:50 PM:

(private comment, text removed)

Vinay Kant Agnihotri on 12/6/2024, 03:24 AM:

AppCacheAndAppData.zip

"I have uploaded the sample file for your reference.

The app crashes while executing this piece of code: bool manager = activityManager.ClearApplicationUserData();

Despite the crash, the app launches successfully in release mode.

Is there any way to prevent app crashes?

Thank you in advance for your time and assistance.

Ramesh Kumar on 12/9/2024, 03:15 AM:

hello Microsoft team,

This ticket has been opened since a while now, could you please check and update whether there is any solution on how could clean complete app data programmatically, which has been similar to manual app data clear.

Appreciate your response.

@samhouts samhouts added the t/bug Something isn't working label Dec 12, 2024
@jfversluis
Copy link
Member

After executing above code, we are able to clear app data and cache but application is crashing and not able to launch the app again.

Is this in debug or release? I believe for debug we put some stuff in the cache for debugging purposes and if that is removed then the app won't launch indeed.

@jfversluis jfversluis added the s/needs-info Issue needs more info from the author label Dec 13, 2024
@agni-svg
Copy link

@jfversluis We have tried running the app in release mode, but it crashes when executing the following line:

val activityManager = context.getSystemService(Context.ACTIVITY_SERVICE) as ActivityManager
activityManager.clearApplicationUserData().

We are able to launch the app again, but it crashes when executing the above piece of code in release mode as well.

Thank you in advance

@dotnet-policy-service dotnet-policy-service bot added s/needs-attention Issue has more information and needs another look and removed s/needs-info Issue needs more info from the author labels Dec 13, 2024
@jfversluis
Copy link
Member

What does "crashing" mean? Do you have any log messages, error messages? Stack traces? Are you able to retrieve some data with logcat?

@jfversluis jfversluis added s/needs-info Issue needs more info from the author area-core-platform Integration with platforms and removed s/needs-attention Issue has more information and needs another look labels Dec 13, 2024
@agni-svg
Copy link

@jfversluis I tried to capture the log but was unable to catch the exception using try-catch. The app crashed directly without logging anything.

When calling the activityManager.clearApplicationUserData() method, the app crashes and no log is captured.

@dotnet-policy-service dotnet-policy-service bot added s/needs-attention Issue has more information and needs another look and removed s/needs-info Issue needs more info from the author labels Dec 13, 2024
@PureWeen
Copy link
Member

@PureWeen PureWeen added s/needs-info Issue needs more info from the author and removed s/needs-attention Issue has more information and needs another look labels Dec 16, 2024
@agni-svg
Copy link

2024-12-17 15:38:43.086 1171-1424 HWComposer surfaceflinger E getSupportedContentTypes: getSupportedContentTypes failed for display 0: Unsupported (8)
2024-12-17 15:38:43.177 1140-31225 HYPER-HAL ven...amsung.hardware.hyper-service E [HandlerSysfs.cpp]doResourceHandling(): Couldn't Open Sysfs - /sys/power/cstate_control
2024-12-17 15:38:43.251 1140-1201 HYPER-HAL ven...amsung.hardware.hyper-service E [HandlerSysfs.cpp]doResourceHandling(): Couldn't Open Sysfs - /sys/power/cstate_control
2024-12-17 15:38:43.251 1140-1201 HYPER-HAL ven...amsung.hardware.hyper-service E [HandlerSysfs.cpp]doResourceHandling(): Couldn't Open Sysfs - /sys/power/cstate_control
2024-12-17 15:38:43.254 2895-2895 pageboostd pageboostd E Received HALT command code 2
2024-12-17 15:38:43.275 1475-3101 WindowManager system_server E win=Window{93f19d6 u0 com.sec.android.app.launcher/com.sec.android.app.launcher.activities.LauncherActivity} destroySurfaces: appStopped=true cleanupOnResume=false win.mWindowRemovalAllowed=false win.mRemoveOnExit=false win.mViewVisibility=8 caller=com.android.server.wm.ActivityRecord.destroySurfaces:6776 com.android.server.wm.ActivityRecord.destroySurfaces:6757 com.android.server.wm.ActivityRecord.notifyAppStopped:6821 com.android.server.wm.ActivityRecord.activityStopped:7427 com.android.server.wm.ActivityClientController.activityStopped:263 android.app.IActivityClientController$Stub.onTransact:621 com.android.server.wm.ActivityClientController.onTransact:141
2024-12-17 15:38:43.489 1140-31231 HYPER-HAL ven...amsung.hardware.hyper-service E [HandlerSysfs.cpp]doResourceHandling(): Couldn't Open Sysfs - /sys/power/cstate_control
2024-12-17 15:38:43.551 1140-31257 HYPER-HAL ven...amsung.hardware.hyper-service E [HandlerSysfs.cpp]doResourceHandling(): Couldn't Open Sysfs - /sys/power/cstate_control
2024-12-17 15:38:44.503 1140-1201 HYPER-HAL ven...amsung.hardware.hyper-service E [HandlerSysfs.cpp]doResourceHandling(): Couldn't Open Sysfs - /sys/power/cstate_control
2024-12-17 15:38:44.544 1171-1727 NativeCust...ncyManager surfaceflinger E [NativeCFMS] BpCustomFrequencyManager::acquire()
2024-12-17 15:38:44.546 2895-2895 pageboostd pageboostd E Received HALT command code 2
2024-12-17 15:38:44.559 1171-1171 BpTransact...edListener surfaceflinger E Failed to transact (-32)
2024-12-17 15:38:45.308 1140-31261 HYPER-HAL ven...amsung.hardware.hyper-service E [HandlerSysfs.cpp]doResourceHandling(): Couldn't Open Sysfs - /sys/power/cstate_control
2024-12-17 15:38:46.262 1475-2065 Pageboost system_server E ioinfo read failed
2024-12-17 15:38:46.756 1145-1145 sehhealth-service ven...msung.hardware.health-service E Could not open /sys/class/power_supply/battery/lrp
2024-12-17 15:38:59.589 1475-1523 Watchdog system_server E !@sync: 1314 heap: 83 / 91 FD: 954 [2024-12-17 15:38:59.588]
2024-12-17 15:39:11.821 1171-1727 NativeCust...ncyManager surfaceflinger E [NativeCFMS] BpCustomFrequencyManager::acquire()
2024-12-17 15:39:14.915 1475-2062 ActivityTaskManager system_server E TouchDown intent received, starting ActiveLaunch
2024-12-17 15:39:14.954 31288-31288 e.appdatasample pid-31288 E Not starting debugger since process cannot load the jdwp agent.
2024-12-17 15:39:14.982 1140-1201 HYPER-HAL ven...amsung.hardware.hyper-service E [HandlerSysfs.cpp]doResourceHandling(): Couldn't Open Sysfs - /sys/power/cstate_control
2024-12-17 15:39:14.988 1140-1201 HYPER-HAL ven...amsung.hardware.hyper-service E [HandlerSysfs.cpp]doResourceHandling(): Couldn't Open Sysfs - /sys/power/cstate_control
2024-12-17 15:39:14.996 2895-2895 pageboostd pageboostd E Received HALT command code 2
2024-12-17 15:39:14.996 1140-1201 HYPER-HAL ven...amsung.hardware.hyper-service E [HandlerSysfs.cpp]doResourceHandling(): Couldn't Open Sysfs - /sys/power/cstate_control
2024-12-17 15:39:15.014 1171-1727 NativeCust...ncyManager surfaceflinger E [NativeCFMS] BpCustomFrequencyManager::acquire()
2024-12-17 15:39:15.589 1171-1422 HWComposer surfaceflinger E getSupportedContentTypes: getSupportedContentTypes failed for display 0: Unsupported (8)
2024-12-17 15:39:15.683 1140-31298 HYPER-HAL ven...amsung.hardware.hyper-service E [HandlerSysfs.cpp]doResourceHandling(): Couldn't Open Sysfs - /sys/power/cstate_control
2024-12-17 15:39:15.759 1140-1201 HYPER-HAL ven...amsung.hardware.hyper-service E [HandlerSysfs.cpp]doResourceHandling(): Couldn't Open Sysfs - /sys/power/cstate_control
2024-12-17 15:39:15.759 1140-1201 HYPER-HAL ven...amsung.hardware.hyper-service E [HandlerSysfs.cpp]doResourceHandling(): Couldn't Open Sysfs - /sys/power/cstate_control
2024-12-17 15:39:15.763 2895-2895 pageboostd pageboostd E Received HALT command code 2
2024-12-17 15:39:15.781 1475-1504 WindowManager system_server E win=Window{93f19d6 u0 com.sec.android.app.launcher/com.sec.android.app.launcher.activities.LauncherActivity} destroySurfaces: appStopped=true cleanupOnResume=false win.mWindowRemovalAllowed=false win.mRemoveOnExit=false win.mViewVisibility=8 caller=com.android.server.wm.ActivityRecord.destroySurfaces:6776 com.android.server.wm.ActivityRecord.destroySurfaces:6757 com.android.server.wm.ActivityRecord.notifyAppStopped:6821 com.android.server.wm.ActivityRecord.activityStopped:7427 com.android.server.wm.ActivityClientController.activityStopped:263 android.app.IActivityClientController$Stub.onTransact:621 com.android.server.wm.ActivityClientController.onTransact:141
2024-12-17 15:39:15.997 1140-31304 HYPER-HAL ven...amsung.hardware.hyper-service E [HandlerSysfs.cpp]doResourceHandling(): Couldn't Open Sysfs - /sys/power/cstate_control
2024-12-17 15:39:16.059 1140-31331 HYPER-HAL ven...amsung.hardware.hyper-service E [HandlerSysfs.cpp]doResourceHandling(): Couldn't Open Sysfs - /sys/power/cstate_control
2024-12-17 15:39:16.917 1145-1145 sehhealth-service ven...msung.hardware.health-service E Could not open /sys/class/power_supply/battery/lrp
2024-12-17 15:39:17.905 1140-1201 HYPER-HAL ven...amsung.hardware.hyper-service E [HandlerSysfs.cpp]doResourceHandling(): Couldn't Open Sysfs - /sys/power/cstate_control
2024-12-17 15:39:17.922 2895-2895 pageboostd pageboostd E Received HALT command code 2
2024-12-17 15:39:17.958 1171-1171 BpTransact...edListener surfaceflinger E Failed to transact (-32)
2024-12-17 15:39:17.958 1171-1727 NativeCust...ncyManager surfaceflinger E [NativeCFMS] BpCustomFrequencyManager::acquire()
2024-12-17 15:39:18.710 1140-31336 HYPER-HAL ven...amsung.hardware.hyper-service E [HandlerSysfs.cpp]doResourceHandling(): Couldn't Open Sysfs - /sys/power/cstate_control
2024-12-17 15:39:18.766 1475-2065 Pageboost system_server E ioinfo read failed
2024-12-17 15:39:28.451 1171-1727 NativeCust...ncyManager surfaceflinger E [NativeCFMS] BpCustomFrequencyManager::acquire()
2024-12-17 15:39:28.460 2895-2895 pageboostd pageboostd E Received HALT command code 2
2024-12-17 15:39:28.482 2895-2895 pageboostd pageboostd E Received HALT command code 2
2024-12-17 15:39:28.562 2895-2895 pageboostd pageboostd E Received HALT command code 2
2024-12-17 15:39:28.564 2895-31363 pageboostd pageboostd E alp start : app commicrosoftwindowsintunecompanyportal
2024-12-17 15:39:28.567 1475-2062 ActivityTaskManager system_server E TouchDown intent received, starting ActiveLaunch
2024-12-17 15:39:28.585 2895-31363 pageboostd pageboostd E commicrosoftwindowsintunecompanyportal, amt 37215664 scnt 6 fcnt 0
2024-12-17 15:39:28.604 31364-31364 e.companyportal pid-31364 E Not starting debugger since process cannot load the jdwp agent.
2024-12-17 15:39:28.633 2895-31363 pageboostd pageboostd E commicrosoftwindowsintunecompanyportal, amt 23789568 scnt 42 fcnt 13
2024-12-17 15:39:28.633 2895-31363 pageboostd pageboostd E alp end : app commicrosoftwindowsintunecompanyportal data_amount 61005232
2024-12-17 15:39:28.649 2895-2895 pageboostd pageboostd E Received HALT command code 2
2024-12-17 15:39:29.605 1475-1523 Watchdog system_server E !@sync: 1315 heap: 70 / 91 FD: 951 [2024-12-17 15:39:29.605]
2024-12-17 15:39:32.946 1171-1727 NativeCust...ncyManager surfaceflinger E [NativeCFMS] BpCustomFrequencyManager::acquire()
2024-12-17 15:39:33.419 2895-2895 pageboostd pageboostd E Received HALT command code 2
2024-12-17 15:39:41.140 1171-1727 NativeCust...ncyManager surfaceflinger E [NativeCFMS] BpCustomFrequencyManager::acquire()
2024-12-17 15:39:47.136 1145-1145 sehhealth-service ven...msung.hardware.health-service E Could not open /sys/class/power_supply/battery/lrp
2024-12-17 15:39:50.463 1171-1727 NativeCust...ncyManager surfaceflinger E [NativeCFMS] BpCustomFrequencyManager::acquire()
2024-12-17 15:39:59.620 1475-1523 Watchdog system_server E !@sync: 1316 heap: 72 / 91 FD: 952 [2024-12-17 15:39:59.619]
2024-12-17 15:40:03.537 1475-1535 KernelCpuU...TimeReader system_server E Negative user/sys time delta for UID=5012
Prev times: u=1370472000 s=171612000 Curr times: u=1370416000 s=171456000
2024-12-17 15:40:17.341 1145-1145 sehhealth-service ven...msung.hardware.health-service E Could not open /sys/class/power_supply/battery/lrp
2024-12-17 15:40:29.638 1475-1523 Watchdog system_server E !@sync: 1317 heap: 75 / 91 FD: 959 [2024-12-17 15:40:29.637]
2024-12-17 15:40:47.518 1145-1145 sehhealth-service ven...msung.hardware.health-service E Could not open /sys/class/power_supply/battery/lrp
2024-12-17 15:40:59.659 1475-1523 Watchdog system_server E !@sync: 1318 heap: 76 / 91 FD: 960 [2024-12-17 15:40:59.658]
2024-12-17 15:41:17.717 1145-1145 sehhealth-service ven...msung.hardware.health-service E Could not open /sys/class/power_supply/battery/lrp
2024-12-17 15:41:29.678 1475-1523 Watchdog system_server E !@sync: 1319 heap: 78 / 91 FD: 960 [2024-12-17 15:41:29.677]
2024-12-17 15:41:47.894 1145-1145 sehhealth-service ven...msung.hardware.health-service E Could not open /sys/class/power_supply/battery/lrp
2024-12-17 15:41:59.701 1475-1523 Watchdog system_server E !@sync: 1320 heap: 79 / 91 FD: 960 objects: 1497841 WaitTime: 0.000 GCcnt: 0 FullGC: 0 [2024-12-17 15:41:59.694]
2024-12-17 15:42:18.087 1145-1145 sehhealth-service ven...msung.hardware.health-service E Could not open /sys/class/power_supply/battery/lrp
2024-12-17 15:42:29.721 1475-1523 Watchdog system_server E !@sync: 1321 heap: 80 / 91 FD: 961 [2024-12-17 15:42:29.720]
2024-12-17 15:42:48.259 1145-1145 sehhealth-service ven...msung.hardware.health-service E Could not open /sys/class/power_supply/battery/lrp
2024-12-17 15:42:59.739 1475-1523 Watchdog system_server E !@sync: 1322 heap: 81 / 91 FD: 961 [2024-12-17 15:42:59.738]
2024-12-17 15:43:18.457 1145-1145 sehhealth-service ven...msung.hardware.health-service E Could not open /sys/class/power_supply/battery/lrp
2024-12-17 15:43:18.494 2079-6939 SecPowerUI.Notification com.android.systemui E no saved value, so we do nothing !!
2024-12-17 15:43:29.761 1475-1523 Watchdog system_server E !@sync: 1323 heap: 83 / 91 FD: 962 [2024-12-17 15:43:29.760]
2024-12-17 15:43:48.623 1145-1145 sehhealth-service ven...msung.hardware.health-service E Could not open /sys/class/power_supply/battery/lrp
2024-12-17 15:43:49.507 1171-1727 NativeCust...ncyManager surfaceflinger E [NativeCFMS] BpCustomFrequencyManager::acquire()
2024-12-17 15:43:49.507 2895-2895 pageboostd pageboostd E Received HALT command code 2
2024-12-17 15:43:49.825 2895-2895 pageboostd pageboostd E Received HALT command code 2
2024-12-17 15:43:49.846 2895-2895 pageboostd pageboostd E Received HALT command code 2
2024-12-17 15:43:51.081 1475-2062 ActivityTaskManager system_server E Checking for the Active launch getApplicationEnabledSetting
2024-12-17 15:43:51.081 2895-31559 pageboostd pageboostd E alp start : app comandroidchrome
2024-12-17 15:43:51.107 2895-31559 pageboostd pageboostd E comandroidchrome, amt 3123468 scnt 40 fcnt 0
2024-12-17 15:43:51.108 2895-31559 pageboostd pageboostd E comandroidchrome, amt 0 scnt 0 fcnt 0
2024-12-17 15:43:51.108 2895-31559 pageboostd pageboostd E alp end : app comandroidchrome data_amount 3123468
2024-12-17 15:43:51.181 2895-2895 pageboostd pageboostd E Received HALT command code 2
2024-12-17 15:43:51.575 1171-1727 NativeCust...ncyManager surfaceflinger E [NativeCFMS] BpCustomFrequencyManager::acquire()
2024-12-17 15:43:51.725 2895-2895 pageboostd pageboostd E Received HALT command code 2
2024-12-17 15:43:52.238 1475-2062 ActivityTaskManager system_server E TouchDown intent received, starting ActiveLaunch
2024-12-17 15:43:52.267 1140-1201 HYPER-HAL ven...amsung.hardware.hyper-service E [HandlerSysfs.cpp]doResourceHandling(): Couldn't Open Sysfs - /sys/power/cstate_control
2024-12-17 15:43:52.271 1140-1201 HYPER-HAL ven...amsung.hardware.hyper-service E [HandlerSysfs.cpp]doResourceHandling(): Couldn't Open Sysfs - /sys/power/cstate_control
2024-12-17 15:43:52.279 2895-2895 pageboostd pageboostd E Received HALT command code 2
2024-12-17 15:43:52.280 1140-1201 HYPER-HAL ven...amsung.hardware.hyper-service E [HandlerSysfs.cpp]doResourceHandling(): Couldn't Open Sysfs - /sys/power/cstate_control
2024-12-17 15:43:52.282 31566-31566 e.appdatasample pid-31566 E Not starting debugger since process cannot load the jdwp agent.
2024-12-17 15:43:52.908 1171-1220 HWComposer surfaceflinger E getSupportedContentTypes: getSupportedContentTypes failed for display 0: Unsupported (8)
2024-12-17 15:43:52.968 1140-31567 HYPER-HAL ven...amsung.hardware.hyper-service E [HandlerSysfs.cpp]doResourceHandling(): Couldn't Open Sysfs - /sys/power/cstate_control
2024-12-17 15:43:53.087 1140-1201 HYPER-HAL ven...amsung.hardware.hyper-service E [HandlerSysfs.cpp]doResourceHandling(): Couldn't Open Sysfs - /sys/power/cstate_control
2024-12-17 15:43:53.088 1140-1201 HYPER-HAL ven...amsung.hardware.hyper-service E [HandlerSysfs.cpp]doResourceHandling(): Couldn't Open Sysfs - /sys/power/cstate_control
2024-12-17 15:43:53.092 2895-2895 pageboostd pageboostd E Received HALT command code 2
2024-12-17 15:43:53.104 1475-2540 WindowManager system_server E win=Window{93f19d6 u0 com.sec.android.app.launcher/com.sec.android.app.launcher.activities.LauncherActivity} destroySurfaces: appStopped=true cleanupOnResume=false win.mWindowRemovalAllowed=false win.mRemoveOnExit=false win.mViewVisibility=8 caller=com.android.server.wm.ActivityRecord.destroySurfaces:6776 com.android.server.wm.ActivityRecord.destroySurfaces:6757 com.android.server.wm.ActivityRecord.notifyAppStopped:6821 com.android.server.wm.ActivityRecord.activityStopped:7427 com.android.server.wm.ActivityClientController.activityStopped:263 android.app.IActivityClientController$Stub.onTransact:621 com.android.server.wm.ActivityClientController.onTransact:141
2024-12-17 15:43:53.281 1140-31574 HYPER-HAL ven...amsung.hardware.hyper-service E [HandlerSysfs.cpp]doResourceHandling(): Couldn't Open Sysfs - /sys/power/cstate_control
2024-12-17 15:43:53.388 1140-31608 HYPER-HAL ven...amsung.hardware.hyper-service E [HandlerSysfs.cpp]doResourceHandling(): Couldn't Open Sysfs - /sys/power/cstate_control
2024-12-17 15:43:54.937 1140-1201 HYPER-HAL ven...amsung.hardware.hyper-service E [HandlerSysfs.cpp]doResourceHandling(): Couldn't Open Sysfs - /sys/power/cstate_control
2024-12-17 15:43:54.960 2895-2895 pageboostd pageboostd E Received HALT command code 2
2024-12-17 15:43:54.995 1171-1727 NativeCust...ncyManager surfaceflinger E [NativeCFMS] BpCustomFrequencyManager::acquire()
2024-12-17 15:43:54.995 1171-1171 BpTransact...edListener surfaceflinger E Failed to transact (-32)
2024-12-17 15:43:55.741 1140-31612 HYPER-HAL ven...amsung.hardware.hyper-service E [HandlerSysfs.cpp]doResourceHandling(): Couldn't Open Sysfs - /sys/power/cstate_control
2024-12-17 15:43:56.098 1475-2065 Pageboost system_server E ioinfo read failed
2024-12-17 15:43:59.789 1475-1523 Watchdog system_server E !@sync: 1324 heap: 90 / 91 FD: 962 [2024-12-17 15:43:59.788]
2024-12-17 15:44:00.207 1171-1727 NativeCust...ncyManager surfaceflinger E [NativeCFMS] BpCustomFrequencyManager::acquire()
2024-12-17 15:44:02.727 1475-2062 ActivityTaskManager system_server E TouchDown intent received, starting ActiveLaunch
2024-12-17 15:44:02.769 31641-31641 e.appdatasample pid-31641 E Not starting debugger since process cannot load the jdwp agent.
2024-12-17 15:44:02.845 1171-1727 NativeCust...ncyManager surfaceflinger E [NativeCFMS] BpCustomFrequencyManager::acquire()
2024-12-17 15:44:03.071 2895-2895 pageboostd pageboostd E Received HALT command code 2
2024-12-17 15:44:03.658 2895-31658 pageboostd pageboostd E alp start : app comcompanynameappdatasample
2024-12-17 15:44:03.659 1475-2062 ActivityTaskManager system_server E TouchDown intent received, starting ActiveLaunch
2024-12-17 15:44:03.668 2895-31658 pageboostd pageboostd E comcompanynameappdatasample, amt 19936492 scnt 5 fcnt 0
2024-12-17 15:44:03.674 2895-31658 pageboostd pageboostd E comcompanynameappdatasample, amt 21843968 scnt 71 fcnt 2
2024-12-17 15:44:03.674 2895-31658 pageboostd pageboostd E alp end : app comcompanynameappdatasample data_amount 41780460
2024-12-17 15:44:03.758 2895-2895 pageboostd pageboostd E Received HALT command code 2
2024-12-17 15:44:03.871 1140-1201 HYPER-HAL ven...amsung.hardware.hyper-service E [HandlerSysfs.cpp]doResourceHandling(): Couldn't Open Sysfs - /sys/power/cstate_control
2024-12-17 15:44:03.878 1140-1201 HYPER-HAL ven...amsung.hardware.hyper-service E [HandlerSysfs.cpp]doResourceHandling(): Couldn't Open Sysfs - /sys/power/cstate_control
2024-12-17 15:44:03.883 2895-2895 pageboostd pageboostd E Received HALT command code 2
2024-12-17 15:44:03.884 1140-1201 HYPER-HAL ven...amsung.hardware.hyper-service E [HandlerSysfs.cpp]doResourceHandling(): Couldn't Open Sysfs - /sys/power/cstate_control
2024-12-17 15:44:04.145 1171-1221 HWComposer surfaceflinger E getSupportedContentTypes: getSupportedContentTypes failed for display 0: Unsupported (8)
2024-12-17 15:44:04.321 1140-1201 HYPER-HAL ven...amsung.hardware.hyper-service E [HandlerSysfs.cpp]doResourceHandling(): Couldn't Open Sysfs - /sys/power/cstate_control
2024-12-17 15:44:04.321 1140-1201 HYPER-HAL ven...amsung.hardware.hyper-service E [HandlerSysfs.cpp]doResourceHandling(): Couldn't Open Sysfs - /sys/power/cstate_control
2024-12-17 15:44:04.325 2895-2895 pageboostd pageboostd E Received HALT command code 2
2024-12-17 15:44:04.353 1475-3670 WindowManager system_server E win=Window{93f19d6 u0 com.sec.android.app.launcher/com.sec.android.app.launcher.activities.LauncherActivity} destroySurfaces: appStopped=true cleanupOnResume=false win.mWindowRemovalAllowed=false win.mRemoveOnExit=false win.mViewVisibility=8 caller=com.android.server.wm.ActivityRecord.destroySurfaces:6776 com.android.server.wm.ActivityRecord.destroySurfaces:6757 com.android.server.wm.ActivityRecord.notifyAppStopped:6821 com.android.server.wm.ActivityRecord.activityStopped:7427 com.android.server.wm.ActivityClientController.activityStopped:263 android.app.IActivityClientController$Stub.onTransact:621 com.android.server.wm.ActivityClientController.onTransact:141
2024-12-17 15:44:04.577 1140-31659 HYPER-HAL ven...amsung.hardware.hyper-service E [HandlerSysfs.cpp]doResourceHandling(): Couldn't Open Sysfs - /sys/power/cstate_control
2024-12-17 15:44:04.621 1140-31685 HYPER-HAL ven...amsung.hardware.hyper-service E [HandlerSysfs.cpp]doResourceHandling(): Couldn't Open Sysfs - /sys/power/cstate_control
2024-12-17 15:44:04.884 1140-31664 HYPER-HAL ven...amsung.hardware.hyper-service E [HandlerSysfs.cpp]doResourceHandling(): Couldn't Open Sysfs - /sys/power/cstate_control
2024-12-17 15:44:05.765 1140-1201 HYPER-HAL ven...amsung.hardware.hyper-service E [HandlerSysfs.cpp]doResourceHandling(): Couldn't Open Sysfs - /sys/power/cstate_control
2024-12-17 15:44:05.785 2895-2895 pageboostd pageboostd E Received HALT command code 2
2024-12-17 15:44:05.820 1171-1171 BpTransact...edListener surfaceflinger E Failed to transact (-32)
2024-12-17 15:44:05.823 1171-1727 NativeCust...ncyManager surfaceflinger E [NativeCFMS] BpCustomFrequencyManager::acquire()
2024-12-17 15:44:06.571 1140-31690 HYPER-HAL ven...amsung.hardware.hyper-service E [HandlerSysfs.cpp]doResourceHandling(): Couldn't Open Sysfs - /sys/power/cstate_control
2024-12-17 15:44:07.331 1475-2065 Pageboost system_server E ioinfo read failed
2024-12-17 15:44:18.798 1145-1145 sehhealth-service ven...msung.hardware.health-service E Could not open /sys/class/power_supply/battery/lrp
2024-12-17 15:44:29.807 1475-1523 Watchdog system_server E !@sync: 1325 heap: 78 / 91 FD: 953 [2024-12-17 15:44:29.806]

@dotnet-policy-service dotnet-policy-service bot added s/needs-attention Issue has more information and needs another look and removed s/needs-info Issue needs more info from the author labels Dec 17, 2024
@agni-svg
Copy link

I have pasted the crash logcat file// @

@PureWeen
Copy link
Member

@agni-svg I might not be seeing it but it looks like the log is getting cut off

You might need to upload a file.
Once the app crashes and you output to the logcat file. You should be able to see the exception that's happening

@PureWeen PureWeen added s/needs-info Issue needs more info from the author and removed s/needs-attention Issue has more information and needs another look labels Dec 17, 2024
@agni-svg
Copy link

LogcatCrashLogs.txt

@jfversluis @PureWeen please find the attached file for logcat.

@dotnet-policy-service dotnet-policy-service bot added s/needs-attention Issue has more information and needs another look and removed s/needs-info Issue needs more info from the author labels Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-core-platform Integration with platforms platform/android 🤖 s/needs-attention Issue has more information and needs another look t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants