Skip to content

Commit 2d53c9f

Browse files
author
Mattijs Korpershoek
committed
feat(android): ota: Use anonymous list instead of numbering
This renders the same in HTML but is much easier to update. Signed-off-by: Mattijs Korpershoek <[email protected]>
1 parent 96a2c62 commit 2d53c9f

File tree

2 files changed

+30
-30
lines changed

2 files changed

+30
-30
lines changed

source/devices/AM62PX/android/Application_Notes_OTA.rst

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ There are 2 ways of applying an OTA update:
1616
OTA via ``adb sideload``
1717
************************
1818

19-
1. Build and flash android images following :ref:`android-build-aosp` instructions.
19+
#. Build and flash android images following :ref:`android-build-aosp` instructions.
2020

21-
2. Build OTA package
21+
#. Build OTA package
2222

2323
.. code-block:: console
2424
@@ -28,9 +28,9 @@ OTA via ``adb sideload``
2828
$ export DIST_DIR=./dist_output
2929
$ m dist
3030
31-
3. `Enable adb debugging on your device <https://developer.android.com/studio/command-line/adb#Enabling>`__
31+
#. `Enable adb debugging on your device <https://developer.android.com/studio/command-line/adb#Enabling>`__
3232

33-
4. Reboot to recovery and apply OTA
33+
#. Reboot to recovery and apply OTA
3434

3535
.. code-block:: console
3636
@@ -46,7 +46,7 @@ OTA via ``adb sideload``
4646
OTA via Update Engine
4747
*********************
4848

49-
1. Build the OTA package
49+
#. Build the OTA package
5050

5151
.. code-block:: console
5252
@@ -56,7 +56,7 @@ OTA via Update Engine
5656
$ m
5757
$ m dist
5858
59-
2. Set your ``PYTHONPATH``.
59+
#. Set your ``PYTHONPATH``.
6060

6161
Some dependent python modules for :file:`gen_update_config.py` are part of AOSP tree or
6262
part of the build output.
@@ -70,7 +70,7 @@ OTA via Update Engine
7070
$ PYTHONPATH=$ANDROID_BUILD_TOP/system/apex/apexer/:$PYTHONPATH
7171
$ export PYTHONPATH
7272
73-
3. Patch the :file:`gen_update_config.py` script to be compatible with Android 15.
73+
#. Patch the :file:`gen_update_config.py` script to be compatible with Android 15.
7474
In :file:`bootable/recovery`, apply the following change:
7575

7676
https://android-review.googlesource.com/c/platform/bootable/recovery/+/2837717
@@ -83,7 +83,7 @@ OTA via Update Engine
8383
$ git fetch https://android.googlesource.com/platform/bootable/recovery refs/changes/17/2837717/1
8484
$ git cherry-pick FETCH_HEAD
8585
86-
4. Update the ota config file. Feel free to change ``$DIST_DIR`` to match your developer environment.
86+
#. Update the ota config file. Feel free to change ``$DIST_DIR`` to match your developer environment.
8787

8888
.. code-block:: console
8989
@@ -97,15 +97,15 @@ OTA via Update Engine
9797

9898
Be careful, last line is **one single** very long line.
9999

100-
5. Run the SystemUpdaterSample app once:
100+
#. Run the SystemUpdaterSample app once:
101101

102102
.. code-block:: console
103103
104104
$ adb root
105105
$ adb shell setenforce 0
106106
$ adb shell am start com.example.android.systemupdatersample/com.example.android.systemupdatersample.ui.MainActivity
107107
108-
6. Push the files on the board:
108+
#. Push the files on the board:
109109

110110
.. code-block:: console
111111
@@ -115,20 +115,20 @@ OTA via Update Engine
115115
$ adb push $DIST_DIR/$BOARD-ota-eng.${USER}.json /data/user/0/com.example.android.systemupdatersample/files/configs/
116116
$ adb push $DIST_DIR/$BOARD-ota-eng.${USER}.zip /data/user/0/com.example.android.systemupdatersample/files/packages/
117117
118-
7. Change SELinux label:
118+
#. Change SELinux label:
119119

120120
.. code-block:: console
121121
122122
$ adb shell chcon -R u:object_r:ota_package_file:s0 /data/user/0/com.example.android.systemupdatersample/
123123
124124
125-
8. Change Unix permisssions:
125+
#. Change Unix permisssions:
126126

127127
.. code-block:: console
128128
129129
$ adb shell chmod -R 777 /data/user/0/com.example.android.systemupdatersample/
130130
131-
9. Run the update on the UI:
131+
#. Run the update on the UI:
132132

133133
- Tap on ``RELOAD`` to load the config
134134
- Tap on ``APPLY`` to apply the OTA
@@ -137,13 +137,13 @@ OTA via Update Engine
137137
- Tap on ``SWITCH SLOT`` to finish update (scroll downwards to see the button)
138138
- Wait for verification
139139

140-
10. Reboot the device with:
140+
#. Reboot the device with:
141141

