XU4 Lineage OS 14.1 App permission problem

Post Reply
vgdev
Posts: 18
Joined: Fri Oct 26, 2018 11:31 pm
languages_spoken: english
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

XU4 Lineage OS 14.1 App permission problem

Unread post by vgdev » Mon Dec 30, 2019 10:10 pm

I'm currently using Lineage OS 14.1 on my odroid XU4.
I have test a range of them and couldn't figure out the source of the problem.
Let's suppose I have 5 odroid xu4. Same version of lineage OS, same version of my APKs, same kind of EMMC module (32GB).
I install my apps, launch them. My app prompt the grand permission windows to access the external memory (they have to read some images).

In one of the 5 odroids everythings work fine, but on the other 4 XU4 my apps keep asking the permission access after every reboot over and over.
I tried reinstall lineage OS 14.1 same problem.
On Lineage OS 15.1 the problem seems to be solved, but my apps crash somentimes.
Same behaviour of the 15.1 on Android 4.4 (official hardkernel OS image).
Even tried to install the 4.4 (where the app is not asking me access over and over) and then update to 14.1 using the odroid update app.
But the problem is back now.

my app are just some simple game build using Unity3d 2019.
What I cannot understand is because one them works fine and some other not.

I have tested about 15 xu4 till now. And the "success" ratio is about 1.5 ok unit of 5 total units...

Someone else had this strange issue?

User avatar
voodik
Posts: 1645
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: english,russian
Has thanked: 12 times
Been thanked: 109 times
Contact:

Re: XU4 Lineage OS 14.1 App permission problem

Unread post by voodik » Tue Dec 31, 2019 1:00 pm

Hi,

I will try more deep investigate why granted permissions not save after holidays.

BTW,
Can you post crash logs ?
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io

vgdev
Posts: 18
Joined: Fri Oct 26, 2018 11:31 pm
languages_spoken: english
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: XU4 Lineage OS 14.1 App permission problem

Unread post by vgdev » Thu Jan 02, 2020 6:26 pm

Hi
thanks for the future help :)

Anyway unfotunatelly I'm a windows guy, and I'm quite new about the android environment... can you promt me some steps to give you the correct log?

at the moment I can tell you that even if I set manually the app permissions (via settings-app- app's permission) after the next reboot the permission will be lost,
but the worst part is that not all odroid will have this behaviour... that's really annoying...

User avatar
voodik
Posts: 1645
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: english,russian
Has thanked: 12 times
Been thanked: 109 times
Contact:

Re: XU4 Lineage OS 14.1 App permission problem

Unread post by voodik » Fri Jan 03, 2020 8:12 am

You need to setup adb on your pc.
e.g.
https://www.xda-developers.com/install- ... cos-linux/
https://wiki.odroid.com/odroid-xu4/trou ... over_tcpip

then from adb shell dump logs
in my signature you can see command to dump and upload logs to ix.io
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io

vgdev
Posts: 18
Joined: Fri Oct 26, 2018 11:31 pm
languages_spoken: english
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: XU4 Lineage OS 14.1 App permission problem

Unread post by vgdev » Fri Jan 03, 2020 7:34 pm

Tried to do what you asked me.
If I run the command via ADB the result is "File not found", if I run the command via termina on Android/Odroid the result is "Couldn't resolve host 'ix.io' "
I have saved the output to a file and I have attached it to this message
Is it ok?
Attachments
log1.txt
(113.69 KiB) Downloaded 7 times

User avatar
voodik
Posts: 1645
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: english,russian
Has thanked: 12 times
Been thanked: 109 times
Contact:

Re: XU4 Lineage OS 14.1 App permission problem

Unread post by voodik » Sat Jan 04, 2020 2:09 am

I need logs after your game crash.
to dump logs you need connect your odroid to internet then run

Code: Select all

adb shell
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io

vgdev
Posts: 18
Joined: Fri Oct 26, 2018 11:31 pm
languages_spoken: english
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: XU4 Lineage OS 14.1 App permission problem

Unread post by vgdev » Tue Jan 07, 2020 7:31 pm

Hi
tryed to upload right now.
The result from curl is "Empty reply from server"
i think it worked.

Let me know man :)

