Commit graph

2602 commits

Author SHA1 Message Date
David 'Digit' Turner
1621a6836e am 8af9ac15: am 69c2dcbb: am fbcb1883: run-as: Bump the size of the internal packages list buffer.
* commit '8af9ac15bf2b8d063b3c6842769352daec3442cd':
  run-as: Bump the size of the internal packages list buffer.
2011-06-10 15:19:52 -07:00
David 'Digit' Turner
8af9ac15bf am 69c2dcbb: am fbcb1883: run-as: Bump the size of the internal packages list buffer.
* commit '69c2dcbb0f2672652366e3950dea48ed4483eaa4':
  run-as: Bump the size of the internal packages list buffer.
2011-06-10 08:53:57 -07:00
David 'Digit' Turner
69c2dcbb0f am fbcb1883: run-as: Bump the size of the internal packages list buffer.
* commit 'fbcb1883df3aa913c6a530e933880095173b4624':
  run-as: Bump the size of the internal packages list buffer.
2011-06-10 08:51:35 -07:00
David 'Digit' Turner
fbcb1883df run-as: Bump the size of the internal packages list buffer.
This is a back-port of https://review.source.android.com/#change,23480
into the honeycomb-mr2 internal tree.

This patch increases the size of the internal buffer used by run-as
to store the content of /data/system/packages.list from 8KB to 64KB.

It has been reported that, on some systems, 8KB was too small. This
resulted in a truncated file being loaded, and the inability to debug
native applications properly (either because the application was not
found in the list, or because the tool reported a 'corrupted
installation' due to BAD_FORMAT issues when parsing the truncated
file).

See http://code.google.com/p/android/issues/detail?id=16391

Change-Id: Ie7b171d3deed805a185f14f63ec03b64b2a8e1b3
2011-06-10 17:31:19 +02:00
Mike Lockwood
21a6c1c004 Merge changes I7b4e1ed1,I8a91c3f7,If78d20a5,I55431ac7
* changes:
  init: Add support for assigning system properties to system properties in init.rc
  init: Fix the init.rc import command
  init: Allow wildcards in property triggers by using * for property value
  init: Add support for writing system property value to a file in init.rc
2011-06-09 15:45:49 -07:00
Mike Lockwood
1f0bd32f90 init: Add support for assigning system properties to system properties in init.rc
For example:
    setprop sys.usb.config $persist.sys.usb.config

Change-Id: I7b4e1ed1335906b32621bd96a341b0f94bbee7f5
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-06-09 15:42:54 -07:00
Mike Lockwood
f5cb5b2435 init: Fix the init.rc import command
Change-Id: I8a91c3f7d1ca31e137d9043bb7f56e4a44fb63df
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-06-09 15:42:47 -07:00
Mike Lockwood
7ba61b15ed init: Allow wildcards in property triggers by using * for property value
For example, the following trigger will fire when the sys.foo property
is set to any value:

on property:sys.foo=*
    write /data/foo hello

It is also possible to refer to the property within the trigger actions:

on property:sys.foo=*
    write /data/foo $sys.foo

Change-Id: If78d20a532f77e17aa5703d53be581ad6736cbcf
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-06-09 15:42:42 -07:00
Mike Lockwood
2c4d5dc415 init: Add support for writing system property value to a file in init.rc
The write command will write a property value if the value starts with a "$'

For example:
    write /sys/class/android_usb/iSerial $ro.serialno

Use double leading '$' if you need to write a string that starts with '$':

    write /data/foo $$hello

to write "$hello" to /data/foo

Change-Id: I55431ac7715a5347bb95c3a15aee97c575444dde
2011-06-09 15:42:31 -07:00
Jean-Baptiste Queru
d8222d2b86 Reconcile with gingerbread-release
Change-Id: I01d34fd2c90d381d4095b5217506a4d35034be53
2011-06-09 15:01:39 -07:00
The Android Automerger
838a24ac66 merge in gingerbread-release history after reset to gingerbread 2011-06-09 13:45:12 -07:00
Nick Kralevich
37b9fc6e7c am 4ba5a8ac: am eafcbe10: am 072a0fac: Merge "Fixed adb crash due to accessing freed memory"
* commit '4ba5a8acba033127befd184f2f78cf0580995b07':
  Fixed adb crash due to accessing freed memory
