Messaging crashing repeatedly on upgrade from CM 12.1 to CM 13 - Permissions? SOLVED - Nexus 5X Q&A, Help & Troubleshooting

Code 14: Could not open database. Some sort of permissions problem?
I have had CM 12.1 on a Nexus 5 for a while. Every time I upgraded to CM13 everything would work fine EXCEPT messaging would keep throwing "Sorry, messaging has stopped" message. So I Stayed on CM12.1. I just upgraded to a Nexus 5X and there is no CM12.1 for it so I tried Cm13 (Latest Nightly 6-18) and it seemed to work fine, just on WiFi and setting it up. I loaded what I always do, Android Firewall, checked all my permissions in Privacy Guard, used SU2.95 so I would have root. It still worked fine connected to my WiFi. I just got back from TMobile where I had to switch from MicroSIM to NanoSIM. put the sim in and the same messaging error shows up. So, working backwards, I unchecked ALL privacy guard, turned OFF the firewall, and rebooted. Still gives me the messaging error. So, I finally read the error message and its SQLite Error 14 on some database. Any ideas what I could try next? I suppose I can reload CM and set it all up again, and see where it starts to fail but that would be throwing away 4 hours from yesterday. I'm also not certain that the native App permissions aren't involved somehow. The phone IS encrypted but I have tried it both ways in the past.
I know there are all sorts of geniuses on here, and I am not smart enough.
Code:
java.lang.RuntimeException: An error occurred while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:309)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)
Caused by: android.database.sqlite.SQLiteException: unknown error (code 14): Could not open database
at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:179)
at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135)
at android.content.ContentProviderProxy.query(ContentProviderNative.java:421)
at android.content.ContentResolver.query(ContentResolver.java:493)
at android.content.ContentResolver.query(ContentResolver.java:435)
at com.android.messaging.util.f.oH(SourceFile:53)
at com.android.messaging.util.f.doInBackground(SourceFile:34)
at android.os.AsyncTask$2.call(AsyncTask.java:295)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
... 4 more
EDIT : so i got into App permissions (new to MM?) and made sure the messaging service had storage and read and write on SMS. still looking deeper and searching the net...
EDIT : APN issue? reset to default TMobile settings and rebooted. still fails.
EDIT : could it be that I used the PICO version of OpenGAPPS? anyone had a problem with that? been searching still...
SOLVED : I'm such an idiot. I have been moving my blacklist.db database from version to version so I dont have to put all the numbers in again (wouldn't it be nice if there was a blacklist manager? I have all these spam numbers attached to a contact but you still have to choose them one by one) and of course between CM 12.1 and CM 13 they changed the database format or something so thats why it was crashing. Just one of the many steps I took getting my new phone set up.

If you pull SIM card out of the phone, does the crash still happen?

Related

[Q] Google Talk Authentication Error...please help...

