Commit Graph

120 Commits

Author SHA1 Message Date
Jeff Sharkey
caf15613c2 Enforce READ_EXTERNAL in Developer Options.
Move from Storage to Developer Options, and add interstitial dialog
with more details.

Bug: 6461446
Change-Id: I6d3d8fdc61a3e920ed58ab4d726949ac3c31feab
2012-05-14 20:53:11 -07:00
Amith Yamasani
3fd8051a89 Don't let monkeys launch storage management activities.
Guard against monkeys in two places where intents to other activities are
launched.

Bug: 5415988
Change-Id: Ia3c5514c02423f7b249f655296bb02e279789dfd
2012-04-23 13:46:10 -07:00
Jeff Sharkey
44dda2d7f5 Use statfs() in IMediaContainerService.
Since Settings runs in system UID, it needs to export statfs()
operations to IMediaContainerService.

Bug: 6346248
Change-Id: I5801948211f0e55040da4850e3dd55b93f80798f
2012-04-22 18:58:34 -07:00
Jeff Sharkey
78a534af1b Handle READ_EXTERNAL enforced by default.
Bug: 6131916
Change-Id: Icbdaf6c7febfb8f93992a1f32732d104c8c1848c
2012-04-12 23:27:59 -07:00
Jeff Sharkey
11d3012c78 Enforcement control for READ_EXTERNAL permission.
Surface enforcement controls for READ_EXTERNAL_STORAGE permission
using new PackageManager API.

Bug: 6131916
Change-Id: I0ece4742666fda58e41410cb4b0b7175f280fa31
2012-03-19 17:23:01 -07:00
Robert Greenwalt
e37f427cbb Use the framework rather than RIL constants
bug:5717664
Change-Id: I07f8fe3a874aff775e4be8513cd020bf9d090b6a
2012-02-17 15:25:14 -08:00
tk.mun
7c5c16565e Wimax : 4G settings menu and 4G MAC address.
1. Show the 4G menu.
2. Show the 4G MAC address
3. Execute 4G setting apk.

Change-Id: I14adc4775d35afe3398ddba4fd91c739011a06fa
Signed-off-by: tk.mun <tk.mun@samsung.com>
bug:5486930
2011-11-07 17:16:18 -08:00
Chih-Chung Chang
e790a067cb am 0bcd8a95: Fix 5352588: Accept view intent without URI.
* commit '0bcd8a95a96566d9e2c97c3305ee0dccf758ca7a':
  Fix 5352588: Accept view intent without URI.
2011-10-19 03:33:46 -07:00
Chih-Chung Chang
0bcd8a95a9 Fix 5352588: Accept view intent without URI.
Change-Id: Ibfcf32a7d27c3ac2d3fa3695e430b3e29f3ecd20
2011-10-19 11:07:19 +08:00
Amith Yamasani
6822b749bb Show IP address of current active link instead of just the WiFi IP address.
Bug: 5359194

Show "Unavailable" only if there's no active link.

Change-Id: I82ba6bda3a08ea84080a8d8cda331f22d7c7a2bd
2011-10-17 16:55:54 -07:00
Amith Yamasani
df5ab21d21 am ae69755a: Disable USB connection type when monkeys are running.
* commit 'ae69755aa874dbac77e9874d9716ab891a144193':
  Disable USB connection type when monkeys are running.
2011-09-27 13:10:47 -07:00
Amith Yamasani
ae69755aa8 Disable USB connection type when monkeys are running.
Bug: 5375336

Also use the correct API for testing if monkeys are running.
(ActivityManager.isUserAMonkey())

Bug: 5375910
Change-Id: I2bf8e061ee5977d521de197d3a92095c1a98218d
2011-09-27 11:33:17 -07:00
Mike Lockwood
ed9d461818 Fix race condition in MTP/PTP checkbox updating
UsbManager.getDefaultFunction() might not return the updated state immediately
after changing the USB configuration, so do not rely on it for updating
after a checkbox has been clicked.

Change-Id: I5ae8d46854f24403cda2c62e006c742dcd257d1d
Bug: 5334777

Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-09-18 17:52:54 -04:00
Ben Komalo
2a32192329 Force storage wipe if not removable and encrypted
Bug: 5017638
Change-Id: I43c98359eff7202437249675060ba964e1bd085c
2011-09-09 12:40:38 -07:00
Robert Greenwalt
8af88fb838 Use the new isNetworkSupported api for wifi-only
Didn't have an API for this before so people used a hacked system property (ro.carrier)
to determine if the device supported mobile data.  Added new API and switching callsites.

bug:5087537
Change-Id: Ibd799559be102a9e2fd552d1a23d1afbcf8f4614
2011-08-31 16:45:39 -07:00
Gilles Debunne
cba7d938bb Format volume option restored
It was removed independently of the state.
As a result an "Erase USB Storage" option is now available on the Nexus S.
I guess this is WAI.

