Android app playStore failure Vulnerability

江枫思渺然 提交于 2020-01-06 07:21:13

问题


App uploaded in playstore. Its not searchable in playstore also if i use link getting error

  1. "App is not compatible with this device" (already set to available in all countries)
  2. In playStore production upload,getting App vulnerability issues in notification

By mentioning my Content provider file of my framework ---> delete while delete method is here:

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;
    }
}

What's the solution to overcome this problem?

来源:https://stackoverflow.com/questions/53313418/android-app-playstore-failure-vulnerability

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!