Atlas-OS / Atlas

🚀 An open and lightweight modification to Windows, designed to optimize performance, privacy and usability.
https://atlasos.net
GNU General Public License v3.0
14.2k stars 528 forks source link

[BUG] - Icloud on windows not working #1040

Closed Luckickio closed 5 months ago

Luckickio commented 8 months ago

Description

Hello,

When I'm login into Icloud (downloaded from windows store) on my Windows 11 Pro, icloud closes and didn't login…

Advanced data protection is enable on my Icloud Configuration.

I tried on another machine without AltasOS install and it worked.

Sincerely,

Lucas

Steps to reproduce

  1. Install Atlas OS on a fresh windows installation.
  2. Maybe Activate advanced data protection on Icloud.
  3. Run Icloud for Windows (download from windows store).
  4. Try to Loggin.

Expected behavior

Login Into Icloud

Actual behavior

Icloud closes and nothing happens. If I restart Icloud, it asks me to reconnect (it's a loop)...

Atlas Edition

Atlas for Windows 11 23H2

Desktop information

Nom de l'appareil LAPTOP Processeur 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz 2.80 GHz Mémoire RAM installée 16,0 Go (15,7 Go utilisable) Type du système Système d’exploitation 64 bits, processeur x64 Stylet et fonction tactile Prise en charge du stylet

Édition Windows 11 Professionnel Version 23H2 Build du système d’exploitation 22631.3007 Expérience Windows Feature Experience Pack 1000.22681.1000.0

Additional content

No response

sombreserotonin commented 8 months ago

Neither of my Atlas installs are able to recognise my iPhone when connected via cable either. Windows detects it, but iTunes does not. Not sure if its connected.

whallin commented 8 months ago

Are any of the features in iCloud working for you at all? Photos, Drive, etc.?

I've personally been using Atlas (win10 & win11) and iCloud without any problems.

Ast3risk-ops commented 8 months ago

Related forum post: https://forum.atlasos.net/d/999-icloud-on-windows-not-working

KrDimitrov commented 8 months ago

Might be an issue unrelated to atlas

https://answers.microsoft.com/en-us/windows/forum/all/icloud-crashing-during-login-on-windows-11/660c0483-c16a-4ffc-9eae-cb8b8fcdfaf4

NANS05 commented 8 months ago

I have the same problem on un fresh install of Atlas on windows 10, icloud not download content end it restart the initial process at all start of the PC

CodingMadness commented 8 months ago

I have the same problem on un fresh install of Atlas on windows 10, icloud not download content end it restart the initial process at all start of the PC

did you have this on fresh windows 10-11 install? Since Dimitrov posted above that it may be also a bug in windows itself, not atlas specific.

adam-the commented 8 months ago

There is a workaround in the Atlas Discord, though it's not ideal.

Instead of setting to default, I tried installing iCloud after only disabling any options mentioning telemetry, as well as all of the options under "privacy". This worked for me, but I'm not sure which option actually resolved the problem.

After installing iCloud, you can re-enable the options and the program works as expected.

Quote from the Discord server:

Download OOShutup10 and select Actions > Undo all changes ("factory defaults") and reboot

Try launching Icloud again

Tell me if it's ok for you, for me it was the problem, Atlas is applying telemetry modifications which are necessary for Icloud to function

Link to source message

KrDimitrov commented 8 months ago

You can download and use the old, pre UWP icloud, it works for me

adam-the commented 6 months ago

Bizarrely enough, for me, this issue was caused by an error related to advertising over Bluetooth. I confirmed that this was the cause of the crash using x64dbg.

To confirm if you are experiencing the same issue and fix it, follow these steps:

  1. Attempt to log in to iCloud. It should crash after the 2FA code is entered.
  2. Navigate to the logs directory at C:\Users\{USERNAME}\AppData\Local\Packages\AppleInc.iCloud_nzyj5cx40ttqa\LocalCache\Local\Logs.
  3. Check if the latest KCCAdp log file contains a line like this: [16448 @ Wed May 08 2024 21:37:50.418] 5776 ERROR AdvertiseOverBluetooth::StartPublisher [0x00000154499B6E20-0x1690] serviceProvider_ was reset unexpectedly.
  4. If the line is present, temporarily disable Bluetooth using the tray icon (not the Atlas script).
  5. Attempt to log in to iCloud again. This time, it should be successful.
  6. Re-enable Bluetooth. Further usage will not require disabling Bluetooth.

I have submitted this issue as feedback via Apple's iCloud Feedback form, as it is likely reproduceable on a regular Windows installation as well.

he3als commented 5 months ago

Hi, as I can't reproduce this, and the issue does not seem directly related to Atlas, I'm going to close this issue. If there is any information relating to Atlas commented, this issue will be reopened.

adam-the commented 1 month ago

Hi, as I can't reproduce this, and the issue does not seem directly related to Atlas, I'm going to close this issue. If there is any information relating to Atlas commented, this issue will be reopened.

In spite of my previous comment, as far as I'm currently aware, this has only been reproduced in Atlas. Search results relating to the issue bring up this thread and the AtlasOS forum... there must be something being removed from the base Windows installation which iCloud relies on.

Did you test on a device where Bluetooth is present and enabled? Hard to believe you couldn't reproduce it when we have half a dozen people here and and another half dozen on the forum reporting this issue.

adam-the commented 1 month ago

Just searched for advertising on the codebase and found this laughable entry: https://github.com/Atlas-OS/Atlas/blob/baeb179b2c99ea8b4e11631965b91f424db06f77/src/playbook/Configuration/tweaks/privacy/advertising/disable-bluetooth-advertising.yml#L4

Re-enabling this registry key fixes the crash issue.

Bluetooth "advertising" is actually just broadcasting very basic information which essentially says "Hey I'm here", which in iClouds case, is telling your other Apple devices to generate a OTP login code, then another to say the login was completed (so the notification can be automatically dismissed)

This configuration entry can be removed outright, it's not a privacy feature, and it will cause issues with other programs which interact with Bluetooth.

edit: the configuration should actually be modified to enable the option, as you'll need to retroactively fix old installs.

adam-the commented 1 month ago

@he3als Any update? Please reopen.

he3als commented 1 month ago

Bluetooth advertising was re-enabled in v0.4.1 after I went through the Playbook and saw the bad tweak. I haven't been keeping track of this issue, so I didn't respond, sorry

adam-the commented 1 month ago

Thanks for the update.