Open sevenlayercookie opened 9 months ago
Keep you phone screen on!
I have this issue as well. For the record, it is not an issue of the device screen being off- I have that feature disabled on my phone.
It really is annoying. I thought maybe it was an issue with my wifi network, but after a while of trying to debug that, it does seem like its to do with altserver.
I can usually refresh my apps successfully over wifi since it is pretty quick, but reinstalling altstore over wifi takes way too long and the device gets removed midway through, throwing an error. I have had to switch to tethered mode to reinstall altstore, which works fine, but is not ideal.
Hope somebody can shed some light on this.
After conducting several tests, I've identified several factors that may impact the script's performance. These include variations in Linux distributions, which could be due to incompatible libraries. Additionally, differences in WiFi settings, such as public networks with firewalls or interruptions in traffic, can affect detection
Hi, I'm using Artix and now I'm facing this issues, after several week of several months that worked perfectly, have any of you found a solution or a way to understand what libraries block the script? This is my output: `Installing app... Received response status code: 200 parse anisette data ret Got anisetteData json: {"X-Apple-I-Client-Time":"2024-05-25T16:18:39Z","X-Apple-I-MD":"AAAABQAAABDNlbZMDUDkxiYpk2fhEv+dAAAABA==","X-Apple-I-MD-LU":"148ED6136E801F994DCC15DFB5410FD898AADAA57D0ABC6AE855DA2D7CBBC65F","X-Apple-I-MD-M":"FP/boBP0QzGT0WcRWHOZF9Ade+tYveG8/mS2wfhk4Yj88PNxvYZ4fToCGk79jpOehhDz2V3JogcKSA9W","X-Apple-I-MD-RINFO":"17106176","X-Apple-I-SRL-NO":"0","X-Apple-I-TimeZone":"UTC","X-Apple-Locale":"en_US","X-MMe-Client-Info":"<MacBookPro13,2> <macOS;13.1;22C65> <com.apple.AuthKit/1 (com.apple.dt.Xcode/3594.4.19)>","X-Mme-Device-Id":"7D4BBD67-8A31-47C8-80EE-90CB94FC8F7B"} X-Apple-I-MD-M: FP/boBP0QzGT0WcRWHOZF9Ade+tYveG8/mS2wfhk4Yj88PNxvYZ4fToCGk79jpOehhDz2V3JogcKSA9W X-Apple-I-MD: AAAABQAAABDNlbZMDUDkxiYpk2fhEv+dAAAABA== X-Apple-I-MD-LU: 148ED6136E801F994DCC15DFB5410FD898AADAA57D0ABC6AE855DA2D7CBBC65F X-Apple-I-MD-RINFO: 17106176 X-Mme-Device-Id: 7D4BBD67-8A31-47C8-80EE-90CB94FC8F7B X-Apple-I-SRL-NO: 0 X-MMe-Client-Info: <MacBookPro13,2> <macOS;13.1;22C65> <com.apple.AuthKit/1 (com.apple.dt.Xcode/3594.4.19)> X-Apple-I-Client-Time: 2024-05-25T16:18:39Z X-Apple-Locale: en_US X-Apple-I-TimeZone: UTC Building anisetteData obj... MachineID : FP/boBP0QzGT0WcRWHOZF9Ade+tYveG8/mS2wfhk4Yj88PNxvYZ4fToCGk79jpOehhDz2V3JogcKSA9W One-Time Password: AAAABQAAABDNlbZMDUDkxiYpk2fhEv+dAAAABA== Local User ID: 148ED6136E801F994DCC15DFB5410FD898AADAA57D0ABC6AE855DA2D7CBBC65F Device UDID: 7D4BBD67-8A31-47C8-80EE-90CB94FC8F7B Device Description: <MacBookPro13,2> <macOS;13.1;22C65> <com.apple.AuthKit/1 (com.apple.dt.Xcode/3594.4.19)> Date: 2024-05-25T15:18:39Z Received auth response status code: 200 Received auth response status code: 200 Alert: Could not install AltStore.ipa to unknown. filesystem error: directory iterator cannot open directory: No such file or directory [C:\ProgramData\Apple Computer\iTunes\adi] Press any key to continue...
Exception: filesystem error: directory iterator cannot open directory: No such file or directory [C:\ProgramData\Apple Computer\iTunes\adi] 0# 0x00000000005CF298 1# 0x000000000099EC2C
Finished! Enter OPTION to continue : ^C Ctrl+C pressed, aborting ` Thanks in advance for your time
set this in the python code
Netmuxd_is_on = False
netmuxd doesnt work for arch. you will lose wifi refresh
I've could only try your solution today...
Didn't work, this is the output with debug flag True
with Netmuxd_is_on = True if NETMUXD_IS_AVAILABLE else False
Enter OPTION to continue : No argument supplied, if you want for help, please use -h or --help
Not supplying ipa, running in server mode!
Running python3 command to advertise AltServer: from ctypes import *; dll = CDLL('libdns_sd.so'); sdRef = c_int(); flags = 0; interfaceIndex = 0; name = None; regtype = br'_altserver._tcp'; domain = None; host = None; port = 1974; txtLen = 17; txtRecord = b'\x10\x73\x65\x72\x76\x65\x72\x49\x44\x3D\x31\x32\x33\x34\x35\x36\x37'; ret = dll.DNSServiceRegister(byref(sdRef), flags, interfaceIndex, name, regtype, domain, host, port, txtLen, txtRecord, None, None); print('DNSServiceRegister result: %d' % ret); from threading import Event; Event().wait();
*** WARNING *** The program 'python3.12' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/blog/projects/avahi-compat.html>
DNSServiceRegister result: 0
Detected device:Tobia’s iPhone
Starting notification connection to device: Tobia’s iPhone
p
[DEBUG] 2024-06-02 13:35:21
== NETMUXD : False ==
[DEBUG] 2024-06-02 13:35:21
== ['00008110-000E34240250201E'] ==
Tobia’s iPhone , 00008110-000E34240250201E
Enter OPTION to continue : i
[DEBUG] 2024-06-02 13:35:23
== NETMUXD : False ==
[DEBUG] 2024-06-02 13:35:23
== ['00008110-000E34240250201E'] ==
[0] : Tobia’s iPhone , 00008110-000E34240250201E
Enter the index of the device for installation : 0
Enter your Apple ID : tobia@gmail.com
Enter password of the Apple ID :
Do you want to install AltStore ? (y/n) [n for select your own iPA] : y
[DEBUG] 2024-06-02 13:35:45
== ['Tobia’s iPhone', 'tobia@gmail.com', '****', '/home/tarch1/resource/AltStore.ipa'] ==
Installing app...
Received response status code: 200
parse anisette data ret
Got anisetteData json: {"X-Apple-I-Client-Time":"2024-06-02T11:35:45Z","X-Apple-I-MD":"AAAABQAAABASyUW9T0CkoDQk38uxe0LBAAAABA==","X-Apple-I-MD-LU":"148ED6136E801F994DCC15DFB5410FD898AADAA57D0ABC6AE855DA2D7CBBC65F","X-Apple-I-MD-M":"FP/boBP0QzGT0WcRWHOZF9Ade+tYveG8/mS2wfhk4Yj88PNxvYZ4fToCGk79jpOehhDz2V3JogcKSA9W","X-Apple-I-MD-RINFO":"17106176","X-Apple-I-SRL-NO":"0","X-Apple-I-TimeZone":"UTC","X-Apple-Locale":"en_US","X-MMe-Client-Info":"<MacBookPro13,2> <macOS;13.1;22C65> <com.apple.AuthKit/1 (com.apple.dt.Xcode/3594.4.19)>","X-Mme-Device-Id":"7D4BBD67-8A31-47C8-80EE-90CB94FC8F7B"}
X-Apple-I-MD-M: FP/boBP0QzGT0WcRWHOZF9Ade+tYveG8/mS2wfhk4Yj88PNxvYZ4fToCGk79jpOehhDz2V3JogcKSA9W
X-Apple-I-MD: AAAABQAAABASyUW9T0CkoDQk38uxe0LBAAAABA==
X-Apple-I-MD-LU: 148ED6136E801F994DCC15DFB5410FD898AADAA57D0ABC6AE855DA2D7CBBC65F
X-Apple-I-MD-RINFO: 17106176
X-Mme-Device-Id: 7D4BBD67-8A31-47C8-80EE-90CB94FC8F7B
X-Apple-I-SRL-NO: 0
X-MMe-Client-Info: <MacBookPro13,2> <macOS;13.1;22C65> <com.apple.AuthKit/1 (com.apple.dt.Xcode/3594.4.19)>
X-Apple-I-Client-Time: 2024-06-02T11:35:45Z
X-Apple-Locale: en_US
X-Apple-I-TimeZone: UTC
Building anisetteData obj...
MachineID : FP/boBP0QzGT0WcRWHOZF9Ade+tYveG8/mS2wfhk4Yj88PNxvYZ4fToCGk79jpOehhDz2V3JogcKSA9W
One-Time Password: AAAABQAAABASyUW9T0CkoDQk38uxe0LBAAAABA==
Local User ID: 148ED6136E801F994DCC15DFB5410FD898AADAA57D0ABC6AE855DA2D7CBBC65F
Device UDID: 7D4BBD67-8A31-47C8-80EE-90CB94FC8F7B
Device Description: <MacBookPro13,2> <macOS;13.1;22C65> <com.apple.AuthKit/1 (com.apple.dt.Xcode/3594.4.19)>
Date: 2024-06-02T10:35:45Z
Received auth response status code: 200
Received auth response status code: 200
Alert: Could not install AltStore.ipa to unknown.
filesystem error: directory iterator cannot open directory: No such file or directory [C:\ProgramData\Apple Computer\iTunes\adi]
Press any key to continue...
Exception: filesystem error: directory iterator cannot open directory: No such file or directory [C:\ProgramData\Apple Computer\iTunes\adi]
0# 0x00000000005CF298
1# 0x000000000099EC2C
Finished!
with Netmuxd_is_on = False
Enter OPTION to continue : No argument supplied, if you want for help, please use -h or --help
Not supplying ipa, running in server mode!
Running python3 command to advertise AltServer: from ctypes import *; dll = CDLL('libdns_sd.so'); sdRef = c_int(); flags = 0; interfaceIndex = 0; name = None; regtype = br'_altserver._tcp'; domain = None; host = None; port = 6554; txtLen = 17; txtRecord = b'\x10\x73\x65\x72\x76\x65\x72\x49\x44\x3D\x31\x32\x33\x34\x35\x36\x37'; ret = dll.DNSServiceRegister(byref(sdRef), flags, interfaceIndex, name, regtype, domain, host, port, txtLen, txtRecord, None, None); print('DNSServiceRegister result: %d' % ret); from threading import Event; Event().wait();
Detected device:Tobia’s iPhone
Starting notification connection to device: Tobia’s iPhone
*** WARNING *** The program 'python3.12' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/blog/projects/avahi-compat.html>
DNSServiceRegister result: 0
p
[DEBUG] 2024-06-02 13:37:50
== NETMUXD : False ==
[DEBUG] 2024-06-02 13:37:50
== ['00008110-000E34240250201E'] ==
Tobia’s iPhone , 00008110-000E34240250201E
Enter OPTION to continue : i
[DEBUG] 2024-06-02 13:37:53
== NETMUXD : False ==
[DEBUG] 2024-06-02 13:37:53
== ['00008110-000E34240250201E'] ==
[0] : Tobia’s iPhone , 00008110-000E34240250201E
Enter the index of the device for installation : 0
Enter your Apple ID : tobia@gmail.com
Enter password of the Apple ID :
Do you want to install AltStore ? (y/n) [n for select your own iPA] : y
[DEBUG] 2024-06-02 13:38:08
== ['Tobia’s iPhone', 'tobia@gmail.com', '****', '/home/tarch1/resource/AltStore.ipa'] ==
Installing app...
Received response status code: 200
parse anisette data ret
Got anisetteData json: {"X-Apple-I-Client-Time":"2024-06-02T11:38:08Z","X-Apple-I-MD":"AAAABQAAABAmK1AHc+CFbovOkRqvcQ6PAAAABA==","X-Apple-I-MD-LU":"148ED6136E801F994DCC15DFB5410FD898AADAA57D0ABC6AE855DA2D7CBBC65F","X-Apple-I-MD-M":"FP/boBP0QzGT0WcRWHOZF9Ade+tYveG8/mS2wfhk4Yj88PNxvYZ4fToCGk79jpOehhDz2V3JogcKSA9W","X-Apple-I-MD-RINFO":"17106176","X-Apple-I-SRL-NO":"0","X-Apple-I-TimeZone":"UTC","X-Apple-Locale":"en_US","X-MMe-Client-Info":"<MacBookPro13,2> <macOS;13.1;22C65> <com.apple.AuthKit/1 (com.apple.dt.Xcode/3594.4.19)>","X-Mme-Device-Id":"7D4BBD67-8A31-47C8-80EE-90CB94FC8F7B"}
X-Apple-I-MD-M: FP/boBP0QzGT0WcRWHOZF9Ade+tYveG8/mS2wfhk4Yj88PNxvYZ4fToCGk79jpOehhDz2V3JogcKSA9W
X-Apple-I-MD: AAAABQAAABAmK1AHc+CFbovOkRqvcQ6PAAAABA==
X-Apple-I-MD-LU: 148ED6136E801F994DCC15DFB5410FD898AADAA57D0ABC6AE855DA2D7CBBC65F
X-Apple-I-MD-RINFO: 17106176
X-Mme-Device-Id: 7D4BBD67-8A31-47C8-80EE-90CB94FC8F7B
X-Apple-I-SRL-NO: 0
X-MMe-Client-Info: <MacBookPro13,2> <macOS;13.1;22C65> <com.apple.AuthKit/1 (com.apple.dt.Xcode/3594.4.19)>
X-Apple-I-Client-Time: 2024-06-02T11:38:08Z
X-Apple-Locale: en_US
X-Apple-I-TimeZone: UTC
Building anisetteData obj...
MachineID : FP/boBP0QzGT0WcRWHOZF9Ade+tYveG8/mS2wfhk4Yj88PNxvYZ4fToCGk79jpOehhDz2V3JogcKSA9W
One-Time Password: AAAABQAAABAmK1AHc+CFbovOkRqvcQ6PAAAABA==
Local User ID: 148ED6136E801F994DCC15DFB5410FD898AADAA57D0ABC6AE855DA2D7CBBC65F
Device UDID: 7D4BBD67-8A31-47C8-80EE-90CB94FC8F7B
Device Description: <MacBookPro13,2> <macOS;13.1;22C65> <com.apple.AuthKit/1 (com.apple.dt.Xcode/3594.4.19)>
Date: 2024-06-02T10:38:08Z
Received auth response status code: 200
Received auth response status code: 200
Alert: Could not install AltStore.ipa to unknown.
filesystem error: directory iterator cannot open directory: No such file or directory [C:\ProgramData\Apple Computer\iTunes\adi]
Press any key to continue...
Exception: filesystem error: directory iterator cannot open directory: No such file or directory [C:\ProgramData\Apple Computer\iTunes\adi]
0# 0x00000000005CF298
1# 0x000000000099EC2C
Finished!
i don't know what's the problem :(
set this in the python code
Netmuxd_is_on = False
netmuxd doesnt work for arch. you will lose wifi refresh
That actually worked for me Im so happy
This is very broken and adjusting netmuxd_is_on
doesn't fix the problem for me. My device doesn't even show up if that option is changed. I'm running this on Ubuntu.
On running the script, sometimes (hard to reproduce, sometimes it happens sometimes it doesn't) my device keeps getting added and removed (alternating every two seconds). It makes it difficult to refresh or install apps because normally a refresh takes longer than 2 seconds.
Anyone else run into this or have any ideas?
I'm running the script as root using 'screen' and WiFi tethering.