Skip to content
This repository was archived by the owner on Nov 19, 2020. It is now read-only.

Commit 68f8e13

Browse files
committed
Remove checkUpdate func
1 parent b4bf92a commit 68f8e13

File tree

15 files changed

+143
-18
lines changed

15 files changed

+143
-18
lines changed

Other/Products/Debug/libBaiduNetdiskPlugin.framework/Headers/libBaiduNetdiskPlugin.h

+4
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,7 @@ FOUNDATION_EXPORT const unsigned char libBaiduNetdiskPluginVersionString[];
4242
@interface SpeedUpTrialModel : ALModel
4343
@property(copy, nonatomic) NSString *token; // @synthesize token=_token;
4444
@end
45+
46+
@interface AppVersionManager : NSObject
47+
- (unsigned long long)checkUpdate;
48+
@end

Other/Products/Debug/libBaiduNetdiskPlugin.framework/Resources/Info.plist

+8-6
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<plist version="1.0">
44
<dict>
55
<key>BuildMachineOSBuild</key>
6-
<string>17D102</string>
6+
<string>18G1012</string>
77
<key>CFBundleDevelopmentRegion</key>
88
<string>en</string>
99
<key>CFBundleExecutable</key>
@@ -27,17 +27,19 @@
2727
<key>DTCompiler</key>
2828
<string>com.apple.compilers.llvm.clang.1_0</string>
2929
<key>DTPlatformBuild</key>
30-
<string>9C40b</string>
30+
<string>11B52</string>
3131
<key>DTPlatformVersion</key>
3232
<string>GM</string>
3333
<key>DTSDKBuild</key>
34-
<string>17C76</string>
34+
<string>19B81</string>
3535
<key>DTSDKName</key>
36-
<string>macosx10.13</string>
36+
<string>macosx10.15</string>
3737
<key>DTXcode</key>
38-
<string>0920</string>
38+
<string>1120</string>
3939
<key>DTXcodeBuild</key>
40-
<string>9C40b</string>
40+
<string>11B52</string>
41+
<key>LSMinimumSystemVersion</key>
42+
<string>10.13</string>
4143
<key>NSHumanReadableCopyright</key>
4244
<string>Copyright © 2018 CodeTips. All rights reserved.</string>
4345
</dict>

Other/Products/Debug/libBaiduNetdiskPlugin.framework/Versions/A/Headers/libBaiduNetdiskPlugin.h

+4
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,7 @@ FOUNDATION_EXPORT const unsigned char libBaiduNetdiskPluginVersionString[];
4242
@interface SpeedUpTrialModel : ALModel
4343
@property(copy, nonatomic) NSString *token; // @synthesize token=_token;
4444
@end
45+
46+
@interface AppVersionManager : NSObject
47+
- (unsigned long long)checkUpdate;
48+
@end

Other/Products/Debug/libBaiduNetdiskPlugin.framework/Versions/A/Resources/Info.plist

+8-6
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<plist version="1.0">
44
<dict>
55
<key>BuildMachineOSBuild</key>
6-
<string>17D102</string>
6+
<string>18G1012</string>
77
<key>CFBundleDevelopmentRegion</key>
88
<string>en</string>
99
<key>CFBundleExecutable</key>
@@ -27,17 +27,19 @@
2727
<key>DTCompiler</key>
2828
<string>com.apple.compilers.llvm.clang.1_0</string>
2929
<key>DTPlatformBuild</key>
30-
<string>9C40b</string>
30+
<string>11B52</string>
3131
<key>DTPlatformVersion</key>
3232
<string>GM</string>
3333
<key>DTSDKBuild</key>
34-
<string>17C76</string>
34+
<string>19B81</string>
3535
<key>DTSDKName</key>
36-
<string>macosx10.13</string>
36+
<string>macosx10.15</string>
3737
<key>DTXcode</key>
38-
<string>0920</string>
38+
<string>1120</string>
3939
<key>DTXcodeBuild</key>
40-
<string>9C40b</string>
40+
<string>11B52</string>
41+
<key>LSMinimumSystemVersion</key>
42+
<string>10.13</string>
4143
<key>NSHumanReadableCopyright</key>
4244
<string>Copyright © 2018 CodeTips. All rights reserved.</string>
4345
</dict>

Other/Products/Debug/libBaiduNetdiskPlugin.framework/Versions/Current/Headers/libBaiduNetdiskPlugin.h

+4
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,7 @@ FOUNDATION_EXPORT const unsigned char libBaiduNetdiskPluginVersionString[];
4242
@interface SpeedUpTrialModel : ALModel
4343
@property(copy, nonatomic) NSString *token; // @synthesize token=_token;
4444
@end
45+
46+
@interface AppVersionManager : NSObject
47+
- (unsigned long long)checkUpdate;
48+
@end

Other/Products/Debug/libBaiduNetdiskPlugin.framework/Versions/Current/Resources/Info.plist

