Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9276279
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T16:48:34+00:00 2026-06-18T16:48:34+00:00

Our database create fails on about 1% of new users when they try to

  • 0

Our database create fails on about 1% of new users when they try to launch our app. Happens mostly in China, sometimes in Russia and other locales. Can’t reproduce it on any of my devices, but I’ve gathered info from log uploads.

One thing I noticed: when the db create fails the file permissions of our package directory /data/data/com.lootworks.swords are –x i.e. cannot read/write. This is different from my test devices which have rwx access.

Is –x on the package directory why the db create fails? It sure sounds bad to me unless the OS does something funky like change permissions when SQLite tries to access it. Has anyone seen this before?

More info:

  • The app uses subclassed SQLiteOpenHelper, very routine (not copying a prepared db file or anything like that)
  • Initial call to getWritableDatabase() happens during Application.onCreate()
  • That call fails before it gets as far as calling our SQLiteOpenHelper.onCreate() method

Exception is on the first call to getWritableDatabase(). That should call back to our onCreate but it fails before that:

Caused by: android.database.sqlite.SQLiteException: unable to open database file
at android.database.sqlite.SQLiteDatabase.dbopen(Native Method)
at android.database.sqlite.SQLiteDatabase.<init>(SQLiteDatabase.java:1880)
at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:851)
at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:885)
at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:878)
at android.app.ContextImpl.openOrCreateDatabase(ContextImpl.java:599)
at android.content.ContextWrapper.openOrCreateDatabase(ContextWrapper.java:234)
at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:149)
at com.lootworks.swords.db.SwSqlDbOpenHelper.getDb(SourceFile:379)
at com.lootworks.swords.db.SwSqlDbOpenHelper.getOpenHelper(SourceFile:88)
at com.lootworks.swords.db.SwSqlDb.prepareDatabase(SourceFile:66)
at com.lootworks.swords.SwApplication.onCreate(SourceFile:291)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1004)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3372)
at android.app.ActivityThread.access$2200(ActivityThread.java:155)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1031)
at android.os.Handler.dispatchMessage(Handler.java:130)
at android.os.Looper.loop(SourceFile:351)
at android.app.ActivityThread.main(ActivityThread.java:3818)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:538)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:901)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:659)
at dalvik.system.NativeStart.main(Native Method)

Things I checked already:

  • Some users are sideloaded (some CN file share thing?) but have examples where installer is com.android.vending (GPlay)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T16:48:35+00:00Added an answer on June 18, 2026 at 4:48 pm

    Is –x on the package directory why the db create fails?

    That would be my guess. Your process cannot even see if databases/ exists, let alone create it.

    Some users are sideloaded (some CN file share thing?) but have examples where installer is com.android.vending (GPlay)

    Bear in mind the Play Store is pirated a fair bit, so just because the app claimed to be installed by Google Play does not mean that the device is compatible with the Play Store.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We separate features in our database using schemas. For example, all Create & Maintain
We use Ant to create a database in our testing environment with the following
As part of our build process and evolving database, I'm trying to create a
Our database is about to reach 1000 stored procedures. Although we were wise and
We're re-evaluating our database upgrade process for our application to try and remove the
How does one go about creating multiple new users, say in a loop, from
We are getting this error on a table in our database: Cannot create a
I was asked to create a companies search on our database using phone number
In our database there is a table which is created with ANSI_NULLS OFF .
Our database currently doesn't define primary keys on any tables. All of the id

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.