Skip to content

Commit

Permalink
add log export
Browse files Browse the repository at this point in the history
  • Loading branch information
MrXiaoM committed Oct 29, 2023
1 parent 266f194 commit 6de975b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<Button Margin="0,0,0,10" Padding="10,2,10,2" Click="BtnDecompile_Click">反编译 (./classes/###.class)</Button>
<Button Margin="0,0,0,10" Padding="10,2,10,2" Click="BtnReadCode_Click">分析反编译结果 (./decompile/###.java)</Button>
<TextBlock Margin="0,0,0,10">(可选: 将 Eden.apk 放到本程序目录)</TextBlock>
<Button Margin="0,0,0,10" Padding="10,2,10,2" Click="BtnExportLog_Click">导出日志 (./eden.log)</Button>
</StackPanel>
<Grid Grid.Column="1">
<Grid.RowDefinitions>
Expand Down
6 changes: 6 additions & 0 deletions MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,12 @@ private void BtnReadCode_Click(object sender, RoutedEventArgs e)
CodeReader.Run(info, "decompile");
}

private void BtnExportLog_Click(object sender, RoutedEventArgs e)
{
File.WriteAllText("eden.log", logBox.Text, Encoding.UTF8);
MessageBox.Show("日志已保存");
}


/// <summary>
/// 反编译 class 文件到 decompile 文件夹
Expand Down

0 comments on commit 6de975b

Please sign in to comment.