So for the past couple days I've been getting an error message pop up with a notification sound talking about Google Talk Authentication Error and says how it cannot connect and what not. I have made no changes to my phone and now I cant even download anything from the market now. I cant download free apps when i try i get the error "name of the app" could not be downloaded due to an error and when i try to buy apps i get this error saying Error processing purchase. Any help would be appreciated and thanks in advance.
Delete your google account from the phone, then try signing back into it.
teh roxxorz said:
Delete your google account from the phone, then try signing back into it.
Click to expand...
Click to collapse
It says that I would have to do a factory reset on the phone. I wonder if that will cause it to unroot.
Edit:
Got it fixed did factory reset and put in my google account again and boom all good, thanks for the help
Real solution
soco224 said:
So for the past couple days I've been getting an error message pop up with a notification sound talking about Google Talk Authentication Error and says how it cannot connect and what not. I have made no changes to my phone and now I cant even download anything from the market now. I cant download free apps when i try i get the error "name of the app" could not be downloaded due to an error and when i try to buy apps i get this error saying Error processing purchase. Any help would be appreciated and thanks in advance.
Click to expand...
Click to collapse
After cloning a samsung gio s5660 through a CWM backup I started experiencing the same issue. Heres What REALLY happens.
Google authenticates you in their services trought unique "keys" which are automatically generated upon system installation / factory reset, so if you clone your device or install a rom which has these "keys" pre-installed, obviously, your rom will only autheticate you in google servers if your phone is the only one using the service at that given time... Upon failure, your phone assumes to be the one who's wrong, and google servers won't autheticate you until you either tell your phone he is not wrong (by deleting the data from play store, which resets its status and errors) or you change the "keys". SO, what can we learn from this? deleting the play store data IS a temporary solution, and won't solve a thing. Let's delete the duplicated keys shall we?
Navigate with your favourite folder explorer on your android (I use X-plore, you can tell me anything, there's nothing better) to the following directory:
- "(root)/data/data/com.google.android.gsf"
Now you have two real options, either you may delete the all folder, which was the perfect solution for me, since my rom is prepared to re-create it upon phone restart and new keys will be generated, OR, you might want to just delete the contents of app_sslcache inside com.google.android.gsf whish are THE KEYS I HAVE BEEN TALKING ABOUT THIS ALL TIME, YEEEIHHHH and reboot your phone...
Needless to say, take a nandroid backup before you do any of this...
Thank me later
For those who remember me from symbian s60v3 phones, yes, it is me, I'm back, and I've moved to the droid world, it's much better indeed

Problems using Blank Store

Hi folks,
I'm trying to keep my Fairphone free of googleApps (because, you know, $reasons), but as usual it's not that easy.
I am struggeling to get NoGApps working. First of all: kudos to @MaR-V-iN - I don't have a paypal account, but I could invite you for a Kölsch next time I'm in the area.
Can anybody review my steps and possibly describe how to get it running properly?
0. installed OI File Manager (to be able to access the internal partition)
1.1. downloaded μg v1.3.2 (NetworkLocation.apg)
1.2. ( tried to copy to /system/app/NetworkLocation.apk - to no avail: "... could not be copied")
1.3. installed NetworkLocation, allowed access in XPrivacy popup, rebooted.
1.4. downloaded cells-world.db, renamed to cells.db, moved it to /sdcard/.nogapps/cells.db
1.5 tried to find any sign of the application. (Found nothing.)
Sadly, Network location does not show up, anywhere. Am I looking in the wrong places?
2.1. downloaded Blank Store 0.6.6 (BlankStore.apk)
2.2. (renamed it to com.android.vending.apk, tried to copy it to /system/app/com.android.vending.apk - no success.)
2.3. renamed again, installed BlankStore.apk, allowed access in XPrivacy popups, rebooted.
2.4. downloaded android-checkin-1.0.jar and bla.bat, copied them to the location of java.exe, generated an android ID.
2.5. went to menu [Settings]{Accounts}
2.5.1 entered (dedicated...) google credentials and android ID,
2.5.2 entered slightly changed credentials that @DSoundso mentioned (SDK should be 17, I think. I also used a German carrier's MCC-MNC).
2.5.3 rebooted.
2.6 opened BlankStore: yay, I can search it. But I can't install any app: it crashes constantly.
I should mention that the Account settings were gone several times, so the BlankStore would close immediately. I had to re-enter them, and tried also exactly the credentials @DSoundso mentioned in the NOGAPPS thread.
I can't "sync" the account under [Settings]{Accounts}{Sync}. It just "says Sync is OFF", "sync now" does not seem to work.
I logged into the google account on a desktop PC, and no devices show up. ("No active devices").
So, the next steps are unfinished:
3.1. downloaded Maps API v1 (nogapps-maps.zip)
3.2. tried to download via Blank store: BusyBox, TWRP, TitaniumBackup. (BlankStore crashes.)
...to be continued?
Can anybody walk me through?
Or at least single out any errors I made above?
Hey, did you have a look at the XDA-Wiki section about installing the Blank Store? Following this step-by-step should hopefully install the Blank Store
I am too avoiding the Google Apps and also installed the maps successfully (didn't try NetworkLocation yet) and your problems with "could not be copied" sound like a problem with the user rights.. I'm not sure how your file manager works but the with the Android SDK (see above link) and the right commands it should work.
As far as the crashes of the Blank Store are concerned: at first mine also didn't start and crashed, which was caused by the missing Store account but as it sounds yours IS starting but then not really functioning, right? :|
arghwhymustiregister said:
Hey, did you have a look at the XDA-Wiki section [...] As far as the crashes of the Blank Store are concerned: at first mine also didn't start and crashed, which was caused by the missing Store account but as it sounds yours IS starting but then not really functioning, right? :|
Click to expand...
Click to collapse
Thanks, I gave that a try yesterday. 1.7 gb download, what a mess... But solved the problem: it was a rights issue. I was under the impression that the OI File Manager had superuser rights. I was wrong. Got BlankStore working now, but it crashes still quite often on download.
I'm still not sure what to make of it. As I said, it *seemd* to be working before as well, but *no* download was finished. Now, *some* finish their dl, and if they don't I get an error notification (was missing before).
However, whenever I try to load a paid app, the BankStore crashes instantly.
I tried to read the whole NOGAPPS thread and realised: it only works for free apps. And I already redeemed a gift card at the Play Store to buy a paid Titanium Backup version. ****e, I'm stupid. :silly:
Still, it would be nice if it would not crash, or at least tell me it would crash when trying to load a paid app.
Also, I still can't see any active device when logging into the account on the web. Any ideas there? Is that supposed to be like this?
(Funny enough, I *can* see which apps I downloaded through BlankStore.)
arghwhymustiregister said:
also installed the maps successfully (didn't try NetworkLocation yet)
Click to expand...
Click to collapse
It seems both are not working properly for me. OSMAnd can find it's position by GPS. Offi is working, but can not find a location (GPS turned on). Also in Offi Stations, 'Acquiring location' never gets finished. The map stays blank in landscape mode. I would very much appreciate it if you would report your status here: if you can get it to work, how - and if not, what $reasons do you assume?
The permissions are not the problem. /system has to be mounted writable.
Sent from my FP1 using xda app-developers app
permissions for Offi / Maps Api access?
elchi1234 said:
The permissions are not the problem. /system has to be mounted writable.
Click to expand...
Click to collapse
Thanks for pointing that out, @elchi1234. I'm not used to work on linux-like systems, but I'm eager to learn.
However, I assume this could have something to do with permissions:
boondiordna said:
Offi is working, but can not find a location (GPS turned on). Also in Offi Stations, 'Acquiring location' never gets finished. The map stays blank in landscape mode.
Click to expand...
Click to collapse
I tried to figure out why Offi is not showing any map. It seems like it's trying to DL / access map tiles and not getting access, which sometimes even causes crashes:
Code:
W/MapsAPI ( 5201): MapTileDownloader: Problem downloading MapTile: /17/65535/65535 HTTP response: HTTP/1.1 403 Forbidden
According to the crash report, this happens with every tile the app is trying to access.
Did I mess up somehere?
Nice to hear that the Blank Store is now working for you.
Hm, that problem with Öffi sounds familiar to me - I seem to recall that I had these problems too.. since you could install those Apps it looks like your installation of the map files was succesful. I think you should try the GPS fix mentioned here. It really helps A LOT (or did you already do that..?)
Report back!
Well, the MapsAPI seems to be installed correctly. (It was never working for me, too. I use it for that apps that require it but don't really need it.)
I would guess that there is a change in the API of the webserver that MapsAPI doesn't know about.

[Q] CM 11 data connection troubleshooting (RESOLVED)

I have been running CM 11 Nightly builds, and everything has been working out pretty good, until just a day or so ago.
Now suddenly I find that I never get a data connection (3G, etc) - works fine on Wi-Fi of course though.
Using the FC09 multiboot, I am able to prove that it is not an issue with my phone hardware or my Sprint account.
FC09 has data connection and everything is cool, until I reboot into latest CM 11 (right now = cm-11-20140305-NIGHTLY).
(Since I don't have enough posts yet to ask this in the development thread, I thought I'd try here and see if I had any luck.)
In trying to research this, I see some talk of "APN settings" - but I cannot for the life of me figure out how to access those settings to change them
(Some advice said to speak "Open APN" into the voice dialer? But that is not doing anything for me...)
I guess I am also curious if this is happening to anyone else using CM 11 Nightly builds?
Again, the data connection works when I "multiboot" FC09, but cannot get it to work on latest CM 11 Nightly.
Any help or suggestions on things to check/tweak are highly appreciated - thank you in advance.
Yap... that append to me also, i'm on a GT-I9000 with the same NIGHTLY version. That must be a rom problem, because with the previous version, worked ok.
Getting closer to a solution (?)
Same problem (currently running cm-11-20140306-NIGHTLY)
I did finally figure out how to acces the "Open APNs" screen.
My mistake was trying to say "Open APN" from the regular phone dialer, which just threw the voice command to Google.
Then it suddenly clicked - they meant the separate application that is named "Voice Dialer".
(thought I would post that in case it saves anybody else some headache)
So then I found this buzzmobile link that lists "Sprint APN Settings for Android (US)"
http://buzzmobile.us/sprint-apn-settings-android-us/
I thought I was just about to get this all taken care of... BUT, now here is the problem:
No matter how many times I have tried to enter and re-enter the APN settings, they are not being saved.
I don't know if anyone has any experience with this issue, but if you have any advice, I am all ears - thank you.
Arson Smith said:
No matter how many times I have tried to enter and re-enter the APN settings, they are not being saved.
Click to expand...
Click to collapse
Boot into the temporary FC09 installation and try the "##DATA#" dialer code. If thats not the right code then its gotta be another one that allows you to access these settings. You may also need your MSL.
My journey
OK, so I'm back in business again, and thought I would share...
1) Booted into the "multiboot" FC09 and installed 'APN Backup & Restore' app
2) Made a backup .xml file from there
3) Rebooted back into CM11
4) Installed 'APN Backup & Restore' app - BUT - could not restore the APN .xml file yet - special steps needed to get this to work with KitKat
5) Installed 'ES File Explorer File Manager' app
6) Followed instructions in this article to change 'APN Backup & Restore' to a system app:
How To Install Any App As A System App On Android [Guide]
NOTE FOR KITKAT: where it says to move the app to /system/app, you actually have to move it to /system/priv-app
7) After following that, I opened up 'APN Backup & Restore' app, but I was confused that it still said "Unfortunately APNs cannot be restored or deleted on this device because Android 4.0+ does not allow 3rd party apps to Write APN Settings."
8) Then I realized that I still needed to go into the settings of the app and click 'Disable ICS Check'
9) Then the app was recognized as a system app and I could do a restore from my .xml file
[EDIT: attaching a .zip of the .xml file that I snagged from booting into FC09]

