summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorDavid Brazdil <dbrazdil@google.com>2018-10-25 14:07:51 +0100
committerDavid Brazdil <dbrazdil@google.com>2018-11-19 17:47:13 +0000
commitb319ccfdcc64465cbd22d123bd834dd13d1c37d7 (patch)
tree52242b861140827c3c71f1a1e311334e972be3b1 /tools/aapt2/java/JavaClassGenerator_test.cpp
parente1a7e50790187dc7378b111c8cbb7b3c0c4b505b (diff)
Create AppComponentFactory.instantiateClassLoader API
Adds a hook to AppComponentFactory to allow control over the instantiation of the main app class loader. LoadedApk creates the default class loader and uses it to load the base APK. If AppComponentFactory is declared in the manifest, its new method instantiateClassLoader is called and its result becomes the class loader used by LoadedApk to instantiate other classes declared in the manifest. By default this is simply the class loader created by LoadedApk. Second method provides AppComponentFactory with a copy of ApplicationInfo. The factory otherwise cannot locate any of the app's resources, including its APK or the data folder. Bug: 111342996 Test: atest CtsClassLoaderFactoryPathClassLoaderTestCases Test: atest CtsClassLoaderFactoryInMemoryDexClassLoaderTestCases Merged-In: Id21d9afaf00b9cb64a107bc9893b952407cff0b5 Change-Id: Id21d9afaf00b9cb64a107bc9893b952407cff0b5 (cherry picked from commit fd6dcc21d9ee8ee5d1cad71a8d705cf0d42980a7)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions