Commit Graph

56 Commits

Author SHA1 Message Date
Gabriele M 109fef9e1e
su: Don't start daemon for adb only mode
adb root doesn't rely on su to work, so the daemon shouldn't
be started.

Change-Id: Ice9131b7efe9344df5d77fdbc465ce0b82dbe07f
2017-05-01 23:31:39 +03:00
Zhao Wei Liew 70e53042eb cm: Import init.superuser.rc into init.local.rc
With change I73bbf37e547323846cd863b3dcea5c890f9ee969,
we need to move all the contents of the su service into
the main init.cm.rc file.

Change-Id: Id7cf00738dcb81935b27e5de33d1f7dd2b2fcdb3
2017-02-27 23:33:02 -05:00
Zhao Wei Liew 374d138367 cm: Configure mmcblk1 IO on sys.io.scheduler prop
Ensure that the IO parameters for mmcblk1 are always updated.

Change-Id: Ic6a4c453035052db639cf8a2c9336019d9908cc2
2016-07-20 18:36:12 -07:00
Michael Bestas 2d2eb9a22d init: Add VibratorHW sysfs permissions
Change-Id: I956a7361fd2a77f0d6076376e69a65b0615ac394
2016-07-07 14:17:09 -07:00
Chenxi Mao 869a04f97a UFS: support UFS IO-sched setting.
PS2: add sde system partition support

PS3: add dm-0 which is used when device is encrypted

Change-Id: I3983d1f26cef3881c652e1450b9acb1dfb367032
2016-07-03 05:22:02 -07:00
Matt Mower 1b4eeb3ce7 cm: Give BootReceiver permissions to read fsck log
Change-Id: Icd0fdc2d218254cf78b7bfa45b0963f85c492c2b
2016-06-10 09:09:35 -07:00
Zhao Wei Liew de1ad36765 cm: Allow LiveDisplay to write to color_enhance
The proper permissions for the color_enhance sysfs node weren't
being set, rendering the color enhancement switch useless.

Set the proper permissions for LiveDisplay to toggle color enhancement.

Change-Id: Ic8dba8953b73a497cb01a645834c0e7934092b38
2016-04-30 17:06:13 -07:00
Dave Daynard 4a2f567dc9 init: add permissions for max_freq_hysteresis node
Change-Id: If556282e37daabf270be4af922c7c9a4112c3771
2016-02-20 09:14:46 -08:00
Luca Stefani bd3d22e354 init: Create directories needed by sshd
Change-Id: I672bd86f2ce359653fe1c2abc036a0fdc918ace1
2016-01-09 07:00:14 -08:00
Ethan Chen 909343f3df SELinux: Use custom ADB over network property
* Use a custom system property to trigger the real one, so we avoid
  running afoul of any SELinux CTS requirements.

Change-Id: If5e7a275f492631a673284408f1e430a12358380
2015-12-16 11:01:50 -08:00
Diogo Ferreira 3463bd0b78 init: Remove world-writable permissions in BFQ hierarchy
Fixes android.permission.cts.FileSystemPermissionTest#testAllFilesInSysAreNotWritable

Change-Id: Ia71a4ae246148ab8ea5333f8dbd39bfc330d2605
2015-11-27 05:26:17 -08:00
Steve Kondik b61b6df53f cm: Clean up cgroups even more!
* Only one is needed!

Change-Id: Ib79864bf2b7a3d86a2bad91de01a9b82279f4a91
2015-09-20 20:58:43 -07:00
Steve Kondik dcbf2aa77e cm: Clean up cgroups
* Remove unnecessary intermediate groups which are more harmful than
   helpful in some cases.
 * Remove weights, we're not using these.
 * Lock down the display group to system only.

Change-Id: I3a848fcc32459b53fa92317c253a20399637033e
2015-09-20 03:33:31 -07:00
Steve Kondik 100cc8ea1b cm: Remove xattr option from bfqio cgroup
* This was leftover from testing and breaks the feature when running
   on older kernels which don't support it.

Change-Id: Idb959b37b88238aee87c221d6accc899bf497aea
2015-09-19 12:41:38 -07:00
Steve Kondik 4462dfa518 cm: Update shared init.rc
* Remove cruft
 * Add LiveDisplay sysfs

Change-Id: I6e3ca9048c9196dbc85151f102fb22ff5a4222b4
2015-09-18 20:05:06 -07:00
Steve Kondik c815f700e0 cm: Set IOPS mode for CFQ and BFQ automatically
* Always set slice_idle to 0 for CFQ and BFQ (IOPS mode).
   This is a guaranteed performance boost for nonrotational storage
   and is also the new default in Linux 4.2+

