Skip to content

Commit bc59081

Browse files
committed
Don't show known incompatible apps for Frida interception
Safari specifically seems to ignore all our hooks - seems very likely that it uses a different connection mechanism, potentially using lower-level OS internals that'll be hard to hook. Just skip it for now.
1 parent 94ba248 commit bc59081

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/components/intercept/config/frida-config.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@ const SearchBox = styled(TextInput)`
107107
}
108108
`;
109109

110+
// We actively hide specific known non-interceptable apps:
111+
const INCOMPATIBLE_APP_IDS: string[] = [
112+
"com.apple.mobilesafari"
113+
];
114+
110115
@inject('proxyStore')
111116
@inject('rulesStore')
112117
@inject('eventsStore')
@@ -143,7 +148,9 @@ class FridaConfig extends React.Component<{
143148
yield getDetailedInterceptorMetadata(this.props.interceptor.id, this.selectedHost?.id)
144149
);
145150

146-
this.fridaTargets = result?.targets ?? [];
151+
this.fridaTargets = result?.targets?.filter(
152+
target => !INCOMPATIBLE_APP_IDS.includes(target.id)
153+
) ?? [];
147154
}.bind(this));
148155

149156

0 commit comments

Comments
 (0)