diff --git a/hiviewdfx/.idea/inspectionProfiles/Project_Default.xml b/hiviewdfx/.idea/inspectionProfiles/Project_Default.xml
new file mode 100755
index 0000000000000000000000000000000000000000..e96f6e029bc73e0d0be62e86c1a0748e736b40bf
--- /dev/null
+++ b/hiviewdfx/.idea/inspectionProfiles/Project_Default.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/hiviewdfx/.idea/inspectionProfiles/profiles_settings.xml b/hiviewdfx/.idea/inspectionProfiles/profiles_settings.xml
new file mode 100755
index 0000000000000000000000000000000000000000..105ce2da2d6447d11dfe32bfb846c3d5b199fc99
--- /dev/null
+++ b/hiviewdfx/.idea/inspectionProfiles/profiles_settings.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/hiviewdfx/.idea/vcs.xml b/hiviewdfx/.idea/vcs.xml
new file mode 100755
index 0000000000000000000000000000000000000000..2e3f6920d05c75d1fd79409538252175c9b9cf14
--- /dev/null
+++ b/hiviewdfx/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/hiviewdfx/.idea/workspace.xml b/hiviewdfx/.idea/workspace.xml
new file mode 100755
index 0000000000000000000000000000000000000000..d8ece442b58968ba876fc3be048512b941182622
--- /dev/null
+++ b/hiviewdfx/.idea/workspace.xml
@@ -0,0 +1,1335 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+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
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1654050384135
+
+
+ 1654050384135
+
+
+
+
\ No newline at end of file
diff --git a/hiviewdfx/hiview/faultlogger/faultloggerjs/src/main/js/default/test/faultlogger.test.js b/hiviewdfx/hiview/faultlogger/faultloggerjs/src/main/js/default/test/faultlogger.test.js
index 430d4a7c84d886d96a2769605907be714a8b4616..f47cd09d76d5b38e8abdf6ced1db54a29f6df7c1 100644
--- a/hiviewdfx/hiview/faultlogger/faultloggerjs/src/main/js/default/test/faultlogger.test.js
+++ b/hiviewdfx/hiview/faultlogger/faultloggerjs/src/main/js/default/test/faultlogger.test.js
@@ -103,6 +103,14 @@ describe("FaultlogJsTest", function () {
console.info("faultloggertestsummary02 " + i + " fullLog.length " + ret[i].fullLog.length);
if (ret[i].fullLog.indexOf("faultloggertestsummary02 " + (loopTimes - 1 - i)) != -1) {
console.info("FaultlogJsTest_002 " + ret[i].fullLog.length);
+ expect(typeof(ret[i]).pid).assertEqual("number");
+ expect(typeof(ret[i]).uid).assertEqual("number");
+ expect(typeof(ret[i]).type).assertEqual("number");
+ expect(typeof(ret[i]).timestamp).assertEqual("number");
+ expect(typeof(ret[i]).reason).assertEqual("string");
+ expect(typeof(ret[i]).module).assertEqual("string");
+ expect(typeof(ret[i]).summary).assertEqual("string");
+ expect(typeof(ret[i]).fullLog).assertEqual("string");
expect(true).assertTrue();
} else {
expect(false).assertTrue();
diff --git a/hiviewdfx/testdisk.log b/hiviewdfx/testdisk.log
new file mode 100644
index 0000000000000000000000000000000000000000..ffc1a5f148a96b9ae27f6b0c1f8402ec89ca9ce2
--- /dev/null
+++ b/hiviewdfx/testdisk.log
@@ -0,0 +1,108 @@
+
+
+Sat Jun 18 15:14:48 2022
+Command line: TestDisk
+
+TestDisk 7.1, Data Recovery Utility, July 2019
+Christophe GRENIER
+https://www.cgsecurity.org
+OS: Linux, kernel 5.4.0-120-generic (#136-Ubuntu SMP Fri Jun 10 13:40:48 UTC 2022) x86_64
+Compiler: GCC 9.2
+ext2fs lib: 1.45.5, ntfs lib: libntfs-3g, reiserfs lib: none, ewf lib: none, curses lib: ncurses 6.1
+User is not root!
+Hard disk list
+
+
+TestDisk exited normally.
+Using locale 'en_US.UTF-8'.
+
+
+Sat Jun 18 15:14:48 2022
+Command line: TestDisk /debug
+
+TestDisk 7.1, Data Recovery Utility, July 2019
+Christophe GRENIER
+https://www.cgsecurity.org
+OS: Linux, kernel 5.4.0-120-generic (#136-Ubuntu SMP Fri Jun 10 13:40:48 UTC 2022) x86_64
+Compiler: GCC 9.2
+ext2fs lib: 1.45.5, ntfs lib: libntfs-3g, reiserfs lib: none, ewf lib: none, curses lib: ncurses 6.1
+Warning: can't get size for Disk /dev/mapper/control - 0 B - 0 sectors, sector size=512
+Warning: can't get size for Disk /dev/loop25 - 0 B - 0 sectors, sector size=512
+Hard disk list
+Disk /dev/sda - 268 GB / 250 GiB - CHS 32635 255 63, sector size=512 - VMware, VMware Virtual S, FW:1.0
+Disk /dev/loop0 - 4096 B - 8 sectors (RO), sector size=512
+Disk /dev/loop1 - 117 MB / 111 MiB - 228816 sectors (RO), sector size=512
+Disk /dev/loop10 - 229 MB / 219 MiB - 448512 sectors (RO), sector size=512
+Disk /dev/loop11 - 569 KB / 556 KiB - 1112 sectors (RO), sector size=512
+Disk /dev/loop12 - 2748 KB / 2684 KiB - 5368 sectors (RO), sector size=512
+Disk /dev/loop13 - 64 MB / 61 MiB - 126824 sectors (RO), sector size=512
+Disk /dev/loop14 - 56 MB / 54 MiB - 111080 sectors (RO), sector size=512
+Disk /dev/loop15 - 266 MB / 254 MiB - 520384 sectors (RO), sector size=512
+Disk /dev/loop16 - 2658 KB / 2596 KiB - 5192 sectors (RO), sector size=512
+Disk /dev/loop17 - 561 KB / 548 KiB - 1096 sectors (RO), sector size=512
+Disk /dev/loop18 - 720 KB / 704 KiB - 1408 sectors (RO), sector size=512
+Disk /dev/loop19 - 85 MB / 81 MiB - 166424 sectors (RO), sector size=512
+Disk /dev/loop2 - 58 MB / 55 MiB - 113696 sectors (RO), sector size=512
+Disk /dev/loop20 - 2658 KB / 2596 KiB - 5192 sectors (RO), sector size=512
+Disk /dev/loop21 - 229 MB / 219 MiB - 448512 sectors (RO), sector size=512
+Disk /dev/loop22 - 720 KB / 704 KiB - 1408 sectors (RO), sector size=512
+Disk /dev/loop23 - 53 MB / 50 MiB - 104360 sectors (RO), sector size=512
+Disk /dev/loop24 - 68 MB / 65 MiB - 133552 sectors (RO), sector size=512
+Disk /dev/loop3 - 64 MB / 61 MiB - 126808 sectors (RO), sector size=512
+Disk /dev/loop4 - 58 MB / 55 MiB - 113736 sectors (RO), sector size=512
+Disk /dev/loop5 - 147 MB / 140 MiB - 288072 sectors (RO), sector size=512
+Disk /dev/loop6 - 147 MB / 140 MiB - 288120 sectors (RO), sector size=512
+Disk /dev/loop7 - 260 MB / 248 MiB - 509456 sectors (RO), sector size=512
+Disk /dev/loop8 - 2605 KB / 2544 KiB - 5088 sectors (RO), sector size=512
+Disk /dev/loop9 - 119 MB / 113 MiB - 233240 sectors (RO), sector size=512
+
+Partition table type (auto): Intel
+Disk /dev/sda - 268 GB / 250 GiB - VMware, VMware Virtual S
+Partition table type: Intel
+
+Analyse Disk /dev/sda - 268 GB / 250 GiB - CHS 32635 255 63
+Geometry from i386 MBR: head=255 sector=63
+
+LVM2 magic value at 26108/52/57
+Current partition structure:
+ 1 * Linux 0 32 33 26108 52 56 419426304
+ 2 P Linux LVM 26108 52 57 32635 106 47 104859648
+
+search_part()
+Disk /dev/sda - 268 GB / 250 GiB - CHS 32635 255 63
+
+recover_EXT2: s_block_group_nr=0/1599, s_mnt_count=28/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
+recover_EXT2: s_blocksize=4096
+recover_EXT2: s_blocks_count 52428288
+recover_EXT2: part_size 419426304
+Filesystem created: Fri Jun 4 03:48:30 2021
+Last mount time: Sat Jun 18 11:04:42 2022
+ Linux 0 32 33 26108 52 56 419426304
+ ext4 blocksize=4096 Large_file Sparse_SB Recover, 214 GB / 199 GiB
+
+LVM2 magic value at 26108/52/57
+part_size 104859648
+ Linux LVM 26108 52 57 32635 106 47 104859648
+ LVM2, 53 GB / 50 GiB
+
+Results
+ * Linux 0 32 33 26108 52 56 419426304
+ ext4 blocksize=4096 Large_file Sparse_SB Recover, 214 GB / 199 GiB
+ P Linux LVM 26108 52 57 32635 106 47 104859648
+ LVM2, 53 GB / 50 GiB
+
+Hint for advanced users: dmsetup may be used if you prefer to avoid rewriting the partition table for the moment:
+echo "0 419426304 linear /dev/sda 2048" | dmsetup create test0
+echo "0 104859648 linear /dev/sda 419428352" | dmsetup create test1
+
+interface_write()
+ 1 * Linux 0 32 33 26108 52 56 419426304
+ 2 P Linux LVM 26108 52 57 32635 106 47 104859648
+write!
+
+write_mbr_i386: starting...
+write_all_log_i386: starting...
+No extended partition
+You will have to reboot for the change to take effect.
+
+TestDisk exited normally.