summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* emulator: Move qemu-props to core serviceDavid 'Digit' Turner2011-09-162-4/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | The qemu-props program is launched at boot to read a series of system property assignments from the emulator and apply them. This is necessary to deal with the dynamic nature of the emulated platform (e.g. the screen density which depends on the skin and cannot be hard-coded in the platform image). This patch ensures that qemu-props is started before any other service that may read one of these properties (e.g. surface flinger). This is done by encapsulating the program into a 'core' service. Core services are all stared before regular ones. Before the patch, qemu-props was started manually inside a script that is called from a late emulator-specific boot service (goldfish-setup). The problem was that sometimes qemu-props was run too late. This resulted in random flakiness, especially when running on a low-end host machine. Fix for bug 2161189 (and probably a few others) Change-Id: I2933a25dcb5fecbb1fc238f157264e621b8f295b
* libcutils: qtaguid: Support new functions, add tag resource tracking.JP Abgrall2011-09-142-22/+156
| | | | | | | | | | | | | | | | | | | | | | | * Add support for deleteTagData(tag, uid) setCounterSet(counterSetNum, uid) setPacifier(on) * Add resource tracking (If only kernel process termination had a hook) Because the xt_qtaguid netfilter module needs to keep track of tagged sockets, it needs a way to know when the process owning the socket has died. Normally the app will untag the sockets. But not on crash. So the process opens the qtaguid misc dev, which is closed on crash, at which point the xt_qtaguid can force-untag the processes sockets, and thus allowing their refcount to go down and release them. * Add pacifier support Add function to enable/disable pacification of the xt_qtaguid kernel module. (mostly for debugging) Change-Id: I7f2228e65208046dd37ec1c7407ee307d5ba9b99
* adb: Add USB vendor IDs for K-Touch, Pegatron and ArchosMike Lockwood2011-09-131-0/+9
| | | | | | | | Change-Id: Idbc212abfb7d4d0a53e6b8ecd55134b81f4e960d Bug: 5182028 Bug: 5157478 Signed-off-by: Mike Lockwood <lockwood@android.com>
* init.rc: allow all users to open the qtaguid misc devJP Abgrall2011-09-111-0/+4
| | | | | | | | The netfilter xt_qtaguid module uses a misc dev so that processes that use the module can be tracked. Every process that does socket tagging must open that dev. Change-Id: I6af3e0f0180637b14455dd9607724523f142c402
* Increase the window sizes on wifi and lte.Robert Greenwalt2011-09-071-1/+2
| | | | | | | Set to 524288,1048576,2097152, 262144,524288,1048576. bug:5226360 Change-Id: Id9d4257c51a355d78246b4ca59ab462fbe5b72be
* init: do not load default.prop from ramdisk in charger modeDima Zavin2011-09-063-4/+11
| | | | | Change-Id: Ic471b891829d7f857674b925c9948954972d9ecb Signed-off-by: Dima Zavin <dima@android.com>
* cutils: only build klog for targetDima Zavin2011-09-041-2/+1
| | | | | Change-Id: Id524753ca5e7271a498fdf03179bba3fdaed5729 Signed-off-by: Dima Zavin <dima@android.com>
* core: Add a standalone charger UI binaryDima Zavin2011-09-044-0/+747
| | | | | | | | | | | | | | | | | | This can be launched from an 'on charger' section in init, which is processed if androidboot.mode=charger is supplied on kernel command line. This is a standalone binary that has a simple "user interface" and allows the standard production kernel to run while charging. This removes the burden from the bootloader to get low-power mode working. Currently, the device will "power-on" (i.e. reboot) into normal mode if the power key is pressed for X seconds, and will also power down the device if the usb/ac cable is removed for Y seconds. Change-Id: I780594b99211cb09de7f8519a69c5962eb91348a Signed-off-by: Dima Zavin <dima@android.com>
* init: add charge mode handlingDima Zavin2011-09-022-8/+18
| | | | | | | | | | | | Introduces a 'charger' section that is processed when androidboot.mode supplied on the kernel commandline is "charger". In this mode, sections such as fs, post-fs, etc are skipped. Only the 'early-init' and 'init' sections of the init rc files are processed before processing the 'charger' section. Change-Id: If9eb6334de18f04cbcf2aab784578e2993615242 Signed-off-by: Dima Zavin <dima@android.com>
* init/cutils: move list utility code to cutils from initDima Zavin2011-09-0211-30/+45
| | | | | Change-Id: I357ceee813700297d8343159f22a07659e768d41 Signed-off-by: Dima Zavin <dima@android.com>
* init/cutils: move kernel logging interface to libcutils from initDima Zavin2011-09-028-48/+102
| | | | | Change-Id: Ia0f91b1fcd6cae69d76bf3dd841340958db938a8 Signed-off-by: Dima Zavin <dima@android.com>
* libcutils/init: move uevent socket opening code to libcutilsDima Zavin2011-09-023-28/+35
| | | | | Change-Id: I90adf78c0eb6185505f2bf7b62e96e25ab918345 Signed-off-by: Dima Zavin <dima@android.com>
* am 96a5482b: am fd6f3872: am 2985f81d: Merge "libdiskconfig: add missing ↵Dima Zavin2011-08-301-0/+2
|\ | | | | | | | | | | | | LOCAL_MODULE_TAGS" * commit '96a5482b75029129ebeecd543ca6683d2411b9a3': libdiskconfig: add missing LOCAL_MODULE_TAGS
| * am fd6f3872: am 2985f81d: Merge "libdiskconfig: add missing LOCAL_MODULE_TAGS"Dima Zavin2011-08-291-0/+2
| |\ | | | | | | | | | | | | * commit 'fd6f38727e3be7d5d9163698b06d61656b2bbe4d': libdiskconfig: add missing LOCAL_MODULE_TAGS
| | * am 2985f81d: Merge "libdiskconfig: add missing LOCAL_MODULE_TAGS"Dima Zavin2011-08-291-0/+2
| | |\ | | | | | | | | | | | | | | | | * commit '2985f81d0dfa0e3ff790cb7637684b3919a6ca1c': libdiskconfig: add missing LOCAL_MODULE_TAGS
| | | * Merge "libdiskconfig: add missing LOCAL_MODULE_TAGS"Dima Zavin2011-08-261-0/+2
| | | |\
| | | | * libdiskconfig: add missing LOCAL_MODULE_TAGSChih-Wei Huang2011-08-251-0/+2
| | | |/ | | | | | | | | | | | | Change-Id: Ia4fceb4e4f33df3e37b0e83f042fff09dab2d06c
* | | | Fix DEBUG_NEEDS usageVladimir Chtchetkine2011-08-291-1/+1
| | | | | | | | | | | | | | | | Change-Id: Ic107c60080e55e1f9092f20fe3bd55e7592ca9fd
* | | | init: check for list empty when getting commands for actionDima Zavin2011-08-261-1/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: Id42d6a6b6297919b2e6520e074e31b5e01ae17bc Signed-off-by: Dima Zavin <dima@android.com>
* | | | Fix 'adb backup' command line validationChristopher Tate2011-08-221-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The host side wasn't properly checking for argument-list sufficiency *after* removing any [-f filename] sequence. Fixes bug 5164135 Change-Id: I7bc49e37ef168182088e0e664b6897dd2a088ebf
* | | | Allow radio to set sys.usb.configBenoit Goby2011-08-221-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | This allows the ril to put the phone into diagnostic mode Change-Id: Iafc8164991550e7ab0ffda8b8da1d58e34a4225b
* | | | Merge "init: allow mediaserver to tag socket (group net_bw_acct)"JP Abgrall2011-08-181-1/+1
|\ \ \ \
| * | | | init: allow mediaserver to tag socket (group net_bw_acct)JP Abgrall2011-08-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The mediaserver needs to do communication on behalf of other apps (browser, ...). It needs to be able to tag sockets. The kernel will check for net_bw_acct group membership. Change-Id: I7fb063fdb7d9435d7f979df6622ff17f34049cbc
* | | | | Show the resolution of each axis.Jeff Brown2011-08-161-1/+3
|/ / / / | | | | | | | | | | | | Change-Id: I81c4b7e6480b98e59fb389060ab2c8d34257ae5f
* | | | Merge "Add install arg for verification"Kenny Root2011-08-161-28/+90
|\ \ \ \
| * | | | Add install arg for verificationKenny Root2011-08-061-28/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow "adb install" to transfer the file for the verification argument to the package manager "pm install" command. Change-Id: I4834f45019eb1387a5d2b205b53a67e91d5fa67e
* | | | | Merge "Update dhcp for p2p"repo sync2011-08-151-8/+35
|\ \ \ \ \
| * | | | | Update dhcp for p2prepo sync2011-08-121-8/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 5002384 Change-Id: I4ee4f80e2bc2966aa30d1344182d90f30117fbae
* | | | | | am 549bfcda: am 003771d1: am 80d508fd: Merge "correct VID of Lenovo(0x2006 ↵Mike Lockwood2011-08-151-1/+4
|\ \ \ \ \ \ | | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | is for LenovoMobile,0x17EF is for Lenovo)" * commit '549bfcda6df30dd00db254b3717fc8df463ce710': correct VID of Lenovo(0x2006 is for LenovoMobile,0x17EF is for Lenovo)
| * | | | | am 003771d1: am 80d508fd: Merge "correct VID of Lenovo(0x2006 is for ↵Mike Lockwood2011-08-151-1/+4
| |\ \ \ \ \ | | | |_|/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | LenovoMobile,0x17EF is for Lenovo)" * commit '003771d1c0ad6c3c6cd0c82f787636111c9e193c': correct VID of Lenovo(0x2006 is for LenovoMobile,0x17EF is for Lenovo)
| | * | | | am 80d508fd: Merge "correct VID of Lenovo(0x2006 is for LenovoMobile,0x17EF ↵Mike Lockwood2011-08-151-1/+4
| | |\ \ \ \ | | | | |_|/ | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | is for Lenovo)" * commit '80d508fd62a2cc22693a9bbb3aca9bd8568ecec5': correct VID of Lenovo(0x2006 is for LenovoMobile,0x17EF is for Lenovo)
| | | * | | Merge "correct VID of Lenovo(0x2006 is for LenovoMobile,0x17EF is for Lenovo)"Mike Lockwood2011-08-151-1/+4
| | | |\ \ \
| | | | * | | correct VID of Lenovo(0x2006 is for LenovoMobile,0x17EF is for Lenovo)zhangclb2011-08-151-1/+4
| | | |/ / / | | | | | | | | | | | | | | | | | | Change-Id: I3466fdf7b03cf5da189efe4efb563d09f14b467a
* | | | | | Merge "resolved conflicts for merge of d18dc005 to master"JP Abgrall2011-08-120-0/+0
|\ \ \ \ \ \
| * \ \ \ \ \ resolved conflicts for merge of d18dc005 to masterJP Abgrall2011-08-120-0/+0
| |\ \ \ \ \ \ | | |/ / / / / | | | | | / / | | |_|_|/ / | |/| | | | Change-Id: I91015a835880f3619452107239a4fc8ea0fafbf6 Signed-off-by: JP Abgrall <jpa@google.com>
| | * | | | resolved conflicts for merge of a88c13bf to honeycomb-plus-aospJP Abgrall2011-08-113-1/+110
| | |\ \ \ \ | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Android.mk's LOCAL_SRC_FILES was different from gingerbread. Change-Id: Ie1777a5f449e6b135320e92d0dc1c593869aa266 Signed-off-by: JP Abgrall <jpa@google.com>
| | | * | | am f25e55df: Merge changes I8e33c883,I0a2d1615,I401fc0b4,Ie0fb5b59JP Abgrall2011-08-103-1/+110
| | | |\ \ \ | | | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'f25e55df1b086161ab28653b583c945df0a16615': libcutils: qtaguid: support socket untagging, return errors. Move qtaguid.c from common sources in Android.mk to fix windows build. Fix header file inclusion for type uid_t. Add communication support for xt_qtaguid(network traffic accounting) kernel module.
| | | | * | Merge changes I8e33c883,I0a2d1615,I401fc0b4,Ie0fb5b59JP Abgrall2011-08-103-1/+110
| | | | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: libcutils: qtaguid: support socket untagging, return errors. Move qtaguid.c from common sources in Android.mk to fix windows build. Fix header file inclusion for type uid_t. Add communication support for xt_qtaguid(network traffic accounting) kernel module.
| | | | | * | libcutils: qtaguid: support socket untagging, return errors.Ashish Sharma2011-08-102-14/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Enable and rename qtaguid_tagSocket() - Add qtaguid_untagSocket() - Return kernel errors to caller Change-Id: I8e33c8832b7f6b24ed9081f36ce1ea9ae6b099c0 Signed-off-by: Ashish Sharma <ashishsharma@google.com>
| | | | | * | Move qtaguid.c from common sources in Android.mk to fix windows build.JP Abgrall2011-08-101-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I0a2d1615108b6c10064b3635d05699748a1341a4
| | | | | * | Fix header file inclusion for type uid_t.Ashish Sharma2011-08-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I401fc0b41b4b77114fce7240662c9dfe4509e841
| | | | | * | Add communication support for xt_qtaguid(network traffic accounting) kernel ↵Ashish Sharma2011-08-103-1/+82
| | | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | module. Change-Id: Ie0fb5b593987c53ee6f906fe6e0caab5a581d5a1
* | | | | | Merge "libnl_2: Update README"Dmitry Shmidt2011-08-121-2/+6
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | libnl_2: Update READMEDmitry Shmidt2011-08-121-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I8501dc01782fa2cfeabb9d27b9c48caa50b74f37 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* | | | | | another attempt at fixing the SDK build.Mathias Agopian2011-08-111-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I2b96cf7d046b694b232f0699257e4e0608fda660
* | | | | | really fix the SDK build and fix THE buildMathias Agopian2011-08-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I994cccf01bcafedc9ea11648eafc20300c58878b
* | | | | | Merge "attempt to fix SDK build."Mathias Agopian2011-08-111-0/+2
|\ \ \ \ \ \
| * | | | | | attempt to fix SDK build.Mathias Agopian2011-08-111-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | missing cdefs.h include Change-Id: Ic7dfdfe74976a459f166a7576b077965cd1fda6a
* | | | | | | Merge "libnl_2: Fix nested attribute setting"Dmitry Shmidt2011-08-114-75/+64
|\ \ \ \ \ \ \ | |/ / / / / / |/| / / / / / | |/ / / / /
| * | | | | libnl_2: Fix nested attribute settingDmitry Shmidt2011-08-104-75/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I9dbf72a25e8a939ab6aa35eaf4adbf86d9ed97a1 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>