opengapps icon indicating copy to clipboard operation
opengapps copied to clipboard

Lineage 17.1 Open Gapps and Andoid Auto

Open ghost opened this issue 4 years ago • 27 comments

I instale the ( Lineage os 17.1.20200415 and Gapps) on my S8+ . All ok ,Thanks to the developer . The only problem is with Android Auto and the usb connection in Lineage software... maybe authorities usb choice is not to "file tranfer"... In S8+ with original samsung os "android 9" the application android auto with same version as above function very well. I think the problem is the way that lineage manage the usb connection with Android Auto!!! When Android Auto strat in the infotainment the phone usb force (goes) to "without file transfer" and the connection stops Any help 20201204_080831

ghost avatar Dec 06 '20 18:12 ghost

Think this may be the same cause as #742

huw0 avatar Dec 06 '20 21:12 huw0

Possibly related boot issue I'm seeing:

12-13 11:45:36.462  5602  5602 E System  : ******************************************
12-13 11:45:36.462  5602  5602 E System  : ************ Failure starting system services
12-13 11:45:36.462  5602  5602 E System  : java.lang.IllegalStateException: Signature|privileged permissions not in privapp-permissions whitelist: {com.google.android.projection.gearhead: android.permission.CHANGE_COMPONENT_ENABLED_STATE}
12-13 11:45:36.462  5602  5602 E System  : 	at com.android.server.pm.permission.PermissionManagerService.systemReady(PermissionManagerService.java:2970)
12-13 11:45:36.462  5602  5602 E System  : 	at com.android.server.pm.permission.PermissionManagerService.access$100(PermissionManagerService.java:122)
12-13 11:45:36.462  5602  5602 E System  : 	at com.android.server.pm.permission.PermissionManagerService$PermissionManagerServiceInternalImpl.systemReady(PermissionManagerService.java:3031)
12-13 11:45:36.462  5602  5602 E System  : 	at com.android.server.pm.PackageManagerService.systemReady(PackageManagerService.java:21935)
12-13 11:45:36.462  5602  5602 E System  : 	at com.android.server.SystemServer.startOtherServices(SystemServer.java:2037)
12-13 11:45:36.462  5602  5602 E System  : 	at com.android.server.SystemServer.run(SystemServer.java:529)
12-13 11:45:36.462  5602  5602 E System  : 	at com.android.server.SystemServer.main(SystemServer.java:356)
12-13 11:45:36.462  5602  5602 E System  : 	at java.lang.reflect.Method.invoke(Native Method)
12-13 11:45:36.462  5602  5602 E System  : 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
12-13 11:45:36.462  5602  5602 E System  : 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:918)
12-13 11:45:36.462  5602  5602 D SystemServerTiming: MakePackageManagerServiceReady took to complete: 850ms
12-13 11:45:36.463  5602  5602 E Zygote  : System zygote died with exception
12-13 11:45:36.463  5602  5602 E Zygote  : java.lang.IllegalStateException: Signature|privileged permissions not in privapp-permissions whitelist: {com.google.android.projection.gearhead: android.permission.CHANGE_COMPONENT_ENABLED_STATE}
12-13 11:45:36.463  5602  5602 E Zygote  : 	at com.android.server.pm.permission.PermissionManagerService.systemReady(PermissionManagerService.java:2970)
12-13 11:45:36.463  5602  5602 E Zygote  : 	at com.android.server.pm.permission.PermissionManagerService.access$100(PermissionManagerService.java:122)
12-13 11:45:36.463  5602  5602 E Zygote  : 	at com.android.server.pm.permission.PermissionManagerService$PermissionManagerServiceInternalImpl.systemReady(PermissionManagerService.java:3031)
12-13 11:45:36.463  5602  5602 E Zygote  : 	at com.android.server.pm.PackageManagerService.systemReady(PackageManagerService.java:21935)
12-13 11:45:36.463  5602  5602 E Zygote  : 	at com.android.server.SystemServer.startOtherServices(SystemServer.java:2037)
12-13 11:45:36.463  5602  5602 E Zygote  : 	at com.android.server.SystemServer.run(SystemServer.java:529)
12-13 11:45:36.463  5602  5602 E Zygote  : 	at com.android.server.SystemServer.main(SystemServer.java:356)
12-13 11:45:36.463  5602  5602 E Zygote  : 	at java.lang.reflect.Method.invoke(Native Method)
12-13 11:45:36.463  5602  5602 E Zygote  : 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
12-13 11:45:36.463  5602  5602 E Zygote  : 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:918)
12-13 11:45:36.463  5602  5602 D AndroidRuntime: Shutting down VM
12-13 11:45:36.463  5602  5602 E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: main
12-13 11:45:36.463  5602  5602 E AndroidRuntime: java.lang.IllegalStateException: Signature|privileged permissions not in privapp-permissions whitelist: {com.google.android.projection.gearhead: android.permission.CHANGE_COMPONENT_ENABLED_STATE}
12-13 11:45:36.463  5602  5602 E AndroidRuntime: 	at com.android.server.pm.permission.PermissionManagerService.systemReady(PermissionManagerService.java:2970)
12-13 11:45:36.463  5602  5602 E AndroidRuntime: 	at com.android.server.pm.permission.PermissionManagerService.access$100(PermissionManagerService.java:122)
12-13 11:45:36.463  5602  5602 E AndroidRuntime: 	at com.android.server.pm.permission.PermissionManagerService$PermissionManagerServiceInternalImpl.systemReady(PermissionManagerService.java:3031)
12-13 11:45:36.463  5602  5602 E AndroidRuntime: 	at com.android.server.pm.PackageManagerService.systemReady(PackageManagerService.java:21935)
12-13 11:45:36.463  5602  5602 E AndroidRuntime: 	at com.android.server.SystemServer.startOtherServices(SystemServer.java:2037)
12-13 11:45:36.463  5602  5602 E AndroidRuntime: 	at com.android.server.SystemServer.run(SystemServer.java:529)
12-13 11:45:36.463  5602  5602 E AndroidRuntime: 	at com.android.server.SystemServer.main(SystemServer.java:356)
12-13 11:45:36.463  5602  5602 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
12-13 11:45:36.463  5602  5602 E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
12-13 11:45:36.463  5602  5602 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:918)

