APPリバース

4897 ワード

需要
最近英語を勉強していて、「毎日英語リスニング」アプリをダウンロードしました.数日使用した後、中国語の翻訳、VIP権限の制限がなく、使いにくいことに気づいた.修正の考えが芽生えて、純粋に学習して、過程を記録します.(脱獄携帯が必要)
の意見を打診
一、APPのヘッダファイルをエクスポートする.
これらのヘッダファイルでは、+(BOOL)isVip関数を持つUserInfoクラスが見つかりました.get it!
二、Theos
インストール関連の構成:
  • Theos
  • $ export THEOS=/opt/theos
    $ sudo git clone git://github.com/DHowett/theos.git $THEOS
    # password
  • ldid
  • $ sudo -s
    # password
    $ cp -R Desktop/nq/myTheos/ldid /opt/theos/bin
    $ sudo chmod 777 /opt/theos/bin/ldid
  • CydiaSubstrate
  • $ sudo /opt/theos/bin/bootstrap.sh substrate
    $ sudo -s
    
# password
    $ cp -R Desktop/nq/myTheos/libsubstrate.dylib /opt/theos/lib/libsubstrate.dylib 
    $ sudo chmod 777 /opt/theos/lib/libsubstrate.dylib
  • dpkg-deb
  • $ cp ~/Desktop/nq/myTheos/dpkg-deb.pl /opt/theos/bin/
    $ sudo chmod 777 /opt/theos/bin/dpkg-deb.pl
  • Theos NIC templates
  • $ cp ~/Desktop/nq/myTheos/theos-nic-templates-master/cydget.nic.tar /opt/theos/templates/iphone/
    
    $ cp ~/Desktop/nq/myTheos/theos-nic-templates-master/framework.nic.tar /opt/theos/templates/iphone/
    
    $ cp ~/Desktop/nq/myTheos/theos-nic-templates-master/notification_center_widget.nic.tar /opt/theos/templates/iphone/
    
    $ cp ~/Desktop/nq/myTheos/theos-nic-templates-master/sbsettingstoggle.nic.tar /opt/theos/templates/iphone/
    
    $ cp ~/Desktop/nq/myTheos/theos-nic-templates-master/xpc_service.nic.tar /opt/theos/templates/iphone/

    プロジェクトの作成:
  • NIC
  • を起動する
    $ /opt/theos/bin/nic.pl

    iPhone/tweak対応の数字を9のように入力します.
    Choose a Template (required): 9

    注意:ヘッダーファイルをエクスポートするときにcom.eusoft.ting-enとtingenが知られています.残りは自己記入できます.
    Project Name (required): hooktingen
    Package Name [com.yourcompany.hooktingen]: com.leek.tingen
    Author/Maintainer Name [leek]: leek
    [iphone/tweak] MobileSubstrate Bundle filter [com.apple.springboard]: com.eusoft.ting-en
    [iphone/tweak] List of applications to terminate upon installation (space-separated, '-' for none) [SpringBoard]: tingen
    Instantiating iphone/tweak in iosregreetings/...

    Tweak.xmの作成:以前に発見されたUserInfoクラスを変更できるようになりました.
    %hook UserInfo
    + (BOOL)isVip
        return YES;
    }
    %end

    Makefileを変更してTHEOSを追加DEVICE_IP、192.168.96.180はiPhone IPで、パソコンと同じネットワークが必要です.
    THEOS_DEVICE_IP = 192.168.96.180

    インストール
    make package install

    結果
    アプリに入ると、一部のVIP機能が利用可能で、インタフェースが詰まっていることがわかりました.どこで問題が発生しましたか.どう処理しますか.次回分解.