fix: import crashes on miui, #103#236
fix: import crashes on miui, #103#236tmo1 merged 2 commits intotmo1:masterfrom askorbinovaya-kislota:master
Conversation
|
there is a better way to get system properties with reflection, if you don't want to invoke getprop: https://github.com/Aefyr/SAI/blob/55505d231b1390e824d1cc0c8f4fa35fd4677105/app/src/main/java/com/aefyr/sai/utils/Utils.java#L68 and this might be interesting: https://github.com/Aefyr/SAI/blob/master/app/src/main/java/com/aefyr/sai/utils/MiuiUtils.java (uses the same method to detect miui) |
|
Looks good, but a couple of comments:
|
i didn't know how are those fields used, checked for miui just to be sure nothing changes on other roms i'll update it based on what you suggested |
I've never seen those two fields outside of MIUI exports, so I tentatively assume that they're some kind of MIUI proprietary extension to Android's SMS storage format, but I admit that I'm not really sure. |
|
Thank you! Your original commit removed the MIUI fields only from SMS messages, while your subsequent commit removes them from MMS messages as well. Are these fields present in MMS messages? |
just checked - yes. and import fails with the same error when fields were not deleted |
|
Thank you! |
when device has miui, it now removes the "deleted" and "sync_state" fields
i've tested it on my device and it works now