Camera2api module not compatible with GSI ROMs

LionHeart90

Senior Member
Nov 14, 2018
354
151
0
Hello everyone, I have perhaps the biggest doubt. Why can i easily install the Gcam in the Stock version of the firmware by enabling the module; but if I install a GSI Rom and try to enable the module, does the default camera stop working? And even the possible Gcam to install does not work. Someone could tell me why? Truly I would be infinitely grateful!:fingers-crossed::fingers-crossed:
 

celrau

Senior Member
Mar 24, 2013
430
78
48
There are a couple of apps on google store that you can use to check if camera2 API is available/enabled on your phone, testing with gcam is questionable. I use ArrowOS and camera2 API is fully implemented. Try for example OpenCamera which definitely does camera2. Or FreeDcam on github.
 
  • Like
Reactions: eremitein

LionHeart90

Senior Member
Nov 14, 2018
354
151
0
There are a couple of apps on google store that you can use to check if camera2 API is available/enabled on your phone, testing with gcam is questionable. I use ArrowOS and camera2 API is fully implemented. Try for example OpenCamera which definitely does camera2. Or FreeDcam on github.
Thanks for your reply celrau, after installing the module, i checked if it was enabled with for example "manual camera compatibily test", and each string was enabled. but as i said, stock cam not work more, and neither any gcam. So i don't understand why. Have u ArrowOS in mi a2 lite mate?
 

celrau

Senior Member
Mar 24, 2013
430
78
48
Thanks for your reply celrau, after installing the module, i checked if it was enabled with for example "manual camera compatibily test", and each string was enabled. but as i said, stock cam not work more, and neither any gcam. So i don't understand why. Have u ArrowOS in mi a2 lite mate?
Yeah, MiA2 lite with ArrowOS. Most likely gcam not running has nothing to do with camera2, maybe it needs some libraries specific to stock or something. See if you can find some magisk module with gcam, maybe it helps.
 
  • Like
Reactions: LionHeart90

LionHeart90

Senior Member
Nov 14, 2018
354
151
0
Yeah, MiA2 lite with ArrowOS. Most likely gcam not running has nothing to do with camera2, maybe it needs some libraries specific to stock or something. See if you can find some magisk module with gcam, maybe it helps.



compatible modules unfortunately I have not found, maybe there will be something that does not go with the libraries as you say. But unfortunately about this, I understand little and nothing. unless someone tells me directly what I have to implement
 

boe323

Senior Member
Jun 22, 2012
1,949
392
0
Burton on Trent
Try searching miui 10 camera 2api, it has a full set of libs , but also has media files for ringtone ,user interface, maybe download and remove the media folder or replace the .oggs with your stock ones then magisk flash it
 

BJumperBR

Senior Member
Mar 28, 2016
98
31
0
You can try editing your build.prop and add this line with the name of the app that you want to use the old API:

camera.hal1.packagelist=INSERT_YOUR_APP_PACKAGE_NAME HERE

ie.:
camera.hal1.packagelist=com.android.camera

I'm using the stock ROM now but I've used that method before on my old REDMI 4 PRIME Ressurection Remix ROM for some apps that wouldn't work with CAMERA2API.

EDITED TO ADD: You can also use the same ADB method to change the properties (root needed):

ie.:
adb shell
su
setprop camera.hal1.packagelist com.google.camera,com.skype.raider

Hope that helps!
 
Last edited:
  • Like
Reactions: LionHeart90

LionHeart90

Senior Member
Nov 14, 2018
354
151
0
You can try editing your build.prop and add this line with the name of the app that you want to use the old API:

camera.hal1.packagelist=INSERT_YOUR_APP_PACKAGE_NAME HERE

ie.:
camera.hal1.packagelist=com.android.camera

I'm using the stock ROM now but I've used that method before on my old REDMI 4 PRIME Ressurection Remix ROM for some apps that wouldn't work with CAMERA2API.

EDITED TO ADD: You can also use the same ADB method to change the properties (root needed):

ie.:
adb shell
su
setprop camera.hal1.packagelist com.google.camera,com.skype.raider

Hope that helps!
Thanks a lot mate, i'll try this solution too!!