diff --git a/InstantAssistant.plist b/InstantAssistant.plist new file mode 100644 index 0000000..8a4ceed --- /dev/null +++ b/InstantAssistant.plist @@ -0,0 +1 @@ +{ Filter = { Bundles = ( "com.google.OPA" ); }; } diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..181e04c --- /dev/null +++ b/Makefile @@ -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" diff --git a/Tweak.xm b/Tweak.xm new file mode 100644 index 0000000..eb63ea4 --- /dev/null +++ b/Tweak.xm @@ -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 \ No newline at end of file diff --git a/control b/control new file mode 100644 index 0000000..a55c8ef --- /dev/null +++ b/control @@ -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 diff --git a/packages/com.gilshahar7.instantassistant_1.0_iphoneos-arm.deb b/packages/com.gilshahar7.instantassistant_1.0_iphoneos-arm.deb new file mode 100644 index 0000000..58c02b2 Binary files /dev/null and b/packages/com.gilshahar7.instantassistant_1.0_iphoneos-arm.deb differ