lukaspieper / Gcam-Services-Provider

App faking only the absolute necessary Apis to use Gcam without Play Services
MIT License
599 stars 27 forks source link

Gcam crashes when installed from APKS (APK Bundle) #54

Open zliebersbach opened 2 years ago

zliebersbach commented 2 years ago

Describe the bug See steps to reproduce. I do not have Google Photos installed and have installed the 1.3 "photos" version of the APK.

To Reproduce Steps to reproduce the behavior:

  1. Install Gcam-Services-Provider 1.3 "photos" version from Releases page using normal method (without --force-queryable)
  2. Install Google Camera from Aurora Store (with correct device Pixel 3 selected in device spoofing)
  3. Launch Google Camera - works after accepting permissions
  4. Go to home screen and reopen app - this works
  5. Close Google Camera from recent apps list and launch again - crashes :disappointed:
  6. Device reboot does not work, you need to clear the Google Camera app data

Expected behavior Does not crash on subsequent launches.

Log gcam-8.2-logcat.txt

Smartphone (please complete the following information, the more detailed, the better)

Additional context Add any other context about the problem here.

lukaspieper commented 2 years ago

Hi,

thanks for your detailed report and the log. It seems to be the same issue talked about here. If you install Gcam from a different distribution channel it should work fine.

I will change the title and use this issue to keep track on crashes coming from installing Gcam trough Google Play/Aurora Store.

It might also be different from OS (rom) to OS, so I don't know if it can be fixed inside the scope of this project. Will need further information/research.

zliebersbach commented 2 years ago

I just tried installing the same version from APKMirror, and used SAI to install the bundle...

Got exactly the same issue. Does this mean I have to find an unsecure redistribution of a standard APK for it to work? Has anyone managed to get the official APKS to run?

lukaspieper commented 2 years ago

Thanks for testing. It might also be related to APK Bundles.

I'm currently running version 8.2.300 (that version is available at APKMirror as APK).

innir commented 2 years ago

I extracted 8.3.252 from the Android 12 image (Pixel 4a) yesterday and it works fine on GrapheneOS 11 - I guess Aurora Store just picks a wrong variant somehow. Did anyone check installing if from Google Play Store?

innir commented 2 years ago

I just tried installing the same version from APKMirror, and used SAI to install the bundle...

Got exactly the same issue. Does this mean I have to find an unsecure redistribution of a standard APK for it to work? Has anyone managed to get the official APKS to run?

You can extract Gcam from the images Google provides - they always work for me (see https://github.com/lukaspieper/Gcam-Services-Provider/discussions/17#discussioncomment-227518 for details).