summaryrefslogtreecommitdiffstats
path: root/packages/Shell/src
Commit message (Collapse)AuthorAgeFilesLines
* Set last modified timestamp for the bugreport entry in the zipped file from ↵Felipe Leme2015-07-131-0/+1
| | | | | | | original file, otherwise it uses the date the zip was created. BUG: 20447313 Change-Id: Iecbaf3ce2f0e3d82ac31a6c7bfbd8fb3037de5e4
* Merge "Renaming bugreport.txt to bugreportFile.getName()" into mnc-devIan Pedowitz2015-06-221-1/+1
|\
| * Renaming bugreport.txt to bugreportFile.getName()Ian Pedowitz2015-06-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | Many times to file a bug, its necessary to take several bugreports and attach them all to the same bug. With the current implementation, all extracted files are bugreport.txt which makes it difficult to attach several bugreports to the same bug, and reference them throughout the bug uniquely. Bug: 20447313 Change-Id: I22d2286d06c8dfb82273b5b98c48b21f77941b15
* | resolved conflicts for merge of 1dac6bd9 to mnc-devWei Liu2015-06-181-12/+27
|\ \ | |/ |/| | | Change-Id: I000b35f5e2658a065c780396254bcb88f1cbce5e
| * Wear doesn't need Shell to send notification when bugreport captured.Wei Liu2015-06-171-12/+27
| | | | | | | | | | | | b/19179040 Change-Id: Iec74e1e55adee16c8674f28a6e7d697499b85acf
* | Improved zipping logic so it zips chunks, instead of the whole file at once, ↵Felipe Leme2015-06-161-23/+5
| | | | | | | | | | | | | | to avoid OOM. BUG: 20447313 Change-Id: I66f90cdd2a07288f9e37a38185f1583c57cf65c8
* | Changed BugReportReceiver to send zipped bugreports.Felipe Leme2015-06-161-22/+118
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When BugReporterReceiver receives a android.permission.DUMP, it will handle the bugreport file (extra android.intent.extra.BUGREPORT) depending on its format: - If it's a plain-text file (extension .txt), it will create a zip file with the plain-text report renamed as bugreport.txt. - If there is an error creating the zip file, the plain-text bugreport will be sent instead. - If it's not a plain-text file, it fill send the file as is (so if 'dumpstate' is later changed to generate a zipped file directly, nothing has to be done here). Note that only the bugreport itself is included in the zip file, the screenshot is still sent separately (extra android.intent.extra.SCREENSHOT), so the receiver of the bugreport intent can display a screenshot thumbnail without unzipping the other file (which is useful when sending the bugreport through GMail, for example). BUG: 20447313 BUG: 21868658 Change-Id: I3fa1e0c89190bfe6fa5c418f0f01ce1fb376f537
* | Add BugreportStorageProviderRyo Hashimoto2015-03-231-0/+164
| | | | | | | | | | | | | | BugreportStorageProvider provides storage backend for bugreports. BUG:18070208 Change-Id: I8506dd90d69907090295d99df7427fc747b83698
* | Replace usages of deprecated Resources.getColor() and getColorStateList()Alan Viverette2015-03-181-1/+1
|/ | | | Change-Id: I8f64fe6c4c44a92ff6d07250223ba590a1d691b0
* Hide bug report notification in Android Framework from watches.Wei Liu2014-10-061-0/+1
| | | | | Bug: 17806348 Change-Id: I1a90a9bc68d8ef4ff540dbbd9e4af4bfed8a61ae
* Added notification color to all system notificationsSelim Cinek2014-08-201-8/+11
| | | | | Bug: 17128331 Change-Id: I81a94510ef51b99916f314c0dd65852426a1fbeb
* Show notification ticker for finished bugreports.Jeff Sharkey2013-03-201-0/+1
| | | | Change-Id: I7d326b0da83c3ae334739cdb8cb4ca18f948c50f
* Move deleteOlderFiles() to framework, tests.Jeff Sharkey2013-03-141-30/+12
| | | | | | | | Supports both age and count based constraints. Added light docs and tests to verify behavior. Bug: 8387555 Change-Id: If4d0dac8bc54ce705c2a339bc09a60ea748728b8
* Handle finished bugreports, share from private.Jeff Sharkey2013-03-133-0/+320
Show notification when a bugreport is finished, letting the user launch a SEND_MULTIPLE intent to share them. Add dialog that warns user about contents before sharing. Since bugreports are now stored in private app data of the Shell app, use FileProvider to build Uris that we can grant others access to. Define BUGREPORT_FINISHED as being a protected broadcast. Delete older bugreports automatically to reclaim disk space. Migrate any Intent extras to ClipData when building PendingIntents. Add --receiver-permission support to am shell command. Bug: 7005318 Change-Id: If6c607dbcf137362d5887eac482ff7391563890f