priv data + 4096 ram

This commit is contained in:
Andrii Dokhniak 2025-07-26 10:57:35 +02:00
parent f458b38ffd
commit 5b9866a8bd
5 changed files with 27 additions and 11 deletions

View File

@ -11,7 +11,7 @@ function culebra_loop() {
rm -f /opt/android-sdk-linux/.android/avd/virtual_dev.avd/*.lock
adb start-server
emulator -avd virtual_dev -writable-system -no-window -no-audio &
emulator -avd virtual_dev -writable-system -no-window -no-audio -memory 4096 &
adb wait-for-device
adb emu avd snapshot load configured

View File

@ -63,10 +63,9 @@ app.use(express.text({limit: "100mb"}));
app.post("/inspect_har", function (req, res) {
let body = JSON.parse(req.body);
let har = JSON.stringify(body.har);
console.log(har);
let private_data;
if (body.private_data)
private_data = JSON.stringify(body.private_data);
private_data = body.private_data;
res.setHeader("Content-Type", "text/html");
res.send(build_html(har, private_data, "/code/har-analyzer/"));
});

View File

@ -37,7 +37,6 @@ class Notifications extends Component {
}
render() {
console.log("Render", this.state.notifications);
return this.state.notifications.map(({ id, notification }) => (
<div
onClick={() => this.remove_notification(id)}

View File

@ -48,18 +48,34 @@ class TrafficLog extends Component {
const inspect_har = async () => {
const req_body = {
har: this.export_har(),
private_data: undefined,
private_data: [
[
"adid",
document.getElementById("adid_priv_info_table")!
.textContent,
],
[
"latitude",
document.getElementById("lat_priv_info_table")!
.textContent,
],
[
"longitude",
document.getElementById("lon_priv_info_table")!
.textContent,
],
],
};
const resp = await fetch("/inspect_har", {
method: "POST",
body: JSON.stringify(req_body),
})
method: "POST",
body: JSON.stringify(req_body),
});
const resp_text = await resp.text();
const newWindow = window.open();
newWindow?.document.write(resp_text);
newWindow?.document.close();
}
};
const contentWithLineBreaks = this.state.finished_entries.map((req) => {
return (

View File

@ -1,5 +1,7 @@
adb start-server
emulator -avd virtual_dev -writable-system -no-window -no-audio &
emulator -avd virtual_dev -writable-system -no-window -no-audio -memory 4096 &
bash /preconf/install_adidreader.sh
bash /preconf/install_culebra.sh