system/vold
Revision | 5bfa444391de8f2fd69e6b41f95a97b0be920bbe (tree) |
---|---|
Time | 2020-12-17 21:50:27 |
Author | youling257 <youling257@gmai...> |
Commiter | Chih-Wei Huang |
vold3: fix SDCARD=xxx function for nvme
@@ -289,6 +289,10 @@ static int process_config(VolumeManager *vm, bool* has_adoptable) { | ||
289 | 289 | // exclude the last 'p' |
290 | 290 | sdcard = sdcard.substr(0, pos - 1); |
291 | 291 | } |
292 | + if (sdcard.find("nvme") != std::string::npos) { | |
293 | + // exclude the last 'p' | |
294 | + sdcard = sdcard.substr(0, pos - 1); | |
295 | + } | |
292 | 296 | } |
293 | 297 | } |
294 | 298 | vm->addDiskSource(std::shared_ptr<VolumeManager::DiskSource>( |