//development/tools/idegen/src/Configuration.java
public class Configuration {
// .....
private static void traverse(File directory, Set<File> sourceRoots,
Collection<File> jarFiles, Collection<File> excludedDirs,
Excludes excludes) throws IOException {
// .....
for (File file : files) {
//添加如下代码
System.out.println("file >> " + file);
if (file != null && file.getPath().contains("vendor/mediatek/kernel_modules")) {
continue;
<