2011-06-09 11:27:11 -07:00
Vladimir Chtchetkine
953907faa3 am 716104b4: am 771f5146: am 4c0b9e3d: Merge "Fix crash reporting on x86 platform."
* commit '716104b40df12d367cb5f649b92c6105d5978787':
  Fix crash reporting on x86 platform.
2011-06-09 11:24:17 -07:00
David 'Digit' Turner
9b5be35770 am fced5e70: am f45cd81b: am 1468cb54: run-as: Bump the size of the internal packages list buffer.
* commit 'fced5e7015aa0cf916dbd6947ad91093332056e3':
  run-as: Bump the size of the internal packages list buffer.
2011-06-09 11:24:14 -07:00
David 'Digit' Turner
b36f136738 am c324ee6a: am 06fcf938: Merge "run-as: Bump the size of the internal packages list buffer."
* commit 'c324ee6a838e4d87362de6af8d741a85efa8dd39':
  run-as: Bump the size of the internal packages list buffer.
2011-06-08 14:56:58 -07:00
Nick Kralevich
4ba5a8acba am eafcbe10: am 072a0fac: Merge "Fixed adb crash due to accessing freed memory"
* commit 'eafcbe109f97e5a687cc944e65c383fa45d71c8f':
  Fixed adb crash due to accessing freed memory
2011-06-07 16:28:09 -07:00
Nick Kralevich
eafcbe109f am 072a0fac: Merge "Fixed adb crash due to accessing freed memory"
* commit '072a0fac3cabd50c2089d987b5abceac35c74570':
  Fixed adb crash due to accessing freed memory
2011-06-07 16:21:09 -07:00
Vladimir Chtchetkine
716104b40d am 771f5146: am 4c0b9e3d: Merge "Fix crash reporting on x86 platform."
* commit '771f5146893aa9bbc451aed78e61b3b18c1bc3b4':
  Fix crash reporting on x86 platform.
2011-06-07 15:56:33 -07:00
David 'Digit' Turner
fced5e7015 am f45cd81b: am 1468cb54: run-as: Bump the size of the internal packages list buffer.
* commit 'f45cd81bc81cbe92fc666f56d2b75f911cdca208':
  run-as: Bump the size of the internal packages list buffer.
2011-06-07 15:56:31 -07:00
Nick Kralevich
072a0fac3c Merge "Fixed adb crash due to accessing freed memory" 2011-06-07 15:45:36 -07:00
Vladimir Chtchetkine
771f514689 am 4c0b9e3d: Merge "Fix crash reporting on x86 platform."
* commit '4c0b9e3dc00640022a0512be909c33f0a51a9816':
  Fix crash reporting on x86 platform.
2011-06-07 14:56:17 -07:00
David 'Digit' Turner
f45cd81bc8 am 1468cb54: run-as: Bump the size of the internal packages list buffer.
* commit '1468cb540f5c257d32bde182ae8f0f522c582d07':
  run-as: Bump the size of the internal packages list buffer.
2011-06-07 13:39:41 -07:00
David 'Digit' Turner
c324ee6a83 am 06fcf938: Merge "run-as: Bump the size of the internal packages list buffer."
* commit '06fcf938feaf02aa3cbf99e1ee08fe8e8335cb1c':
  run-as: Bump the size of the internal packages list buffer.
2011-06-07 13:25:19 -07:00
Vladimir Chtchetkine
4c0b9e3dc0 Merge "Fix crash reporting on x86 platform." 2011-06-07 13:17:31 -07:00
Vladimir Chtchetkine
714d9de60d Fix crash reporting on x86 platform.
Make sure that crash frame gets printed in one line

