瀏覽代碼

Add files via upload

master
Gil Shahar 7 年之前
父節點
當前提交
3077da0cb2
共有 5 個文件被更改,包括 36 次插入0 次删除
  1. +1
    -0
      InstantAssistant.plist
  2. +11
    -0
      Makefile
  3. +15
    -0
      Tweak.xm
  4. +9
    -0
      control
  5. 二進制
      packages/com.gilshahar7.instantassistant_1.0_iphoneos-arm.deb

+ 1
- 0
InstantAssistant.plist 查看文件

@@ -0,0 +1 @@
{ Filter = { Bundles = ( "com.google.OPA" ); }; }

+ 11
- 0
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"

+ 15
- 0
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

+ 9
- 0
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

二進制
packages/com.gilshahar7.instantassistant_1.0_iphoneos-arm.deb 查看文件


Loading…
取消
儲存