Skip to content

Commit

Permalink
Facebook Sync Dirty Hack (Credit RomanB)
Browse files Browse the repository at this point in the history
Conflicts:
	src/com/android/providers/contacts/ContactsDatabaseHelper.java
  • Loading branch information
LiquidSmooth authored and LorDClockaN committed Mar 21, 2013
1 parent b015c34 commit f0a1604
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions res/values/arrays.xml
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="unrestricted_packages">
<item>com.facebook.katana</item>
</string-array>
</resources>
Expand Up @@ -409,6 +409,8 @@ public interface RawContactsColumns {
Tables.RAW_CONTACTS + "." + RawContacts.CONTACT_ID;
public static final String CONCRETE_NAME_VERIFIED =
Tables.RAW_CONTACTS + "." + RawContacts.NAME_VERIFIED;
public static final String CONCRETE_IS_RESTRICTED =
Tables.RAW_CONTACTS + "." + RawContacts.IS_RESTRICTED;
}

public interface ViewRawContactsColumns {
Expand Down Expand Up @@ -996,7 +998,8 @@ public void onCreate(SQLiteDatabase db) {
RawContacts.SYNC2 + " TEXT, " +
RawContacts.SYNC3 + " TEXT, " +
RawContacts.SYNC4 + " TEXT, " +
RawContacts.CUSTOM_VIBRATION + " TEXT " +
RawContacts.CUSTOM_VIBRATION + " TEXT, " +
RawContacts.IS_RESTRICTED + " INTEGER " +
");");

db.execSQL("CREATE INDEX raw_contacts_contact_id_index ON " + Tables.RAW_CONTACTS + " (" +
Expand Down Expand Up @@ -1582,7 +1585,8 @@ private void createContactsViews(SQLiteDatabase db) {
+ RawContactsColumns.CONCRETE_SYNC1 + " AS " + RawContacts.SYNC1 + ","
+ RawContactsColumns.CONCRETE_SYNC2 + " AS " + RawContacts.SYNC2 + ","
+ RawContactsColumns.CONCRETE_SYNC3 + " AS " + RawContacts.SYNC3 + ","
+ RawContactsColumns.CONCRETE_SYNC4 + " AS " + RawContacts.SYNC4;
+ RawContactsColumns.CONCRETE_SYNC4 + " AS " + RawContacts.SYNC4 + ","
+ RawContactsColumns.CONCRETE_IS_RESTRICTED + " AS " + RawContacts.IS_RESTRICTED;;

String baseContactColumns =
Contacts.HAS_PHONE_NUMBER + ", "
Expand Down

0 comments on commit f0a1604

Please sign in to comment.