diff --git a/adapter/META-INF/MANIFEST.MF b/adapter/META-INF/MANIFEST.MF
new file mode 100644
index 0000000000000000000000000000000000000000..ce14049093924c355932e0aec6ad897a8508dd85
--- /dev/null
+++ b/adapter/META-INF/MANIFEST.MF
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Main-Class: ohos.CompressEntrance
+
diff --git a/adapter/ohos/Compressor.java b/adapter/ohos/Compressor.java
index 5e41bb675c69cbb08368bb25c46bf2bc6ea1b85e..ddde108c3c659dde3e8276a8395c55e47494d329 100644
--- a/adapter/ohos/Compressor.java
+++ b/adapter/ohos/Compressor.java
@@ -96,7 +96,7 @@ public class Compressor {
private static final String REGEX_SCRIPT = "^[A-Z][a-z]{3}$";
private static final String REGEX_COUNTRY = "^[A-Z]{2,3}|[0-9]{3}$";
private static final String REGEX_ORIENTATION = "^vertical|horizontal$";
- private static final String REGEX_DEVICE_TYPE = "^phone|tablet|car|tv|wearable|liteWearable$";
+ private static final String REGEX_DEVICE_TYPE = "^phone|tablet|car|tv|wearable|liteWearable|2in1$";
private static final String REGEX_SCREEN_DENSITY = "^sdpi|mdpi|ldpi|xldpi|xxldpi$";
private static final String REGEX_COLOR_MODE = "^light|dark$";
private static final String REGEX_SHAPE = "^circle$";
@@ -1490,7 +1490,7 @@ public class Compressor {
private boolean checkDeviceType(String deviceType) {
if (!Pattern.compile(REGEX_DEVICE_TYPE).matcher(deviceType).matches()) {
LOG.error("Compressor::compressProcess deviceType " + deviceType +
- " is not in {phone, tablet, car, tv, wearable, liteWearable} list.");
+ " is not in {phone, tablet, car, tv, wearable, liteWearable, 2in1} list.");
return false;
}
return true;
@@ -1830,7 +1830,7 @@ public class Compressor {
zipEntry.setSize(srcFile.length());
// update crc
- CRC32 crc = getCrcFromFile(utility, srcFile);
+ CRC32 crc = getCrcFromFile(srcFile);
zipEntry.setCrc(crc.getValue());
}
@@ -1893,37 +1893,6 @@ public class Compressor {
return false;
}
- /**
- * get CRC32 from file.
- *
- * @param utility common data
- * @param file source file
- * @return CRC32
- * @throws BundleException FileNotFoundException|IOException.
- */
- private CRC32 getCrcFromFile(Utility utility, File file) throws BundleException {
- FileInputStream fileInputStream = null;
- CRC32 crc = new CRC32();
- try {
- fileInputStream = new FileInputStream(file);
- byte[] buffer = new byte[BUFFER_SIZE];
-
- int count = fileInputStream.read(buffer);
- while (count > 0) {
- crc.update(buffer, 0, count);
- count = fileInputStream.read(buffer);
- }
- } catch (FileNotFoundException ignored) {
- throw new BundleException("Get Crc from file failed.");
- } catch (IOException exception) {
- LOG.error("Compressor::getCrcFromFile io exception: " + exception.getMessage());
- throw new BundleException("Get Crc from file failed.");
- } finally {
- Utility.closeStream(fileInputStream);
- }
- return crc;
- }
-
private void infoSpecialProcess(Utility utility, File srcFile)
throws BundleException {
FileInputStream fileInputStream = null;
diff --git a/adapter/ohos/JsonUtil.java b/adapter/ohos/JsonUtil.java
index 9fd5bd72a71a5c92c607deb0e86a29d314fc8a89..73eb572c5b91b722b26dc364c62a159880b6b953 100644
--- a/adapter/ohos/JsonUtil.java
+++ b/adapter/ohos/JsonUtil.java
@@ -101,6 +101,7 @@ public class JsonUtil {
private static final String SPEAKER = "speaker";
private static final String LINK_IOT = "linkIOT";
private static final String ROUTER = "router";
+ private static final String TWO_IN_ONE = "2in1";
private static final String DELIVERY_WITH_INSTALL = "deliveryWithInstall";
private static final String INSTALLATION_FREE = "installationFree";
private static final String VIRTUAL_MACHINE = "virtualMachine";
@@ -467,6 +468,7 @@ public class JsonUtil {
parseDeviceType(appJson, moduleAppInfo, SPEAKER);
parseDeviceType(appJson, moduleAppInfo, LINK_IOT);
parseDeviceType(appJson, moduleAppInfo, ROUTER);
+ parseDeviceType(appJson, moduleAppInfo, TWO_IN_ONE);
}
/**
diff --git a/adapter/ohos/ModuleJsonUtil.java b/adapter/ohos/ModuleJsonUtil.java
index acec9c8be3053fecc24a1503ecb7707780373346..59986dc2a1549f6894005c6dc58db45fc26e0fa3 100644
--- a/adapter/ohos/ModuleJsonUtil.java
+++ b/adapter/ohos/ModuleJsonUtil.java
@@ -676,7 +676,7 @@ class ModuleJsonUtil {
if (finalModules == null || srcModules == null) {
LOG.error("ModuleJsonUtil:mergeTwoPackInfoObjByPackagePair input json file has empty module.");
throw new
- BundleException("ModuleJsonUtil:mergeTwoPackInfoObjByPackagePair input json file has empty module.");
+ BundleException("ModuleJsonUtil:mergeTwoPackInfoObjByPackagePair input json file has empty module.");
}
boolean findModule = false;
for (int index = 0; index < srcModules.size(); ++index) {
diff --git a/developtools_packing_tool_1.iml b/developtools_packing_tool_1.iml
new file mode 100644
index 0000000000000000000000000000000000000000..a8a8bdf3aff70115428f1a1c94c5341708d233cc
--- /dev/null
+++ b/developtools_packing_tool_1.iml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/modulecheck/module.json b/modulecheck/module.json
index 9a3c3416ba897431cd5215150e2e75dab78c9f17..b770b7f32673cd78be05d18c77a733abad9c239c 100644
--- a/modulecheck/module.json
+++ b/modulecheck/module.json
@@ -241,7 +241,8 @@
"tablet",
"tv",
"wearable",
- "car"
+ "car",
+ "2in1"
]
}
},
diff --git a/out/artifacts/app_packing_tool/app_packing_tool.jar b/out/artifacts/app_packing_tool/app_packing_tool.jar
new file mode 100644
index 0000000000000000000000000000000000000000..dca2d1bfaf3ed7f55bf3f7d22474b6eb0712f04c
Binary files /dev/null and b/out/artifacts/app_packing_tool/app_packing_tool.jar differ
diff --git a/out/artifacts/app_packing_tool/app_unpacking_tool.jar b/out/artifacts/app_packing_tool/app_unpacking_tool.jar
new file mode 100644
index 0000000000000000000000000000000000000000..e9c135745c43393cf5df8937eaa4aa0b636fa2b7
Binary files /dev/null and b/out/artifacts/app_packing_tool/app_unpacking_tool.jar differ
diff --git a/out/artifacts/app_packing_tool/developtools_packing_tool_1.jar b/out/artifacts/app_packing_tool/developtools_packing_tool_1.jar
new file mode 100644
index 0000000000000000000000000000000000000000..aa4dbe4d73f949ba8089614c2a706b0a5be5afa4
Binary files /dev/null and b/out/artifacts/app_packing_tool/developtools_packing_tool_1.jar differ
diff --git a/out/artifacts/developtools_packing_tool_1_jar/app_packing_tool.jar b/out/artifacts/developtools_packing_tool_1_jar/app_packing_tool.jar
new file mode 100644
index 0000000000000000000000000000000000000000..aa4dbe4d73f949ba8089614c2a706b0a5be5afa4
Binary files /dev/null and b/out/artifacts/developtools_packing_tool_1_jar/app_packing_tool.jar differ
diff --git a/out/artifacts/developtools_packing_tool_1_jar2/app_packing_tool.jar b/out/artifacts/developtools_packing_tool_1_jar2/app_packing_tool.jar
new file mode 100644
index 0000000000000000000000000000000000000000..dca2d1bfaf3ed7f55bf3f7d22474b6eb0712f04c
Binary files /dev/null and b/out/artifacts/developtools_packing_tool_1_jar2/app_packing_tool.jar differ
diff --git a/out/production/developtools_packing_tool_1/LICENSE b/out/production/developtools_packing_tool_1/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..f8fd74b9598ab0d5b130c50f7cf1bf51abb70c40
--- /dev/null
+++ b/out/production/developtools_packing_tool_1/LICENSE
@@ -0,0 +1,12 @@
+Copyright (c) 2021 Huawei Device Co., Ltd.
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
\ No newline at end of file
diff --git a/out/production/developtools_packing_tool_1/META-INF/MANIFEST.MF b/out/production/developtools_packing_tool_1/META-INF/MANIFEST.MF
new file mode 100644
index 0000000000000000000000000000000000000000..ce14049093924c355932e0aec6ad897a8508dd85
--- /dev/null
+++ b/out/production/developtools_packing_tool_1/META-INF/MANIFEST.MF
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Main-Class: ohos.CompressEntrance
+
diff --git a/out/production/developtools_packing_tool_1/ohos/APPQFResult.class b/out/production/developtools_packing_tool_1/ohos/APPQFResult.class
new file mode 100644
index 0000000000000000000000000000000000000000..4477220deb24740b3afef8194cb4cb4feebca594
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/APPQFResult.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/AbilityFormInfo$ModuleWindowInfo.class b/out/production/developtools_packing_tool_1/ohos/AbilityFormInfo$ModuleWindowInfo.class
new file mode 100644
index 0000000000000000000000000000000000000000..d5fd57d5776869a3244159e7cff7aa1817d69e2e
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/AbilityFormInfo$ModuleWindowInfo.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/AbilityFormInfo.class b/out/production/developtools_packing_tool_1/ohos/AbilityFormInfo.class
new file mode 100644
index 0000000000000000000000000000000000000000..c67e534bae69b960ef5d14ba7b2f37233da9bd89
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/AbilityFormInfo.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/AbilityInfo.class b/out/production/developtools_packing_tool_1/ohos/AbilityInfo.class
new file mode 100644
index 0000000000000000000000000000000000000000..b27c9c374410102b0e01614c7b064a73bd3fea0b
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/AbilityInfo.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/ApiVersion.class b/out/production/developtools_packing_tool_1/ohos/ApiVersion.class
new file mode 100644
index 0000000000000000000000000000000000000000..b7f203f2cf6ae643642cfc00cac3af505e79c146
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/ApiVersion.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/AppInfo.class b/out/production/developtools_packing_tool_1/ohos/AppInfo.class
new file mode 100644
index 0000000000000000000000000000000000000000..39a9e644dc590007edfe6a38266f40ecb8e33ab3
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/AppInfo.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/AppModel.class b/out/production/developtools_packing_tool_1/ohos/AppModel.class
new file mode 100644
index 0000000000000000000000000000000000000000..54fa055dcd0904af7a295eb43d1824e9114c60b1
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/AppModel.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/BinaryTool.class b/out/production/developtools_packing_tool_1/ohos/BinaryTool.class
new file mode 100644
index 0000000000000000000000000000000000000000..09d2febf10529779536086e73390cb18d0f22b67
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/BinaryTool.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/BundleException.class b/out/production/developtools_packing_tool_1/ohos/BundleException.class
new file mode 100644
index 0000000000000000000000000000000000000000..c6e566418f4c0e3e9f46687cfa2975cb9c9494f9
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/BundleException.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/CollectBinInfo.class b/out/production/developtools_packing_tool_1/ohos/CollectBinInfo.class
new file mode 100644
index 0000000000000000000000000000000000000000..26c8065efb8da380fa33be1f31246f197f8024e0
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/CollectBinInfo.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/CommandParser.class b/out/production/developtools_packing_tool_1/ohos/CommandParser.class
new file mode 100644
index 0000000000000000000000000000000000000000..01322178b52cb73fc1465a39b8f1dcab323284ca
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/CommandParser.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/CommonEvent.class b/out/production/developtools_packing_tool_1/ohos/CommonEvent.class
new file mode 100644
index 0000000000000000000000000000000000000000..8a65b3832e9c412aa8fbf2f70e08db956a91bf99
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/CommonEvent.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/CompressEntrance.class b/out/production/developtools_packing_tool_1/ohos/CompressEntrance.class
new file mode 100644
index 0000000000000000000000000000000000000000..fb500e8fa36aff49524a6ff6d919cac402198b70
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/CompressEntrance.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/CompressVerify.class b/out/production/developtools_packing_tool_1/ohos/CompressVerify.class
new file mode 100644
index 0000000000000000000000000000000000000000..3694999f9a94525b91c06ed8b223a5301e24d426
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/CompressVerify.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/Compressor.class b/out/production/developtools_packing_tool_1/ohos/Compressor.class
new file mode 100644
index 0000000000000000000000000000000000000000..54f881572861c1f06cb2f496d7991c9c226307cc
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/Compressor.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/ConvertHapToBin.class b/out/production/developtools_packing_tool_1/ohos/ConvertHapToBin.class
new file mode 100644
index 0000000000000000000000000000000000000000..820017eaf492af6adf44ba05253035036e8aad08
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/ConvertHapToBin.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/CountryCode.class b/out/production/developtools_packing_tool_1/ohos/CountryCode.class
new file mode 100644
index 0000000000000000000000000000000000000000..7aa3f8e045735c94cde231de155f0fc8c12fbb89
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/CountryCode.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/CustomizeData.class b/out/production/developtools_packing_tool_1/ohos/CustomizeData.class
new file mode 100644
index 0000000000000000000000000000000000000000..e9105517fa3983f814444cbc4fba6c66afa0924f
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/CustomizeData.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/DefPermission.class b/out/production/developtools_packing_tool_1/ohos/DefPermission.class
new file mode 100644
index 0000000000000000000000000000000000000000..d1420574c2b6863ce63944e1b795b4facda5b4e1
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/DefPermission.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/DefPermissionGroup.class b/out/production/developtools_packing_tool_1/ohos/DefPermissionGroup.class
new file mode 100644
index 0000000000000000000000000000000000000000..8a1a30e681101a248d8a0314bbb50f605ec61dc8
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/DefPermissionGroup.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/DefinePermission.class b/out/production/developtools_packing_tool_1/ohos/DefinePermission.class
new file mode 100644
index 0000000000000000000000000000000000000000..fbd103dbc866b49a2498e5f47df6f35f5404dcb1
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/DefinePermission.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/DependencyItem.class b/out/production/developtools_packing_tool_1/ohos/DependencyItem.class
new file mode 100644
index 0000000000000000000000000000000000000000..a93dd59c3fbff559e19bb295a919fd7f18fc29b4
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/DependencyItem.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/DeviceConfig.class b/out/production/developtools_packing_tool_1/ohos/DeviceConfig.class
new file mode 100644
index 0000000000000000000000000000000000000000..05c0bda80076d25ae1953de7c3437b7c963ac740
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/DeviceConfig.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/Distro.class b/out/production/developtools_packing_tool_1/ohos/Distro.class
new file mode 100644
index 0000000000000000000000000000000000000000..952f7bb934948c8b406f38b7dd0b9b3dac94453d
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/Distro.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/DistroFilter.class b/out/production/developtools_packing_tool_1/ohos/DistroFilter.class
new file mode 100644
index 0000000000000000000000000000000000000000..bf3d0bbd8269900b0123b54ec378fa0d81a2aa9a
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/DistroFilter.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/ExtensionAbilityInfo.class b/out/production/developtools_packing_tool_1/ohos/ExtensionAbilityInfo.class
new file mode 100644
index 0000000000000000000000000000000000000000..c08deb1e8af273deb751d6db0cd9976cf29ed1cf
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/ExtensionAbilityInfo.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/FileUtils.class b/out/production/developtools_packing_tool_1/ohos/FileUtils.class
new file mode 100644
index 0000000000000000000000000000000000000000..f8b5772bd8bc119542e03c68ebf20ae805634615
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/FileUtils.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/FormInfo.class b/out/production/developtools_packing_tool_1/ohos/FormInfo.class
new file mode 100644
index 0000000000000000000000000000000000000000..3cf378b7223845006f41be5b3e0c0db54738f014
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/FormInfo.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/HQFInfo.class b/out/production/developtools_packing_tool_1/ohos/HQFInfo.class
new file mode 100644
index 0000000000000000000000000000000000000000..0c92d0b83518254f7b1911cdb1da730065774be3
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/HQFInfo.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/HQFVerify.class b/out/production/developtools_packing_tool_1/ohos/HQFVerify.class
new file mode 100644
index 0000000000000000000000000000000000000000..21cc1b2a5e96a07975e3f371445586d113836651
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/HQFVerify.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/HapInfo.class b/out/production/developtools_packing_tool_1/ohos/HapInfo.class
new file mode 100644
index 0000000000000000000000000000000000000000..f0ec843842e49f81d977fbbfb5accba91e2745ff
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/HapInfo.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/HapVerify.class b/out/production/developtools_packing_tool_1/ohos/HapVerify.class
new file mode 100644
index 0000000000000000000000000000000000000000..63d925d2a5e8634cc1fc9b955e2c390705c28ee3
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/HapVerify.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/HapVerifyInfo.class b/out/production/developtools_packing_tool_1/ohos/HapVerifyInfo.class
new file mode 100644
index 0000000000000000000000000000000000000000..96fb333bd7387699edf5867c7a84dc5d13519e74
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/HapVerifyInfo.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/HapZipInfo.class b/out/production/developtools_packing_tool_1/ohos/HapZipInfo.class
new file mode 100644
index 0000000000000000000000000000000000000000..c15b0552fce8cd01a5aef6558fd185ae22eea46b
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/HapZipInfo.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/IntentInfo.class b/out/production/developtools_packing_tool_1/ohos/IntentInfo.class
new file mode 100644
index 0000000000000000000000000000000000000000..975a79ca443178d0cb3275fa42ff9b556e171861
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/IntentInfo.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/JsInfo.class b/out/production/developtools_packing_tool_1/ohos/JsInfo.class
new file mode 100644
index 0000000000000000000000000000000000000000..478bb8cdf3e2bdada9a4d74e33cd673868c1dd08
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/JsInfo.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/JsonUtil.class b/out/production/developtools_packing_tool_1/ohos/JsonUtil.class
new file mode 100644
index 0000000000000000000000000000000000000000..5202fe5f016bd9103510484dc89680ae02e594f3
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/JsonUtil.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/Log.class b/out/production/developtools_packing_tool_1/ohos/Log.class
new file mode 100644
index 0000000000000000000000000000000000000000..a08eeba5b460c15b325d97e0fa316c038987d7a4
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/Log.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/LogType.class b/out/production/developtools_packing_tool_1/ohos/LogType.class
new file mode 100644
index 0000000000000000000000000000000000000000..c65c4f7d226c4a59f986cf05cee354782cdf4e14
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/LogType.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/MetaData.class b/out/production/developtools_packing_tool_1/ohos/MetaData.class
new file mode 100644
index 0000000000000000000000000000000000000000..92f92a39d93364bf1b9439abcf62980d39823326
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/MetaData.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/MetaDataInfo.class b/out/production/developtools_packing_tool_1/ohos/MetaDataInfo.class
new file mode 100644
index 0000000000000000000000000000000000000000..41e1c643e12264152284a88ba67d0b2f8df1759d
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/MetaDataInfo.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/ModuleAbilityInfo.class b/out/production/developtools_packing_tool_1/ohos/ModuleAbilityInfo.class
new file mode 100644
index 0000000000000000000000000000000000000000..ef792dc4d0c98b97baec430b1aea990073cb9875
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/ModuleAbilityInfo.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/ModuleAdaption.class b/out/production/developtools_packing_tool_1/ohos/ModuleAdaption.class
new file mode 100644
index 0000000000000000000000000000000000000000..da0b3341ffae3e0c73758f563878ea444d564388
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/ModuleAdaption.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/ModuleApiVersion.class b/out/production/developtools_packing_tool_1/ohos/ModuleApiVersion.class
new file mode 100644
index 0000000000000000000000000000000000000000..5fd3f2279c2fdcbf70f68ba53db9cb320cb06cb0
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/ModuleApiVersion.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/ModuleAppInfo.class b/out/production/developtools_packing_tool_1/ohos/ModuleAppInfo.class
new file mode 100644
index 0000000000000000000000000000000000000000..9754d0b46f5f229e3aa8c1d0522ce9cce0a88eef
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/ModuleAppInfo.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/ModuleAtomicService.class b/out/production/developtools_packing_tool_1/ohos/ModuleAtomicService.class
new file mode 100644
index 0000000000000000000000000000000000000000..a8dbed2d5f143f7d320d11a2d1b33d5721de3fc2
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/ModuleAtomicService.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/ModuleDeviceType.class b/out/production/developtools_packing_tool_1/ohos/ModuleDeviceType.class
new file mode 100644
index 0000000000000000000000000000000000000000..43f7cdb980dec8a654ecbcf001a29ef922ee487b
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/ModuleDeviceType.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/ModuleInfo.class b/out/production/developtools_packing_tool_1/ohos/ModuleInfo.class
new file mode 100644
index 0000000000000000000000000000000000000000..0b6284b36f127585976f12e221fd6f78f5b30542
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/ModuleInfo.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/ModuleJsonUtil.class b/out/production/developtools_packing_tool_1/ohos/ModuleJsonUtil.class
new file mode 100644
index 0000000000000000000000000000000000000000..37826ac1f457875c6938fe03e0b6bcb8ff7b4c2b
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/ModuleJsonUtil.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/ModuleMetadataInfo.class b/out/production/developtools_packing_tool_1/ohos/ModuleMetadataInfo.class
new file mode 100644
index 0000000000000000000000000000000000000000..a299755a62acc1a3c138f2cc06c0d139a787038a
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/ModuleMetadataInfo.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/ModuleProfileInfo.class b/out/production/developtools_packing_tool_1/ohos/ModuleProfileInfo.class
new file mode 100644
index 0000000000000000000000000000000000000000..0d7997d6803815c2102f8081e8698adba29e96bc
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/ModuleProfileInfo.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/ModuleResult.class b/out/production/developtools_packing_tool_1/ohos/ModuleResult.class
new file mode 100644
index 0000000000000000000000000000000000000000..818044a5e49b7654fca13bcba8992bb3cb67a0b6
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/ModuleResult.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/ModuleShortcut.class b/out/production/developtools_packing_tool_1/ohos/ModuleShortcut.class
new file mode 100644
index 0000000000000000000000000000000000000000..c500533b4ac3cb5d72d7f852c26733d80c0d7f8c
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/ModuleShortcut.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/PackFormatter.class b/out/production/developtools_packing_tool_1/ohos/PackFormatter.class
new file mode 100644
index 0000000000000000000000000000000000000000..fd4c8f4ff2ecab5c8d4243eb1e208c1fdd193207
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/PackFormatter.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/PackInfo.class b/out/production/developtools_packing_tool_1/ohos/PackInfo.class
new file mode 100644
index 0000000000000000000000000000000000000000..b5e4fca2ac9de8e1b4f935aec14a4c6b8245d798
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/PackInfo.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/PreloadItem.class b/out/production/developtools_packing_tool_1/ohos/PreloadItem.class
new file mode 100644
index 0000000000000000000000000000000000000000..c007f2f586e43a0ca40d20f4685d7a3c892fa425
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/PreloadItem.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/ProfileInfo.class b/out/production/developtools_packing_tool_1/ohos/ProfileInfo.class
new file mode 100644
index 0000000000000000000000000000000000000000..7f94a876f99c2f3e74a73cb9d12870e4c47a2502
Binary files /dev/null and b/out/production/developtools_packing_tool_1/ohos/ProfileInfo.class differ
diff --git a/out/production/developtools_packing_tool_1/ohos/README b/out/production/developtools_packing_tool_1/ohos/README
new file mode 100644
index 0000000000000000000000000000000000000000..951e25e97c885574fbef7564b190520b0c521b2d
--- /dev/null
+++ b/out/production/developtools_packing_tool_1/ohos/README
@@ -0,0 +1,226 @@
+/*
+ * Copyright (c) 2019-2021 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+use commands for package hap or app.
+
+CONSTRAINT:
+1.When the app depends on a hap, you need to wait the hap has been packaged,
+ It can be controlled according to the return value of the command execution.
+2.If the same command appears many times in a command, take the last value that appears.
+ For example: --mode hap --mode app
+ the mode value is app.
+3.If there are several parameters in the same command, take the first value.
+ For example: --mode hap app
+ the mode value is hap.
+4.Path cannot start with '--', to avoid conflict with the instruction.
+5.Command must be lowercase(such as:--mode), and file's suffix is case insensitive,
+ but json's filename must be config.json and index's filename must be resources.index.
+6.Absolute paths is recommended.
+7.After package a hap, files under resources/ will put into assets/entry/resources/ directory,
+ files under lib/ will be putted into libs/ directory,
+ files under maple-so/ will be putted into maple/ directory,
+ file of resources.index will be putted into assets/entry/ directory.
+8.maple so input method have a tentative plan which can support two input methods.
+ If "maple-so-path" is valid, "maple-so-dir" will not be used.
+ The input method of "maple-so-path" will be discarded later.
+9.In app package mode, signature and certificate may be resource files later,
+ so parameters are reserved now.
+
+HAP USAGE:
+java -jar hmos_app_packing_tool.jar --mode