Is there a way to see some kind of hardware diagnostics information in GrapheneOS?
I'm especially interested in the state of the internal storage chip.
hardware diagnostics
- Edited
SIGSEGV I'm not sure what you mean by hardware diagnostics except in the context of storage drives. On computers the internal controller/firmware of storage drives supports SMART and SMART Self-Tests which are important. I've heard the GrapheneOS team calling the internal storage units of Pixels "SSDs" but I don't know if they have internal SMART tracking and Self-Test support as SSDs for computers, and I think that even if they do, it's not surfaced to apps on Android using a standard API but rather requires root access. Also, it's possible that Android/GrapheneOS itself tracks the SMART information and automatically notifies you if the drive has surfaced, using this SMART info, errors that it has internally detected, but I don't know for sure. It'd surely be a useful feature to know in advance about storage failure and prevent a catastrophe.
Watermelon
articles like this https://beebom.com/how-check-storage-chip-health-android-15/
imply that stock os has a "diagnostics" app that displays sotrage health in percentage value, among other things.
But on grapheneos i don't see that diagnostics app
I am also interested in this. I think it would be very useful to have a way to see the internal storage health rating, like on the stock OS. Especially since the relatively frequent updates on GOS likely produce more write cycles on the flash storage, compared to stock.
SIGSEGV This specific article is a bit old and says it's unknown whether this would be Pixel-exclusive or part of AOSP. In addition, it mentions needing to open the activity directly using an activity launcher app, implying that this feature doesn't properly appear in the UI anywhere. I'd personally stay away from features hidden in activities that aren't linked to from anywhere, although I think the app decides whether to export activities (i.e. making an activity launcher app being able to see and open them).
- Edited
spammerofspam The OTA updater uses delta updates. Besides using less internet traffic to download, it also saves time and I/O when applying the delta patch over the older system image. However, when you boot the updated image for the first time it copies the updated image and overwrites the older image in the previously active boot slot, and I'm not sure it uses delta updates for that. And there's also the full AOT compilation of apps though which might cause more I/O than on stock. Anyway, the flash storage has internal wear leveling.
- Edited
Watermelon I'm not worried about uneven wearing. I'd just like to see what the wear level is, for my own curiosity, and also because I think it would probably help with certain types of troubleshooting. For example, we've seen a few "help there's something wrong with my phone" posts where the thinking was "maybe the internal flash has an issue." It would be nice if we could at least easily check the flash health in those situations.
I'm sure it would probably report it as healthy some times when it's not, but if it reports the health as 0% and everyone suspected the issue was related to flash, we would have a more definitive answer for some situations where we currently don't.
Watermelon it's accessible through the special dialer code, it is written in official support https://support.google.com/pixelphone/answer/14257407?hl=en#zippy=%2Caccess-the-pixel-repair-diagnostics-app
i guess they didn't want to expose it to normal user. so running that activity through a special launcher is just another way of starting it.
so the point is - android can cleaely do it, so how do we do it or something similar on grapheneos
Yes, that would be really important for me too.
I bought a second-hand Pixel 8pro and immediately installed GrapheneOS on it.
Then I noticed some problems and wanted to use the Pixel Repair Diagnostics app, which unfortunately doesn't work.
Of course I could change back to the stock rom for this, but it was really quite a hassle to set up GrapheneOS completely.
Accessing the Pixel Repair Diagnostics App would be really important, especially for grapeneos users who are more interested in their phone than normal users.
Diagnostics should be accessible. Especially if you’re like me, your pixel has a factory defect, and requires the diagnostics page for the place to bill google. My options now are pay out of pocket or revert to google and lose everything on my phone anyway.
thechosenjon I'm not sure I follow... if running the diagnostics confirmed a manufacturing defect, the phone would be wiped and sent to Google, no? So it seems as if the need to wipe the phone may be a consequence of the defect.
Like other Google features, I expect that if repair mode can be integrated into GrapheneOS with reasonable development and maintenance costs then it probably will be, but maybe after a significant delay if it's a lot of work. But, like some Google features, if it can't be integrated (perhaps in this case due to being a closed-source proprietary blob), then it probably won't be.
Filing an issue on the GrapheneOS issue tracker might be productive.
originally I was not asking for a full on repair mode or even the stock diagnostics app.
I merely want a way to read info exposed by android, and as far as i understood (maybe im wrong), android does easily expose things like internal storage "health"
i just noticed that stock diagnostics suddenly became available ! not sure which system version introduced the change.
hope the info diagnostics provides is reliable tho... it shows me 100% battery status and 95% storage status after 3 years of usage (pixel 6a).
that 100% seems suspicious...
SIGSEGV it shows me 100% battery status and 95% storage status after 3 years of usage (pixel 6a).
Got same result with P8Pro that's couple of months old..
SIGSEGV i just noticed that stock diagnostics suddenly became available ! not sure which system version introduced the change.
2025032100, I suspect.
Same here