1*6777b538SAndroid Build Coastguard Worker# Protos 2*6777b538SAndroid Build Coastguard WorkerThese protos are generated from Resources.proto and Configuration.proto from the 3*6777b538SAndroid Build Coastguard WorkerAndroid repo. They are found in the frameworks/base/tools/aapt2/ directory. To 4*6777b538SAndroid Build Coastguard Workerregenerate these if there are changes, run this command from the root of an 5*6777b538SAndroid Build Coastguard WorkerAndroid checkout: 6*6777b538SAndroid Build Coastguard Worker 7*6777b538SAndroid Build Coastguard Worker protoc --python_out=some_dir frameworks/base/tools/aapt2/Resources.proto \ 8*6777b538SAndroid Build Coastguard Worker frameworks/base/tools/aapt2/Configuration.proto 9*6777b538SAndroid Build Coastguard Worker 10*6777b538SAndroid Build Coastguard WorkerThen copy the resulting \*pb2.py files from some_dir here. To make sure 11*6777b538SAndroid Build Coastguard WorkerResources_pb2.py is able to import Configuration_pb2.py, replace the 12*6777b538SAndroid Build Coastguard Worker"from frameworks.base.tools.aapt2" portion of the import statement with 13*6777b538SAndroid Build Coastguard Worker"from ." so it will instead be imported from the current directory. 14