jameshilliard avatar Dec 13 '20 18:12 jameshilliard

Im getting similiar problems with opengapps pico after version open_gapps-arm64-10.0-pico-20201121.zip. Newer versions are not working.

When I open android auto on the phone, i get the message: requires one or more google play services. According this post, some apps requires to be installed as system. But it has always been working since 20201121. https://forum.xda-developers.com/t/rom-11-0-unofficial-lineageos-18-1.4173997/post-84062007

yung-wang avatar Dec 15 '20 18:12 yung-wang

Still having problems with opengapps. I switch to nikgapps core + android auto addon, this works fine.

yung-wang avatar Dec 30 '20 10:12 yung-wang

@yung-wang did you have to do anything to remove opengapps first or did you just flash nikgapps?

jacob-pro avatar Jan 02 '21 00:01 jacob-pro

@jacob-pro I wiped system and cache first. Than flashed rom + nikgapps + addon. That is all 😃.

yung-wang avatar Jan 02 '21 11:01 yung-wang

@ghost Is this a duplicate of #742?

osm0sis avatar Feb 19 '21 12:02 osm0sis

That permission is already present here: https://gitlab.opengapps.org/opengapps/all/-/blob/master/etc/permissions/privapp-permissions-google.xml#L672

osm0sis avatar Feb 19 '21 12:02 osm0sis

@jacob-pro I wiped system and cache first. Than flashed rom + nikgapps + addon. That is all 😃.

This worked for me too, thank you!!

KeepUrDayJob avatar Mar 01 '21 06:03 KeepUrDayJob

You're welcome. I see they are fixing it. Maybe it should work with the latest opengapps? I didnt test it.

yung-wang avatar Mar 01 '21 08:03 yung-wang

Just tried today's opengapps build - both pico and stock - looks like its still failing.

I can confirm that nikgapps core + android auto from 02/24 does work though.

ronaldwan avatar Mar 02 '21 17:03 ronaldwan

@ronaldwan

I can confirm that nikgapps core + android auto from 02/24 does work though.

Are you referring to the nikgapps addon or the app from the Play Store?

agross avatar Mar 05 '21 08:03 agross

I use the addons, not from the play store. I havent tried the PS app, so i dont know if this works. You can download them here: https://sourceforge.net/projects/nikgapps/files/Releases/

Android 11