+8-6
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<plist version="1.0">
44
<dict>
55
<key>BuildMachineOSBuild</key>
6-
<string>17D102</string>
6+
<string>18G1012</string>
77
<key>CFBundleDevelopmentRegion</key>
88
<string>en</string>
99
<key>CFBundleExecutable</key>
@@ -27,17 +27,19 @@
2727
<key>DTCompiler</key>
2828
<string>com.apple.compilers.llvm.clang.1_0</string>
2929
<key>DTPlatformBuild</key>
30-
<string>9C40b</string>
30+
<string>11B52</string>
3131
<key>DTPlatformVersion</key>
3232
<string>GM</string>
3333
<key>DTSDKBuild</key>
34-
<string>17C76</string>
34+
<string>19B81</string>
3535
<key>DTSDKName</key>
36-
<string>macosx10.13</string>
36+
<string>macosx10.15</string>
3737
<key>DTXcode</key>
38-
<string>0920</string>
38+
<string>1120</string>
3939
<key>DTXcodeBuild</key>
40-
<string>9C40b</string>
40+
<string>11B52</string>
41+
<key>LSMinimumSystemVersion</key>
42+
<string>10.13</string>
4143
<key>NSHumanReadableCopyright</key>
4244
<string>Copyright © 2018 CodeTips. All rights reserved.</string>
4345
</dict>
Binary file not shown.

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
![baidubetdiskplugin](./Other/Screenshots/baidubetdiskplugin.png)
66
![baidubetdiskplugin_1](./Other/Screenshots/baidubetdiskplugin_1.png)
77
### 说明
8+
* **20191118更新,去掉自动检查更新功能。由于个人精力和能力有限,此项目不再更新支持新版网盘。如使用,请下载2.2.2版本 [官方下载地址][1]**
89

910
* **免责声明:本项目旨在学习macOS 逆向的一点实践,不可使用于商业和个人其他意图。若使用不当,均由个人承担。**
1011

@@ -47,3 +48,5 @@
4748
### 最后
4849
* 使用愉快~
4950

51+
52+
[1]: http://issuecdn.baidupcs.com/issue/netdisk/MACguanjia/BaiduNetdisk_mac_2.2.2.dmg

Sources/BaiduNetdisk+Hook.m

+7
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ + (void)hookBaiduNetdisk
2020
ct_hookMethod(objc_getClass("FileTransSpeedUpTrialManager"), @selector(trialToken), [self class], @selector(hook_trialToken));
2121

2222
ct_hookMethod(objc_getClass("SpeedUpTrialModel"), @selector(setToken:), [self class], @selector(hook_setToken:));
23+
24+
ct_hookMethod(objc_getClass("AppVersionManager"), @selector(checkUpdate), [self class], @selector(hook_checkUpdate));
2325
}
2426

2527
- (void)hook_request:(long long)arg1 increaseBytesTransferred:(unsigned long long)arg2;
@@ -69,4 +71,9 @@ - (void)hook_setToken:(NSString*)token
6971
[self hook_setToken:token];
7072
}
7173

74+
- (unsigned long long)hook_checkUpdate
75+
{
76+
return NO;
77+
}
78+
7279
@end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1120"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "E5A74330204E2B8D00FE63B1"
18+
BuildableName = "libBaiduNetdiskPlugin.framework"
19+
BlueprintName = "libBaiduNetdiskPlugin"
20+
ReferencedContainer = "container:libBaiduNetdiskPlugin.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<Testables>
31+
</Testables>
32+
</TestAction>
33+
<LaunchAction
34+
buildConfiguration = "Debug"
35+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
36+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
37+
launchStyle = "0"
38+
useCustomWorkingDirectory = "NO"
39+
ignoresPersistentStateOnLaunch = "NO"
40+
debugDocumentVersioning = "YES"
41+
debugServiceExtension = "internal"
42+
allowLocationSimulation = "YES">
43+
<PathRunnable
44+
runnableDebuggingMode = "0"
45+
FilePath = "/Applications/BaiduNetdisk_mac.app">
46+
</PathRunnable>
47+
</LaunchAction>
48+
<ProfileAction
49+
buildConfiguration = "Release"
50+
shouldUseLaunchSchemeArgsEnv = "YES"
51+
savedToolIdentifier = ""
52+
useCustomWorkingDirectory = "NO"
53+
debugDocumentVersioning = "YES">
54+
<MacroExpansion>
55+
<BuildableReference
56+
BuildableIdentifier = "primary"
57+
BlueprintIdentifier = "E5A74330204E2B8D00FE63B1"
58+
BuildableName = "libBaiduNetdiskPlugin.framework"
59+
BlueprintName = "libBaiduNetdiskPlugin"
60+
ReferencedContainer = "container:libBaiduNetdiskPlugin.xcodeproj">
61+
</BuildableReference>
62+
</MacroExpansion>
63+
</ProfileAction>
64+
<AnalyzeAction
65+
buildConfiguration = "Debug">
66+
</AnalyzeAction>
67+
<ArchiveAction
68+
buildConfiguration = "Release"
69+
revealArchiveInOrganizer = "YES">
70+
</ArchiveAction>
71+
</Scheme>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>SchemeUserState</key>
6+
<dict>
7+
<key>libBaiduNetdiskPlugin.xcscheme_^#shared#^_</key>
8+
<dict>
9+
<key>orderHint</key>
10+
<integer>0</integer>
11+
</dict>
12+
</dict>
13+
<key>SuppressBuildableAutocreation</key>
14+
<dict>
15+
<key>E5A74330204E2B8D00FE63B1</key>
16+
<dict>
17+
<key>primary</key>
18+
<true/>
19+
</dict>
20+
</dict>
21+
</dict>
22+
</plist>

libBaiduNetdiskPlugin/libBaiduNetdiskPlugin.h

+4
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,7 @@ FOUNDATION_EXPORT const unsigned char libBaiduNetdiskPluginVersionString[];
4242
@interface SpeedUpTrialModel : ALModel
4343
@property(copy, nonatomic) NSString *token; // @synthesize token=_token;
4444
@end
45+
46+
@interface AppVersionManager : NSObject
47+
- (unsigned long long)checkUpdate;
48+
@end

0 commit comments

Comments
 (0)