Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: XE7 Setting Internet Permission On Automatically


This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 6 - Last Post: Dec 10, 2014 9:15 AM Last Post By: Robert Calay
Robert Calay

Posts: 2
Registered: 4/21/13
XE7 Setting Internet Permission On Automatically  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 4, 2014 10:15 AM
Hello,

I am using XE7. When I deploy my Android App to my Android device and I check the Application Manager for my app, the "full network access" Permissions is enabled.

I have disabled ALL Permissions on the Project|Options..|Uses Permissions section.
(This includes all versions Windows, Android, iOS, Debug, and Release)

My test app just has a single button object in it.

I can disable "full network access" by making a copy of the AndroidManifest.xml and deleting the <uses permissions android.permission.INTERNET /> option in the file. I have to save the file as a different name and change the Project|Deployment options to use the new file because AndroidManifest.xml is recreated when deploying to an android device.

Any advice on how or why this is happening?
Markus Humm

Posts: 5,113
Registered: 11/9/03
Re: XE7 Setting Internet Permission On Automatically  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 4, 2014 11:56 AM   in response to: Robert Calay in response to: Robert Calay
Am 04.12.2014 19:15, schrieb Robert Calay:
Hello,

I am using XE7. When I deploy my Android App to my Android device and I check the Application Manager for my app, the "full network access" Permissions is enabled.

I have disabled ALL Permissions on the Project|Options..|Uses Permissions section.
(This includes all versions Windows, Android, iOS, Debug, and Release)

My test app just has a single button object in it.

I can disable "full network access" by making a copy of the AndroidManifest.xml and deleting the <uses permissions android.permission.INTERNET /> option in the file. I have to save the file as a different name and change the Project|Deployment options to use the new file because AndroidManifest.xml is recreated when deploying to an android device.

Any advice on how or why this is happening?

Hello,

if I'm not mistaken the debug configuration automatically turns that one on.

Greetings

Markus
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: XE7 Setting Internet Permission On Automatically  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 4, 2014 2:25 PM   in response to: Markus Humm in response to: Markus Humm
Markus wrote:

if I'm not mistaken the debug configuration automatically turns
that one on.

Yes, it does, but only by default. He did say that he disabled it in its
debug configuration. So unless the IDE is auto-reenabling it during compiling,
it should be off.

--
Remy Lebeau (TeamB)
Francisco Peris

Posts: 91
Registered: 1/5/15
Re: XE7 Setting Internet Permission On Automatically  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 5, 2014 12:32 AM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
Remy Lebeau (TeamB) wrote:
Markus wrote:

if I'm not mistaken the debug configuration automatically turns
that one on.

Yes, it does, but only by default. He did say that he disabled it in its
debug configuration. So unless the IDE is auto-reenabling it during compiling,
it should be off.

--
Remy Lebeau (TeamB)

I have the same problem. I am developing an android application that does not permissions and I cannot avoid that permission to Internet is always set as requiered.

Any way to report this bug?

On the other hand, I think we could solve this in this way:

1.- Rename application.apk to application.zip
2..- Extract all the components.
3.- Edit manifest file, deleting permission to Internet.
4. Zip again.
5.- Rename application.apk

I do not have time now to try it...buy it should work. The only problem I see it is that manifest file is not text format, although it is possible to see the words where the permission to Internet is granted.

Francisco

EDIT:

I am afraid that the files have SHA1 check. If so...we cannot edit the manifest file :(

Edited by: Francisco Peris on Dec 5, 2014 12:50 AM
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: XE7 Setting Internet Permission On Automatically [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 5, 2014 2:04 AM   in response to: Francisco Peris in response to: Francisco Peris
Francisco wrote:

Any way to report this bug?

Post it to http://quality.embarcadero.com

On the other hand, I think we could solve this in this way:

1.- Rename application.apk to application.zip
2..- Extract all the components.
3.- Edit manifest file, deleting permission to Internet.
4. Zip again.
5.- Rename application.apk

Have you tried simply providing a custom AndroidManifest.xml file for the
project?

http://docwiki.embarcadero.com/RADStudio/XE7/en/Android_Application_Manifest_File
http://docwiki.embarcadero.com/RADStudio/XE7/en/Preparing_an_Android_Application_for_Deployment#Customizing_Your_AndroidManifest.xml_File

--
Remy Lebeau (TeamB)
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: XE7 Setting Internet Permission On Automatically  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 5, 2014 10:51 AM   in response to: Robert Calay in response to: Robert Calay
Robert wrote:

I am using XE7. When I deploy my Android App to my Android device
and I check the Application Manager for my app, the "full network
access" Permissions is enabled.

INTERNET Permission Is Always Set for the Debug Configuration
http://docwiki.embarcadero.com/RADStudio/XE7/en/Uses_Permissions#INTERNET_Permission_Is_Always_Set_for_the_Debug_Configuration

--
Remy Lebeau (TeamB)
Robert Calay

Posts: 2
Registered: 4/21/13
Re: XE7 Setting Internet Permission On Automatically  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 10, 2014 9:15 AM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
Remy and the others are correct. The Internet option is always set for the Android\Configuration\Debug configuration. (which is not the same as the Build Configuration\Debug/Release settings)

The AndroidManifest.xml file in the ..\Android\Release\appname folder is only updated when building the app when the Android\Configuration is set to Debug and not to Application Store.

The ..\Android\Release\appname\bin\appname.apk file has its own AndroidManifest.xml file that does not have the permission set.

As I had not yet put the app up on the app store, I was concerned about a permission that appeared to be set but in fact is not set in the apk file.

Thank you
Robert Calay

Robert wrote:

I am using XE7. When I deploy my Android App to my Android device
and I check the Application Manager for my app, the "full network
access" Permissions is enabled.

INTERNET Permission Is Always Set for the Debug Configuration
http://docwiki.embarcadero.com/RADStudio/XE7/en/Uses_Permissions#INTERNET_Permission_Is_Always_Set_for_the_Debug_Configuration

--
Remy Lebeau (TeamB)
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02