Code: :cond_0 :try_start_1 iget-object v0, p0, Liga;->b:Landroid/hardware/camera2/CameraManager; invoke-virtual {v0}, Landroid/hardware/camera2/CameraManager;->getCameraIdList()[Ljava/lang/String; move-result-object v2 invoke-static {v2}, Liya;->b(Ljava/lang/Object;)Ljava/lang/Object; new-instance v3, Ljava/util/ArrayList; array-length v0, v2 invoke-direct {v3, v0}, Ljava/util/ArrayList;-><init>(I)V array-length v4, v2 const/4 v0, 0x1 <------------ Start at Camera ID 1 (Front Camera) :goto_0 if-ge v0, v4, :cond_1 <------------ If greater or equal to 'v4' then skip the code below and continue aget-object v5, v2, v0 new-instance v6, Ligc; invoke-static {v5}, Ligc;->a(Ljava/lang/String;)Ljava/lang/Integer; move-result-object v7 invoke-direct {v6, v5, v7}, Ligc;-><init>(Ljava/lang/String;Ljava/lang/Integer;)V invoke-interface {v3, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z add-int/lit8 v0, v0, 0x1 <------------ Add 1 to counter to end at Camera ID 2 (Secondary rear) goto :goto_0 <------------ Loop back to goto_0 label

Code: const-string v4, "Acquired metadata from the first frame." invoke-interface {v3, v4}, Licu;->b(Ljava/lang/String;)V :try_end_0 .catch Ljava/util/concurrent/ExecutionException; {:try_start_0 .. :try_end_0} :catch_0 move-object/from16 v0, p0 iget-object v3, v0, Lecu;->e:Lgdq; invoke-interface {v3}, Lgdq;->a()Ligc; move-result-object v3 invoke-virtual {v3}, Ligc;->a()I move-result v4 const v3, 0x2 <----- add this line. Sets a variable to 2 (Camera ID 2) if-ne v4, v3, :cond_f <--------- add this line. If v4 is not equal to v3, skip over next line (this means if Camera ID is not 2, then keep the ID number and carry on) const v4, 0x0 <-------- add this line. Sets the variable to 0 (Camera ID 0). This means that if the Camera ID is set to 2 (Wide Angle app) then we need to make GCam think the ID is 0 for it to do ZSL HDR+ Processing. :cond_f <-------- add this line for the reference above :try_start_1 move-object/from16 v0, p0 iget-object v3, v0, Lecu;->c:Licu; const-string v5, "Starting HdrPlus#ZslShotCapture."

Nice work! Hopefully this gets it in the hands of more capable devs! I look forward to seeing the progress.PS: V3.3 is a couple versions old, but if it works the best no problem. Just though I'd mention that. The up to date thread can be found here. Here's what's changed to access the secondary rear camera for Google Camera. The code is a little different on my newer versions because I added a toggle to fix LG G6 Lineage OS Camera ID, but the concept is the same and this is simpler to show.This edit fixes it so ZSL HDR+ worksTo get all cameras working in the app, we probably need to add a toggle that goes back to iga.smali and changes the start value to 0. Good luck! aer0zer0 this thread may be worth checking out for your phone/mods.