User avatar
voodik
Posts: 1645
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: english,russian
Has thanked: 12 times
Been thanked: 109 times
Contact:

Re: XU4 Lineage OS 14.1 App permission problem

Unread post by voodik » Tue Jan 07, 2020 9:34 pm

No, if everything ok it should be print link where logs uploaded. So something goes wrong.
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io

vgdev
Posts: 18
Joined: Fri Oct 26, 2018 11:31 pm
languages_spoken: english
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: XU4 Lineage OS 14.1 App permission problem

Unread post by vgdev » Tue Jan 07, 2020 10:33 pm

damn

but I think now it worked :)
this is the link
http://ix.io/26Gk

vgdev
Posts: 18
Joined: Fri Oct 26, 2018 11:31 pm
languages_spoken: english
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: XU4 Lineage OS 14.1 App permission problem

Unread post by vgdev » Mon Jan 13, 2020 6:09 pm

Hi
Any news? :?:
had you the chance to check the log?

User avatar
voodik
Posts: 1645
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: english,russian
Has thanked: 12 times
Been thanked: 109 times
Contact:

Re: XU4 Lineage OS 14.1 App permission problem

Unread post by voodik » Mon Jan 13, 2020 9:15 pm

vgdev wrote:
Mon Jan 13, 2020 6:09 pm
Hi
Any news? :?:
had you the chance to check the log?

Code: Select all

01-07 02:31:43.351  5302  5318 I Unity   : C001-EndLessRunner
01-07 02:31:43.351  5302  5318 I Unity   :  
01-07 02:31:43.351  5302  5318 I Unity   : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 48)
01-07 02:31:43.351  5302  5318 I Unity   : 
01-07 02:31:44.231  5302  5364 W Unity   : The referenced script on this Behaviour (Game Object 'Button') is missing!
01-07 02:31:44.231  5302  5364 W Unity   :  
01-07 02:31:44.231  5302  5364 W Unity   : (Filename: ./Runtime/Mono/ManagedMonoBehaviourRef.cpp Line: 333)
01-07 02:31:44.231  5302  5364 W Unity   : 
01-07 02:31:44.232  5302  5364 W Unity   : The referenced script on this Behaviour (Game Object 'Button') is missing!
01-07 02:31:44.232  5302  5364 W Unity   :  
01-07 02:31:44.232  5302  5364 W Unity   : (Filename: ./Runtime/Mono/ManagedMonoBehaviourRef.cpp Line: 333)
01-07 02:31:44.232  5302  5364 W Unity   : 
I just see this logs and as i understand after this your app crash.
Did you checked why this happens ? I am not Unity developer.

BTW.
Is this log dumped after your app crash ?
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io

vgdev
Posts: 18
Joined: Fri Oct 26, 2018 11:31 pm
languages_spoken: english
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: XU4 Lineage OS 14.1 App permission problem

Unread post by vgdev » Mon Jan 13, 2020 10:39 pm

My app did not really "crash".
If I try to run it it will ask me the permission for external memory. If I allow it I can play my game with no issue (apparently).
If I reboot the odroid it will me ask the permission again and again after each reboot.

I'll check where that error come from.
You are thinking that this error will prevent android to store the permission correctly?

User avatar
voodik
Posts: 1645
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: english,russian
Has thanked: 12 times
Been thanked: 109 times
Contact:

Re: XU4 Lineage OS 14.1 App permission problem

Unread post by voodik » Mon Jan 13, 2020 11:01 pm

vgdev wrote:
Mon Jan 13, 2020 10:39 pm
My app did not really "crash".
If I try to run it it will ask me the permission for external memory. If I allow it I can play my game with no issue (apparently).
If I reboot the odroid it will me ask the permission again and again after each reboot.

I'll check where that error come from.
You are thinking that this error will prevent android to store the permission correctly?
From first post.
On Lineage OS 15.1 the problem seems to be solved, but my apps crash somentimes.
Same behaviour of the 15.1 on Android 4.4 (official hardkernel OS image).
So if it possible post logs when app crash on Lineage-15.1.

