Merge pull request #462 from cvanstone/include_package_name_csv
Some checks failed
Debug build / build (push) Has been cancelled
Validate Gradle Wrapper / Validation (push) Has been cancelled
Test native code / test (push) Has been cancelled
Windows build / build (push) Has been cancelled

Include the package name in the CSV output
This commit is contained in:
Emanuele Faranda 2024-10-12 15:29:20 +02:00 committed by GitHub
commit 2438a332e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 2 deletions

View File

@ -470,6 +470,7 @@ public class ConnectionsAdapter extends RecyclerView.Adapter<ConnectionsAdapter.
builder.append(conn.dst_port); builder.append(",");
builder.append(conn.uid); builder.append(",");
builder.append((app != null) ? app.getName() : ""); builder.append(",");
builder.append((app != null) ? app.getPackageName() : ""); builder.append(",");
builder.append(conn.l7proto); builder.append(",");
builder.append(conn.getStatusLabel(mContext)); builder.append(",");
builder.append((conn.info != null) ? conn.info : ""); builder.append(",");

View File

@ -32,7 +32,7 @@
- App icon by <a href="https://www.freepik.com" title="Freepik">Freepik</a> from <a href="https://www.flaticon.com/" title="Flaticon">flaticon</a>\n\n
- SourceCodePro font: <a href="https://github.com/adobe-fonts/source-code-pro/blob/release/LICENSE.md">OFL-1.1</a>\n\n
</string>
<string name="connections_csv_fields" translatable="false">IPProto,SrcIP,SrcPort,DstIp,DstPort,UID,App,Proto,Status,Info,BytesSent,BytesRcvd,PktsSent,PktsRcvd,FirstSeen,LastSeen</string>
<string name="connections_csv_fields" translatable="false">IPProto,SrcIP,SrcPort,DstIp,DstPort,UID,App,PackageName,Proto,Status,Info,BytesSent,BytesRcvd,PktsSent,PktsRcvd,FirstSeen,LastSeen</string>
<string name="unlock_token" translatable="false">Unlock token</string>
<!-- Localized -->
<string name="start_button">Start</string>

View File

@ -32,7 +32,7 @@
- App icon by <a href="https://www.freepik.com" title="Freepik">Freepik</a> from <a href="https://www.flaticon.com/" title="Flaticon">flaticon</a>\n\n
- SourceCodePro font: <a href='https://github.com/adobe-fonts/source-code-pro/blob/release/LICENSE.md'>OFL-1.1</a>\n\n
</string>
<string name="connections_csv_fields" translatable="false">IPProto,SrcIP,SrcPort,DstIp,DstPort,UID,App,Proto,Status,Info,BytesSent,BytesRcvd,PktsSent,PktsRcvd,FirstSeen,LastSeen</string>
<string name="connections_csv_fields" translatable="false">IPProto,SrcIP,SrcPort,DstIp,DstPort,UID,App,PackageName,Proto,Status,Info,BytesSent,BytesRcvd,PktsSent,PktsRcvd,FirstSeen,LastSeen</string>
<string name="unlock_token" translatable="false">Unlock token</string>
<!-- Localized -->