Skip to content

Commit 78371fe

Browse files
author
Jay
committed
restructure directory
1 parent 2251f61 commit 78371fe

File tree

9 files changed

+36
-8
lines changed

9 files changed

+36
-8
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ reflutter.egg-info/
2222
goma/
2323
.venv/
2424
*.idsig
25+
.DS_Store

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Key features:
2424

2525
```
2626
# Linux, Windows, MacOS
27-
pip3 install reflutter==0.8.5
27+
pip3 install reflutter==0.8.6
2828
```
2929

3030
### Usage
@@ -55,7 +55,7 @@ No certificate installation or root access is required for Android. reFlutter al
5555

5656
> ⚠️ **Note:** Starting from Flutter version **3.24.0** (snapshot hash: `80a49c7111088100a233b2ae788e1f48`), the hardcoded proxy IP and port have been removed. You now need to configure your proxy directly on the device.
5757
58-
#### On Android:
58+
#### On Android
5959

6060
Use ADB to configure the device’s proxy:
6161

@@ -65,7 +65,7 @@ adb -s <device> shell "settings put global http_proxy <proxy_ip:port>"
6565

6666
Sign, align, and install the APK. Optionally configure **TunProxy** to route traffic through Burp Suite.
6767

68-
#### On iOS:
68+
#### On iOS
6969

7070
Sign and install the IPA. Configure **Potatso** to use your Burp Suite proxy server.
7171

@@ -108,6 +108,11 @@ Retrieve the file from the device.
108108

109109
### Frida
110110

111+
```
112+
frida-tools==13.7.1
113+
frida==16.7.19
114+
```
115+
111116
Use dump offsets in the Frida [script](https://github.com/Impact-I/reFlutter/blob/main/frida.js):
112117

113118
```bash

enginehash.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
version,Engine_commit,Snapshot_Hash
2+
3.35.1,1e9a811bf8e70466596bcf0ea3a8b5adb5f17f7f,97ff04a728735e6b6b098bdf983faaba
23
3.32.0,18818009497c581ede5d8a3b8b833b81d00cebb7,830f4f59e7969c70b595182826435c19
34
3.29.3,cf56914b326edb0ccb123ffdc60f00060bd513fa,d91c0e6f35f0eb2e44124e8f42aa44a7
45
3.27.1,cb4b5fff73850b2e42bd4de7cb9a4310a78ac40d,f956f595844a2f845a55707faaaa51e4
File renamed without changes.
File renamed without changes.
File renamed without changes.

scripts/enginehash.tmp.csv

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
version,Engine_commit,Snapshot_Hash
2+
3.35.1,1e9a811bf8e70466596bcf0ea3a8b5adb5f17f7f,97ff04a728735e6b6b098bdf983faaba
3+
3.36.0-0.1.pre,877970cbc98718dbee8f0a34374fa2b1a1db2248,9aae8d42a3210e23500dab9059c4c7d3
4+
3.35.0,1e9a811bf8e70466596bcf0ea3a8b5adb5f17f7f,97ff04a728735e6b6b098bdf983faaba
5+
3.35.0-0.3.pre,659d9553df45256ed2aa388aae7ed5a1a4f51bae,97ff04a728735e6b6b098bdf983faaba
6+
3.35.0-0.2.pre,52cc75c62467e72200ab5cd54cee48b8313f6d86,97ff04a728735e6b6b098bdf983faaba
27
3.32.8,ef0cd000916d64fa0c5d09cc809fa7ad244a5767,830f4f59e7969c70b595182826435c19
38
3.35.0-0.1.pre,1c9c20e7c3dd48c66f400a24d48ea806b4ab312a,97ff04a728735e6b6b098bdf983faaba
49
3.35.0-0.0.pre,f85f6b62b6db2a8725cafa75360ec960d581a809,97ff04a728735e6b6b098bdf983faaba

scripts/gen_enginehash.py

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,25 @@ def get_snapshot_hash(engine_hash: str) -> str | None:
5454
f.write("version,Engine_commit,Snapshot_Hash\n")
5555

5656
if isdir(flutter_path):
57-
rmtree(flutter_path)
58-
59-
cli(["git", "clone", "https://github.com/flutter/flutter.git", flutter_path])
57+
# update the branch
58+
cli(
59+
[
60+
"cd",
61+
flutter_path,
62+
"&&",
63+
"git",
64+
"reset",
65+
"--hard",
66+
"HEAD",
67+
"&&",
68+
"git",
69+
"pull",
70+
"origin",
71+
"master",
72+
]
73+
)
74+
else:
75+
cli(["git", "clone", "https://github.com/flutter/flutter.git", flutter_path])
6076

6177
if isdir(flutter_path):
6278
for data in get(release_url).json()["releases"]:

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
setuptools.setup(
2626
name="reflutter",
27-
version="0.8.5",
27+
version="0.8.6",
2828
description=SHORT_DESCRIPTION,
2929
long_description=LONG_DESCRIPTION,
3030
long_description_content_type="text/markdown",
@@ -38,7 +38,7 @@
3838
classifiers=CLASSIFIERS,
3939
entry_points={
4040
"console_scripts": [
41-
"reflutter = src.__init__:main",
41+
"reflutter = reflutter.__init__:main",
4242
],
4343
},
4444
python_requires=">3.9",

0 commit comments

Comments
 (0)