Running this command:
**- ( sleep 5 && while [ 1 ]; do sleep 1; echo y; done ) | android update sdk --no-ui --all --filter “build-tools-24.0.0,platform-tools,android-24,extra-google-m2repository,extra-android-m2repository,extra-android-support”
**
is giving:
…
Downloading Android SDK Build-tools, revision 24
(10%, 2412 KiB/s, 17 seconds left)
(16%, 2677 KiB/s, 14 seconds left)
(23%, 2810 KiB/s, 13 seconds left)
(29%, 2837 KiB/s, 11 seconds left)
(36%, 2891 KiB/s, 10 seconds left)
(42%, 2866 KiB/s, 9 seconds left)
(48%, 2908 KiB/s, 8 seconds left)
(55%, 2941 KiB/s, 7 seconds left)
(62%, 2964 KiB/s, 6 seconds left)
(68%, 2986 KiB/s, 4 seconds left)
(74%, 2971 KiB/s, 4 seconds left)
(81%, 2988 KiB/s, 2 seconds left)
(88%, 3005 KiB/s, 1 seconds left)
(95%, 3017 KiB/s, 0 seconds left)
Download finished with wrong size. Expected 48960919 bytes, got 48936213 bytes.