Initial empty repository
No-op - skip bad commit

Change-Id: I43fe98f6bab521b5762e727e902fcb9ab8ba5605
Change android fix for fts backward compatibility patch of sqlite3.c for newer sqlite version

From earlier version of Android, patch of FTS3 backwards compatibility is kept until now.
But, this patch doesn't work well on newer version of sqlite3 (3.7.13~) when it was used.
Currently, sqlite3Fts3Init function is called three times to register "fts1", "fts2" and "fts3" with the same module.
It worked very well on earlier version of sqlite but not for newer version.
hashDestroy() function makes an error when it is called after the first destroy of fts3Module.
sqlite3Fts3Init() function initializes "fts4" module and it is called three times to initialize "fts1" and "fts2".

This patch contains changed source code of sqlite3Fts3Init() function to be called once.

[written by Yongil Jang <yi.jang@lge.com>]

Change-Id: I55f522b55f421f73e83508cfc5e08514bd7da925
Fix bugs of sqlite that returns SIGBUS on disk full in WAL mode

Attempts to prepare a query on a WAL database when the disk space is
critically low result in the process killed with SIGBUS.
The crash happens in walIndexWriteHdr invoked from walIndexRecover.

Some Providers that using WAL mode like as SettingsProvider and MediaProvider
get failed in case of disk full with SIGBUS.
This patch changes unixShmMap() to call fallocate() instead of ftruncate.
In case of disk full, fallocate() will return SQLITE_FULL.

This patch is originated from www.sqlite.org.
(URL: http://www.sqlite.org/src/info/5eaa61ea18)
To simplify error status, returned error code is changed
from SQLITE_IOERR_SHMSIZE to SQLITE_FULL.

[written by Yongil Jang <yi.jang@lge.com>]

Change-Id: Idf3cbdab1ed4a4f2bc1b2b93ab6d8900edc7ee05
Fix bugs of database corruption following IO error on systems supporting atomic-write

SQLite on Android uses AUTO_VACUUM option.
When the disk space is critically low and atomic-write option is enabled,
SQLite writes transactions that modify a single database page on disk
without creating a journal file.

Due to a bug, if an IO or disk full error occurs while transferring
the contents to disk, the single page that was modified in the cache
is not being rolled back - cache corruption.
As a result, applications get a database corruption exception
for next database transactions.

This patch changes createFile() to close pReal in case of IO error.
Therefore, cache is being rolled back.

This patch is originated from www.sqlite.org.
(URL: http://www.sqlite.org/src/tktview?name=df678d738a)

Change-Id: Ieecda65d8458cb591bd4d89d8b423a4479f50ea8
Fix contacts index labels for i18n

Switch ContactsProvider to using ICU for generation of index labels,
and remove custom KO and JA code. Add i18n test cases.

Bug:7351596
Change-Id: I7ac25add8b29ff2c6c395f04a83b279b541e4125
Merge "Change android fix for fts backward compatibility patch of sqlite3.c for newer sqlite version"
Merge changes Ieecda65d,Idf3cbdab

* changes:
  Fix bugs of database corruption following IO error on systems supporting atomic-write
  Fix bugs of sqlite that returns SIGBUS on disk full in WAL mode
am 88d4c1f4: Merge "Change android fix for fts backward compatibility patch of sqlite3.c for newer sqlite version"

# By git-lg-database.lge.com
# Via Gerrit Code Review (1) and git-lg-database.lge.com (1)
* commit '88d4c1f4ff598414ed48fda264178a2865b352b3':
  Change android fix for fts backward compatibility patch of sqlite3.c for newer sqlite version
am 6bbf67c1: Merge changes Ieecda65d,Idf3cbdab

# By Yongil Jang (1) and git-lg-database.lge.com (1)
# Via Gerrit Code Review (1) and git-lg-database.lge.com (1)
* commit '6bbf67c11ea1b7e8e9769113072c167e822fe73f':
  Fix bugs of database corruption following IO error on systems supporting atomic-write
  Fix bugs of sqlite that returns SIGBUS on disk full in WAL mode
Remove GET_PHONEBOOK_INDEX callback

Remove sqlite GET_PHONEBOOK_INDEX callback.

Bug:
Change-Id: I751bb4fdff89af1eccc4b21b67fddd0b802eeb61
fix build problem, when #define ENABLE_ANDROID_LOG 1

Change-Id: I514750dd33ff5bd433d4ee167a2401d829d2fbe9
Merge "fix build problem, when #define ENABLE_ANDROID_LOG 1"
am b4e9e379: Merge "fix build problem, when #define ENABLE_ANDROID_LOG 1"

* commit 'b4e9e379e360464d3d6bde3084e5b286238a9329':
  fix build problem, when #define ENABLE_ANDROID_LOG 1
Add liblog

Bug: 8580410
Change-Id: Icc11edb1f7f684c8a72d0c0ef3d696b7a0883947
Merge tag 'android-4.3_r2.1' into jellybean-mr2.1

Android 4.3 release 2.1