You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<h2id="notestips-for-front-end-developers">NOTES/TIPS FOR FRONT-END DEVELOPERS</h2>
175
+
<h3id="basics">Basics</h3>
176
+
<p>DJS does not require Magisk.
177
+
Any root solution is fine.</p>
170
178
<p>Use <code>/dev/.vr25/djs/*</code> over regular commands.
171
-
These are guaranteed to be readily available after installation/initialization.</p>
179
+
These are guaranteed to be readily available after installation/upgrades.</p>
172
180
<p>It may be best to use long options over short equivalents - e.g., <code>/dev/.vr25/djs/djs-config --list</code>, instead of <code>/dev/.vr25/djs/djsc -l</code>.
173
181
This makes code more readable (less cryptic).</p>
174
182
<p>Include provided descriptions of DJS features/settings in your app(s).
175
183
Provide additional information (trusted) where appropriate.
176
184
Explain settings/concepts as clearly and with as few words as possible.</p>
185
+
<h3id="initializing-djs">Initializing DJS</h3>
186
+
<p>DJS is automatically initialized after installation/upgrades.
187
+
It needs to be initialized on boot, too.
188
+
If it's installed as a Magisk module, this is done by Magisk itself.
189
+
Otherwise, the front-end should handle it as follows:</p>
190
+
<pre><code><code><div>on boot_completed receiver and main activity
191
+
if file /dev/.acca/started does NOT exist
192
+
create it
193
+
mkdir -p /dev/.acca
194
+
touch /dev/.acca/started
195
+
if accd is NOT running
196
+
launch it
197
+
/data/adb/vr25/djs/service.sh
198
+
else
199
+
do nothing
200
+
else
201
+
do nothing
202
+
</div></code></code></pre>
203
+
<p><code>/dev/</code> is volatile - meaning, a reboot/shutdown clears <code>/dev/.acca/</code> and its contents.
204
+
That's exactly what we want.
205
+
Of course, <code>/dev/.acca/started</code> is just an example.
206
+
One can use any random path (e.g., <code>.myapp/initialized</code>), as long as it's under <code>/dev/</code> and does not conflict with preexisting data.
207
+
<strong>WARNING</strong>: do not play with preexisting /dev/ data!
208
+
Doing so may result in data loss and/or other undesired outcome.</p>
0 commit comments