Stuck on "Checking Network" setup screen on all non sense roms

Hi guys,
SO I have no idea how to solve this issue. I'm running Viper ROM and everything works perfect, if I switch to any other ROM Resurrection Remix, Dirty Unicorns, AIPC it installs fine and boots no problem, but in the initial setup when I pick a wifi Network (or LTE) it sticks on the "Checking Network - adding a few finishing touches, this may take a minute (or something)" screen.
If I choose don't use network and setup later, the ROM boots fine but all google services Play store, Gmail, anything it goes to a white screen that says "error contacting Google servers - Please try again later"
I have NO Idea what to do, I have used RR ROM for quite a while a few releases back with no issues and I have a hunch my trouble started after Linage OS became a thing, everything seemed fine before that. If anyone has had this issue or can offer any help it would be really really appreciated!
I'm using a International HTC 10 on the canadian Bell network. I'm still using the MM firmwear but multiple people have confirmed these ROMS work fine on MM Firmwear.
PLEASE HELP!!!
Thanks
John
I just installed Lineage OS, and have exactly the same problem. Can't complete "adding a few finishing touches" completing setup using network, if I skip that step and try to do anything needing a Google account I get the message about connecting to Google servers.
I did notice using adb logcat when I try to add a google account this message:
Code:
]02-02 18:13:48.903 5041 8347 E CheckinTask: Checkin failed: https://android.clients.google.com/checkin (request #0): java.io.IOException: Rejected response from server: invalid hardware identifier: "HTC 10 (unknown international)" is not a valid device
cumber said:
I just installed Lineage OS, and have exactly the same problem.
Code:
]02-02 18:13:48.903 5041 8347 E CheckinTask: Checkin failed: https://android.clients.google.com/checkin (request #0): java.io.IOException: Rejected response from server: invalid hardware identifier: "HTC 10 (unknown international)" is not a valid device
Click to expand...
Click to collapse
I've heard that different versions of Gapps will make a difference but I've tried them all... I have no Idea what to try. Are you on MM Firmwear?
Google apparently started rejecting devices with bogus device ids. I have changed, and will soon push, a change to fix that for lineage. Other ROMs will likely include all my changes in their next build.

