summaryrefslogtreecommitdiffstats
path: root/cmds
Commit message (Collapse)AuthorAgeFilesLines
* Merge tag 'android-6.0.1_r72' into HEADJessica Wagantall2016-10-062-3/+10
|\ | | | | | | | | | | | | Android 6.0.1 Release 72 (M4B30X) # gpg: Signature made Tue 04 Oct 2016 09:47:41 AM PDT using DSA key ID 9AB10E78 # gpg: Can't check signature: public key not found
| * ServiceManager: Allow system services running as secondary users to add servicesArve Hjønnevåg2016-08-262-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | This should be reverted when all system services have been cleaned up to not do this. A process looking up a service while running in the background will see the service registered by the active user (assuming the service is registered on every user switch), not the service registered by the user that the process itself belongs to. BUG: 30795333 Change-Id: I1b74d58be38ed358f43c163692f9e704f8f31dbe (cherry picked from commit e6bbe69ba739c8a08837134437aaccfea5f1d943)
| * DO NOT MERGE ServiceManager: Restore basic uid checkArve Hjønnevåg2016-08-261-2/+7
| | | | | | | | | | | | | | | | | | Prevent apps from registering services without relying on selinux checks. Bug: 29431260 Change-Id: I38c6e8bc7f7cba1cbd3568e8fed1ae7ac2054a9b (cherry picked from commit f03ba2c0d878071603d73b7f8e9a4a468364ac27)
* | DO NOT MERGE: dumpstate: execute procrank using suNick Kralevich2016-07-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | procrank is a setuid binary which only exists on userdebug/eng builds. Instead of executing the setuid binary, run the binary using the su command. This eliminates one more setuid binary, and allows the tightening of the SELinux policy. Bug: 18342188 (cherry picked from commit 2b1f88b6ac78e330ff006da6fecf8bc9d976ec67) Bug: 25951005 Change-Id: I90c86f89974b3878273a29277b2a5d5d7c4b81c7
* | dumpstate: add CM version to outputScott Mertz2016-05-261-0/+3
| | | | | | | | Change-Id: Ibd804872d7d32ac1d26efaf30927a2359d2da287
* | Merge tag 'android-6.0.1_r22' of ↵Steve Kondik2016-03-103-24/+17
|\ \ | | | | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/native into cm-13.0 Android 6.0.1 release 22
| * | dumpstate: increase logcat timeout to 40 seconds (DO NOT MERGE)Mark Salyzyn2015-12-181-6/+8
| | | | | | | | | | | | | | | | | | | | | - temporary measure until root issues can be resolved. Bug: 23685592 Change-Id: Ia33f4e3928a457c3dcd730ad2c2c57d13fbf133d
| * | Merge "DO NOT MERGE: add support for new sched tracepoint" into mnc-dr1.5-devMartijn Coenen2015-12-041-0/+1
| |\ \
| | * | DO NOT MERGE: add support for new sched tracepointTim Murray2015-11-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This tracepoint gives systrace the means to display the reason for uninterruptible sleep. bug 23350688 Change-Id: I9ee5b6904c27bcb5bd67c86fda66d45d0a3c0999
| * | | Increase raft timeout to 10min so we get complete logs from older devices.Sharvil Nanavati2015-11-271-1/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Devices like dory get slammed when bugreports are taken and can't compress all the raft logs in the current 5min timeout. Our dogfooders spend their precious time getting us bugreports and then we can't act on them because we have broken raft logs. :( This change bumps up the timeout in the hopes that we can get complete logs from even our slowest devices. Change-Id: I10741a6185b39544f4c0531f0ee74864d74a1aa4
| * | Revert "do not dumpstate raft BUG: 24159112"Jason Parks2015-10-121-2/+1
| | | | | | | | | | | | | | | | | | This reverts commit 05c862252d5021f55a69281473c67d76e7097422. Change-Id: Ib5984796734d2a0e33f47e0fb4e446b787e0d14f
| * | do not dumpstate raftErik Wolsheimer2015-10-021-1/+2
| | | | | | | | | | | | | | | | | | BUG: 24159112 Change-Id: I344aa73808992b5f84cb0536201a3ab2eb6f2b3c
| * | Installd: Fully decouple pre- and post-bootcomplete propertiesAndreas Gampe2015-09-281-18/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do not fall back to dalvik.vm.dex2oat-threads if dalvik.vm.boot-dex2oat-threads is not set. Also do not ever use the value of dalvik.vm.image-dex2oat-threads. Instead use the default behavior of dex2oat in that situation. (cherry picked from commit 919461cbeef3e9f35388fc099a5fcdae1cb79cc6) Bug: 24413760 Change-Id: I42e60996341414b95b8df2d243d5e07f7f5ff9b6
| * | am 72ebebed: Installd: Take boot status as dexopt parameterAndreas Gampe2015-09-223-16/+7
| |\ \ | | |/ | | | | | | | | | * commit '72ebebed876a62e719b098e43d9d516361bde029': Installd: Take boot status as dexopt parameter
| * | am d693fc4c: Merge "Installd: Allow different behavior before bootcomplete" ↵Andreas Gampe2015-09-161-12/+43
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | into mnc-dr-dev * commit 'd693fc4c50873485794d1e0f444547d3253a56d3': Installd: Allow different behavior before bootcomplete
| * \ \ am 6afc38c4: Dump the ND offload status and address table in bugreports.Lorenzo Colitti2015-09-151-13/+15
| |\ \ \ | | | | | | | | | | | | | | | | | | | | * commit '6afc38c45af45eb8f64793bca2903b3f4c55579b': Dump the ND offload status and address table in bugreports.
| * \ \ \ am 624408ee: Merge "Map realtime to clock_monotonic." into mnc-dr-devMartijn Coenen2015-09-071-3/+21
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | * commit '624408eecb0d278cb1de1bb088699e25b319d15e': Map realtime to clock_monotonic.
| * \ \ \ \ resolved conflicts for merge of d213f5e7 to cw-e-devMark Salyzyn2015-08-111-0/+2
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | Change-Id: Iaea0fdd483b4d0988df442f9b291b99943009829
| * | | | | | Dump raft logs in bugreports if they exist.Sharvil Nanavati2015-07-241-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I7773b8b86675d9ebf3f6d158eaaa11e47619800e
* | | | | | | Themes: Reference app resource when compiling theme [1/2]d34d2016-01-203-29/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows us to pass in the path to the target apk as an additional included resource apk, allowing theme designers to reference styles and attributes from the original package without needing to duplicate them. Duplicating attributes never worked quite well, and causes all sorts of issues, including crashing apps. Instead of a theme declaring attributes, that are app specific, it simply reference the originals. This way things like colors that are style specific get included correctly. Here's an example of stat_sys_wifi_signal_4_fully.xml using this feature. By using ?com.android.systemui:attr/ we are able to reference attributes defined in SystemUI directly in our themed resource. <vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="17.25dp" android:height="18dp" android:viewportWidth="46.0" android:viewportHeight="48.0"> <path android:fillColor="?com.android.systemui:attr/backgroundColor" android:pathData="M20.4,18.0"/> <path android:fillColor="?com.android.systemui:attr/fillColor" android:pathData="M42.0,32.0l0.0,-4.0L26.0,18.0L26.0,7.0c0.0,-1.7 -1.3,-3.0 -3.0, -3.0c-1.7,0.0 -3.0,1.3 -3.0,3.0l0.0,11.0L4.0,28.0l0.0,4.0l16.0,-5.0l0.0,11.0l-4.0, 3.0l0.0,3.0l7.0,-2.0l7.0,2.0l0.0,-3.0l-4.0,-3.0L26.0,27.0L42.0,32.0z"/> </vector> Change-Id: Ic00b5d91fc651a29a8c3ab341e5494107acd0463 TICKET: CYNGNOS-1645
* | | | | | | installd: Consider bundled app dir as a valid apk pathSteve Kondik2015-11-074-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I92db56f21bf91e0816b63faffcfbb270ca2d8fca
* | | | | | | Merge tag 'android-6.0.0_r26' into HEADRicardo Cerqueira2015-11-055-33/+75
|\ \ \ \ \ \ \ | | |_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Android 6.0.0 release 26 Conflicts: include/android/input.h Change-Id: Ifa374c6d3055be3b8a5d60967f8b4c0043da739b
| * | | | | | Installd: Take boot status as dexopt parameterAndreas Gampe2015-09-213-16/+7
| | |_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Expect the boot status explicitly as a parameter so that we do not have to rely on dev.bootcomplete, which isn't meaningfully set when the device needs the decryption screen on boot. Bug: 23898216 Change-Id: I9b34298caf70b1e5d40970cc0d04c469016a80a7
| * | | | | Merge "Installd: Allow different behavior before bootcomplete" into mnc-dr-devAndreas Gampe2015-09-161-12/+43
| |\ \ \ \ \ | | |_|_|_|/ | |/| | | |
| | * | | | Installd: Allow different behavior before bootcompleteAndreas Gampe2015-09-161-12/+43
| | | |_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Check dev.bootcomplete in dex2oat(). Use the information for two changes. Only switch to the background when we're post bootcomplete. This will ensure better utilization after upgrades. Add a second dex2oat-threads property that is used pre bootcomplete. A separation of these phases allows using less cores when the device is up, freeing up resources for other purposes, e.g., avoid jank. The precedence during boot is the boot property, or the image property if the former doesn't exist, or the default property as a fallback. Bug: 23898216 Bug: 24004256 Change-Id: I5063f3fc4b437cbe88c4e94584e01c1c78eccc4d
| * | | | Dump the ND offload status and address table in bugreports.Lorenzo Colitti2015-09-091-13/+15
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also, move NetworkDiagnostics between the two runs of getting the wifi counters, so we can see the effect on the counters of sending our probe packets. Bug: 23661687 Change-Id: I3f81c003a35f50ac1cb8e77d0a8c73dae4fd91f3
| * | | Map realtime to clock_monotonic.Martijn Coenen2015-08-311-3/+21
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This maps a monotonic timestamp to the corresponding real-time timestamp, which can be used to match up the traces with other logs that use real-time. Also write clock_sync records first instead of at the end, to avoid not being to write it due to the buffer being full. Bug: 23668823 Change-Id: I644aeea496197e194ec30f808f754e3e043d905f
* | | installd: Run all of the appt setup operations in the child processRicardo Cerqueira2015-10-301-22/+22
| | | | | | | | | | | | Change-Id: Ifc18741380d7f922540d04ef622f17edfd87dbdf
* | | installd: Call pipe() before forkingd34d2015-10-281-5/+6
| | | | | | | | | | | | Change-Id: Ideef9387c503a25dadb2afb4e4b394a2e61cd8e9
* | | installd: Use -f (force overwrite) for aaptd34d2015-10-281-0/+2
| | | | | | | | | | | | | | | | | | | | | When re-creating resource apks for themes, aapt will fail if the apk already exists unless we use -f Change-Id: If2c3a634aa3ca061009aa6892530d643f8f67e9f
* | | Themes: Restructure resource cache [2/2]d34d2015-10-263-48/+16
| | | | | | | | | | | | Change-Id: Ib62081e0551e572680b92c0a587bdc7bbee9b62b
* | | Themes: Port to CM13 [2/3]Clark Scheff2015-10-263-22/+208
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Themes: Forward port installd Id: I5c03bdca30d55f252d486ddac0355f41623ba8d5 Themes: Remove legacy theme support Id: I6823a6f2735f07f8e4a25a9c0f6f297577a554ab Access Themed ResTables from compiled theme apk [2/2] Before this patch the ResTable for a theme/app was created and accessed seperate from the compiled APK. Since the compiled APK has its own copy of the resources.arsc, we can just reuse the table in the APK instead Id: Ib7916eba5663db5d077d33fc02623748e8a9f10c Send target sdk version to aapt [2/2] If vector drawables are used in a theme we must have a minSdkVersion of 21 passed to aapt or else aapt will Segfault. Id: Ib5ffa6d12c91d465f3a603e03b09ab03b02715c7 Change-Id: Ie14322b7efb40b270abd3d4ca1b7c5f97bf4b5ca
* | dumpstate: add logcat -b all -SMark Salyzyn2015-08-111-0/+2
|/ | | | | | | | | | | | | | | | | | (cherry pick from commit e3c4df96083231b519dad919fd0ed6624100b368) - For those that are proud to call themselves logspam police - Every time someone declares that something is too chatty, or that they lost their logs because they were declared too chatty and their associated logs were aggresively pruned we generally ask them to report the logger statistics to pinpoint what software product that is the elephant in the room. - Every time we want to spawn a new 'stop being so spammy' bug spawned off a bugreport collected for another purpose, we *wish* we had the logger statistics to help add gravitas to the claim that some piece of software is the top, or near the top, polluter. Bug: 22351810 Change-Id: Ifae33cd21d0ae2917a3b4381502d723725b1701c
* Only restorecon_data once for all users.Jeff Sharkey2015-07-201-4/+4
| | | | | | | | | | restorecon_data already iterates across all found users internally, so we don't need to call it for each UID moved. In fact, this was a bug that caused data for the owner to be relabeled when moving apps back to internal storage. Bug: 21813384 Change-Id: I5ba76d4f30d129365864c8a25b665f344b99a6b4
* Installd: Add a swap override flagAndreas Gampe2015-07-161-7/+36
| | | | | | | | Add dalvik.vm.dex2oat-swap system property to override a default decision. Bug: 20658562 Change-Id: I34368c6e435d1a9ceec20a0bf1c8c6213e527f5e
* Split app move into separate copy/delete steps.Jeff Sharkey2015-07-073-18/+8
| | | | | | | | | | | App movement now has three distinct stages: copying, scanning, and cleanup. Previously, a battery pull late in the move process would end up with packages.xml pointing at the old location which had been torn down. Now, we update packages.xml to point at the new location as the "source of truth" before we start deleting the old location. Bug: 21831336 Change-Id: I62b8916c673265c240e2574ea968cdce5a7a0074
* Fix directory path of codecache.Daichi Hirono2015-06-241-1/+1
| | | | | | | | | Previously installd removed the normal cache directory when delete_code_cache is called. It should delete the code cache directory. BUG=21206499 Change-Id: I5774430e389e22805fa7984b4c83420c3677ca75
* Rename --include-cfi to --generate-debug-info.David Srbecky2015-06-191-4/+4
| | | | | | | | | This follows a change in dex2oat. (cherry picked from commit 741a6ff2e264b96edbca3ac95e720b21c8e39382) Bug: 21924613 Change-Id: I6b2df1668fdd09d82cfe86e6e51360b954b6c8a9
* Installd: Add debug.gencfi to run_dex2oatAndreas Gampe2015-06-191-3/+15
| | | | | | | | | | Add the debug.gencfi system property that forces generation of CFI data. (cherry picked from commit 816243d470bade03c264e67e39590f6852581898) Bug: 21924613 Change-Id: Ida66f8c1567634d05cfdbba1a982be3684e94369
* dumpstate: modify logcat timeout to compensate for storage speedMark Salyzyn2015-06-151-3/+118
| | | | | | | | | | | | (cherry pick from commit f989162bb89dff6387f2021101306a1be6d875f7) Discover the logcat buffer size, divide by the worst storage speed in kb/s, and multiply by ten to estimate the timeout in ms for each named buffer. If that value is less than 20 seconds, then select 20 seconds. Apply this to each logcat request. Bug: 21555259 Change-Id: Id36aebff83cb06e94350e4a84fa266b66a8444fc
* Merge "Remove Bluedroid kernel dump from dumpstate." into mnc-devSharvil Nanavati2015-06-121-1/+0
|\
| * Remove Bluedroid kernel dump from dumpstate.Sharvil Nanavati2015-06-121-1/+0
| | | | | | | | | | | | | | Bluedroid doesn't have much of a kernel component and no devices expose a bluedroid node in debugfs. Change-Id: I5600e88c543a109257d95591704a8f2a7261dfdc
* | Merge "Incorporate network diagnostics during a bugreport" into mnc-devErik Kline2015-06-091-0/+2
|\ \
| * | Incorporate network diagnostics during a bugreportErik Kline2015-06-091-0/+2
| |/ | | | | | | | | Bug: 21449922 Change-Id: I81a3774683c08f5d4ab4ea75bec45d279fb210ec
* | Add an installd command to link filesNarayan Kamath2015-06-094-9/+51
|/ | | | | | | | | | Given a pair of absolute paths {from_path, to_path} , check that they are both valid apk subpaths (eg. /data/app/package/foo) and link(2) to_path to from_path. This is required by staged installs, where we link existing apks and oat files to their staging location. bug: 20889739 Change-Id: I3b5e3b43677af68be59308121a4409caaa6a72f0
* Call selinux_status_open() prior to use of selinux_status_updated().Stephen Smalley2015-06-031-0/+1
| | | | | | | | | | | | The selinux_status_*() interfaces require calling selinux_status_open() first. Since this was not being called by servicemanager, the selinux_status_updated() call was always failing and servicemanager was not reloading service_contexts upon a policy reload. (cherrypicked from commit bea0746b241d15626cf0a56828efc1d4640dbda7) Change-Id: I6ac62e114bbca99c5f0999feb918fcde15009274 Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
* Don't use TEMP_FAILURE_RETRY on close in frameworks/native.Elliott Hughes2015-05-152-2/+2
| | | | | | Bug: http://b/20501816 Change-Id: Id13a62f02243c6c4831e2f47944dc34fa822f5b6 (cherry picked from commit 997abb668b9248c2174c6cf169a0b7c6a02fd2cb)
* Fix async_stopJohn Reck2015-05-151-1/+1
| | | | Change-Id: I68a258cf71cfcd999bbd568ab3c96255c11bec41
* Added Voltage and Current regulator ftrace events to atraceAaron Schulman2015-05-071-0/+3
| | | | | | | | | | | | | | | | | | | | Cherry-pick of c2c6ecd1195481f5813a721a7d20a73c0795c135 from AOSP Tracing the state of the voltage and current regulators enables a developer to attribute power consumption measurements to specific perhipherals and cores. Unlike other indirect methods of tracing when peripherals and cores are toggled, the regulator ftrace event indicates the exact point in time when the kernel switches on or off the device. For example, in the following trace, a developer can see exactly when the krait2 core starts receiving power, and and when the voltage is set for voltage scaling. mpdecision-2172 [000] ...1 1566.665481: regulator_enable: name=krait2 mpdecision-2172 [000] ...1 1566.665493: regulator_enable_delay: name=krait2 mpdecision-2172 [000] ...1 1566.665495: regulator_enable_complete: name=krait2 <...>-4133 [002] ...1 1566.666891: regulator_set_voltage: name=krait2 (1075000-1100000) Change-Id: Ia322206ef74496daf1d9baa03545d8e89e398487 Signed-off-by: Aaron Schulman <aschulman@google.com>
* dumpstate: report per-partition MMC performanceMark Salyzyn2015-05-013-1/+141
| | | | | | (Cherry pick from commit 540e3de99fa1baa5eaf3eb3d49f4e98fd9f5bd91) Change-Id: If5cabe186d8377056effa1c0672a90e277cd7221