Change-Id: If097a5a1655b17165b2a3271f0f5ee8ace57686f
2011-06-07 09:24:03 -07:00
David 'Digit' Turner
1468cb540f run-as: Bump the size of the internal packages list buffer.
This is a back-port of https://review.source.android.com/#change,23480
to the gingerbread branch. Fix for b/4546601

This patch increases the size of the internal buffer used by run-as
to store the content of /data/system/packages.list from 8KB to 64KB.

It has been reported that, on some systems, 8KB was too small. This
resulted in a truncated file being loaded, and the inability to debug
native applications properly (either because the application was not
found in the list, or because the tool reported a 'corrupted
installation' due to BAD_FORMAT issues when parsing the truncated
file).

See http://code.google.com/p/android/issues/detail?id=16391

Change-Id: Ie0bfb5847f6fb1c2c0a836aee2347911f78049c1
2011-06-07 10:45:11 +02:00
David 'Digit' Turner
06fcf938fe Merge "run-as: Bump the size of the internal packages list buffer." 2011-06-06 12:35:30 -07:00
David 'Digit' Turner
93d81ef7a1 run-as: Bump the size of the internal packages list buffer.
This patch increases the size of the internal buffer used by run-as
to store the content of /data/system/packages.list from 8KB to 64KB.

It has been reported that, on some systems, 8KB was too small. This
resulted in a truncated file being loaded, and the inability to debug
native applications properly (either because the application was not
found in the list, or because the tool reported a 'corrupted
installation' due to BAD_FORMAT issues when parsing the truncated
file).

See http://code.google.com/p/android/issues/detail?id=16391

Change-Id: I0c35a61b163c4abc6f1a2681adc0ef0d76493171
2011-06-06 12:43:01 +02:00
Tom Marlin
49f1857dd8 Fixed adb crash due to accessing freed memory
Reset peers to NULL after closing them down. This prevents
other code from attempting to access that freed memory
(which prevents crashes). Previously, it left pointers to
freed memory and the "if (s->peer)" guards could not block
the attempt to access that memory later. Resolves many
crashes seen while taking repeated screenshots on WinXP.

Change-Id: I32553f4d19f6ddc9b05b6ab4dc1e9efe69e5be4f
2011-06-03 11:29:17 -05:00
Christopher Tate
c9cd3b9761 Make 'adb backup' -f handling more bulletproof and more flexible
* "adb backup" as the entire command line no longer crashes

* The "-f filename" option can now appear anywhere in the command line.
  A trailing "-f" at EOL prompts an error message and usage summary.

Change-Id: I040ed73c2ca3687e265e35600eb3ab2b3c879695
2011-06-01 17:56:23 -07:00
Ken Sumrall
211ce13432 Merge "Teach the mount command in init to not consider a wiped partition to be encrypted." 2011-05-27 16:13:43 -07:00
Eric Laurent
3142a203b3 Merge "Config utils improvement" 2011-05-27 10:20:00 -07:00
Eric Laurent
38d14f7604 Merge "Added PCM formats to audio.h" 2011-05-27 10:19:43 -07:00
jeffhao
2b8f76cdbb Tracking merge of dalvik-dev to master
Reordered bootclasspath to allow verification of all framework methods.
  git cherry-pick --no-commit  ec164a0170955fe63106c2576a65bc4ffb1df425

Address CVE-2011-1090.
  git cherry-pick --no-commit  3365288d3c00072689cd9d733e055561cadc87b5

Change-Id: I6a89bc600ced06a0cb84ae1670cb7a6ea39de9c8
2011-05-27 00:50:44 -07:00
Ken Sumrall
7bc6e9ebe4 Teach the mount command in init to not consider a wiped partition to be encrypted.
Change-Id: I3e989f0b81ec35084baddc04e014406f4d90ce04
2011-05-26 20:01:39 -07:00
Ken Sumrall
e555f54965 Merge "Crypto changes for devices that don't write ext4 fs on wipe" 2011-05-26 20:01:19 -07:00
Ken Sumrall
b05b0b5d3b Crypto changes for devices that don't write ext4 fs on wipe
This adds a new function to libcutils, partition_wiped().
This is used to determine if a partition is wiped.