seetings keeps stoping when i try to change unlock password

Recently was installing an app that required permissions that need the password to give - a VPN (a trusted one) - and when I inputted my pin it lagged for a moment and then said settings has stopped. so I tried just changing my password which I had done just a few days before and it also crashed. so I tried a few times and restarted a few times and checked for updates and I cleared settings cache and I uninstalled the VPN and I tried all of the above again but still, it kept stopping no matter what I tried. I looked at the summary and it seems that it is trying to verify on a null object reference or something like that - I will copy it below. any suggestions on how to fix this?
error summery
------------------
java.lang.RuntimeException: An error occurred while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:353)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383)
at java.util.concurrent.FutureTask.setException(FutureTask.java:252)
at java.util.concurrent.FutureTask.run(FutureTask.java:271)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'int com.android.internal.widget.VerifyCredentialResponse.getResponseCode()' on a null object reference
at android.os.Parcel.readException(Parcel.java:2022)
at android.os.Parcel.readException(Parcel.java:1962)
at com.android.internal.widget.ILockSettings$Stub$Proxy.checkCredential(ILockSettings.java:642)
at com.android.internal.widget.LockPatternUtils.checkCredential(LockPatternUtils.java:370)
at com.android.internal.widget.LockPatternUtils.checkPattern(LockPatternUtils.java:422)
at com.android.internal.widget.LockPatternUtils.checkPattern(LockPatternUtils.java:409)
at com.android.settings.fj.doInBackground(LockPatternChecker.java:133)
at com.android.settings.fj.doInBackground(LockPatternChecker.java:130)
at android.os.AsyncTask$2.call(AsyncTask.java:333)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
... 3 more
Facing same issue. Any fixes on this?
viveksuryavanshi said:
Facing same issue. Any fixes on this?
Click to expand...
Click to collapse
Or any suggestions on why this happened.

Categories

Resources