Change-Id: I8765808924085c10ebf213da7f825db70017d0aa
2011-08-08 14:14:40 -07:00
Christopher Tate
c9026c9edb Always put 'USB COMPUTER CONNECTION' into the overflow menu
Bug 5011831

Change-Id: I93d24a16508cfcc9f81b8bd3ad43cfffe52db1d5
2011-08-02 16:24:35 -07:00
Mike Lockwood
688605ec02 USB: Fix problem updating status of MTP/PTP checkboxes
Change-Id: Idc12e8cce2cde6aca71e05943e2f2d9a0becce6c
Bug: 5108883

Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-08-02 12:56:56 -04:00
Mike Lockwood
37481d731a USB Settings: Remove AFT installer CD; add help text to MTP and PTP widget summary
Bug: 4335199

Change-Id: I5f2a5d650a184b528028596e03e01ea98bf3815f

Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-08-01 09:53:37 -04:00
Amith Yamasani
a4379d6b38 Use a different wallpaper fragment title from the preference item.
Change wallpaper list ordering to alphabetic.
Display battery level and charging status in Battery settings.

Change-Id: I8ead0fb0f018c79ed258bd1c1ca3f8ecaf32da83
2011-07-25 14:09:57 -07:00
Mike Lockwood
23a006236b USB: Add dialog with instructions for installing AFT
Bug: 5032807

Change-Id: Ic7737629c6081a3d6192e060da525fcc4c494919
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-07-20 11:55:34 -07:00
Mike Lockwood
6d11dc5c8c USB: Toggle installer CD menu title when installer CD is enabled/disabled
Bug: 5032789

Change-Id: I0710133b2318147c7556e9f970f4443511ee1729
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-07-18 15:58:46 -07:00
John Wang
53c8c1b8e7 am 25bd33e1: am d7b2dccb: Display IMEI and ICCID for LTE device.
* commit '25bd33e1cfb753ff0a118e6c84f6e23163713b69':
  Display IMEI and ICCID for LTE device.
2011-07-14 10:53:03 -07:00
John Wang
25bd33e1cf am d7b2dccb: Display IMEI and ICCID for LTE device.
* commit 'd7b2dccbe60a02965186d28f0b671ef1c419a2a8':
  Display IMEI and ICCID for LTE device.
2011-07-13 10:54:17 -07:00
John Wang
d7b2dccbe6 Display IMEI and ICCID for LTE device.
Display IMEI nad ICCID in About tablet / Status for LTE devices.

bug:4983512
bug:5001888
Change-Id: I4c418b159b49bef96acd5ef300c9b71379821d1b
2011-07-13 10:25:29 -07:00
Gilles Debunne
b7609ff999 Storage correctly updates internal storage graph.
The estimated used size used to be displayed next to the actual applications' size.

Change-Id: I9a9bf1faf638f8495507930e531ca4c851558f26
2011-07-08 16:07:33 -07:00
Mike Lockwood
02900a12b1 Super rough implementation of new USB settings
There does not seem to be a way to implement radio buttons in a settings screen,
so I am using check boxes as a temporary hack.

Change-Id: I2d2c7931f689ff04608662b64aafc4862cfef48e
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-07-06 10:56:13 -04:00
Amith Yamasani
2d9357f6d0 Fix a crash on certain devices in Storage settings.
Bug: 4980974
Change-Id: If4b89f9cb1813c30ced6d7093381a01a5aa00346
2011-06-30 11:08:41 -07:00
Dianne Hackborn
bd9ddab4f4 Fix up storage UI for old USB storage.
- In the storage overview, if storage is not emulated then we have a
new first section showing internal storage.
- In manage applications, we know show storage use on the SD card
separately from internal storage use.

Change-Id: I7eb993f59fdb5de5f5dcfe4a3bc2b95ae30d754a
2011-06-29 15:41:28 -07:00
Mike Lockwood
6fc9c2fd37 am c938a02b: am c1db1192: am d2a6f28f: Disable option to format SD card for secondary external storage
* commit 'c938a02bc69434840340dcebb8ac16b6dcfb8b60':
  Disable option to format SD card for secondary external storage
2011-06-13 04:46:53 -07:00
Mike Lockwood
c938a02bc6 am c1db1192: am d2a6f28f: Disable option to format SD card for secondary external storage
* commit 'c1db119250fd481341c095f47a62adb14ad09484':
  Disable option to format SD card for secondary external storage
2011-06-13 04:36:26 -07:00
Mike Lockwood
d2a6f28fa7 Disable option to format SD card for secondary external storage
This is a temporary workaround for an interoperability problem with MTP

Change-Id: Iaf63ea0ac76e12ffd635765785da027cab0fcb9a
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-06-11 18:11:03 -04:00
Gilles Debunne
94129ad9a2 am 62634b30: am 440ca974: am 8f1bd8a7: Bug 4539424: confirmation dialog always shown
* commit '62634b309ab6c352a37c4d79d50fc78ab806304f':
  Bug 4539424: confirmation dialog always shown
