bug: Threads fbns process leaks thousands of threads, floods Keystore/StrongBox, triggers system_server watchdog restarts
HushThreads and Threads versions
Version 0.0.11 for Threads 449.0.0.54.82
Which Threads file did you patch?
arm64-v8a, an .apkm bundle
What did you patch Threads with?
Morphe Manager (the Android app)
Its version
1.34.0
How was it installed?
Standard install (re-signed)
Phone and Android version
Samsung Galaxy S24 Ultra (SM-S928U1), Android 16
Which patches were in your build?
Block background-return feed refresh, Disable analytics, Disable video autoplay, Hide ads, Hide suggested users, HushThreads settings, Open links in browser, Pure black dark mode, Remove the advertising ID, Restore screens on re-signed builds, Sanitize sharing links
Where did it happen?
Other
What went wrong?
After updating to firmware S928U1UES6DZI2 (Android 16, kernel 6.1.145) on 2026-10-04 22:17 (+08:00), my device began restarting at random. A bugreport shows these are system_server watchdog restarts, not kernel panics.
Two system_server_watchdog entries exist in DropBox, both after the firmware update and none before:
| Time (+08:00) | Event |
|---|---|
| 2026-10-05 17:01:26 | PLATFORM WATCHDOG RESET |
| 2026-10-06 13:24:45 | PLATFORM WATCHDOG RESET |
Kernel uptime was not reset, so these are framework restarts that look like random reboots. The one reboot at 2026-10-05 00:52 was user-requested.
Both watchdog reports have the same signature: Blocked in monitor com.android.server.StorageManagerService on monitor thread (watchdog.monitor) for 72s.
Evidence:
- Thread explosion in fbns: two tombstones (2026-10-05 00:07 and 12:49, SIGABRT in
libstartup.so) show about 8,000 threads incom.instagram.barcelona:fbnsafter only 46 seconds of process uptime — roughly 5,300 namedSystemDNSand 1,300MNSEventLoop. The memory map had 66,092 entries (above the usual 65,530 limit), and logcat shows repeatedshadow stack read-write mprotect failed: Out of memory. For comparison, Threads tombstones from before the firmware update show about 90 threads each. - Keystore flood: in the 2026-10-05 17:01 ANR trace, keystore2 had 138 pending binder transactions from the fbns process (max elapsed 41 s). On 2026-10-06 keystore2's own watchdog logged about 33 overdue
IKeystoreSecurityLevel::createOperationcalls forr#STRONGBOX, all from the Threads UID, pending 30 to 47 seconds. - StrongBox service saturated: in both watchdog reports,
android.hardware.security.keymint-service-spu-qtiused 77% and 85% kernel CPU respectively. - vold blocked on keystore2: vold's main thread had an outgoing binder transaction to keystore2 pending for 36.6 s. system_server's
IVold.monitor()call was stuck behind it, which is what the watchdog reported.
Hypothesis (unverified): HushThreads' Disable analytics patch redirects Pigeon, event-log and MQTT endpoints to 127.0.0.1 on a port with no listener. fbns is the MQTT push process. Repeated local connection failures might trigger a retry loop in the Meta network stack that spawns DNS and event-loop threads, and the resulting load may reach Keystore. I have not confirmed this.
I do not know whether HushThreads itself causes this. I am reporting the pattern and one hypothesis so it can be checked.
What did you tap, in order?
- Updated to firmware S928U1UES6DZI2 on 2026-10-04.
- Used the phone normally.
- The phone restarted suddenly on its own (2026-10-05 17:01 and 2026-10-06 13:24).
Diagnostic report
Not attached yet — debug logging was just enabled. I can export and provide the report on request.
Anything else?
- Not yet tried: (a) disabling the analytics patch and observing for 48+ hours; (b) reproducing with the stock Play Store Threads; (c) testing without
Remove the advertising IDandRestore screens on re-signed builds. - Other Morphe-patched apps on this device: Instagram, Facebook, Reddit, X, LINE, YouTube, Gboard.
- Questions: (1) Has anyone seen unbounded
SystemDNS/MNSEventLoopthread growth in the fbns process with these patches? (2) Could a failing MQTT or analytics redirect cause a reconnect loop there? (3) Is there a recommended patch combination for Android 16 / One UI 8 devices? - I can provide a redacted excerpt of the relevant logs (watchdog report, tombstone thread counts, keystore2 watchdog records). The full bugreport contains personal data, so I am not attaching it directly.
Before you send it
- [x] I searched the open and closed bug reports and this isn't one of them.
- [x] I answered every question above as well as I could.
Hey @changhenry2, found one cause. On a re-signed build the push process (fbns) fails a check of Threads' certificate and adds a thread every time you come back to the app. Restore screens on re-signed builds now passes it the original one, and the count stays flat for me. Ships with the next update.
Never saw anything near your 8,000 though, so once you've repatched, does the restarting stop?
The fbns fix has been in every build since 0.0.12, so I'm closing this. If your phone still restarts after you update and repatch, say so here and I'll reopen it. On my phone the thread count stays flat now.