Status Update
Comments
ce...@gmail.com <ce...@gmail.com> #2
[Comment deleted]
po...@gmail.com <po...@gmail.com> #3
[Comment deleted]
va...@gmail.com <va...@gmail.com> #4
[Comment deleted]
da...@gmail.com <da...@gmail.com> #5
[Comment deleted]
ia...@gmail.com <ia...@gmail.com> #6
I have attached an APK that I wrote to help with this problem myself. It presents a list of the orphaned message parts in the database and allows you to delete each of them (after reviewing them to make sure they're part of a message that you did actually receive, and not part of a message that is currently partially received).
I give no warranties as to how well (or even if) it will work, but you're welcome to try it. It certainly fixed the problem for me. I tend to run it about once a month, but you might need to run it more/less frequently depending on how much you receive multi-part messages.
I give no warranties as to how well (or even if) it will work, but you're welcome to try it. It certainly fixed the problem for me. I tend to run it about once a month, but you might need to run it more/less frequently depending on how much you receive multi-part messages.
da...@gmail.com <da...@gmail.com> #7
I just installed and used your app. Found a BUNCH of messages that were flagged as orphaned that were the rest of the messages that never came across the first time.
If this works (which there is every indication that it will), then I truly thank you and my girlfriend appreciates not having to resend every message twice. Will update again in a few days with more results. But at least you are doing more than google to resolve the issue.
If this works (which there is every indication that it will), then I truly thank you and my girlfriend appreciates not having to resend every message twice. Will update again in a few days with more results. But at least you are doing more than google to resolve the issue.
va...@gmail.com <va...@gmail.com> #8
[Comment deleted]
va...@gmail.com <va...@gmail.com> #9
[Comment deleted]
va...@gmail.com <va...@gmail.com> #10
OMG you are magician!!! Even if I don't get to receive a full message, at least I know where to look for it now :))) Thank you for your help darling xxx
aj...@gmail.com <aj...@gmail.com> #11
[Comment deleted]
aj...@gmail.com <aj...@gmail.com> #12
Appears to be the same issue as 17769. Please star both as it might eventually get noticed by the devs!
ia...@gmail.com <ia...@gmail.com> #13
Agree with #11. Same as but 17769. Sorry about the duplication :-(
aj...@gmail.com <aj...@gmail.com> #14
Well done Ian for actually working out the cause of the problem and supplying a fix! Surely the google devs should be able to easily fix this with such a good diagnosis of the problem!
ia...@gmail.com <ia...@gmail.com> #15
Thanks. Although a proper fix isn't as easy as it might seem. It's arguably a problem with the underlying SMS protocol - the problem being that a single byte reference number is used to tie multiple parts of a long message together. SMS messages can be missed or duplicated as a natural part of the protocol, and parts of a multi-part SMS message can arrive out-of-order over relatively long period of time.
(The SMS protocol has actually been updated so that there is an optional implementation of 16-bits for the reference number, but the original 8-bit specification is still valid, and is widely implemented)
It's actually quite hard to tell the difference between:
1. An isolated 'part' of a message, for which the remainder of the message has not yet arrived.
2. An isolated 'part' of a message, which is a duplicate (re-sending) of part of a whole message that was received earlier (and possibly already deleted by the user).
3. An isolated 'part' of a message, for which the remainder of the message will never be received (this shouldn't happen, but it could - there are a few edge cases).
Telling the difference between these is tricky to do in an automated and consistent way. And what should the handset do with isolated parts that it decides aren't worth holding onto any more? (for instance, in the second case, which is the case that causes this bug). Certainly the handset shouldn't hold on to them forever (which it currently does), because there's a danger of confusing stored parts of old messages with incoming parts of new messages when the 8-bit reference number wraps around (which it currently does). And it probably shouldn't delete them, because they might not be duplicates (cases 1 and 3 above).
The handset could decide to display isolated message parts to the user, as a "partially received" incoming message. This is probably what I would do, and is consistent with the behaviour of single-part messages when there is re-sending in the network (you will doubtless have noticed that you sometimes receive two copies of a short message with the same timestamp). But how long should the handset wait before it does this? It's conceivable, for instance, that part of a message was received before you went on vacation for a long weekend (and turned off your phone), and the network only sent the last part when you returned. Again, this is a bit of an edge case, but I'm trying to highlight the difficulty in finding an obvious and "correct" fix for the problem.
If there was an obvious fix, I would have submitted a patch to the Android source code instead of (or as well as) raising the bug. But to fix it in the way I described above is actually quite a complex change across several software components, and there's no guarantee that Google would have the same opinion about whether it was the 'right' way to fix the problem.
(The SMS protocol has actually been updated so that there is an optional implementation of 16-bits for the reference number, but the original 8-bit specification is still valid, and is widely implemented)
It's actually quite hard to tell the difference between:
1. An isolated 'part' of a message, for which the remainder of the message has not yet arrived.
2. An isolated 'part' of a message, which is a duplicate (re-sending) of part of a whole message that was received earlier (and possibly already deleted by the user).
3. An isolated 'part' of a message, for which the remainder of the message will never be received (this shouldn't happen, but it could - there are a few edge cases).
Telling the difference between these is tricky to do in an automated and consistent way. And what should the handset do with isolated parts that it decides aren't worth holding onto any more? (for instance, in the second case, which is the case that causes this bug). Certainly the handset shouldn't hold on to them forever (which it currently does), because there's a danger of confusing stored parts of old messages with incoming parts of new messages when the 8-bit reference number wraps around (which it currently does). And it probably shouldn't delete them, because they might not be duplicates (cases 1 and 3 above).
The handset could decide to display isolated message parts to the user, as a "partially received" incoming message. This is probably what I would do, and is consistent with the behaviour of single-part messages when there is re-sending in the network (you will doubtless have noticed that you sometimes receive two copies of a short message with the same timestamp). But how long should the handset wait before it does this? It's conceivable, for instance, that part of a message was received before you went on vacation for a long weekend (and turned off your phone), and the network only sent the last part when you returned. Again, this is a bit of an edge case, but I'm trying to highlight the difficulty in finding an obvious and "correct" fix for the problem.
If there was an obvious fix, I would have submitted a patch to the Android source code instead of (or as well as) raising the bug. But to fix it in the way I described above is actually quite a complex change across several software components, and there's no guarantee that Google would have the same opinion about whether it was the 'right' way to fix the problem.
po...@gmail.com <po...@gmail.com> #16
Hello people! I've read issue 36929744 , and it seems to be about shuffling SENT sms'es, while this issue is about shuffling RECEIVED sms'es, and both point to different parts of code. So they are connected, but not identical.
Also, that issue does not provide that great app Ian posted! By the way Ian, any chance to have a 'Remove all' button? I've got about 200 orphaned parts, hard to delete them all manually.
Also, that issue does not provide that great app Ian posted! By the way Ian, any chance to have a 'Remove all' button? I've got about 200 orphaned parts, hard to delete them all manually.
po...@gmail.com <po...@gmail.com> #17
As for the fix, I think there might be a time-related heuristic for sms with 8-bit sequence field. For example, there is a time limit for delivery attempts, specified by mobile provider, and I've read somewhere that maximum limit is 72 hours (Provider will give up delivering sms if it was not received for 72 hour period). So if an sms part arrives after this limit (And my content://raw/sms contains 2 year old pieces) - it should be considered a new sms and not get mixed with old parts.
da...@gmail.com <da...@gmail.com> #18
#15, issue 36929744 seems to be the same issue, just the depends on the person reporting it (the assumption being that the sender caused the problem rather than the recipient). In both issues, the sent message looked correct and the recipient message was garbled.
Also, I agree with the remove all option, but I was just so happy to have a fix that I didn't care about having to spend 5 minutes clearing them one by one.
Also, I agree with the remove all option, but I was just so happy to have a fix that I didn't care about having to spend 5 minutes clearing them one by one.
js...@gmail.com <js...@gmail.com> #19
Does this app require root access?
I don't seem to have any issues with receiving jumbled messages, but my gf does. I have root access on my phone, she does not have it on hers.
Thanks
I don't seem to have any issues with receiving jumbled messages, but my gf does. I have root access on my phone, she does not have it on hers.
Thanks
da...@gmail.com <da...@gmail.com> #20
I have root on my phone and had the issue. My ex didn't have root and also had the issue. Not sure if the app requires it.
Reporting back as I said I would, this seems to have cleared the issue for me. No jumbled texts over the weekend and lots of multi-texts. So I went from several a day to none since I used this app to clear orphans. I checked today and had two more orphaned (even though the original came through successfully). I cleared those and hope to have continued sanity.
Ian, I will raise a beer to you the next time I have one.
Reporting back as I said I would, this seems to have cleared the issue for me. No jumbled texts over the weekend and lots of multi-texts. So I went from several a day to none since I used this app to clear orphans. I checked today and had two more orphaned (even though the original came through successfully). I cleared those and hope to have continued sanity.
Ian, I will raise a beer to you the next time I have one.
po...@gmail.com <po...@gmail.com> #21
#18 Jsiro: No, the app does not require root access. And, from your description, your girlfriend should install it=)
da...@gmail.com <da...@gmail.com> #22
@ian_pay THANK YOU so much for that app. It works perfectly.
[Deleted User] <[Deleted User]> #23
This worked for me, and the clear and precise explanation makes perfect sense.
(I'm guessing that in some circumstances someone could build up an orphan fragment for basically all ~256 8-bit IDs and then every subsequent multi-part message would get muddled up!)
Once again, thanks Ian for your effort on getting to the bottom of this.
(I'm guessing that in some circumstances someone could build up an orphan fragment for basically all ~256 8-bit IDs and then every subsequent multi-part message would get muddled up!)
Once again, thanks Ian for your effort on getting to the bottom of this.
ia...@gmail.com <ia...@gmail.com> #24
I'm glad people are finding the app working for them. And just to confirm what other people have answered above: the app doesn't need root, and it should be used by the *recipient* of the messages that are being corrupted.
@the784: You're right, but it would take a little bit more than 256 orphaned message parts for every subsequent message to get corrupted - because there has to be a match in the message sender and the total message part count too. So you could have 256 orphans of 2-part messages from a particular person covering each ID, and then every subsequent 2-part message from that person would get corrupted. But those orphaned parts wouldn't match incoming parts of a 3-part message from the same person, or a 2-part message from someone else. Not that that makes it OK, of course. I'm just saying.
Of course, another way to get around this problem is to get whoever is sending you all those multi-part messages to change their phone number. So if we all get our spouse/partner/best-mates to change their phone number periodically then this would be a non-issue. I appreciate that this may not be as convenient as running the app from time to time, but I thought I'd better mention it in a spirit of completeness. And the same could be achieved by switching to a different spouse/partner/best-mate periodically instead ;-)
@the784: You're right, but it would take a little bit more than 256 orphaned message parts for every subsequent message to get corrupted - because there has to be a match in the message sender and the total message part count too. So you could have 256 orphans of 2-part messages from a particular person covering each ID, and then every subsequent 2-part message from that person would get corrupted. But those orphaned parts wouldn't match incoming parts of a 3-part message from the same person, or a 2-part message from someone else. Not that that makes it OK, of course. I'm just saying.
Of course, another way to get around this problem is to get whoever is sending you all those multi-part messages to change their phone number. So if we all get our spouse/partner/best-mates to change their phone number periodically then this would be a non-issue. I appreciate that this may not be as convenient as running the app from time to time, but I thought I'd better mention it in a spirit of completeness. And the same could be achieved by switching to a different spouse/partner/best-mate periodically instead ;-)
po...@gmail.com <po...@gmail.com> #25
#23 Ian, for the sake of completeness, another possible solution would be to change phone from Android to something else, like iPhone or even switch back to several-year-old Siemenses, Sony-Ericssons, Nokias, and so on.=)) Never seen such ugly bugs on my older phones %)
he...@gmail.com <he...@gmail.com> #26
Thanks Ian. I found a lot of old messages and deleted them.
Appreciate you taking time to post the message.
cheers.
Appreciate you taking time to post the message.
cheers.
tr...@gmail.com <tr...@gmail.com> #27
Another thank you Ian for going to the trouble.
da...@gmail.com <da...@gmail.com> #28
Thanks Ian!!!!
ro...@gmail.com <ro...@gmail.com> #29
Thanks for working on a solution for the community. I was hopelees to see an end to this problem.
mp...@hotmail.com <mp...@hotmail.com> #30
Ian, Thanks very much for the APK. Like the others I found a dozen orphaned messages which I was able to delete.
--
However the last time this problem occurred wasn't a multipart message - but it was text attached to a photo being sent. Does this count as a multipart message do you think?
--
The sequence was:
- a friend sent me a photo with some text
- I deleted it after reading
- Days later I sent a photo back with no text
- Bizarrely, both phones showed my photo with my friends text (!)
I appreciate this may be a different issue completely and you've spent enough time on this already :-)
Mike.
--
However the last time this problem occurred wasn't a multipart message - but it was text attached to a photo being sent. Does this count as a multipart message do you think?
--
The sequence was:
- a friend sent me a photo with some text
- I deleted it after reading
- Days later I sent a photo back with no text
- Bizarrely, both phones showed my photo with my friends text (!)
I appreciate this may be a different issue completely and you've spent enough time on this already :-)
Mike.
ca...@gmail.com <ca...@gmail.com> #31
Hi Ian,
I had a problem with texts not being received and jumbled up messages about 6 years ago. I had a non android phone back then and it occurred with a person I used to text loads.
I've had 5 different phones since then, 3 non android and this issue has continued. I've also had 3 different providers and still the person I text gets jumbled messages from me, or sometimes doesn't receive mine at all and vice versa.
The only thing I've never changed is my phone number, I've had the same number since I was 15 (I'm now 25) so is it possibly this could be the issue?
If it is a number issue why does this happen?
I had a problem with texts not being received and jumbled up messages about 6 years ago. I had a non android phone back then and it occurred with a person I used to text loads.
I've had 5 different phones since then, 3 non android and this issue has continued. I've also had 3 different providers and still the person I text gets jumbled messages from me, or sometimes doesn't receive mine at all and vice versa.
The only thing I've never changed is my phone number, I've had the same number since I was 15 (I'm now 25) so is it possibly this could be the issue?
If it is a number issue why does this happen?
ia...@gmail.com <ia...@gmail.com> #32
@mpsteven... That would likely be an MMS message, and MMS messages are not handled the same as for SMS (while the user interface is unified, the underlying message protocol is very different), so it seems unlikely that it's related.
@vavavoo... I can't think of a mechanism that would make this happen with the same telephone number on different carriers. Certainly SMS is an "unreliable" protocol, meaning that you get the carrier's best attempt at delivering your message and nothing more. Also (like email), it's a "store and forward" system, meaning that the carrier holds on to messages until they can be delivered. These two things together mean that non-delivery issues are bound to crop up from time to time.
I've had examples in the past where my carrier failed to deliver some messages over a period of a couple of weeks, and then the missing messages all arrived at once one day - I'm assuming that a message handling server within the carrier's network had stalled somehow, and that when this was noticed the backed up messages were delivered. There are countless ways that this kind of thing can happen.
However, the particular Android bug that we're discussing here results in messages being corrupted on the handset when they are received. So certainly some of what you describe could be due to it, but it seems probably that you've been experiencing more than one problem over that time.
@vavavoo... I can't think of a mechanism that would make this happen with the same telephone number on different carriers. Certainly SMS is an "unreliable" protocol, meaning that you get the carrier's best attempt at delivering your message and nothing more. Also (like email), it's a "store and forward" system, meaning that the carrier holds on to messages until they can be delivered. These two things together mean that non-delivery issues are bound to crop up from time to time.
I've had examples in the past where my carrier failed to deliver some messages over a period of a couple of weeks, and then the missing messages all arrived at once one day - I'm assuming that a message handling server within the carrier's network had stalled somehow, and that when this was noticed the backed up messages were delivered. There are countless ways that this kind of thing can happen.
However, the particular Android bug that we're discussing here results in messages being corrupted on the handset when they are received. So certainly some of what you describe could be due to it, but it seems probably that you've been experiencing more than one problem over that time.
st...@gmail.com <st...@gmail.com> #33
Hi Ian,
I've been texting with my friend past 2 weeks - several multipart messages a day - and she received few corrupted ones. I have installed your app, but no entries showed up. Is it alright? I thought there should be some.
My other problem is missing incoming sms - I receive a message (NoLED shows incoming sms as well as notification tray), but when I open it, there is no new message. It happened few times and those were multipart messages, too. My friend had to resend, then it was ok. It's quite frustrating, I did not have this problem before (but I did not send/receive such an amount of multipart messages to/from one person before as well).
It seems it's similar problem like vavavoo has. I would be grateful for any hint...
I've been texting with my friend past 2 weeks - several multipart messages a day - and she received few corrupted ones. I have installed your app, but no entries showed up. Is it alright? I thought there should be some.
My other problem is missing incoming sms - I receive a message (NoLED shows incoming sms as well as notification tray), but when I open it, there is no new message. It happened few times and those were multipart messages, too. My friend had to resend, then it was ok. It's quite frustrating, I did not have this problem before (but I did not send/receive such an amount of multipart messages to/from one person before as well).
It seems it's similar problem like vavavoo has. I would be grateful for any hint...
da...@gmail.com <da...@gmail.com> #34
#32 She is the one that needs to install the app. It needs to be installed where the problem is.
On a side note, after ATTs recent upgrade to 4.1.2 for my GS2, I have had no entries appear with the app.
On a side note, after ATTs recent upgrade to 4.1.2 for my GS2, I have had no entries appear with the app.
wa...@gmail.com <wa...@gmail.com> #35
Great app! Cheers!
ch...@gmail.com <ch...@gmail.com> #36
The app works excellently. My messages are back to normal. Thank you loads. ^^
lu...@gmail.com <lu...@gmail.com> #37
Thanks Ian! The App. worked perfect, i have cleared most of the hundreds of messages that were stored, however is there any way to retrieve/view the full message before deleting?
ia...@gmail.com <ia...@gmail.com> #38
@luik87 (#36). I guess it would be technically possible to scan your current message database (the database of "complete" received messages) to try to identify which of the multi-part messages an orphaned part belongs to. But you could easily have deleted the message already - and matching an orphaned part to the correct message is subject to some of the same ambiguities that caused the part to be orphaned in the first place. That is, the message database would have to be scanned for a message with the same number of parts and message ID that the orphaned part has. It ought to be possible to do something with the date-stamps to find a "most likely" message.
I'll put it on my "TODO" list. Or I'll get round to posting the source somewhere useful like github, and someone else can do it ;-)
I'll put it on my "TODO" list. Or I'll get round to posting the source somewhere useful like github, and someone else can do it ;-)
al...@gmail.com <al...@gmail.com> #39
Ian you are the greatest legend to ever walk this Earth. I found over 200 orphan parts going back 18 months. I've struggled with this every which way and tried everything I could think of - normally I can fix anything - but was stumped. Honestly cannot thank you enough for this.
It's an absolute bloody disgrace that it's had to fall to you to do this. For such a widespread fault with the most fundamental function of a phone to go unfixed for so long beggars belief. Shameful.
It's an absolute bloody disgrace that it's had to fall to you to do this. For such a widespread fault with the most fundamental function of a phone to go unfixed for so long beggars belief. Shameful.
br...@gmail.com <br...@gmail.com> #40
[Comment deleted]
br...@gmail.com <br...@gmail.com> #41
[Comment deleted]
br...@gmail.com <br...@gmail.com> #42
[Comment deleted]
to...@gmail.com <to...@gmail.com> #43
Ian, google owes you millions of pounds in my eyes for this tremendous workaround. It's been bothering me for so long now!
It's flabbergasting that google hasn't solved this, or at least introduced a similar workaround. It seems money can get them some 'cool' staff. But it can't get them someone as great as Ian. Cheers man!
It's flabbergasting that google hasn't solved this, or at least introduced a similar workaround. It seems money can get them some 'cool' staff. But it can't get them someone as great as Ian. Cheers man!
ro...@googlemail.com <ro...@googlemail.com> #44
Brilliant work Ian! You don't know how much hassle and fuss you've saved me from having to deal with.
zi...@gmail.com <zi...@gmail.com> #45
Ian I have this exact problem outlined here on my GS3 (runnng 4.1.2) and for whatever reason, your app crashes on me (Unfortunately, SMS Multi-Part Cleaner has stopped) and doesn't seem to work. I'd love to fix this problem and your fix seems to be the only one around. Got any advice/a solution?
ia...@gmail.com <ia...@gmail.com> #46
@Zigman (#44) - see my email to you.
fl...@gmail.com <fl...@gmail.com> #47
Hi ian.pay. I have A Lg optimus 2x, running 4.2.2 and your app doesn´t show nothing for me. I don´t see sms parts. Got any advice/a solution?
ia...@gmail.com <ia...@gmail.com> #48
@flavio #46 Could be two things: 1) You don't actually have any orphaned message parts. Are you definitely receiving messages that are corrupted as described above? 2) LG have changed the format of the SMS raw database - which they are at liberty to do, as it's not part of the Android API, I'm afraid.
th...@gmail.com <th...@gmail.com> #49
Thank you so much Ian. This corrupted SMS issue had been driving me nuts until I found your explanation and fix. When I ran your multipart cleaner app I did indeed find many orphan multipart messages which I was able to delete. Have you considered making it available in Google Play so that Customer Service people can refer customers to it?
a....@gmail.com <a....@gmail.com> #50
I have been suffering from this SMS issue for years. Since I have a single contact that send a lot of multi-part messages I almost always have rogue SMS parts.
A friend of mine created an App to view/export and clear these Orphaned parts which has recently been uploaded to Google Play store which can be found here:https://play.google.com/store/apps/details?id=com.michalmazur.orphanedtexts
A friend of mine created an App to view/export and clear these Orphaned parts which has recently been uploaded to Google Play store which can be found here:
ia...@gmail.com <ia...@gmail.com> #51
Cool. Looks like I don't need to upload mine to the Play Store then :-)
da...@gmail.com <da...@gmail.com> #52
not had the problem myself but was looking for a solution for my daughter.
just wanted to say thanks Ian for taking the time to find a solution.
just wanted to say thanks Ian for taking the time to find a solution.
yw...@gmail.com <yw...@gmail.com> #53
I have a s3 4g and have had this issue 36929744 a few times before while sending messages to my mother's s3 phone, today it happened when i sent a message to my boyfriend's s3. Not a very nice situation to be in. I have deleted both my mother's and my boyfriend's conversation threads and then i installed and ran your multipart cleaner, however there are no orphaned texts, i imagine i fixed the problem temporarily by deleting threads, but i will run your app in a few weeks and see what comes up. Thank you for shedding some light on this for us. Hopefully the confusion ends with this app!!!
yw...@gmail.com <yw...@gmail.com> #54
..have also read comment #23 and noted *recipient* of messages.
Thank you
Thank you
er...@gmail.com <er...@gmail.com> #55
Thanks for all your comments everybody - this problem was starting to cause my girlfriend and I quite a lot of frustration (granted, after the initial amusement). Extra special thanks to Michal Mazur for creating the "Orphaned Text" App and sharing it on Google Play for us. It works well :-)
Cheers!
Cheers!
xe...@live.se <xe...@live.se> #56
Very nice app. One question though, since we can see thos orphaned messages, is there a way for you to make an app that can read ALL messenges and clean all of them to if necessary?
Perhaps you might wanna share the source code?
Kind regards Xeno
Perhaps you might wanna share the source code?
Kind regards Xeno
ja...@gmail.com <ja...@gmail.com> #57
Thanks for Ian and Michal!
Why Android Dev Team is remain silent!!! They should solved this problem a long time ago!
Why Android Dev Team is remain silent!!! They should solved this problem a long time ago!
m....@gmail.com <m....@gmail.com> #58
When can we expect this issue to be solved? Is there any timeline?
ia...@gmail.com <ia...@gmail.com> #59
Given that this particular issue ID was reported 18 months ago and (as far as I can tell) has probably existed since the earliest versions of Android, I wouldn't hold my breath for a fix.
I think the most likely route for a fix is if someone submits a patch to the AOSP that is then adopted. But this patch would have to address the ambiguity that I outlined in my comment #14 above - so it's not straight-forward.
Meanwhile, other chat services are overtaking SMS (e.g.http://www.bbc.co.uk/news/business-22334338 ), so I would be inclined to see SMS as a legacy messaging system anyway and unlikely to receive much further attention.
Just my opinion.
I think the most likely route for a fix is if someone submits a patch to the AOSP that is then adopted. But this patch would have to address the ambiguity that I outlined in my
Meanwhile, other chat services are overtaking SMS (e.g.
Just my opinion.
[Deleted User] <[Deleted User]> #60
[Comment deleted]
so...@gmail.com <so...@gmail.com> #61
Followed instructions in #5 on mine and friends phone and still getting mixed messages... ahhhhhh....
su...@gmail.com <su...@gmail.com> #62
Can anyone who has used Ian's cleaner or the one on the android market please let me know if they delete your existing messages or are they still there?. I am having this problem and want to try these solutions but don't want to risk losing my messages. Thanks.
ja...@gmail.com <ja...@gmail.com> #63
It does not delete your sms, it will delete your parts of loosed chanes of messages that stored in special db, not in normal sms storage.
ch...@gmail.com <ch...@gmail.com> #64
Won't delete SMS database, however, it sounds like you don't back them up yet care about them.. Back em up NOW :)
tr...@gmail.com <tr...@gmail.com> #65
What he said. I recommend SMS backup +
https://www.google.co.uk/url?sa=t&source=web&rct=j&ei=kWSQUtLBFaO90QW4t4HQCQ&url=https://play.google.com/store/apps/details%3Fid%3Dcom.zegoggles.smssync%26hl%3Den_GB%26referrer%3Dutm_source%253Dgoogle%2526utm_medium%253Dorganic%2526utm_term%253Dsms%2Bbackup%2B%252B&cd=1&ved=0CDUQFjAA&usg=AFQjCNHG9gR9Zc0oSMbkN1fAq7YHBlMtGA&sig2=cpF_LkBkWO6xBmP8FQXcZw
kg...@gmail.com <kg...@gmail.com> #66
@ian.pay, hey cheers for the app, unfortunately it doenst work on my girlfriends Moto G, running Android 4.4.2. ANy idea whats wrong?
Cheers!
Cheers!
an...@gmail.com <an...@gmail.com> #68
Both apps don't work on 4.4.2.
[Deleted User] <[Deleted User]> #69
@Anakin - when you say they don't work, what happens?
I have Orphaned Texts installed on a Nexus 4 running Android 4.4.2 and the app runs fine, or are you suggesting that it won't actually detect or fix the orphaned messages?
I have Orphaned Texts installed on a Nexus 4 running Android 4.4.2 and the app runs fine, or are you suggesting that it won't actually detect or fix the orphaned messages?
an...@gmail.com <an...@gmail.com> #70
It does detect the messages, but it won't fix them. They keep coming back in the list.
kg...@gmail.com <kg...@gmail.com> #71
Yeah I tired both apps, neither work. Ian's app detects the orphaned messages, but when you delete them it gives an error pop up, Error Message ID(1) not deleted.
The play store app looks like it has deleted the texts, but when you reopen the app it detects them again, so they are not actually being deleted!
Maybe the permissions have changed in 4.4?
The play store app looks like it has deleted the texts, but when you reopen the app it detects them again, so they are not actually being deleted!
Maybe the permissions have changed in 4.4?
be...@gmail.com <be...@gmail.com> #72
So annoying, this bug! Unfortunately, the tools don't work on my Nexus 4 with Android 4.4.2 either. By now, nearly every text I get from my GF while at work gets butchered like this. :-(
ro...@gmail.com <ro...@gmail.com> #73
The orphaned text app worked until I updated to 4.4.2 and now it won't work. It runs but won't delete the texts, please help find a fix. I honestly can't believe that a well known issue like this isn't fixed by Google. What a joke!
ia...@gmail.com <ia...@gmail.com> #74
I've had a quick look at the Android 4.4.2 source, and there's nothing obvious that would cause the problem - no new permissions that I can see for the content://sms/raw provider, for instance. I'll try to find time to take a closer look, but it's been a year since I last looked at this, so don't hold your breath :-(
hu...@gmail.com <hu...@gmail.com> #75
Unfortunately neither of the apps will actually remove the orphaned messages, they both detect them but just say that 0 messages were removed.
I'd love a fix for this if possible. These orphaned messages are very irritating.
I'd love a fix for this if possible. These orphaned messages are very irritating.
pv...@gmail.com <pv...@gmail.com> #76
Is it certainly the case that only messages with the same CSMS reference number (the SMS "Message-Id", if you like) are mixed up, or could this happen with any orphaned fragments regardless of the ReferenceNumber?
Also note the CSMS ref in the UDH *can* be 2 octets/16bits (seehttp://en.wikipedia.org/wiki/Concatenated_SMS ) however this might not often be used...though I'm beginning to think I should try and implement it here
(I'm in the position of being responsible for the sending system of messages to a group of recipients, using Xperia phones, who are suffering from this problem, on all SMS from us)
Also note the CSMS ref in the UDH *can* be 2 octets/16bits (see
(I'm in the position of being responsible for the sending system of messages to a group of recipients, using Xperia phones, who are suffering from this problem, on all SMS from us)
ia...@gmail.com <ia...@gmail.com> #77
@#75 For Android 4.4.2, the incoming message handling has moved to a new class (InboundMessageHandler), but the logic looks the same as it did from when I looked at it originally (at the top of this thread):
https://android.googlesource.com/platform/frameworks/opt/telephony/+/android-4.4.2_r2/src/java/com/android/internal/telephony/InboundSmsHandler.java
You'll see processMessagePart() on line 589 uses SELECT_BY_REFERENCE in the query to work out how many parts of the message exist in the raw database. This is defined on line 97, and matches on address, reference number, and total message part count - which is as it was in previous Android versions.
Certainly, if you start sending multi-part messages with 16-but references in the UDH, the recipients shouldn't suffer from this problem (whatever Android device they're receiving the messages on). Of course, it won't help if you're receiving from another manufacturer's Android device based on the stock Android source :-)
Better still, do the implementation and submit it as a patch to the AOSP for adoption into the Android codebase. Then this problem will disappear in Android-to-Android SMS messages for all future releases!
You'll see processMessagePart() on line 589 uses SELECT_BY_REFERENCE in the query to work out how many parts of the message exist in the raw database. This is defined on line 97, and matches on address, reference number, and total message part count - which is as it was in previous Android versions.
Certainly, if you start sending multi-part messages with 16-but references in the UDH, the recipients shouldn't suffer from this problem (whatever Android device they're receiving the messages on). Of course, it won't help if you're receiving from another manufacturer's Android device based on the stock Android source :-)
Better still, do the implementation and submit it as a patch to the AOSP for adoption into the Android codebase. Then this problem will disappear in Android-to-Android SMS messages for all future releases!
ap...@googlemail.com <ap...@googlemail.com> #78
Will there be a new version of this fix which will work on kitcat 4.4.2 Soon cos me and many others really need it :(
ch...@gmail.com <ch...@gmail.com> #79
Why this type of serious defect is reported with Medium on priority. I think this should be critical.
ma...@polytechnique.org <ma...@polytechnique.org> #80
[Comment deleted]
cr...@gmail.com <cr...@gmail.com> #81
hi i have been experiencing probs with my samsung phone i send a long message to my partern and he gets part of an old message which was sent months ago and has been deleted, how do i rectify this??
fi...@gmail.com <fi...@gmail.com> #82
Got the same problem too.
[Deleted User] <[Deleted User]> #83
[Comment deleted]
ol...@gmail.com <ol...@gmail.com> #84
Had the same problem with different Android phones... Very anoying. As i'm using a 4.4.4 device, no solution for the moment. I've tried a lot of things, deleting caches, change the messenging app, nothing works. I'm on HTC M8 GPE with hangout.
[Deleted User] <[Deleted User]> #85
[Comment deleted]
af...@gmail.com <af...@gmail.com> #86
[Comment deleted]
af...@gmail.com <af...@gmail.com> #87
Can confirm that this is still an issue with Android 4.4.2 on a Sony Xperia Z. Its infuriating!
yo...@gmail.com <yo...@gmail.com> #88
This is infuriating, still occurring on Stock N5.
en...@google.com <en...@google.com>
[Deleted User] <[Deleted User]> #89
Just beacause a bug is hard to tackle does not mean it should be flagged as obsolete, does it??!!
ch...@gmail.com <ch...@gmail.com> #90
Yeah - although the thing is you're not using it for purpose. It's a SHORT message service :)
[Deleted User] <[Deleted User]> #91
Sorry, I don't buy this argument: since multi-part was implemented in the protocol, it simply should work. Period.
gl...@gmail.com <gl...@gmail.com> #92
Excellent work Ian. Great explanation and great solution.
I successfully used your app on my (now ex) girlfriend's phone to resolve this annoying issue.
My (current) girlfriend has had the same issue occur today ( 12 Dec 2014 ) so I found your thread, and I tried your app on my Galaxy s5. It found two orphaned messages on my phone, but wouldn't allow me to delete.
I've tried installing the "orphaned texts" app (of Michal Mazur?) and it warns that for KitKat you need to use a new version of his app.
Installed that, was warned that the default messaging app would need to temporarily changed to allow delete, which I granted, and then it's (apparently) deleted the two orphaned messages.
Great work everyone, and it shows that this is still a problem although it's not ever bothered me, but rather my friends.
best regards
Glen
I successfully used your app on my (now ex) girlfriend's phone to resolve this annoying issue.
My (current) girlfriend has had the same issue occur today ( 12 Dec 2014 ) so I found your thread, and I tried your app on my Galaxy s5. It found two orphaned messages on my phone, but wouldn't allow me to delete.
I've tried installing the "orphaned texts" app (of Michal Mazur?) and it warns that for KitKat you need to use a new version of his app.
Installed that, was warned that the default messaging app would need to temporarily changed to allow delete, which I granted, and then it's (apparently) deleted the two orphaned messages.
Great work everyone, and it shows that this is still a problem although it's not ever bothered me, but rather my friends.
best regards
Glen
ia...@gmail.com <ia...@gmail.com> #93
Sorry guys, I have defected to the other side *cough*iPhone*cough*, so while it's frustrating that Google have kicked this bug report into the long grass, I'm afraid it won't be me that pursues it any further. Good to hear that the app posted on the Play store has been updated to address the KitKat issues, though. If someone feels strongly enough about it to raise a new bug on KitKat with the details I posted from this one, then knock yourself out. If it's still happening on KitKat then I guess the underlying cause must be the same or similar - so much of my earlier analysis may still be valid.
Enjoy.
Enjoy.
bu...@gmail.com <bu...@gmail.com> #94
Amazed that this still wasn't fixed and this problem being so bad for me that i was unable to have a proper text conversation with my girlfriend i eventually found an app in the Play Store called 'Orphaned Texts' which deletes the orphanes text messages from your phone that are appearing in your text messages. It worked for me!
je...@gmail.com <je...@gmail.com> #95
Has anyone considered sending a patch to fix this?
ia...@gmail.com <ia...@gmail.com> #96
@#95, Be our guest :-) See my comments #14, #58 and #76 about submitting a patch.
je...@gmail.com <je...@gmail.com> #97
After reading #14, unfortunately, this seems quite complicated to fix and it would probably cost me a lot of time understanding how it precisely works and what should be done :/
si...@gmail.com <si...@gmail.com> #98
[Comment deleted]
co...@gmail.com <co...@gmail.com> #99
#97 - no, Just check out #5. From what I can discern, he is talking about how tricky it is for the app to tell what it should define as an "orphaned message", which is what the app gets rid of.
Downloading and using the app itself is not complicated and time-burning. It took me a few minutes. You have to enable the installation of third party apps, which my phone directed me to when I tried to open the .apk file. From there, it's a one screen app which shows you the messages which may be causing you the trouble, and they can be deleted by pressing them - that's all!
Downloading and using the app itself is not complicated and time-burning. It took me a few minutes. You have to enable the installation of third party apps, which my phone directed me to when I tried to open the .apk file. From there, it's a one screen app which shows you the messages which may be causing you the trouble, and they can be deleted by pressing them - that's all!
di...@gmail.com <di...@gmail.com> #100
I downloaded the app and it showed the messages to me, but i was not able to delete them. Does it also prevent this from happening in the future?
ka...@gmail.com <ka...@gmail.com> #101
For people still having this issue and skipping to the bottom:
I've had this problem receiving texts (I often text from my work building, with a very unreliable signal, so there were tons of double sent orphan text parts) .. and I have a Google Pixel running 7.1.2 Nougat.
The app from the app store titled "Orphaned Texts for KitKat Beta" by Michal Mazur worked on my phone.
For those with pre-KitKat OS's, search for just "Orphaned Texts" by the same developer.
Summary: "Orphaned Texts for KitKat Beta" by Michal Mazur works for KitKat through Nougat 7.1.2. (verified for now, at least.. maybe more)
I've had this problem receiving texts (I often text from my work building, with a very unreliable signal, so there were tons of double sent orphan text parts) .. and I have a Google Pixel running 7.1.2 Nougat.
The app from the app store titled "Orphaned Texts for KitKat Beta" by Michal Mazur worked on my phone.
For those with pre-KitKat OS's, search for just "Orphaned Texts" by the same developer.
Summary: "Orphaned Texts for KitKat Beta" by Michal Mazur works for KitKat through Nougat 7.1.2. (verified for now, at least.. maybe more)
gj...@gmail.com <gj...@gmail.com> #102
As for comment #100 , the app from #6 showed the orphaned SMS but I could not delete them, However "Orphaned Texts for KitKat Beta" recommended by #101 could show them and delete them. I have Moto G with Android 6.0
I am surprised/disappointed the status of the issue is "Won't fix (Obsolete)". It clearly isn't.
Thanks everyone for the advice, and especially to Ian and Michal for their efforts!
I am surprised/disappointed the status of the issue is "Won't fix (Obsolete)". It clearly isn't.
Thanks everyone for the advice, and especially to Ian and Michal for their efforts!
rg...@google.com <rg...@google.com>
rg...@google.com <rg...@google.com>
ra...@gmail.com <ra...@gmail.com> #103
Thank you very much for your effort and detailed fault report, much appreciated.
ia...@gmail.com <ia...@gmail.com> #104
Does this mean that 6 years after being reported in detail, it may finally be addressed? I don't have access to https://issuetracker.google.com/issues/27820591 that this has been marked a duplicate of.
am...@google.com <am...@google.com> #105
The issue was fixed in N, and there will possibly be further improvements to it in Q.
ma...@gmail.com <ma...@gmail.com> #106
It definitely was not fully fixed in N. I still encounter the issue in O every other month.
It seems that some not fully received muli-part messages linger for weeks in the orphaned texts, and when the network's message ID loop around, Android will stitch them back with newly received messages, giving priority to those old orphaned messages.
Only option I've found is to regularly clean up my old orphaned messages with the app mentioned above.
It seems that some not fully received muli-part messages linger for weeks in the orphaned texts, and when the network's message ID loop around, Android will stitch them back with newly received messages, giving priority to those old orphaned messages.
Only option I've found is to regularly clean up my old orphaned messages with the app mentioned above.
am...@google.com <am...@google.com> #107
Yes, and we will try to address that in Q. This is a different issue than the one originally reported; what you are describing is due to missing segments of a multi-part message, and not really a duplicates issue.
ro...@gmail.com <ro...@gmail.com> #108
The above APK solved the issue on my Pixel 2, thought it was my messaging app. bless you for the APK friend
mo...@gmail.com <mo...@gmail.com> #109
Hi,
Actually on 9.0, still have the same issue, but can't delete "orphaned" sms with this app or orphaned text. I can't find the last one on the play store.
And sms multi part cleaner show the sms, but not able to delete them!
Does someone have a solution?
Thanks a lot
Actually on 9.0, still have the same issue, but can't delete "orphaned" sms with this app or orphaned text. I can't find the last one on the play store.
And sms multi part cleaner show the sms, but not able to delete them!
Does someone have a solution?
Thanks a lot
mt...@gmail.com <mt...@gmail.com> #110
Issue still being encountered. OnePlus 3 on Android 9.
sa...@gmail.com <sa...@gmail.com> #111
Issue still being encountered. Nokia 3 on Android 9
vi...@gmail.com <vi...@gmail.com> #112
Same issue here, no slutions, .apk is not working on xiaomi mi6 (android 9 MIUI 11)
al...@gmail.com <al...@gmail.com> #113
Same issue here... It's crazy that such a bug hasn't been fixed after all this time.
fr...@gmail.com <fr...@gmail.com> #114
Has any one solved this issue?
am...@google.com <am...@google.com> #115
Which device and build are you seeing this issue on? Are you sure the issue is concatenation of segments from different multi-part messsages?
ja...@gmail.com <ja...@gmail.com> #116
So could this happen to a faster extreme if it were a tracking device that had a cellular call feature? Had one that ended up on a voice memo, a seemingly short 1 minute recording actually stretched out to several minutes! Some made since, but the rest sounded like bad things were going on, in a totally different situation! This is in 2020! Is it possible to still have this problem?
br...@gmail.com <br...@gmail.com> #117
Même problème et pas de solution 😢
bu...@gmail.com <bu...@gmail.com> #118
Have a problem similar (maybe same) as above. New samsung s20fe on t-mobile converted from s7 on verizon. Many text messages jumbled. Contact name on scroll list may or may not have detail messages associated. But the detail messages also contain messages from other contacts. Tried to locate the orphaned texts app referenced above on google play store with no luck. Would that help? Any other thoughts/ideas.
ar...@gmail.com <ar...@gmail.com> #119
Comment has been deleted.
ba...@gmail.com <ba...@gmail.com> #120
a************8@gmail.com+**********77 give this al
tw...@gmail.com <tw...@gmail.com> #121
Had this issue myself happen to me last night, tried Orphaned Texts for KitKat Beta and it didn't help it only showed messages from today. Also the app didn't seem to want to work either so not really sure what's going on I'm on a Samsung Galaxy S10, and the other apps on the Play Store have all been deleted or removed so is there anyway to deal with this at all anymore?
go...@gmail.com <go...@gmail.com> #122
Alguma novidade sobre esse assunto??estou com o problema de msgs misturadas e não consigo resolver.obrigad9
Description
The error occurs if the last received part of a multi-part message is retransmitted by the network (and therefore received twice by the handset), which can be normal network behaviour under certain conditions (for instance, in marginal coverage where the SMS acknowledgement from the handset for the first transmission of the SMS was not received).
The logic to reconstruct multi-part SMS messages is in SMSDispatcher.processMessagePart(). It uses the SMS provider to store parts of an incomplete multi-part message. Once an entire multi-part message is received, the parts of the previously incomplete message are deleted from the provider. The logic runs like this:
1. If the current message is part of a multi-part message, query the database for parts matching the address/reference-number of the current message.
2. If all parts have now been received, dispatch the message to the application and delete stored parts from the database.
3. If the message is incomplete (all parts have not been received), store the current message in the database.
The problem occurs if the last received part is retransmitted. This results in this retransmitted last part being orphaned in the database, as it is treated like the first received part of a new multi-part message (but this "ghost" new multi-part message will obviously never be completed, so these orphans will hang around).
The results of this can be seen on a handset by dumping the contents of the provider database content://sms/raw which is likely to contain a number of old message parts (if the handset has been used extensively to receive multi-part messages... which mine has).
This would be relatively benign (the database slowly filling up), were it not for the fact that the reference-number (used to key the parts of multi-part messages together) can be an 8-bit quantity, so ultimately messages with the same address/reference-number will be received, if a large number of multi-part messages are received from the same source.
Unfortunately, the logic in SMSDispatcher.processMessagePart() results in the old orphaned retransmitted message parts being treated as part of a newly received multi-part message with a matching (recycled) reference-number.
In this failure condition, the logic behaves like this (in an example of a 2-part multi-part message matching a previously received retransmitted final part):
1. Received message is part 1 of a 2-part multi-part message, so query the database for an existing parts matching the address/reference-number of this message.
2. The database contains part 2 of a previously received 2-part message matching the address/reference-number, because part 2 of the previously received message was retransmitted by the network and was therefore orphaned in the database.
3. SMSDispatcher assumes that the entire 2-part message has now been received (part 1 just received, and part 2 orphaned in the database from the previous message) so it constructs a message consisting of the new part 1 and the old part 2 and dispatches it to the applications. All entries matching the address/reference-number are deleted from the database.
4. Part 2 of the new message is received. It doesn't match anything in the database, so remains there - perpetuating the problem of orphaned parts of multi-part messages in the database.
Step 3 above results in a corrupted message being dispatched to the applications. Step 4 means that this problem only gets worse over time (I have 14 orphaned message parts in the database, accumulated over the last six months).
For my own benefit, I am writing an APK to query the content://sms/raw database table and allow the orphaned parts to be deleted. However, the logic in SMSDispatcher.processMessagePart() needs to be fixed to prevent these orphaned message parts persisting.