142142
.. code-block:: console
143143
144144
$ adb shell svc power reboot
145145
146-
11. Confirm that booting on slot b
146+
#. Confirm that booting on slot b
147147

148148
.. code-block:: console
149149

source/devices/AM62X/android/Application_Notes_OTA.rst

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ There are 2 ways of applying an OTA update:
1616
OTA via ``adb sideload``
1717
************************
1818

19-
1. Build and flash android images following :ref:`android-build-aosp` instructions.
19+
#. Build and flash android images following :ref:`android-build-aosp` instructions.
2020

21-
2. Build OTA package
21+
#. Build OTA package
2222

2323
.. code-block:: console
2424
@@ -28,9 +28,9 @@ OTA via ``adb sideload``
2828
$ export DIST_DIR=./dist_output
2929
$ m dist
3030
31-
3. `Enable adb debugging on your device <https://developer.android.com/studio/command-line/adb#Enabling>`__
31+
#. `Enable adb debugging on your device <https://developer.android.com/studio/command-line/adb#Enabling>`__
3232

33-
4. Reboot to recovery and apply OTA
33+
#. Reboot to recovery and apply OTA
3434

3535
.. code-block:: console
3636
@@ -46,7 +46,7 @@ OTA via ``adb sideload``
4646
OTA via Update Engine
4747
*********************
4848

49-
1. Build the OTA package
49+
#. Build the OTA package
5050

5151
.. code-block:: console
5252
@@ -56,7 +56,7 @@ OTA via Update Engine
5656
$ m
5757
$ m dist
5858
59-
2. Set your ``PYTHONPATH``.
59+
#. Set your ``PYTHONPATH``.
6060

6161
Some dependent python modules for :file:`gen_update_config.py` are part of AOSP tree or
6262
part of the build output.
@@ -70,7 +70,7 @@ OTA via Update Engine
7070
$ PYTHONPATH=$ANDROID_BUILD_TOP/system/apex/apexer/:$PYTHONPATH
7171
$ export PYTHONPATH
7272
73-
3. Patch the :file:`gen_update_config.py` script to be compatible with Android 15.
73+
#. Patch the :file:`gen_update_config.py` script to be compatible with Android 15.
7474
In :file:`bootable/recovery`, apply the following change:
7575

7676
https://android-review.googlesource.com/c/platform/bootable/recovery/+/2837717
@@ -83,7 +83,7 @@ OTA via Update Engine
8383
$ git fetch https://android.googlesource.com/platform/bootable/recovery refs/changes/17/2837717/1
8484
$ git cherry-pick FETCH_HEAD
8585
86-
4. Update the ota config file. Feel free to change ``$DIST_DIR`` to match your developer environment.
86+
#. Update the ota config file. Feel free to change ``$DIST_DIR`` to match your developer environment.
8787

8888
.. code-block:: console
8989
@@ -97,15 +97,15 @@ OTA via Update Engine
9797

9898
Be careful, last line is **one single** very long line.
9999

100-
5. Run the SystemUpdaterSample app once:
100+
#. Run the SystemUpdaterSample app once:
101101

102102
.. code-block:: console
103103
104104
$ adb root
105105
$ adb shell setenforce 0
106106
$ adb shell am start com.example.android.systemupdatersample/com.example.android.systemupdatersample.ui.MainActivity
107107
108-
6. Push the files on the board:
108+
#. Push the files on the board:
109109

110110
.. code-block:: console
111111
@@ -115,20 +115,20 @@ OTA via Update Engine
115115
$ adb push $DIST_DIR/$BOARD-ota-eng.${USER}.json /data/user/0/com.example.android.systemupdatersample/files/configs/
116116
$ adb push $DIST_DIR/$BOARD-ota-eng.${USER}.zip /data/user/0/com.example.android.systemupdatersample/files/packages/
117117
118-
7. Change SELinux label:
118+
#. Change SELinux label:
119119

120120
.. code-block:: console
121121
122122
$ adb shell chcon -R u:object_r:ota_package_file:s0 /data/user/0/com.example.android.systemupdatersample/
123123
124124
125-
8. Change Unix permisssions:
125+
#. Change Unix permisssions:
126126

127127
.. code-block:: console
128128
129129
$ adb shell chmod -R 777 /data/user/0/com.example.android.systemupdatersample/
130130
131-
9. Run the update on the UI:
131+
#. Run the update on the UI:
132132

133133
- Tap on ``RELOAD`` to load the config
134134
- Tap on ``APPLY`` to apply the OTA
@@ -137,13 +137,13 @@ OTA via Update Engine
137137
- Tap on ``SWITCH SLOT`` to finish update (scroll downwards to see the button)
138138
- Wait for verification
139139

140-
10. Reboot the device with:
140+
#. Reboot the device with:
141141

142142
.. code-block:: console
143143
144144
$ adb shell svc power reboot
145145
146-
11. Confirm that booting on slot b
146+
#. Confirm that booting on slot b
147147

148148
.. code-block:: console
149149

0 commit comments

Comments
 (0)