Core: https://sourceforge.net/projects/nikgapps/files/Releases/NikGapps-R/30-Jan-2021/NikGapps-core-arm64-11-20210130-signed.zip/download

Addons: https://sourceforge.net/projects/nikgapps/files/Releases/Addons-R/24-Jan-2021/NikGapps-Addon-11-AndroidAuto-signed.zip/download

yung-wang avatar Mar 05 '21 08:03 yung-wang

@ronaldwan

I can confirm that nikgapps core + android auto from 02/24 does work though.

Are you referring to the nikgapps addon or the app from the Play Store?

I used the android auto add-on. I can confirm subsequent updates from the App Store also works.

I'm not familiar with the Opengapps build system. Are the Opengapps downloadable builds nightly or from some sort of release branch?

ronaldwan avatar Mar 05 '21 08:03 ronaldwan

AFAIK OpenGapps are updated daily (https://opengapps.org/). I tested today's nano version with Android Auto from Play Store. Didn't work.

I then switched to nikgapps core (just flashed from Recovery) without any add-ons and Android Auto from Play store. It finally is able to start without displaying "Something went wrong". Will have to check the car connection, though.

agross avatar Mar 05 '21 08:03 agross

In case this might be useful, I had a similar problem where after flashing my phone with the latest software (instead of the standard OnePlus software) AA no longer worked, USB transfer type was on connect immediately reset to "no transfer" similar to what the first post says here.

Android: 10 Phone: OnePlus3 LineageOS: lineage-17.1-20210222-nightly-oneplus3-signed GApps: open_gapps-arm64-10.0-micro-20210227

Following https://forum.xda-developers.com/t/gapps-daily-open-gapps-for-android-all-android-versions-devices.3098071/page-351#post-84511137, I decided to try open_gapps-arm64-10.0-micro-20210206 and that worked. I did need to install Android Auto app (and the Play Store did not allow me to do this due to location restrictions, that wasn't the case before oddly enough, got an apk instead) because that is probably not on the micro version. So my hypothesis would be that there is an issue introduced between 20210206 and 20210227 versions.

The one small issue that remains is that on connect the display in my car turns white for two seconds before displaying the AA interface, it didnt do that with the standard OP software.

zundertj avatar Mar 05 '21 08:03 zundertj

Will have to check the car connection, though.

It worked!

agross avatar Mar 05 '21 15:03 agross

Had the same issue, can confirm open_gapps-arm-10.0-mini-20210206 works! :)

anirudhb avatar Mar 06 '21 23:03 anirudhb

Had the same issue, can confirm open_gapps-arm-10.0-mini-20210206 works! :)

Do we know on what release it does stop working? and if its gonna ever work on future releases?

ElSabio97 avatar Mar 08 '21 18:03 ElSabio97

Too bad pico does not work. It worked before. I like to have a very minimal gapps. Nice to hear mini works.

yung-wang avatar Mar 09 '21 08:03 yung-wang

It works for me with BiTGApps R20. It supports arm (32) bit.

sanomaster avatar Mar 19 '21 18:03 sanomaster

Had the same issue, can confirm open_gapps-arm-10.0-mini-20210206 works! :)

I can confirm this one works great for me too! (One plus One, LOS 17.1)

ElSabio97 avatar Mar 25 '21 10:03 ElSabio97

March 25th mini does not work with Android Auto. Reverting to open_gapps-arm64-10.0-pico-20210218 as that version works.

Nikgapps, unfortunately, is lagged for notifications for Signal and Voice.

Alex9001 avatar Mar 25 '21 22:03 Alex9001

Is anyone else seeing this message about "No installed apps work with this USB accessory"?

Screenshot_20210326-114940_System_UI

taylorkline avatar Mar 26 '21 16:03 taylorkline

Is anyone else seeing this message about "No installed apps work with this USB accessory"?

Yes, when connecting the phone to car's head unit. Try to install open_gapps-arm-10.0-mini-20210206

sanomaster avatar Mar 28 '21 16:03 sanomaster

For lineageos 18.1 im using MindTheGapps-11.0.0-arm64-20210412_124247.zip. This works fine. https://wiki.lineageos.org/gapps.html

yung-wang avatar Apr 28 '21 14:04 yung-wang

Resolved fully in 61c1088 I believe 👍

osm0sis avatar Aug 05 '21 12:08 osm0sis