|
| 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 | +} |
0 commit comments