Share your experience!
Hi,
some days ago I got my new Xperia XZ Professional and I like it a lot 🙂
Yesterday, I finished the installation of all of my apps and encountered a really strange problem: With only some app data on my SD card, everything was fine. But after finishing my installation, I had reboots, when my network connection changed! This ony happens, when an SD card is inserted and the problem is reproducible. Test setting:
1. Disable Wifi on router or disable Wifi on phone via settings
2. After about ten seconds, the phone reboots
3. Remove SD card
4. Try point 1 again, no problem
5. Reinsert SD card
6. Same problem as before
I'm on Android 7.1.1 build number 45.0.A.1.229 and my sd card is a Lexar Professional 128GB High-Performance Class 10 UHS-I 600x 95MB/s Micro SDXC card. Here's the output of a exfatfsck under linux:
exfatfsck 1.2.5
WARN: volume was not unmounted cleanly.
Checking file system on /dev/sdb1.
File system version 1.0
Sector size 512 bytes
Cluster size 128 KB
Volume size 119 GB
Used space 70 GB
Available space 50 GB
Totally 880 directories and 42723 files.
File system checking finished. No errors found.
And a 'df -h' shows:
Filesystem Size Used Avail Use%
/dev/sdb1 120G 70G 50G 59%
As you can see, the sd card is heavily used, but this shouldn't be a problem. The warning about the unclean unmount is due to the sudden reboot of the phone, but the filesystem is consistent.
A 'adb logcat' before a reboot did not give me any insghts about the cause of the problem. But I'm not an Android programmer... perhaps I missed the essential messages due to inexperience in Android device debugging.
Any hint how to solve this strage issue would be appreciated!
Solved! Go to Solution.
There are plenty of strange things, but I think you're doing progress in a systematic investigation! I agree that the permissions looks good so that wasn't it. Then the file manager can access external card, that's a bit unexpected. New apps working, but those you already had installed doesn't?
> relates to "this phone", "the new card name", "the backup content" separately
Thanks for breaking it down for me. You concluded that "backup" seems to be irrelevant. For "new card name" I thought that there might be references to the old name in the backup, but that is then also irrelevant. With "this phone" I didn't specifically mean HW problems, but something stored in the phone, settings or so. Something that was not there from the beginning. If you were able to try the card in another phone it could bring evidence to "the phone" theory. Seeing that the other theories are probably irrelevant, this is still the best current idea. Trying the card again after a factory reset is the next best thing after trying another phone. 🙂
The mount list shows that there is something that is belived to be encrypted. It could be something Spotify does to protect their cache (being precious music data I guess) and possibly nothing wrong in itself. It didn't happen when I tried Spotify briefly, but may be I didn't do exactly like you.
Let us know if you get more insight.
Ok, now I understand what you meant by "the phone". And after this weekend, I have proof that you were right with the "the phone" theory. But let's look at it step by step:
Well theories aside, I took a look at dmesg output yesterday. Here are some entries I found strange:
Hmm, invalid supeblock and some filesystem inconsistencies - not what I wanted to see...
Don't know what to think about the ecrytfs entries. SD card should not be encrypted!
And here some more "avc: denied" messages and ecryptfs messages:
With the logs from my last entry, my current theory is the following: My initial attempt to encrypt the card was around the reboot issues I had (the beginning of this thread). As a result, the information on the internal storage got corrupted somehow and the system still thinks, that parts of the SD card are encrypted and parts of the SD card file access permissions got corrupted as well.
So I did a software repair with the Xperia Companion to get a complete new install (and not just a factory reset). I did this with the SD card in place (and intentionally not reformatting it). Before I made a backup of the system (everything available) with the "Backup & Restore" app of the phone (target: SD card). After the software repair I let Google Play reinstall all my apps and restored everything available with "Backup & Restore".
Now everything is back to normal again and I can access the SD card from all apps (Spotify, MAPS.ME, etc.) without problems.
I will follow up on this topic when I find the time to look at the logs - please give me some days 🙂
Just for reference and maybe it will help someone in a similar situation.
Addendum part I:
[ 6.872765] e2fsck: /system/bin/e2fsck: Bad magic number in super-block while trying to open /dev/block/bootdevice /by-name/userdata [ 6.905012] e2fsck: /dev/block/bootdevice/by-name/appslog: 40/1024 files (5.0% non-contiguous), 1159/4096 blocks [ 6.918033] e2fsck: /dev/block/bootdevice/by-name/diag: 51/2048 files (2.0% non-contiguous), 1270/8192 blocks
Final post in this thread - maybe 😉
I want to thank the Sony support team and especially JensG for the great support during this error tracking session. Without the help of Jens, I wouldn't have gotten this far and I learned a lot while debugging this issue. Thank you very much!
-- Kareema