Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
XuXiangJun committed Oct 10, 2024
1 parent 58f2f28 commit e4229d1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
maven { url = uri("https://jitpack.io") }
}
dependencies {
classpath 'com.android.tools.build:gradle:8.6.1'
classpath 'com.android.tools.build:gradle:8.7.0'
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,8 @@ private void generate() {
os.write(ssidPadding, 0, ssidPadding.length);

int reservedBeginPosition = mHead.length + password.length + passwordPadding.length;
int ssidBeginPosition = reservedBeginPosition + reservedData.length + reservedPadding.length;
int ivBeginPosition = reservedBeginPosition + reservedData.length + reservedPadding.length;
int ssidBeginPosition = ivBeginPosition + aesIV.length;
int offset = 0;
ByteArrayInputStream is = new ByteArrayInputStream(os.toByteArray());
int sequence = SEQUENCE_FIRST;
Expand All @@ -273,10 +274,14 @@ private void generate() {
// Password data
tailIsCrc = !passwordEncode;
expectLength = passwordPaddingFactor;
} else if (offset < ssidBeginPosition) {
} else if (offset < ivBeginPosition) {
// Reserved data
tailIsCrc = !reservedEncode;
expectLength = reservedPaddingFactor;
} else if (offset < ssidBeginPosition) {
// aes iv data
tailIsCrc = false;
expectLength = 6;
} else {
// SSID data
tailIsCrc = !ssidEncode;
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-all.zip

0 comments on commit e4229d1

Please sign in to comment.