@@ -0,0 +1 @@ | |||
{ Filter = { Bundles = ( "com.google.OPA" ); }; } |
@@ -0,0 +1,11 @@ | |||
ARCHS = armv7 arm64 | |||
include $(THEOS)/makefiles/common.mk | |||
TWEAK_NAME = InstantAssistant | |||
InstantAssistant_FILES = Tweak.xm | |||
InstantAssistant_FRAMEWORKS = UIKit | |||
include $(THEOS_MAKE_PATH)/tweak.mk | |||
after-install:: | |||
install.exec "killall -9 OPA" |
@@ -0,0 +1,15 @@ | |||
@interface OPASearchViewController | |||
-(void)didTapOnGlifView; | |||
@end | |||
@interface OPAViewController | |||
@property (nonatomic, assign) OPASearchViewController *searchViewController; | |||
@end | |||
%hook OPAViewController | |||
-(void)viewDidLoad{ | |||
%orig; | |||
[[NSNotificationCenter defaultCenter] addObserver:self.searchViewController selector:@selector(didTapOnGlifView) name:UIApplicationDidBecomeActiveNotification object:nil]; | |||
[self.searchViewController didTapOnGlifView]; | |||
} | |||
%end |
@@ -0,0 +1,9 @@ | |||
Package: com.gilshahar7.instantassistant | |||
Name: InstantAssistant | |||
Depends: mobilesubstrate | |||
Version: 1.0 | |||
Architecture: iphoneos-arm | |||
Description: Always launches the Google Assistant in "listening mode" | |||
Maintainer: gilshahar7 | |||
Author: gilshahar7 | |||
Section: Tweaks |