Movatterモバイル変換


[0]ホーム

URL:


XDA Forums
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use analternative browser.

Question [Help Needed] Crash Loop after initial unlocking

Search This thread
By:

Z3r0000

Member
Sep 10, 2020
10
3
Hello everyone,

I'm seeking help to solve a problem that self occured:

Device

  • Device: Google Pixel 8
  • Android version: CalyxOS / shiba-ota_update-25608200 / Android 15 (BP1A.250505.005)

Issue Description

The phone can boot normally without issue When I unlock it after 1st boot (with code), it enters an crash loop every 2-3s.

I woke up a few days ago in the morning, unable to use the phone anymore. It spends the night in airplane mode. It wasn't charging and battery level was approx. 70-60% It was working normally the day before. I'm unable to say if an update has been installed or not - I hadn't any message noticing an update.

I'm under CalyxOS for a year now, very very happy with it. I simply don't uderstand what's happening here.

The issue seems very similar to this:
https://xdaforums.com/t/fake-restart-loop-after-unlock-tips.4724977/

Troubleshooting​

Initially I didn't even had USB debugging, but afterHUNDREDS of tries, I managed to go toSettings > System > Developper > USB debugging in less than 2 seconds (which is kind of a record, not mentionning the UI was pretty unresponsive).

But now, ADB is detecting the phone:
  • Only after 1st unlock (which leads to crash loop)
  • Until the next crash
  • After a new reboot + unlock and replug of USB cable
In other words, I can use ADB for 2-3s maximum😭

I did some extraction usingadb logcat. Findings so far:
  • Crash is due to OutOfMemoryError:
system_server: Throwing OutOfMemoryError "Failed to allocate a 56 byte allocation with 923824 free bytes and 902KB until OOM, target footprint 536870912, growth limit 536870912; giving up on allocation because <1% of heap free after GC." (VmSize 22379880 kB)
  • It cause Fatal exception in various system process:
AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: <proces (process observed across several reboots:binder:1371_10,android.usagestats,android.ui, but i think it can be anything). It makes me think that something else is eating all memory.
  • Crash also occurs in Safemode

  • Another interresting warning:
I trusty : WARN: system/keymint/ta/src/lib.rs:1190 failing DeviceConvertStorageKeyToEphemeral request with error Hal(KeyRequiresUpgrade, "system/keymint/ta/src/lib.rs:422: keyblob with old OS version 140000 needs upgrade to current 150000")W keymint-hal-trusty: kmr_hal: HAL: command DeviceConvertStorageKeyToEphemeral failed: -62

My top priority is to retrieve Data, as I have no recent backup.
A stable ADB access would be OK.

🙏 Any help will be highly appreciated
Thank in advance!

NB: I opened on issue at CalyxOS Gitlab, no news so far:https://gitlab.com/CalyxOS/calyxos/-/issues/3397
 
Last edited:
You can also try to flash a recovery (e.g.orange fox) to have access to your files. But that's just what i would try, didn't do it myself on the P8. No guarantee
 

jons99

