This repository was archived by the owner on Jan 5, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -283,17 +283,17 @@ initAppLists() {
283
283
doProgress " Gathering lists of installed apps"
284
284
285
285
doProgress " - userApps" 2
286
- for app in $( adb ${ADBOPTS} shell pm list packages -3) ; do
286
+ for app in $( adb ${ADBOPTS} shell pm list packages -3 2> /dev/null ) ; do
287
287
app=${app// [$'\t\r\n']} # remove trailing CR (^M)
288
288
userApps+=(${app##*: } )
289
289
done
290
290
doProgress " - systemApps" 2
291
- for app in $( adb ${ADBOPTS} shell pm list packages -s) ; do
291
+ for app in $( adb ${ADBOPTS} shell pm list packages -s 2> /dev/null ) ; do
292
292
app=${app// [$'\t\r\n']}
293
293
sysApps+=(${app##*: } )
294
294
done
295
295
doProgress " - checking for uninstalled apps remembered by the system" 2
296
- for app in $( adb ${ADBOPTS} shell pm list packages -u) ; do
296
+ for app in $( adb ${ADBOPTS} shell pm list packages -u 2> /dev/null ) ; do
297
297
app=${app// [$'\t\r\n']}
298
298
in_array " ${app##*: } " ${sysApps[@]} && continue
299
299
in_array " ${app##*: } " ${userApps[@]} && continue
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ getDisabled() {
21
21
echo " # Disabled apps for ${DEVICE_NAME} as of $( date ' +%Y-%m-%d %H:%M' ) " >> " ${scriptname} "
22
22
echo >> " ${scriptname} "
23
23
24
- for app in $( adb ${ADBOPTS} shell " pm list packages -d" ) ; do
24
+ for app in $( adb ${ADBOPTS} shell " pm list packages -d 2>/dev/null " ) ; do
25
25
app=${app// [$'\t\r\n']}
26
26
echo " adb ${ADBOPTS} shell \" pm disable ${app##*: } \" " >> " ${scriptname} "
27
27
done
You can’t perform that action at this time.
0 commit comments