Skip to content
This repository was archived by the owner on Jan 5, 2022. It is now read-only.

Commit c766b86

Browse files
committed
device documentation: minor formatting updates
1 parent 175bf7d commit c766b86

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

adebar-cli

+7-6
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ getDeviceInfo() {
375375
done < "${tmp}"
376376
377377
# Do something with the collected information (and collect more while on it)
378-
echo "## Device and ROM properties (from \`getprop\` / \`dumpsys\`)" >> "$devicedoc"
378+
echo "## Device and ROM properties" >> "$devicedoc"
379379
doProgress " + checking for product details" 3
380380
echo "### Product Info" >> "$devicedoc"
381381
echo "* Manufacturer: ${DEVPROP[ro.product.manufacturer]}" >> "$devicedoc" # ro.product.manufacturer=Motorola
@@ -475,7 +475,8 @@ getDeviceInfo() {
475475
if [[ ${MK_DEVICEINFO_PMLISTFEATURES} -gt 0 ]]; then
476476
doProgress "- Evaluating 'pm list features'" 2
477477
echo >> "$devicedoc"
478-
echo "## Device features (\`pm list features\`)" >> "$devicedoc"
478+
echo "## Device features" >> "$devicedoc"
479+
echo -e "\`pm list features\`:\n" >> "$devicedoc"
479480
for feature in $(adb ${ADBOPTS} shell "pm list features"); do
480481
feature=${feature//[$'\r\n']}
481482
echo "* ${feature#*:}" >> "$devicedoc"
@@ -547,7 +548,7 @@ getDeviceInfo() {
547548
adb ${ADBOPTS} shell dumpsys backup | sed 's/\r//g' > "$tmp"
548549
549550
echo >> "$devicedoc"
550-
echo "## Configured accounts (from \`dumpsys\`)" >> "$devicedoc"
551+
echo "## Configured accounts" >> "$devicedoc"
551552
OIFS="${IFS}"
552553
IFS="
553554
"
@@ -556,7 +557,7 @@ getDeviceInfo() {
556557
done
557558
558559
echo >> "$devicedoc"
559-
echo "## Google Cloud Backup (from \`dumpsys\`)" >> "$devicedoc"
560+
echo "## Google Cloud Backup" >> "$devicedoc"
560561
echo "* $(grep 'Backup Manager is' "$tmp")" >> "$devicedoc"
561562
echo "* $(grep 'Auto-restore is' "$tmp")" >> "$devicedoc"
562563
echo "* Backup destinations:" >> "$devicedoc"
@@ -844,8 +845,8 @@ echo -e "$zeile"
844845
[[ -n "${PK_FIRSTINSTALL[$app]}" ]] && tmpstring+=" + first installed: ${PK_FIRSTINSTALL[$app]}\n"
845846
[[ -n "${PK_LASTUPDATE[$app]}" ]] && tmpstring+=" + last updated: ${PK_FIRSTINSTALL[$app]}\n"
846847
[[ -n "${PK_VERSION[$app]}" ]] && tmpstring+=" + installed version: ${PK_VERSION[$app]}\n"
847-
[[ -n "${PK_CODEPATH[$app]}" ]] && tmpstring+=" + CodePath: ${PK_CODEPATH[$app]}\n"
848-
[[ -n "${PK_DATADIR[$app]}" ]] && tmpstring+=" + App data: ${PK_DATADIR[$app]}\n"
848+
[[ -n "${PK_CODEPATH[$app]}" ]] && tmpstring+=" + CodePath: \`${PK_CODEPATH[$app]}\`\n"
849+
[[ -n "${PK_DATADIR[$app]}" ]] && tmpstring+=" + App data: \`${PK_DATADIR[$app]}\`\n"
849850
[[ -n "${PK_SCREENSIZE[$app]}" ]] && tmpstring+=" + supported screen sizes: ${PK_SCREENSIZE[$app]}\n"
850851
[[ -n "${PK_FLAGS[$app]}" ]] && tmpstring+=" + flags: ${PK_FLAGS[$app]}\n"
851852
[[ -n "${PK_DISABLED[$app]}" ]] && {

0 commit comments

Comments
 (0)