About Lineage-14.1 permission does not save issue. I need little more time to investigate android framework code.
To understand why it sometimes happens sometimes why not.
If possible can you post your app apk somewhere and send link via PM ?
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io

vgdev
Posts: 18
Joined: Fri Oct 26, 2018 11:31 pm
languages_spoken: english
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: XU4 Lineage OS 14.1 App permission problem

Unread post by vgdev » Tue Jan 14, 2020 12:12 am

I'll ask my superior about sharing apk (I think there will be no problem, but I want to be sure about that... my is kinda paranoic some times :D)

About Lineage 15.1 we like not to use it, we prefeer the 14.1
we tried the 15.1 for the permission issue on the 14.1 version. but our app sometimes crashed.
But I think the cause of tha crashing is the disabling of part of the UI to complete turn of the top and bottom bar of android.
Maybe the app will hung up because part of the UI system is disabled.

Anyway in this case, while testing the persmission, the UI is all active.

vgdev
Posts: 18
Joined: Fri Oct 26, 2018 11:31 pm
languages_spoken: english
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: XU4 Lineage OS 14.1 App permission problem

Unread post by vgdev » Tue Jan 14, 2020 6:09 pm

I was thinking about a fixing for my problem...
Let's say I have app A, B, C that always ask me permission after a reboot.
Is it possibile to write a shell script that will grant the required permission to my app A, B, C?

Will android allow such behaviours?
I want to remind that this application are developed from our team, and that this product will be something lik a kiosk for our client.
So nothing harmful

vgdev
Posts: 18
Joined: Fri Oct 26, 2018 11:31 pm
languages_spoken: english
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: XU4 Lineage OS 14.1 App permission problem

Unread post by vgdev » Tue Jan 14, 2020 9:23 pm

just to add something more
I have edit my start program and I added this command script
pm grant com.package.name android.permission.READ_EXTERNAL_STORAGE
pm grant com.package.name android.permission.WRITE_EXTERNAL_STORAGE

my starter will change the app permission of the other app at each reboot.
But the strange things is that after the first test run of the starter and after a reboot my app has stored the storage permission XD

anyway this is an external fix, not a solution

jong21
Posts: 1
Joined: Tue Jan 14, 2020 9:40 pm
languages_spoken: english
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: XU4 Lineage OS 14.1 App permission problem

Unread post by jong21 » Tue Jan 14, 2020 9:41 pm

vgdev wrote:
Mon Dec 30, 2019 10:10 pm
I'm currently using Lineage OS 14.1 on my odroid XU4.
I have test a range of them and couldn't figure out the source of the problem.
Let's suppose I have 5 odroid xu4. Same version of lineage OS, same version of my acmarket apk, same kind of EMMC module (32GB).
I install my apps, launch them. My app prompt the grand permission windows to access the external memory (they have to read some images).

In one of the 5 odroids everythings work fine, but on the other 4 XU4 my apps keep asking the permission access after every reboot over and over.
I tried reinstall lineage OS 14.1 same problem.
On Lineage OS 15.1 the problem seems to be solved, but my apps crash somentimes.
Same behaviour of the 15.1 on Android 4.4 (official hardkernel OS image).
Even tried to install the 4.4 (where the app is not asking me access over and over) and then update to 14.1 using the odroid update app.
But the problem is back now.

my app are just some simple game build using Unity3d 2019.
What I cannot understand is because one them works fine and some other not.

I have tested about 15 xu4 till now. And the "success" ratio is about 1.5 ok unit of 5 total units...

Someone else had this strange issue?
I had similar issue. I did not find any solution for this. It was automatically solved
Last edited by jong21 on Sun Jan 19, 2020 8:35 am, edited 1 time in total.

vgdev
Posts: 18
Joined: Fri Oct 26, 2018 11:31 pm
languages_spoken: english
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: XU4 Lineage OS 14.1 App permission problem

Unread post by vgdev » Tue Jan 14, 2020 10:46 pm

I still have found no solution.
What I have done till now will allow me to work (maybe) on these machine and to deploy some games. But this is a temporary fix, not a complete solution :)

Post Reply

Return to “Android”

Who is online

Users browsing this forum: No registered users and 1 guest