Senior Member
Nov 5, 2019
360
401
You can also try to flash a recovery (e.g. to have access to your files. But that's just what i would try, didn't do it myself on the P8. No guarantee
orange fox can't decrypt data
 

Z3r0000

Member
Sep 10, 2020
10
3
Thank you for your replies guys, I'm feeling a bit less alone in this struggle🙏

Did you try reflashing the same rom version you are on?

Yes of course, the 1st try was to sideload the same image. No change unfortunately:(
I hope downgrade would have been possible...
I must wait for the stable release. I though about sideloading the beta, but I'm afraid it will more hurt than solve the problem...and again without the possibility to rollback.

You can also try to flash a recovery (e.g.orange fox) to have access to your files. But that's just what i would try, didn't do it myself on the P8. No guarantee
I did discover OrangeFox after searching TWRP for Pixel.
I have no real feeling about is maturity, and at the moment I prefer to keep this for a last resort. Do you know if its widely used?

And indeed, it can't decrypt data and I have FBE enabled (I'm really thinking of disabling this when I manage to get out of this)

Finally, to be able to flash it, I need to enable OEM unlock...which require to go to the dev menu in less than 3s...again
 
Doc Sniper

Doc Sniper

Senior Member
Dec 8, 2010
554
436
OnePlus 3T
Google Pixel 8
If nothing else helps and before you wipe the Data Partition, you can try this command:


This command forces an upgrade of the Android Keystore system, which may resolve key-related crashes (like the KeyRequiresUpgrade error in your logs).
 
  • Like
Reactions:Z3r0000

Z3r0000

Member
Sep 10, 2020
10
3
If nothing else helps and before you wipe the Data Partition, you can try this command:



This command forces an upgrade of the Android Keystore system, which may resolve key-related crashes (like the KeyRequiresUpgrade error in your logs).

Unfortunately, this does not seems to be available on my CalyxOS:

.\adb.exe wait-for-device shell am start-foreground-service -a android.security.KEYSTORE_FORCE_UPGRADEStarting service: Intent { act=android.security.KEYSTORE_FORCE_UPGRADE }Error: Not found; no service started.
 
Doc Sniper

Doc Sniper

Senior Member
Dec 8, 2010
554
436
OnePlus 3T
Google Pixel 8
Unfortunately, this does not seems to be available on my CalyxOS:

.\adb.exe wait-for-device shell am start-foreground-service -a android.security.KEYSTORE_FORCE_UPGRADEStarting service: Intent { act=android.security.KEYSTORE_FORCE_UPGRADE }Error: Not found; no service started.

Not good. Try this variant, I hope it works:

adb shell am start-foreground-service -n com.android.keychain/.KeyChainService -a android.security.KEYSTORE_FORCE_UPGRADE

Edit: You can also try other commands:

adb shell service call android.security.maintenance X

or

adb shell service call android.system.keystore2 X

You can experiment with different values for X in the command, but be cautious — this may cause unintended system behavior or data loss.
 
Last edited:

Z3r0000

Member
Sep 10, 2020
10
3
Hello Doc,

Thanks for your asnwers.

I tried all of the commands you suggested, without change (the keystore is still not updated.).

Additionnaly: For an unknown reason, the phone decided came back from the deads after 10 days of crash loop. The context: I powered it off for 2 days during a weekend outside (since it was useless) At my return, I started it to test another troubleshoot...and the phone did not crash.
I've no explanation, since I already had tried to let it off for a day or two before.
Since August 11th, it is fine.
Indeed the first thing I did when it decided to work again was to:
  • Unlock OEM (just in case)
  • Set up daily backups
    • Setup an SFTP server (SFTPGo)
    • Setup folder sync (DCIM mainly) with RoundSync
    • Enable SeedVault backup to SFTP through RoundSync
No it can crash whenever it wants, I'm covered😅
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    If nothing else helps and before you wipe the Data Partition, you can try this command:

    adb shell am start-foreground-service -a android.security.KEYSTORE_FORCE_UPGRADE

    This command forces an upgrade of the Android Keystore system, which may resolve key-related crashes (like the KeyRequiresUpgrade error in your logs).
    1
    Hello Doc,

    Thanks for your asnwers.

    I tried all of the commands you suggested, without change (the keystore is still not updated.).

    Additionnaly: For an unknown reason, the phone decided came back from the deads after 10 days of crash loop. The context: I powered it off for 2 days during a weekend outside (since it was useless) At my return, I started it to test another troubleshoot...and the phone did not crash.
    I've no explanation, since I already had tried to let it off for a day or two before.
    Since August 11th, it is fine.
    Indeed the first thing I did when it decided to work again was to:
    • Unlock OEM (just in case)
    • Set up daily backups
      • Setup an SFTP server (SFTPGo)
      • Setup folder sync (DCIM mainly) with RoundSync
      • Enable SeedVault backup to SFTP through RoundSync
    No it can crash whenever it wants, I'm covered😅

[8]ページ先頭

©2009-2025 Movatter.jp