Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
meta-nemo
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
NemoMobile
meta-nemo
Commits
d3c5690c
Commit
d3c5690c
authored
Sep 17, 2015
by
Florent Revest
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds an android-init service that loads /system/bin/init
parent
e933fda4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
0 deletions
+45
-0
android-init.service
...es-android/android-init/android-init/android-init.service
+14
-0
init.rc
recipes-android/android-init/android-init/init.rc
+14
-0
android-init_1.0.bb
recipes-android/android-init/android-init_1.0.bb
+17
-0
No files found.
recipes-android/android-init/android-init/android-init.service
0 → 100644
View file @
d3c5690c
[Unit]
Description=/system/bin/init initializes the property service and launches servicemanager and logd
Wants=systemd-udev-settle.service
After=local-fs.target systemd-udev-settle.service systemd-tmpfiles-setup.service
Before=basic.target network.target bluetooth.service ofono.service sensord.service
DefaultDependencies=no
Conflicts=shutdown.target
[Service]
Type=simple
ExecStart=/system/bin/init
[Install]
WantedBy=graphical.target
recipes-android/android-init/android-init/init.rc
0 → 100644
View file @
d3c5690c
on init
write /dev/.coldboot_done 1
mkdir /dev/graphics/
symlink /dev/fb0 /dev/graphics/fb0
class_start core
service logd /system/bin/logd
class core
socket logd stream 0666 root root
socket logdr seqpacket 0666 root root
socket logdw dgram 0222 root root
service servicemanager /system/bin/servicemanager
class core
recipes-android/android-init/android-init_1.0.bb
0 → 100644
View file @
d3c5690c
DESCRIPTION = "This installs an android-init service which loads /system/bin/init with the /init.rc file which loads logd and servicemanager"
PR = "r0"
SRC_URI = "file://init.rc \
file://android-init.service"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
S = "${WORKDIR}"
do_install() {
install -m 0644 ${WORKDIR}/init.rc ${D}/init.rc
install -d ${D}/etc/systemd/system/multi-user.target.wants/
cp ${WORKDIR}/android-init.service ${D}/etc/systemd/system/
ln -s ../android-init.service ${D}/etc/systemd/system/multi-user.target.wants/android-init.service
}
FILES_${PN} += "/init.rc"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment