priv data + 4096 ram
This commit is contained in:
parent
f458b38ffd
commit
5b9866a8bd
@ -11,7 +11,7 @@ function culebra_loop() {
|
|||||||
rm -f /opt/android-sdk-linux/.android/avd/virtual_dev.avd/*.lock
|
rm -f /opt/android-sdk-linux/.android/avd/virtual_dev.avd/*.lock
|
||||||
adb start-server
|
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 wait-for-device
|
||||||
adb emu avd snapshot load configured
|
adb emu avd snapshot load configured
|
||||||
|
|
||||||
|
@ -63,10 +63,9 @@ app.use(express.text({limit: "100mb"}));
|
|||||||
app.post("/inspect_har", function (req, res) {
|
app.post("/inspect_har", function (req, res) {
|
||||||
let body = JSON.parse(req.body);
|
let body = JSON.parse(req.body);
|
||||||
let har = JSON.stringify(body.har);
|
let har = JSON.stringify(body.har);
|
||||||
console.log(har);
|
|
||||||
let private_data;
|
let private_data;
|
||||||
if (body.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.setHeader("Content-Type", "text/html");
|
||||||
res.send(build_html(har, private_data, "/code/har-analyzer/"));
|
res.send(build_html(har, private_data, "/code/har-analyzer/"));
|
||||||
});
|
});
|
||||||
|
@ -37,7 +37,6 @@ class Notifications extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
console.log("Render", this.state.notifications);
|
|
||||||
return this.state.notifications.map(({ id, notification }) => (
|
return this.state.notifications.map(({ id, notification }) => (
|
||||||
<div
|
<div
|
||||||
onClick={() => this.remove_notification(id)}
|
onClick={() => this.remove_notification(id)}
|
||||||
|
@ -48,18 +48,34 @@ class TrafficLog extends Component {
|
|||||||
const inspect_har = async () => {
|
const inspect_har = async () => {
|
||||||
const req_body = {
|
const req_body = {
|
||||||
har: this.export_har(),
|
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", {
|
const resp = await fetch("/inspect_har", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
body: JSON.stringify(req_body),
|
body: JSON.stringify(req_body),
|
||||||
})
|
});
|
||||||
const resp_text = await resp.text();
|
const resp_text = await resp.text();
|
||||||
const newWindow = window.open();
|
const newWindow = window.open();
|
||||||
newWindow?.document.write(resp_text);
|
newWindow?.document.write(resp_text);
|
||||||
newWindow?.document.close();
|
newWindow?.document.close();
|
||||||
|
};
|
||||||
}
|
|
||||||
|
|
||||||
const contentWithLineBreaks = this.state.finished_entries.map((req) => {
|
const contentWithLineBreaks = this.state.finished_entries.map((req) => {
|
||||||
return (
|
return (
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
adb start-server
|
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_adidreader.sh
|
||||||
bash /preconf/install_culebra.sh
|
bash /preconf/install_culebra.sh
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user