Recent

Author Topic: [SOLVED] LAMW : Permission Denial  (Read 4186 times)

tintinux

  • Sr. Member
  • ****
  • Posts: 311
    • Gestinux
[SOLVED] LAMW : Permission Denial
« on: August 05, 2016, 11:20:06 am »
Hi

I just installed the last LAMW 0.7 from GitHub.

No changes were made in my sources and in project options, but I get this message in the adb log, and the app fails.

Code: Pascal  [Select][+][-]
  1. Permission Denial: getCurrentUser() from pid=11635, uid=10253 requires android.permission.INTERACT_ACROSS_USERS

Previously, with 0.6, I didn't had this failure.

What is this permission ?  I don't see it in the list in [LAMW] Project options and if I check all, nothing changes.
I don't think my app "interact accross user", it only have to read current user and for this purpose getCurrentUser as mentioned.

What can I do ?
Thanks for help !
« Last Edit: August 22, 2016, 09:58:34 am by tintinux »
Initiator of gestinux, open-source, multi-database and multilingual accounting and billing software made with LAZARUS.

You can help to develop, to make and improve translations, and to provide examples of legal charts and reports from more countries.

jmpessoa

  • Hero Member
  • *****
  • Posts: 1623
Re: LAMW : Permission Denial
« Reply #1 on: August 05, 2016, 06:44:35 pm »


This ,also, is new to me ... I will try to understand what may be happening... :o
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

tintinux

  • Sr. Member
  • ****
  • Posts: 311
    • Gestinux
Re: LAMW : Permission Denial
« Reply #2 on: August 18, 2016, 08:23:56 pm »
Hi

I'm still stuck with this error, and unable to compile again any program working with the july versions of LAMW...

I have added logdebug at the very start : onFormCreate and onJNIPrompt, but the failure is before.

I attach a full logcat, if it can help. The activity is "com.mrit.jlem_android"

Regards
Initiator of gestinux, open-source, multi-database and multilingual accounting and billing software made with LAZARUS.

You can help to develop, to make and improve translations, and to provide examples of legal charts and reports from more countries.

jmpessoa

  • Hero Member
  • *****
  • Posts: 1623
Re: LAMW : Permission Denial
« Reply #3 on: August 18, 2016, 08:48:05 pm »

Hi tintinux,

Please, put here your complete projet [zip it!].

Thank you.
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

A.S.

  • Jr. Member
  • **
  • Posts: 76
Re: LAMW : Permission Denial
« Reply #4 on: August 20, 2016, 09:51:20 pm »
Hi tintinux!
You can try the following.
Open LAMW\ide_tools\androidprojoptions.pas and insert as line 325
Code: Pascal  [Select][+][-]
  1. AddPerm('INTERACT_ACROSS_USERS')
After you rebuilt the IDE, "INTERACT_ACROSS_USERS" will appear in [Lamw] Project options/Permissions. Test if your application will start after you turn this permission on.

tintinux

  • Sr. Member
  • ****
  • Posts: 311
    • Gestinux
Re: LAMW : Permission Denial
« Reply #5 on: August 22, 2016, 09:57:35 am »
Hi AS and jmpessoa !

I was not able to rebuild the I.D.E because of weird new messages...
So, I uninstalled the 3 packages, cloned  a new source repository, and reinstalled the packages.

And the problem was solved !

I really do not know what has happened...

Thanks for your help
Initiator of gestinux, open-source, multi-database and multilingual accounting and billing software made with LAZARUS.

You can help to develop, to make and improve translations, and to provide examples of legal charts and reports from more countries.

jmpessoa

  • Hero Member
  • *****
  • Posts: 1623
Re: [SOLVED] LAMW : Permission Denial
« Reply #6 on: August 22, 2016, 07:58:05 pm »

Good News!!!

Thank you!
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

 

TinyPortal © 2005-2018