Author Topic: NGUI triggers Network Communication Permission on Android  (Read 11192 times)

PixelEnvision

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 35
    • View Profile
    • Pixel Envision
NGUI triggers Network Communication Permission on Android
« on: May 02, 2012, 01:20:15 PM »
Hi ArenMook,

Just noticed that... As you know, by default Unity does not add/requires this permission. But I as soon as I include NGUI to the project, building the empty scene adds "Network communication - full internet access" permission.

That is just including NGUI to the project without actually adding anything to the scene.

I assume something in NGUI project folder triggers this permission... Any idea which script could it be?

For the app I'm working on, I'd rather not to have any permissions so this is kinda important for me...
Pixel Envision - Creating fun apps for iOS & Android

Twitter / Facebook / YouTube

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI triggers Network Communication Permission on Android
« Reply #1 on: May 02, 2012, 01:23:14 PM »
Free version grabs the logo from the internet. Full version doesn't do this.

PixelEnvision

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 35
    • View Profile
    • Pixel Envision
Re: NGUI triggers Network Communication Permission on Android
« Reply #2 on: May 02, 2012, 01:29:16 PM »
Thx for the prompt reply...

But I'm using the full version, downloaded from asset store... Tested on 2.0.4...
Pixel Envision - Creating fun apps for iOS & Android

Twitter / Facebook / YouTube

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI triggers Network Communication Permission on Android
« Reply #3 on: May 02, 2012, 01:30:16 PM »
No reason for it, NGUI doesn't do anything with internet.

PixelEnvision

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 35
    • View Profile
    • Pixel Envision
Re: NGUI triggers Network Communication Permission on Android
« Reply #4 on: May 02, 2012, 01:34:23 PM »
Yet I'm having the problem...

As I noted above, empty project is ok. When I import the NGUI (paid full version) using the asset store menu in unity, project adds that permission when compiled...

Unity 3.5.1f2 Pro + iOS & Andorid basic with latest NGUI (2.0.4)
Pixel Envision - Creating fun apps for iOS & Android

Twitter / Facebook / YouTube

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI triggers Network Communication Permission on Android
« Reply #5 on: May 02, 2012, 01:36:13 PM »
Just do a search for 'WWW' and see where it's used. Should be only one place (NGUITools.OpenURL), and that one is not used anywhere. Maybe Unity tries to validate something?

PixelEnvision

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 35
    • View Profile
    • Pixel Envision
Re: NGUI triggers Network Communication Permission on Android
« Reply #6 on: May 02, 2012, 03:24:38 PM »
Just do a search for 'WWW' and see where it's used. Should be only one place (NGUITools.OpenURL), and that one is not used anywhere. Maybe Unity tries to validate something?

Found it, caused by DownloadTextures.cs in NGUI/Examples/Scipts/Other/

It's existence was enough for Unity to add that permission even if it's not actually used in project... Simply deleting it solves the problem...
Pixel Envision - Creating fun apps for iOS & Android

Twitter / Facebook / YouTube

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI triggers Network Communication Permission on Android
« Reply #7 on: May 02, 2012, 03:25:34 PM »
Interesting, and good to know. Thanks!

PixelEnvision

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 35
    • View Profile
    • Pixel Envision
Re: NGUI triggers Network Communication Permission on Android
« Reply #8 on: May 02, 2012, 03:45:22 PM »
Interesting, and good to know. Thanks!

Np! Need to do a correction...

Deleting (or commenting out) DownloadTextures.cs wasn't enough. I also had to comment out WWW section of the NGUITools...

Once both gone, permission won't be added anymore...
Pixel Envision - Creating fun apps for iOS & Android

Twitter / Facebook / YouTube

abreu20011

  • Guest
Re: NGUI triggers Network Communication Permission on Android
« Reply #9 on: January 27, 2013, 07:29:34 PM »
Woow! Thanks PixelEnvision :)
When a automatic button to do this ArenMonk? ^^