summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordianlujitao <dianlujitao@lineageos.org>2021-08-13 21:08:15 +0900
committerFabian Leuteneegger <fabian.leutenegger@bluewin.ch>2021-11-04 19:13:12 +0100
commit2e1373b0ee097f5d7b6e353c31151ff5e5040096 (patch)
treec9c1e088aa322e4cce5ac235a940d9e6f9a88bb7
parent64110fdee42e87e751b9f6ea1c5b6bd0e149099e (diff)
ipacm: Address IPACM start failure.
* IPACM PID file is stored at /data/vendor/ipa/ipacm.pid, and the service fails to start if the directory is not accessible. * QCOM uses ipacm-diag.rc to create the directory. Replicate the behavior since we don't necessarily ship that one. * Move to late_start since post-fs is earlier than post-fs-data. Change-Id: I5663e32d202cd8b52de8e8257332be1029c0fe3d
-rw-r--r--ipacm/src/ipacm.rc10
1 files changed, 6 insertions, 4 deletions
diff --git a/ipacm/src/ipacm.rc b/ipacm/src/ipacm.rc
index 6b3bf98..8a63b46 100644
--- a/ipacm/src/ipacm.rc
+++ b/ipacm/src/ipacm.rc
@@ -25,10 +25,12 @@
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# msm specific files that need to be created on /data
+on post-fs-data
+ mkdir /data/vendor/ipa 0770 radio radio
+ chmod 0770 /data/vendor/ipa
+
service vendor.ipacm /system/vendor/bin/ipacm
- class main
+ class late_start
user radio
group radio inet
-
-on post-fs-data
- start vendor.ipacm