{ Filter = { Bundles = ( "com.google.OPA" ); }; } |
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" |
@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 |
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 |