build/android lint suppressions needed for Android SDK roll.

This is only part of the suppressions needed for a full compile, I'm splitting them up into separate CLs to make OWNERS review easier.

BUG=623989

Review-Url: https://codereview.chromium.org/2362753005
Cr-Original-Commit-Position: refs/heads/master@{#420871}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 0922fe51e2ce01ab7dc1644d81bb15801a41286a
This commit is contained in:
stip 2016-09-25 21:09:31 -07:00 коммит произвёл Commit bot
Родитель 7ec7ad1a5d
Коммит 89137eec4a
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -4,6 +4,7 @@
package org.chromium.incrementalinstall;
import android.annotation.SuppressLint;
import android.content.Context;
import android.os.Build;
import android.util.Log;
@ -40,6 +41,10 @@ final class ClassLoaderPatcher {
/**
* Loads all dex files within |dexDir| into the app's ClassLoader.
*/
@SuppressLint({
"SetWorldReadable",
"SetWorldWritable",
})
void loadDexFiles(File dexDir) throws ReflectiveOperationException, FileNotFoundException {
Log.i(TAG, "Installing dex files from: " + dexDir);
File[] dexFilesArr = dexDir.listFiles();
@ -100,6 +105,7 @@ final class ClassLoaderPatcher {
/**
* Sets up all libraries within |libDir| to be loadable by System.loadLibrary().
*/
@SuppressLint("SetWorldReadable")
void importNativeLibs(File libDir) throws ReflectiveOperationException, IOException {
Log.i(TAG, "Importing native libraries from: " + libDir);
if (!libDir.exists()) {
@ -185,6 +191,7 @@ final class ClassLoaderPatcher {
}
}
@SuppressLint("SetWorldReadable")
private static boolean copyIfModified(File src, File dest) throws IOException {
long lastModified = src.lastModified();
if (dest.exists() && dest.lastModified() == lastModified) {