{"action":"created","issue":{"url":"https://api.github.com/repos/sqlcipher/android-database-sqlcipher/issues/142","labels_url":"https://api.github.com/repos/sqlcipher/android-database-sqlcipher/issues/142/labels{/name}","comments_url":"https://api.github.com/repos/sqlcipher/android-database-sqlcipher/issues/142/comments","events_url":"https://api.github.com/repos/sqlcipher/android-database-sqlcipher/issues/142/events","html_url":"https://github.com/sqlcipher/android-database-sqlcipher/issues/142","id":44731569,"number":142,"title":"SqliteDatabase.java","user":{"login":"otiasj","id":1182822,"avatar_url":"https://avatars.githubusercontent.com/u/1182822?v=3","gravatar_id":"","url":"https://api.github.com/users/otiasj","html_url":"https://github.com/otiasj","followers_url":"https://api.github.com/users/otiasj/followers","following_url":"https://api.github.com/users/otiasj/following{/other_user}","gists_url":"https://api.github.com/users/otiasj/gists{/gist_id}","starred_url":"https://api.github.com/users/otiasj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/otiasj/subscriptions","organizations_url":"https://api.github.com/users/otiasj/orgs","repos_url":"https://api.github.com/users/otiasj/repos","events_url":"https://api.github.com/users/otiasj/events{/privacy}","received_events_url":"https://api.github.com/users/otiasj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-10-02T19:54:33Z","updated_at":"2015-05-28T20:23:35Z","closed_at":null,"body":"I think there is a bug in sqlcipher/.../SQLiteDatabase.java\r\n\r\naround line 950 : the 2 openDatabase methods are overriding the parameter flags with CREATE_IF_NECESSARY\r\n\r\n    public static SQLiteDatabase openDatabase(String path, String password, CursorFactory factory, int flags) {\r\n      return openDatabase(path, password.toCharArray(), factory, CREATE_IF_NECESSARY, null);\r\n    }\r\n\r\n    public static SQLiteDatabase openDatabase(String path, char[] password, CursorFactory factory, int flags) {\r\n      return openDatabase(path, password, factory, CREATE_IF_NECESSARY, null);\r\n    }\r\n\r\nthis is bad if you are using your own database and want to use the flags for example :\r\nSQLiteDatabase.OPEN_READONLY | SQLiteDatabase.NO_LOCALIZED_COLLATORS"},"comment":{"url":"https://api.github.com/repos/sqlcipher/android-database-sqlcipher/issues/comments/106585578","html_url":"https://github.com/sqlcipher/android-database-sqlcipher/issues/142#issuecomment-106585578","issue_url":"https://api.github.com/repos/sqlcipher/android-database-sqlcipher/issues/142","id":106585578,"user":{"login":"brodybits","id":1559888,"avatar_url":"https://avatars.githubusercontent.com/u/1559888?v=3","gravatar_id":"","url":"https://api.github.com/users/brodybits","html_url":"https://github.com/brodybits","followers_url":"https://api.github.com/users/brodybits/followers","following_url":"https://api.github.com/users/brodybits/following{/other_user}","gists_url":"https://api.github.com/users/brodybits/gists{/gist_id}","starred_url":"https://api.github.com/users/brodybits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brodybits/subscriptions","organizations_url":"https://api.github.com/users/brodybits/orgs","repos_url":"https://api.github.com/users/brodybits/repos","events_url":"https://api.github.com/users/brodybits/events{/privacy}","received_events_url":"https://api.github.com/users/brodybits/received_events","type":"User","site_admin":false},"created_at":"2015-05-28T20:23:35Z","updated_at":"2015-05-28T20:23:35Z","body":"Just issued PR #173 with a solution."}}