LoanStar v1.0.2版本的 MD5 值为:1398d05dc1f37bf19dbc6092ea5b471d
以下内容为反编译后的 c.java 源代码,内容仅作参考
package f.f.a.h;
import android.content.ContentResolver;
import android.content.ContentUris;
import android.content.ContentValues;
import android.content.Context;
import android.provider.CalendarContract;
import java.util.TimeZone;
public class c implements l {
public ContentResolver a;
public c(Context context) {
this.a = context.getContentResolver();
}
@Override
public boolean a() {
try {
TimeZone timeZone = TimeZone.getDefault();
ContentValues contentValues = new ContentValues();
contentValues.put("name", "PERMISSION");
contentValues.put("account_name", "permission@gmail.com");
contentValues.put("account_type", "LOCAL");
contentValues.put("calendar_displayName", "PERMISSION");
contentValues.put("visible", (Integer) 1);
contentValues.put("calendar_color", (Integer) (-16776961));
contentValues.put("calendar_access_level", (Integer) 700);
contentValues.put("sync_events", (Integer) 1);
contentValues.put("calendar_timezone", timeZone.getID());
contentValues.put("ownerAccount", "PERMISSION");
contentValues.put("canOrganizerRespond", (Integer) 0);
return ContentUris.parseId(this.a.insert(CalendarContract.Calendars.CONTENT_URI.buildUpon().appendQueryParameter("caller_is_syncadapter", "true").appendQueryParameter("account_name", "PERMISSION").appendQueryParameter("account_type", "LOCAL").build(), contentValues)) > 0;
} finally {
this.a.delete(CalendarContract.Calendars.CONTENT_URI.buildUpon().build(), "account_name=?", new String[]{"permission@gmail.com"});
}
}
}