Well done, Shadow

If elder brother is also learning shadow……

Shadow source code structure

Learning shadow source code, encounter a class, first look here, convenient and fast location module, and can learn the benefits of shadow design in a subtle way.

Ii. To be clarified and continued sorting……

  • 1. Check whether the installation will be repeated
  • 2. Mapping between plug-in version and file name
  • 3. When the business plug-in package is installed

1. Check whether the installation will be repeated

The plug-in version has a 1:1 relationship with dex and SO files. The plug-in version is verified each time it is installed. If it has been installed, the plug-in will not be installed again

2. Mapping between plug-in version and file name

  • 1. So and dex file names are bound to UUID to distinguish plug-ins of different versions
  • 2. The plug-in zip package is distinguished by the hash value, which is the MD5 value of the plug-in package

3. When the business plug-in package is installed