Android应用程序playStore失败漏洞

时间:2018-11-15 06:09:54

标签: security android-contentprovider android-security

应用已在Playstore中上传。 如果我使用链接获取错误

,它也无法在Playstore中搜索到
  1. “应用程序与此设备不兼容”(已设置为在所有国家/地区均可使用)
  2. 在playStore生产上传中,在通知中获取App漏洞问题

通过提及我的框架的Content provider文件--->删除 删除方法在这里:

public class ContentProviderClass extends ContentProvider {

    public static final int OUTBOX = 90;
    public static final int OUTBOX_WITH_STATUS = 150;
    public static final int OUTBOX_WITH_ID = 156;

    private static final UriMatcher sUriMatcher = buildUriMatcher();
    private FrameworkDBHelper mOpenHelper;

    @Override
    public boolean onCreate() {
        mOpenHelper = new FrameworkDBHelper(getContext());
        return true;
    }


    @Override
    public int delete(Uri uri, String selection, String[] selectionArgs) {
        final SQLiteDatabase db = mOpenHelper.getReadableDatabase();
        final int match = sUriMatcher.match(uri);
        int rowsDeleted=0;
        switch(match)
        {
            case OUTBOX:{
                rowsDeleted = db.delete(OutboxContract.OutboxEntry.TABLE_NAME,
                selection,
                selectionArgs);
                break;
        }
        default:
            throw new UnsupportedOperationException("Unknown URI: " + uri);
        }

        if(selection == null || rowsDeleted != 0)
            getContext().getContentResolver().notifyChange(uri,null);

        return rowsDeleted;
    }
}

解决此问题的解决方案是什么?

0 个答案:

没有答案