Change-Id: Id271a4283219beb272c174de0e452c6c42c4e572
2015-09-17 23:30:41 -07:00
Steve Kondik 28dbc8b311 cm: Create cgroups for BFQIO
* This creates the interface for a new ioprio management system
   which dramatically boosts performance and interactivity across
   the entire system.

Change-Id: I3c402dd2cf6ed0a356a828257c2f373800f6a6cf
2015-09-15 15:32:29 -07:00
Steve Kondik a385501738 cm: SELinux policy for persistent properties API
* Set up persistent properties for devices with a /persist partition.

Change-Id: I78974dd4e25831338462c91fc25e36e343795510
2015-09-09 11:53:23 -07:00
Steve Kondik 26731f56cc cm: Set the IO scheduler based on a system property
Change-Id: Iab8314ed3a204c2d4815e008503d5a3bfa6b12cc
2015-09-08 03:53:51 -07:00
Michael Bestas d515adcbfe Remove obsolete /cache/dalvik-cache stuff from init.local.rc
Change-Id: I20af6b608d8f6059d7ede9be9af8ce22a919d9b5
2015-06-25 22:48:30 +03:00
Ethan Chen 617261e2cb Revert "cm: Add import for prebundled APKs"
This reverts commit 1d68926a04.

Change-Id: Ibb91d2e8f1a82709af818013de8af870e92d29cc
2015-06-16 13:56:11 -07:00
Dan Pasanen 15e432d8ee init: stop ril daemons if ro.radio.noril is set
* no reason to leave these spinning if the noril prop is enabled

Change-Id: If52381962282f2c2955a743b57fbec10edb8199e
2015-06-04 06:56:18 +00:00
Lin Ma d32b741b5b FOTA: Create /cache/recovery in init.rc for FOTA
* FOTA depends on the existence of /cache/recovery and will fail
to reboot otherwise

Change-Id: I0d4d2150d54f36a0927aee3b66e64f9b81672d86
2015-05-31 23:57:39 +00:00
Dan Pasanen 374ca9d02e init: set ro.radio.noril if persist.radio.noril is set
Change-Id: I51f35963662b8225674ad5c7514909e7efc67ae0
2015-05-15 15:45:28 +00:00
Ethan Chen 3866f709c6 init: Add common bugreport service
Change-Id: Id0501b2ca556919d8d41102e6d36d8453beedff2
2015-05-09 01:40:17 +00:00
Arne Coucheron 08297ed81a cm: Update notify_on_migrate path
Change-Id: I308405d11571b428de6092eb356f10cc9e8ed718
2015-04-03 02:01:36 +02:00
Ethan Chen 1d68926a04 cm: Add import for prebundled APKs
Change-Id: I8760457c974fdc22a6f2304a044120a01b14a111
2015-03-10 18:11:49 +00:00
Pawit Pornkitprasan 24a971ad42 cm: sepolicy: fix performance settings
Change-Id: Idea17856b4aef9258688a3ad58d0e5cac6d805a6
2015-01-03 07:57:44 +00:00
Konsta 444ce4a6b1 cm: Remove KSM permissions
CM12 doesn't have a KSM setting in performance settings anymore.
KSM should be configured and enabled on device basis.

Change-Id: I98a0cbe1b01a659eb28bcd459be55d78a88bda86
2015-01-01 00:40:37 +00:00
Arne Coucheron 1a1b4dc7da cm: Update and add additional permissions
Change-Id: Iec6a6938209d8bdfa9f8cdc31a9929d2fbc27f76
2014-11-19 05:48:47 +00:00
Arne Coucheron 1f3653ebde init.rc: Adding setprop entries for tcp delayed ack for Wifi & LTE
TCP delayed ack settings are expected to be modified when the
Wifi or LTE connection is established and the configurations
will be reverted back when the Wifi connection is terminated.
The change also modifies the /sys/kernel/ipv4/tcp_delack_seg
and /sys/kernel/ipv4/tcp_use_useconfig file owner to "system"

Requires: https://www.codeaurora.org/cgit/quic/la/kernel/msm/commit/?h=kk_2.7-stable&id=73989a4b345bba0efca96cc86b0258e83884ff63

Change-Id: I008e36931752d6db29454c5ce41e3cfe19b15ecb
2014-09-10 20:47:17 +00:00
Arne Coucheron 2cbcab3310 cm: Enable KSM deferred timer for kernels supporting it
Change-Id: I8e1d6071a3edc09c959f65801b110205f0908ed3
2014-05-26 05:49:16 +02:00
Steve Kondik b4fb9532ef Allow reading of cpufreq attributes
* Various tools might want to use these values without writing to
   them. Set world readable for all nodes.

Change-Id: I5521ca0104e9f21b2e3fdb3469485f887ee50f28
2014-02-23 21:49:00 +01:00
Steve Kondik 9d1a861319 cm: Set perms on a few additional paths
Change-Id: I128220850a21bef261ff735ff51e8b715391c37d
2014-01-15 01:44:07 +08:00
Michael Bestas 0ccf7efbd3 init.local.rc: Tweak KSM values
* Taken from http://source.android.com/devices/low-ram.html#ksm

Change-Id: I91de2014d06a24aec4bdefefeff606867de33de1
2014-01-10 02:46:18 +02:00
Steve Kondik 42fb9d8fc5 cm: Remove legacy compcache stuff
* Remove all this stuff.  If a device wants ZRAM, it should be
   enabled by the maintainer and properly configured and tuned.
 * This stuff currently causes a conflict with the ZRAM support
   added in Kitkat. Kill it.

Change-Id: Ib2488ea4463e32ec44b65fe786f732145b5b6e23
2014-01-04 16:59:40 -08:00
Steve Kondik 61fc945ab0 cm: Remove $TERM in global envrionment
* Handled by mksh now.

Change-Id: I21aaa17580e69ab81c471939aa7f968ad7475cb4
2013-12-08 01:04:18 -08:00
Michael Bestas 7a46cf7817 init.local.rc: Fix typo
Change-Id: Iec9b4c84cfc8c594558cab55a597cbefa6171d33
2013-10-24 05:04:41 +03:00
Jon Mooney 461e4ecb37 vendor/cm: Clean up init.local.rc
These changes fix the error below found in a logcat and clean up some other issues in the file.

"E CM PowerHAL: Error opening /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate: Permission denied"

	PS2: tweaked permissions & removed dupilcated entries

Change-Id: I9b1bbe66c36ba0d8de13b8cb9351d2952851c250
2013-10-23 11:04:33 -04:00
Steve Kondik f9bb7779ed cm: Update permissions for ondemand sysfs nodes
Change-Id: I4d7e856a720bef539bd5c43624cc8ed746b2cc95
2013-10-07 23:39:12 -07:00
Steve Kondik 686cbf2d87 cm: Set permissions on input_boost node
Change-Id: I2f02a3035158dbd138c2c22ddd4536bd717ae6b9
2013-10-04 04:31:56 -07:00
Steve Kondik 6a0f53023f cm: Set permissions on notify_on_migrate node
* Used by PowerHAL

Change-Id: Ifbf58c145522d82d220fbae39a6b7319971ecbb5
2013-10-02 11:28:28 -07:00
Giulio Cervera 989a313c54 rootdir: Set permissions for additional interactive sysfs nodes
Change-Id: I2dbcdcc199c5f75d08e8ebf41cd6768c7648e27b
2013-09-28 00:55:37 +01:00
Giulio Cervera a76d898dec init: provide initial pemissions for ondemand governor
also set all governor permissions a bit late

Change-Id: I5c1445b31bcaf34a535efd7438fd612ada460ea2
2013-09-28 00:55:22 +01:00
NameLess, the Jedi ff4b205412 Allow 'system' user to modify cpufreq control files
This is needed by new CPU Settings in CMParts

Change-Id: I0ec4e0b1705670034a433df549b2895985c476af
2013-09-28 00:54:32 +01:00
Pawit Pornkitprasan 04ffabe3dd Use Package Manager to disable stock OTA
This reverts commit ea14a88a2a.

Using the Package Manager prevents any danling wakelock from
killed service/receiver.

Change-Id: Ie3162ca4b18a7bc9c55613af39e88ea980407e5f
2013-09-01 16:29:16 +07:00
Ricardo Cerqueira ea14a88a2a Prevent stock OTA activities from running in CM
Change-Id: I3f586cd246fc351afb82c94f41329bf930f6f41a
2013-08-27 22:15:26 +01:00
Koushik Dutta 5af62eb1b1 Superuser 4.3 fix.
Change-Id: I8849d7ba9c7cebfb14d9f09a8220430b5b97b3ff
2013-07-27 20:31:24 -07:00
Ricardo Cerqueira 79ba997084 init.cm: Fix sysinit dependencies
sysinit depends on having the filesystems mounted, and userdata
in particular depends on having /data present. Move its startup
to post-fs-data

Change-Id: Iafcc926a3aa310c1afe501d272df5811da500d86
2013-06-12 12:13:53 +01:00
Chirayu Desai ce88540d8c init.cm: make directory for ssh
Change-Id: I9aa2506bd9bdc6f87d7d5e5153999c9233d126c1
2013-05-12 16:28:01 +05:30