Skip to content

Commit b2f6e40

Browse files
committed
drop support for native gem updates
1 parent aaad501 commit b2f6e40

5 files changed

Lines changed: 34 additions & 348 deletions

File tree

cSploit/src/org/csploit/android/MainActivity.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,7 +1232,6 @@ private void onUpdateDone(UpdateService.action target) {
12321232
switch (target) {
12331233
case ruby_update:
12341234
case msf_update:
1235-
case gems_update:
12361235
StartRPCServer();
12371236
break;
12381237
case core_update:
@@ -1299,12 +1298,6 @@ public void onReceive(Context context, Intent intent) {
12991298
getString(R.string.new_update_desc2);
13001299

13011300
onUpdateAvailable(description, UpdateService.action.msf_update);
1302-
} else if (intent.getAction().equals(GEMS_AVAILABLE)) {
1303-
1304-
final String description = getString(R.string.new_gems_update_desc) + " " +
1305-
getString(R.string.new_update_desc2);
1306-
1307-
onUpdateAvailable(description, UpdateService.action.gems_update);
13081301
} else if (intent.getAction().equals(UPDATE_AVAILABLE)) {
13091302
final String remoteVersion = (String) intent.getExtras().get(
13101303
AVAILABLE_VERSION);

cSploit/src/org/csploit/android/core/ArchiveMetadata.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ public class ArchiveMetadata {
3333
skipRoot,
3434
fixShebang,
3535
errorOccurred;
36-
public HashMap<String, LinkedList<DiffMatchPatch.Patch>>
37-
patches;
3836

3937
public ArchiveMetadata() {
4038
reset();
@@ -49,7 +47,6 @@ public void reset() {
4947
archiver = null;
5048
contentIntent = null;
5149
fixShebang = errorOccurred = skipRoot = false;
52-
patches = null;
5350
}
5451
}
5552

cSploit/src/org/csploit/android/core/UpdateChecker.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,6 @@ public void run(){
7070

7171
boolean checkRuby = canCheckMsf && prefs.getBoolean("PREF_UPDATES_RUBY", true);
7272

73-
boolean checkGems = canCheckMsf && prefs.getBoolean("PREF_UPDATES_GEMS", true) &&
74-
System.getLocalRubyVersion() != null;
75-
7673
boolean checkMsf = canCheckMsf && prefs.getBoolean("PREF_UPDATES_MSF", true) &&
7774
System.getLocalRubyVersion() != null;
7875

@@ -84,8 +81,6 @@ else if(checkRuby && UpdateService.isRubyUpdateAvailable())
8481
send(RUBY_AVAILABLE);
8582
else if(checkMsf && UpdateService.isMsfUpdateAvailable()) {
8683
send(MSF_AVAILABLE);
87-
} else if(checkGems && UpdateService.isGemUpdateAvailable()){
88-
send(GEMS_AVAILABLE);
8984
} else
9085
send(UPDATE_NOT_AVAILABLE);
9186

0 commit comments

Comments
 (0)