Network connections are blocked using nsjail by default, as they break
build hermeticity.
https://android.googlesource.com/platform/build/soong/+/master/ui/build/sandbox_linux.go#161
is
where it is enforced, you can disable it by
setting BUILD_BROKEN_USES_NETWORK := true in your BoardConfig.mk.

On Wed, Oct 16, 2019 at 10:15 AM Michael Goffioul <
[email protected]> wrote:

> Thanks, I figured it must be somehow block. What I would like to
> understand is _how_ this is achieved technically.
>
>
> On Wed, Oct 16, 2019 at 12:58 PM 'Wesolowski, Krzysztof' via Android
> Building <[email protected]> wrote:
>
>> It's blocked by sandboxing of build system, isolating that only repo
>> content is used. Probably wget or external connections are blocked.
>>
>> BR, K
>>
>> Get Outlook for Android <https://aka.ms/ghei36>
>>
>> ------------------------------
>> *From:* [email protected] <
>> [email protected]> on behalf of Michael Goffioul <
>> [email protected]>
>> *Sent:* Tuesday, October 15, 2019 9:58:18 PM
>> *To:* Android Building <[email protected]>
>> *Subject:* [android-building] Unable to download content during build
>>
>> I have several custom modules that download content (if not already
>> present) during build, with wget. This uses additional rules in the
>> corresponding Android.mk files. These used to work in Pie, but in Q the
>> rule fail with "Name or service not found". Running the exact same command
>> outside the build system runs fine. Can somebody describe the mechanism at
>> play here, and maybe points to source files where the restriction is
>> implemented?
>>
>> Thanks,
>> Michael.
>>
>> --
>> --
>> You received this message because you are subscribed to the "Android
>> Building" mailing list.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/android-building?hl=en
>> <https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgroups.google.com%2Fgroup%2Fandroid-building%3Fhl%3Den&data=02%7C01%7Ckrzysztof.wesolowski%40volvocars.com%7C04756d551b9d41282daa08d752014292%7C81fa766ea34948678bf4ab35e250a08f%7C0%7C0%7C637068037674699522&sdata=Dn3KNRQFJustHPoSAd3cceR%2Bp%2BlBzdedzBRB4VDwJ44%3D&reserved=0>
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Android Building" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/android-building/403e25aa-3db5-499a-a7f7-e05814b66fa6%40googlegroups.com
>> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fandroid-building%2F403e25aa-3db5-499a-a7f7-e05814b66fa6%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=02%7C01%7Ckrzysztof.wesolowski%40volvocars.com%7C04756d551b9d41282daa08d752014292%7C81fa766ea34948678bf4ab35e250a08f%7C0%7C0%7C637068037674699522&sdata=xNA99VclgJ5ZT%2B0H2Y1AzwvgG9voZJrpq3rULPMbajc%3D&reserved=0>
>> .
>>
>> --
>> --
>> You received this message because you are subscribed to the "Android
>> Building" mailing list.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/android-building?hl=en
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Android Building" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/android-building/VE1P174MB00787459500593F9D0B659AC91920%40VE1P174MB0078.EURP174.PROD.OUTLOOK.COM
>> <https://groups.google.com/d/msgid/android-building/VE1P174MB00787459500593F9D0B659AC91920%40VE1P174MB0078.EURP174.PROD.OUTLOOK.COM?utm_medium=email&utm_source=footer>
>> .
>>
> --
> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Building" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-building/CAB-99LsvY8ffMGZhOTmGEn_gmyd8sGnXyhtX84zoqAxy%2B93DFw%40mail.gmail.com
> <https://groups.google.com/d/msgid/android-building/CAB-99LsvY8ffMGZhOTmGEn_gmyd8sGnXyhtX84zoqAxy%2B93DFw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/CAMbhsRQhUkoS2g6%3D%3DcrT-HYs_pmmv7K%3Da5DbhcKJs2UWJ-Eg_w%40mail.gmail.com.

Reply via email to