pm list packages
pm list pacakges | grep com.abc
adb shell dumpsys deviceidle whitelist -<package_name>
List<String> fetchItemToDisplay(List<List<String>> items, int sortParameter, int sortOrder, int itemsPerPage, int pageNumber) { | |
List<String> output = new ArrayList<>(); | |
Collections.sort(items, (a, b) -> { | |
if (sortOrder == 0) { | |
return sortParameter != 0 ? | |
Integer.parseInt(a.get(sortParameter)) - Integer.parseInt(b.get(sortParameter)) : | |
a.get(sortParameter).compareTo(b.get(sortParameter)); | |
} else { | |
return sortParameter != 0 ? | |
Integer.parseInt(b.get(sortParameter)) - Integer.parseInt(a.get(sortParameter)) : |
#!/usr/bin/env bash | |
echo " | |
---------------------- | |
NODE & NPM | |
---------------------- | |
" | |
# add nodejs 18 ppa (personal package archive) from nodesource | |
curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash - |