Commit Graph

30 Commits

Author SHA1 Message Date
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
Ricardo Cerqueira
6698e5ebdb init.cm.rc: Fix startup banner, and move sysinit here
"getprop" depends on the presence of the property workspace
env var, which is created by the first starting service. Why
not make that sysinit itself? (\/) (°,,,°) (\/)
2012-11-23 17:15:16 +00:00
Ricardo Cerqueira
8f412cb14a cm: init.rc: Fix compcache and cleanup init file
The "import" keyword is only parsed once, for a one shot execution, during
the initial section setup, and before running "on fs". Having an import of
a file that's located in a filesystem other than root will result in an error
like

<3> init: could not import file '/system/etc/init.local.rc' from '/init.rc'

So... any files imported into init need to be moved to the root fs.
While we're at it, move init.rc changes that are specific to CM (and don't
involve modification of preexisting configs) into this file, to ease future
upstream merges (and minimize breakage on devices that override init.rc with
their own variants)

Needs to be paired with the corresponding system/core patch

Change-Id: Iab6340db2e28ef19dbcd84ae5c71737ce0cd491f
2012-10-18 16:42:27 +01:00
Steve Kondik
fe18fc31a6 cm: Fix compcache startup
Can't run a script on /system in "on boot" because /system isn't
mounted yet.
2010-08-20 13:17:37 -04:00
Eddie Ringle
7e52cbfa0a Only enable/disable compcache at boot
Signed-off-by: Eddie Ringle <eddie.ringle@gmail.com>
2010-08-18 00:07:20 -04:00
Steve Kondik
7e8f1af7b2 Move run-parts to main init. 2010-07-07 09:08:59 -04:00
Steve Kondik
a89711a5c1 Copy the local (CM-specific) init.rc to /etc 2010-07-07 09:06:13 -04:00