2011-06-07 17:17:56 -07:00
Marco Nelissen
adcbf72c80 am 079e30cd: resolved conflicts for merge of 531bed61 to honeycomb-plus-aosp
* commit '079e30cd2a09388ba9ad2149a66de86be4f3a7ac':
  Allow alternate string to be used for min_number
2011-06-07 11:15:26 -07:00
Gilles Debunne
19a5d81ed4 am cfe26919: am 533b7b53: am 90599cdf: Merge "Used space visible in SD Card bar graph" into honeycomb-mr2
* commit 'cfe26919abcd3c466f40b437d084311bf025d449':
  Used space visible in SD Card bar graph
2011-06-07 11:14:41 -07:00
Gilles Debunne
986897e770 am b7e7a8cb: am 2a9dfc5c: am 99da1a22: Always show unmount confirmation dialog
* commit 'b7e7a8cb9cfa8b6fb7cd6b6d10913a00c45967f9':
  Always show unmount confirmation dialog
2011-06-07 11:14:31 -07:00
Gilles Debunne
62634b309a am 440ca974: am 8f1bd8a7: Bug 4539424: confirmation dialog always shown
* commit '440ca97483553d2656b90001beabe76d38773544':
  Bug 4539424: confirmation dialog always shown
2011-06-06 18:18:31 -07:00
Marco Nelissen
079e30cd2a resolved conflicts for merge of 531bed61 to honeycomb-plus-aosp
Change-Id: I28154c6feb563712eeda3e1176d62c7d2a28eff8
2011-06-06 16:29:34 -07:00
Gilles Debunne
8f1bd8a752 Bug 4539424: confirmation dialog always shown
Change-Id: Id1e2a52a07255e2c98cbd0e8151a82d7a2612517
2011-06-06 15:48:08 -07:00
Gilles Debunne
90599cdfe8 Merge "Used space visible in SD Card bar graph" into honeycomb-mr2 2011-06-06 15:16:05 -07:00
Gilles Debunne
99da1a22a3 Always show unmount confirmation dialog
Somehow related to bug 4534261

Change-Id: I2a64406ced4a2c231114d7bb949b84c59199fd82
2011-06-03 14:47:13 -07:00
Gilles Debunne
4f734d9d59 Used space visible in SD Card bar graph
Bug 4544470

Change-Id: Iccae9bb568f1f7baf81c702f29f7a9e238d39d2b
2011-06-03 14:30:39 -07:00
Gilles Debunne
8d055f3270 am b667422c: am 41a99004: am 53872769: Merge "Erase SD Card fixed in Settings/Storage." into honeycomb-mr2
* commit 'b667422cfdaf73d693bf79ce6186e082b68862b8':
  Erase SD Card fixed in Settings/Storage.
2011-06-02 15:07:51 -07:00
Gilles Debunne
6789b56c23 Bug 4505185: fix NPE when file list is empty
Change-Id: Ia120f92f2d907cdfccde5824179ef2e1f0c0d6a6
2011-05-31 17:32:44 -07:00
Gilles Debunne
6d36fd3a03 Erase SD Card fixed in Settings/Storage.
Adding the StorageVolume to the format intent.

Change-Id: If1a50a2d5c5154e9f00116db536c62324c447e7c
2011-05-26 15:00:17 -07:00
sy310.choi
95364e4af3 Allow alternate string to be used for min_number
"MSID" can be shown instead of "MIN" if config_msid_enable
is set to true.

Change-Id: I6d072a5db9a5b46b17a57257221e109ba9a86698
2011-05-26 10:45:07 -07:00
Gilles Debunne
d7928912d4 resolved conflicts for merge of b593a628 to master
Change-Id: Icf8a913e8780bb7d998cc9f4d0ed91ed66348dc6
2011-05-26 10:35:38 -07:00
Gilles Debunne
104ea2873d Storage stats on external SD card in Settings.
Storage categories are dynamically created from list of StorageVolumes instead
of a static XML.

Unknown files' sizes are part of Misc rather than Apps.

Categories with a size of 0 are removed.

TODO : remove the notion of a "nosdcard" product. Change strings accordingly.
See all TODO in code

Change-Id: I017ac20f5fa50ad9bdeba8e666754ec84acf3858
2011-05-25 12:12:22 -07:00
Gilles Debunne
5162a23b21 Refactoring in memory storage stats
Removed hard coded NUM_MEDIA_DIRS_TRACKED - 1 in loops and used actual
constants instead to make it less brittle if we add more categories.

Change-Id: I51ce9e7faca1ee55cf369eedf9422628b9501e13
2011-05-13 14:23:52 -07:00
Gilles Debunne
783be0a24f Fixes in UsageBarPreference
The widget layout that was used resulted in a clipped usage bar.
It also had a 6dip left offset inherited from the default layout
which adds margin after the text (even if the text is empty here).
Used a custom layout for the whole preference to fix this issue.

Other fixes in the drawing code to prevent accumulative rounding
issues.

Change-Id: Ief9bf85260345355615c9670624d86f0893eb2d2
2011-05-06 14:12:15 -07:00