This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class UsbData | |
| { | |
| private String vendorId; | |
| private String vendorName; | |
| private String productId; | |
| private String productName; | |
| public UsbData(String vendorId, String vendorName, String productId, String productName) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ############################################################################### | |
| ## ## | |
| ## Build and package OpenSSL static libraries for OSX/iOS ## | |
| ## ## | |
| ## This script is in the public domain. ## | |
| ## Creator : Laurent Etiemble ## | |
| ## ## | |
| ############################################################################### |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| adb shell lsof | grep <your-pid> | wc -l | |
| adb shell ls -l /proc/<your-pid>/fd | wc -l | |
| https://sdgsystems.com/blog/android-memory-and-file-descriptor-leaks-diagnosis-and-debugging-sdg-blog | |
| File Descriptors | |
| This is perhaps the sneakiest Android resource leak. Each app has a hard limit of 1024 file descriptors. Fortunately, 1024 file descriptors is an extremely generous limit, which should not be encountered during day-to-day development. Unfortunately, when coding errors introduce file descriptor leaks, the resultant crashes—Android immediately closes any app which exceeds its file descriptor allocation—do not put any useful debugging information in the logs. It is worth investigating any crash which shows those symptoms as a file descriptor leak. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import <Foundation/Foundation.h> | |
| #import <CydiaSubstrate/CydiaSubstrate2.h> | |
| #import <UIKit/UIKit.h> | |
| DefineObjCHook(void, viewDidLoad, UIViewController* self, SEL _cmd) { | |
| original_viewDidLoad(self, _cmd); | |
| BOOL prefferdTimeLine = [[NSUserDefaults standardUserDefaults] boolForKey:@"preffered_timeline"]; | |
| if (prefferdTimeLine) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # Insert_CydiaSubstrate.sh | |
| # UMAnalytics_Sdk_Demo | |
| # | |
| # Created by 罗红瑞 on 29/12/2017. | |
| # | |
| # --------------------------------------------------- | |
| # 1. Dir Things |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| breakpoint set -r '\[ClassName .*\]$' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import <UIKit/UIKit.h> | |
| %hook SpringBoard | |
| -(void)applicationDidFinishLaunching:(id)application { | |
| NSLog(@"MTTime 启动"); | |
| %orig; | |
| MSImageRef image = MSGetImageByName("/System/Library/PrivateFrameworks/CoreTime.framework/CoreTime"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| NSBundle *mainBundle = [NSBundle mainBundle]; | |
| [mainBundle aspect_hookSelector:@selector(bundleIdentifier) | |
| withOptions:AspectPositionInstead | |
| usingBlock:^(id<AspectInfo> info) { | |
| NSString *originalID = @"com.netease.cloudmusic"; | |
| [[info originalInvocation] setReturnValue:&originalID]; | |
| } error:nil]; | |
| NSString *hookedID = [mainBundle bundleIdentifier]; | |
| NSLog(@"%@", hookedID); |
NewerOlder