Skip to content

Commit 22da813

Browse files
committed
Include version in installed Frida server name to allow upgrades later
This means that in future we'll automatically fetch the new version when next launching a fresh device, and we can easily spot & cleanup old versions too (once actually required).
1 parent 5361da5 commit 22da813

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/dynamic-dep-store.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ import { HtkConfig } from './config';
1212
export async function getDependencyStream<K extends readonly string[]>(options: {
1313
config: HtkConfig,
1414
key: K,
15-
ext: string,
15+
ext: `.${string}`,
1616
fetch: (key: K) => Promise<stream.Readable>
1717
}) {
18-
const depPath = path.join(options.config.configPath, `${options.key.join('-')}.${options.ext}`);
18+
const depPath = path.join(options.config.configPath, `${options.key.join('-')}${options.ext}`);
1919

2020
if (await fs.canAccess(depPath)) {
2121
return fs.createReadStream(depPath);

src/interceptors/frida/frida-integration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const FRIDA_VERSION = '16.1.7';
3636
export const FRIDA_DEFAULT_PORT = 27042;
3737
export const FRIDA_ALTERNATE_PORT = 24072; // Reversed to mildly inconvenience detection
3838

39-
export const FRIDA_BINARY_NAME = 'adirf-server'; // Reversed to mildly inconvenience detection
39+
export const FRIDA_BINARY_NAME = `adirf-server-${FRIDA_VERSION}`; // Reversed to mildly inconvenience detection
4040

4141
export const FRIDA_SRIS = {
4242
'android': {

0 commit comments

Comments
 (0)