Change-Id: Ibb388976c6b5bd3923b62d8f79b2b97748abf6c1
2011-05-26 19:42:32 -07:00
Eric Laurent
c3cf1a8278 Config utils improvement
Added a function to free resources allocated by config node tree.

Change-Id: I2ee8ae642899ec4501fa6e490c5be7efaa2d738e
2011-05-26 13:57:03 -07:00
Eric Laurent
9714b27bb4 Added PCM formats to audio.h
Added formats for 32 bit PCM audio to allow direct use of
common audio formats defined in audio.h by audio effect
API defined in audio_effect.h

Change-Id: I5d58c2db8325ca625ab6d2b10cc0d422ba119ca5
2011-05-26 13:52:47 -07:00
Nick Kralevich
7956d759be Merge "rename uevent_checked_recv to uevent_kernel_multicast_recv" 2011-05-26 10:55:09 -07:00
Robert Greenwalt
b6b48ae47a Revert some of change 109925 to fix connectivity
bug:4476009
Change-Id: I93c492eebe24d9744b8ef79378c73301d167f5a3
2011-05-25 21:22:56 -07:00
tedbo
1ffdb38213 Fix broken comment on closing #endif in window.h
The closing #endif comment is missing the comment delimiters. This
change adds them and fixes a compile warning about extra tokens after
endif.

Change-Id: If8295aa6fbb2b21c2b56fe57a467dcde79c65de3
2011-05-24 00:55:33 -07:00
Joe Bass
2bc503e6a9 am 0efe2f2f: am b27c682e: am f5144d34: Add Gigabyte\'s USB vendor ID to adb.
* commit '0efe2f2f11d79060962f35a3fb4db525d3f12e9e':
  Add Gigabyte's USB vendor ID to adb.
2011-05-21 21:35:49 -07:00
Joe Bass
0efe2f2f11 am b27c682e: am f5144d34: Add Gigabyte\'s USB vendor ID to adb.
* commit 'b27c682e28a01b18f7506a9b35222453058107ad':
  Add Gigabyte's USB vendor ID to adb.
2011-05-20 16:14:13 -07:00
Christopher Tate
5526ee0831 Merge "Add 'adb restore' to parallel 'adb backup'" 2011-05-20 15:36:55 -07:00
Joe Bass
b27c682e28 am f5144d34: Add Gigabyte\'s USB vendor ID to adb.
* commit 'f5144d34fac074b134722b1fdb6149eb11eff420':
  Add Gigabyte's USB vendor ID to adb.
2011-05-20 15:06:56 -07:00
The Android Open Source Project
ac54557b76 Reconcile with gingerbread-release honeycomb-release honeycomb-mr1-release
Change-Id: I673f0a6cc6425eadd0be9ba977be8d499f50ffda
2011-05-20 14:19:44 -07:00
Joe Bass
f5144d34fa Add Gigabyte's USB vendor ID to adb.
Bug #4452872

Change-Id: Ib97548d121d40e96ccc519323a335fc90f3b32b9
2011-05-19 11:40:23 -07:00
Xavier Ducrohet
aff5d7870e am 44c336bf: am 830fc9af: am 30d916c3: Add Funai\'s USB vendor ID to adb.
* commit '44c336bfe9bbd400461b9b28a449a67145eaeeb8':
  Add Funai's USB vendor ID to adb.
2011-05-19 08:57:55 -07:00
Robert Greenwalt
ab86504f58 am 61e33b33: am aded02cb: Merge "Add v4/v6 route add/removal support" into honeycomb-LTE
* commit '61e33b338cbb90c34cb3e07fe55edcc08c6ce3b8':
  Add v4/v6 route add/removal support
2011-05-19 07:21:22 -07:00