Skip to content
This repository was archived by the owner on Sep 7, 2023. It is now read-only.

Commit 1643974

Browse files
committedApr 3, 2022
fix 24 characters UDID issue
·
0.4.3.10.3.3
1 parent 02194b5 commit 1643974

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed
 

‎.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@ OldFile
22
ReleaseFile
33
.DS_Store
44
Self
5-
AltServer-*
5+
AltServer-*
6+
AltServerData
7+
saved.txt

‎main

100644100755
Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,14 @@
33

44
HasExistAccount=$(cat saved.txt)
55
HasExistipa=$(ls ipa)
6-
UDID=$(lsusb -v 2> /dev/null | grep -e "Apple Inc" -A 2 | grep iSerial | awk '{print $3}')
6+
_udid=$(lsusb -v 2> /dev/null | grep -e "Apple Inc" -A 2 | grep iSerial | awk '{print $3}')
7+
_udid_length=${#_udid}
8+
if [ $_udid_length == "24" ]; then
9+
UDID=${_udid:0:8}"-"${_udid:8}
10+
fi
11+
if [ $_udid_length == "40" ]; then
12+
UDID=$_udid
13+
fi
714

815
# Check if there exists saved account
916
# Ask if want to use saved account
@@ -40,7 +47,7 @@ AskAccount() {
4047
# Execute AltServer
4148
# Check if this account existed before
4249
AltServer() {
43-
./AltServer -u ${UDID} -a $AppleID -p $password $PATH
50+
./AltServer -u ${UDID} -a $AppleID -p $password $IPA_PATH
4451
if [[ "$CheckAccount" == "" ]] ; then
4552
AccountSaving=1
4653
fi
@@ -115,7 +122,7 @@ if [[ $mainScript = 1 ]] ; then
115122
AskAccount
116123
Account=$AppleID,$password
117124
CheckAccount=$(grep $Account saved.txt)
118-
PATH=./AltStore.ipa
125+
IPA_PATH=./AltStore.ipa
119126
AltServer
120127
fi
121128
if [[ $mainScript = 2 ]] ; then
@@ -124,7 +131,7 @@ if [[ $mainScript = 2 ]] ; then
124131
AskAccount
125132
Account=$AppleID,$password
126133
CheckAccount=$(grep $Account saved.txt)
127-
PATH=./ipa/$Existipa
134+
IPA_PATH=./ipa/$Existipa
128135
AltServer
129136
fi
130137
fi

0 commit comments

Comments
 (0)
This repository has been archived.