Skip to content

Commit ceca2ed

Browse files
committed
add gcam guide
1 parent a848b55 commit ceca2ed

File tree

5 files changed

+97
-1
lines changed

5 files changed

+97
-1
lines changed

docs/modding/gcam.mdx

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
import Tabs from '@theme/Tabs';
2+
import TabItem from '@theme/TabItem';
3+
import Link from "@docusaurus/Link";
4+
5+
import { gcam_ports } from "./gcam_ports";
6+
7+
import props1 from "@site/static/assets/modding/gcam/props-edit1.png";
8+
import props2 from "@site/static/assets/modding/gcam/props-edit2.png";
9+
10+
# Gcam (Google camera)
11+
12+
GCam is Google's official camera app, originally developed for the Pixel series of smartphones.
13+
It's known for taking great photos not because of hardware, but because of software processing.
14+
15+
## Bugs
16+
- The 50MP camera mode does not work
17+
18+
## Install
19+
The installation is slightly different depending on which firmware you are using.
20+
### Stock firmware
21+
:::warning
22+
Stock firmware doesn't support Camera2 API by default, so you'll need to fix that manually
23+
:::
24+
1. [Unlock bootloader](../dev/bootloader.md) and get [root access](./root.mdx) on your device
25+
2. Add a new property to the end of the ```system/build.prop``` file and save
26+
```shell
27+
persist.camera.HAL3.enabled=1
28+
```
29+
<img src={props1} width="500" />
30+
<img src={props2} width="500" />
31+
3. Reboot the phone
32+
4. Download and install the gcam from the ones listed below
33+
34+
### DebloatedMotoWeed firmware
35+
If you have already installed [DebloatedMotoWeed](./debloatedmotoweed.mdx) firmware, you don't need to take any additional steps, ***you don't even need root***.
36+
37+
Camera2 API is already enabled by default. ***Just download the gcam from the ones listed below!***
38+
39+
## Download
40+
Below are the gcam ports that have been pre-tested on our device. Focus on the best rating.
41+
42+
export const tabData = [
43+
{ label: "Platinum", value: "0", items: gcam_ports.platinum },
44+
{ label: "Gold", value: "1", items: gcam_ports.gold },
45+
{ label: "Silver", value: "2", items: gcam_ports.silver },
46+
{ label: "Bronze", value: "3", items: gcam_ports.bronze },
47+
{ label: "Broken", value: "4", items: gcam_ports.broken },
48+
];
49+
export const nonEmptyTabs = tabData.filter(tab => tab.items.length > 0);
50+
51+
{
52+
<Tabs>
53+
{nonEmptyTabs.map((tab, index) => (
54+
<TabItem
55+
key={tab.value}
56+
value={tab.value}
57+
label={tab.label}
58+
default={index === 0}
59+
>
60+
{tab.items.map((item, idx) => (
61+
<Link
62+
key={idx}
63+
target="_blank"
64+
to={item.link}
65+
style={{ display: "block", marginBottom: "8px" }}
66+
>
67+
{item.name}
68+
</Link>
69+
))}
70+
</TabItem>
71+
))}
72+
</Tabs>
73+
}

docs/modding/gcam_ports.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// GcamTabs.js
2+
import React from 'react';
3+
import Tabs from '@theme/Tabs';
4+
import TabItem from '@theme/TabItem';
5+
import Link from "@docusaurus/Link";
6+
7+
export const gcam_ports = {
8+
platinum: [],
9+
gold: [
10+
{
11+
name: "Hasli LMC8.4_R18",
12+
link: "https://www.celsoazevedo.com/files/android/google-camera/dev-hasli/f/dl14/"
13+
}
14+
],
15+
silver: [],
16+
bronze: [
17+
{
18+
name: "BigKaka MGC_9.3.160_V26",
19+
link: "https://www.celsoazevedo.com/files/android/google-camera/dev-BigKaka/f/dl80/"
20+
}
21+
],
22+
broken: []
23+
};

sidebars.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const sidebars: SidebarsConfig = {
4242
{
4343
type: 'category',
4444
label: 'Modding',
45-
items: ['modding/custom-bootloader', 'modding/custom-recovery', 'modding/root', 'modding/gsi', 'modding/disable-bootloader-warnings', 'modding/debloatedmotoweed']
45+
items: ['modding/custom-bootloader', 'modding/custom-recovery', 'modding/root', 'modding/gsi', 'modding/disable-bootloader-warnings', 'modding/debloatedmotoweed', 'modding/gcam']
4646
},
4747
{
4848
type: 'category',
17 KB
Loading
23.3 KB
Loading

0 commit comments

Comments
 (0)