File tree Expand file tree Collapse file tree
app/src/main/java/org/efidroid/efidroidmanager Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -202,18 +202,15 @@ public void commandOutput(int id, String line) {
202202 public static List <String > getBlockDevices () throws Exception {
203203 final ArrayList <String > devices = new ArrayList <>();
204204
205- String deviceWildcard = "/dev/block/*" ;
206- if (isDirectory ("/multiboot" )) {
207- deviceWildcard = "/multiboot/dev/block/*" ;
208- }
209-
205+ String deviceWildcard = "/multiboot/dev/block/* /dev/block/*" ;
210206 final Command command = new Command (0 , false , "busybox blkid -c /dev/null " +deviceWildcard )
211207 {
212208 @ Override
213209 public void commandOutput (int id , String line ) {
214210 super .commandOutput (id , line );
215211 String blkDevice = line .split (":" )[0 ];
216- devices .add (blkDevice );
212+ if (blkDevice .startsWith ("/multiboot" ) || devices .indexOf ("/multiboot" +blkDevice )<0 )
213+ devices .add (blkDevice );
217214 }
218215 };
219216
You can’t perform that action at this time.
0 commit comments