您好,欢迎来到二三娱乐。
搜索
您的当前位置:首页theos笔记

theos笔记

来源:二三娱乐
   
      ldid       brew

brew ldid

brew install dpkg ldid

$ brew install ldid

cd
$ cd ~/Desktop
$ nic.pl
[11.] iphone/tweak

Project Name

Package Name ID
Author/Maintainer Name
Mac
[iphone/tweak] MobileSubstrate Bundle filter
APP Bundle Identifier FM com.gemd.iting
Cycript APP Bundle Identifier
[iphone/tweak] List of applications to terminate upon installation

Project Name (required): ting_tweak

Package Name [com.yourcompany.ting_tweak]: com.mj.ting
Author/Maintainer Name [MJ Lee]:
[iphone/tweak] MobileSubstrate Bundle filter [com.apple.springboard]:
com.gemd.iting
[iphone/tweak] List of applications to terminate upon installation (space-
separated, '-' for none) [SpringBoard]:
Instantiating iphone/tweak in ting_tweak/...
Done.
Makefile IP
THEOS_DEVICE_IP THEOS_DEVICE_PORT
export THEOS_DEVICE_IP=127.0.0.1
export THEOS_DEVICE_PORT=10010
include $(THEOS)/makefiles/common.mk
TWEAK_NAME = ting_tweak
ting_tweak_FILES = Tweak.xm
include $(THEOS_MAKE_PATH)/tweak.mk
after-install::
install.exec "killall -9 SpringBoard"
Makefile IP $ source ~/.bash_profile
$ vim ~/.bash_profile
export THEOS=~/theos
export PATH=$THEOS/bin:$PATH
export THEOS_DEVICE_IP=127.0.0.1
export THEOS_DEVICE_PORT=10010
$ source ~/.bash_profile

Tweak.xm
%hook XMAdAnimationView

  • (id)initWithImageUrl:(id)arg1 title:(id)arg2 iconType:(long long)arg3
    jumpType:(long long)arg4
    {
    return nil; }
    %end
    %hook XMSoundPatchPosterView
  • (id)initWithFrame:(struct CGRect)arg1
    {
    return nil; }
    %end

make
deb
make package
SpringBoard make install

1 - make package

$ make package

use IO::Compress::Lzma;

use IO::Compress::Xz;

$ vim $THEOS/makefiles/package/deb.mk
_THEOS_PLATFORM_DPKG_DEB_COMPRESSION ?= gzip
$ make
Error: You do not have an SDK in
/Library/Developer/CommandLineTools/Platforms/iPhoneOS.platform/Developer/S
DKs
$ sudo xcode-select --switch
/Applications/Xcode.app/Contents/Developer/
$ make

Making all for tweak xxx...
make[2]: Nothing to be done for `internal-library-compile'.
clean

$ make clean
$ make
“ ” 2

 theos    
        Logos   

%hook %end hook %log
Xcode -> Window -> Devices and Simulators
HBDebugLog NSLog
%new
%c(className) Class %c(NSObject) NSStringFromClass() objc_getClass()
%orig %ctor

%dtor
logify.pl xm
logify.pl xx.h > xx.xm
layout / theos-tweak
Tweak
$ make Tweak *.dylib
$ make package dylib deb
$ make install deb Cydia deb /Library/MobileSubstrate/DynamicLibraries
*.dylib Tweak *.plist hook APP ID
APP
Cydia Substrate Cydia APP dylib
APP dylib theos tweak APP

                  APP    tweak       tweak              .app        

tweak tweak APP
APP tweak tweak APP
tweak
Swift\C tweak OC
tweak
C++\C#
logify.pl

logify.pl xm __weak
inout
@protocol XXTestDelegate;

  • (void).cxx_destruct { %log; %orig; }
    HBLogDebug(@" = 0x%x", (unsigned int)r); HBLogDebug(@" = 0x%@", r); void XXPerson * void *
    @class XXPerson;

Copyright © 2019- yule263.com 版权所有 湘ICP备2023023988号-1

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务