Skip to content

Commit

Permalink
[Docs] Update instructions for Oxygen OS
Browse files Browse the repository at this point in the history
Signed-off-by: Muntashir Al-Islam <[email protected]>
  • Loading branch information
MuntashirAkon committed Aug 9, 2024
1 parent 906c498 commit aedf23a
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 10 deletions.
23 changes: 23 additions & 0 deletions .run/Documentation.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Documentation" type="LATEX_RUN_CONFIGURATION" factoryName="LaTeX configuration factory">
<texify>
<compiler>PDFLATEX</compiler>
<compiler-path>pdflatex</compiler-path>
<sumatra-path />
<pdf-viewer>NONE</pdf-viewer>
<viewer-command>open</viewer-command>
<compiler-arguments>-shell-escape</compiler-arguments>
<envs />
<main-file>$PROJECT_DIR$/docs/raw/en/main_vanilla.tex</main-file>
<output-path>$PROJECT_DIR$/docs/raw/en</output-path>
<auxil-path>{projectDir}/auxil</auxil-path>
<compile-twice>false</compile-twice>
<output-format>PDF</output-format>
<latex-distribution>TEXLIVE</latex-distribution>
<has-been-run>true</has-been-run>
<bib-run-config>[]</bib-run-config>
<makeindex-run-config>[]</makeindex-run-config>
</texify>
<method v="2" />
</configuration>
</component>
5 changes: 5 additions & 0 deletions docs/raw/en/guide/aot.tex
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ \subsubsection{Realme} %%##$realme-usb-debug-title>>
or \textbf{USB debugging (Security settings)} along with \textbf{Install via USB}.
%%!!>>

\subsubsection{OnePlus (Oxygen OS)} %%##$oneplus-usb-debug-title>>
%%!!oneplus-usb-debug<<
Depending on the device and the version of operating system, you have to enable \textbf{Disable Permission Monitoring}.
%%!!>>

\subsubsection{LG} %%##$lg-usb-debug-title>>
%%!!lg-usb-debug<<
Make sure you have \textbf{USB tethering} enabled.
Expand Down
17 changes: 9 additions & 8 deletions docs/raw/en/main.tex
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
% po4a: command -pagecolor {}
% po4a: command *colorbox {}{_}

\usepackage[margin=1in]{geometry}
\usepackage[T1]{fontenc}
\usepackage{mathpazo} % Palatino
\usepackage[utf8]{inputenc}
Expand All @@ -41,7 +42,7 @@
\setcounter{secnumdepth}{3}

% Import localised keywords
\input{keywords.tex}
\input{keywords}

% -------------------
% Alert environments
Expand Down Expand Up @@ -174,18 +175,18 @@
\author{Muntashir Al-Islam}

% Load variables
\input{transient.tex}
\input{transient}

\begin{document}
\input{titlepage.tex}
\input{titlepage}
\ifdefined\HCode
% Don't display table of contents for tex4ht
\else
\tableofcontents
\fi
\input{intro/main.tex}
\input{pages/main.tex}
\input{guide/main.tex}
\input{faq/main.tex}
\input{appendices/main.tex}
\input{intro/main}
\input{pages/main}
\input{guide/main}
\input{faq/main}
\input{appendices/main}
\end{document}
3 changes: 2 additions & 1 deletion docs/raw/en/main_vanilla.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
% SPDX-License-Identifier: GPL-3.0-or-later OR CC-BY-SA-4.0
%! suppress = DocumentclassNotInRoot
\documentclass{memoir}

\newcommand{\Vanilla}{\LaTeX}
Expand All @@ -13,4 +14,4 @@
\renewenvironment{seealso}{}{}

% Include main
\input{main.tex}
\input{main}
2 changes: 2 additions & 0 deletions docs/raw/en/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@
<string name="guide$aot$$miui-usb-debug-title">Xiaomi (MIUI)</string>
<string name="guide$aot$$emui-usb-debug-title">Huawei (EMUI)</string>
<string name="guide$aot$$realme-usb-debug-title">Realme</string>
<string name="guide$aot$$oneplus-usb-debug-title">OnePlus (Oxygen OS)</string>
<string name="guide$aot$$lg-usb-debug-title">LG</string>
<string name="guide$aot$$troubleshooting-usb-debug-title">Troubleshooting</string>
<string name="guide$aot$$setup-adb-on-pc-title">Setup ADB on PC or Mac</string>
Expand All @@ -295,6 +296,7 @@
<string name="guide$aot$miui-usb-debug">Enable \\textbf{USB debugging (Security settings)} as well.</string>
<string name="guide$aot$emui-usb-debug">Enable \\textbf{Allow ADB debugging in charge only mode} as well. When connecting to your PC or Mac, you may get a prompt\nsaying \\textbf{Allow access to device data\?} in which case click \\textbf{YES, ALLOW ACCESS}.\n\n\\begin{tip}{Notice}\n Often the \\textbf{USB debugging} mode could be disabled automatically by the system. If that\'s the case, repeat the\n above procedure.\n\\end{tip}</string>
<string name="guide$aot$realme-usb-debug">Depending on the device and the version of operating system, you have to enable \\textbf{Disable Permission Monitoring},\nor \\textbf{USB debugging (Security settings)} along with \\textbf{Install via USB}.</string>
<string name="guide$aot$oneplus-usb-debug">Depending on the device and the version of operating system, you have to enable \\textbf{Disable Permission Monitoring}.</string>
<string name="guide$aot$lg-usb-debug">Make sure you have \\textbf{USB tethering} enabled.</string>
<string name="guide$aot$troubleshooting-usb-debug">In case \\textbf{USB Debugging} is greyed out, you can do the following:\n\\begin{enumerate}\n \\item Make sure you enabled USB debugging before connecting your phone to the PC or Mac via USB cable\n \\item Enable USB tethering after connecting to PC or Mac via USB cable\n \\item (For Samsung) If your device is running KNOX, you may have to follow some additional steps. See official\n documentations or consult support for further assistant\n\\end{enumerate}</string>
<string name="guide$aot$setup-adb-on-pc">In order to enable ADB over TCP, you have to set up ADB in your PC or Mac. \\textbf{\\textit{Lineage OS users can skip to\n\\Sref{subsubsec:lineage-os}.}}</string>
Expand Down
5 changes: 4 additions & 1 deletion scripts/docs.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,11 @@ function collect_tex_files(array &$tex_files, string $base_dir = null, string $t
$base_dir = getcwd() . '/' . BASE_DIR;
$tex_file = MAIN_TEX;
}
if (str_ends_with($tex_file, ".tex") === false) {
$tex_file .= ".tex";
}
if (!file_exists($base_dir . '/' . $tex_file)) {
echo "File $tex_file does not exist!";
echo "File $tex_file does not exist!\n";
return;
}
$tex_files[] = $tex_file;
Expand Down

0 comments on commit aedf23a

Please sign in to comment.