SmartPack / PackageManager

Source code of Package Manager, an Application to Manage your Apps.
https://smartpack.github.io/PackageManager/
GNU General Public License v3.0
448 stars 59 forks source link

Feature Request: Batch File TXT Export List #48

Closed deliveryman9 closed 3 years ago

deliveryman9 commented 3 years ago

Would like to request a pretty straight forward feature.

Since adb is able to remove system packages. It would be nice and helpful to a handful if under the "batch options" there was an option to export a txt list of the package ids.

From there it would be extremely easy to bulk disable or uninstall packages with some search and replace on a text editor then push through adb.

sunilpaulmathew commented 3 years ago

@bd94 I've actually implemented a feature (source not updated yet), which exports a significant amount of details (including Package Name) as a json file. Do you think it will satisfy this issue? Screenshot_1631212752 Here is an example json

{
  "applications": [
    {
      "Name": "Magisk Manager",
      "Package Name": "com.topjohnwu.magisk",
      "Version": "7.5.1",
      "Google Play": "https://play.google.com/store/apps/details?id=com.topjohnwu.magisk",
      "App Bundle": false,
      "APK Size": "2.1 MB",
      "Installed": "Sep 7, 2021 12:02:45 AM",
      "Last updated": "Sep 7, 2021 12:02:45 AM",
      "Permissions": {
        "Granted": [
          "android.permission.INTERNET",
          "android.permission.VIBRATE",
          "android.permission.FOREGROUND_SERVICE",
          "android.permission.ACCESS_NETWORK_STATE",
          "android.permission.USE_BIOMETRIC",
          "android.permission.USE_FINGERPRINT",
          "android.permission.WAKE_LOCK",
          "android.permission.RECEIVE_BOOT_COMPLETED"
        ],
        "Denied": [
          "android.permission.REQUEST_INSTALL_PACKAGES",
          "android.permission.WRITE_EXTERNAL_STORAGE",
          "android.permission.READ_EXTERNAL_STORAGE",
          "android.permission.ACCESS_MEDIA_LOCATION"
        ]
      }
    },
    {
      "Name": "eRouška",
      "Package Name": "cz.covid19cz.erouska",
      "Version": "2.3.757",
      "Google Play": "https://play.google.com/store/apps/details?id=cz.covid19cz.erouska",
      "App Bundle": true,
      "Bundle Size": "4.3 MB",
      "Split APKs": [
        "base.apk",
        "split_config.xxhdpi.apk"
      ],
      "Installed": "Sep 8, 2021 8:41:51 PM",
      "Last updated": "Sep 9, 2021 8:31:31 PM",
      "Permissions": {
        "Granted": [
          "android.permission.INTERNET",
          "android.permission.BLUETOOTH",
          "android.permission.ACCESS_NETWORK_STATE",
          "android.permission.WAKE_LOCK",
          "android.permission.RECEIVE_BOOT_COMPLETED",
          "android.permission.FOREGROUND_SERVICE",
          "com.google.android.c2dm.permission.RECEIVE"
        ],
        "Denied": [
          "com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE"
        ]
      }
    },
    {
      "Name": "Package Manager",
      "Package Name": "com.smartpack.packagemanager",
      "Version": "v5.1",
      "Google Play": "https://play.google.com/store/apps/details?id=com.smartpack.packagemanager",
      "App Bundle": false,
      "APK Size": "3.2 MB",
      "Installed": "Aug 29, 2021 6:11:21 PM",
      "Last updated": "Sep 9, 2021 8:26:31 PM",
      "Permissions": {
        "Granted": [
          "android.permission.ACCESS_NETWORK_STATE",
          "android.permission.REQUEST_DELETE_PACKAGES",
          "android.permission.QUERY_ALL_PACKAGES"
        ],
        "Denied": [
          "android.permission.ACCESS_SUPERUSER",
          "android.permission.MANAGE_EXTERNAL_STORAGE",
          "android.permission.REQUEST_INSTALL_PACKAGES",
          "android.permission.WRITE_EXTERNAL_STORAGE",
          "com.android.vending.BILLING",
          "android.permission.READ_EXTERNAL_STORAGE"
        ]
      }
    }
  ]
}
deliveryman9 commented 3 years ago

That looks pretty awesome. Not too grand with JSONs though.

I did a little test and with cat test.json | grep "Package Name" >> test.txt and got a working filtered result, needs a bit of cleanup, but that would work just fine for myself.

sunilpaulmathew commented 3 years ago

This is addressed in v5.2. So, closing this issue.

Aga-C commented 3 years ago

@sunilpaulmathew Can you add "Export Details" string to POEditor? 🙂

sunilpaulmathew commented 3 years ago

@sunilpaulmathew Can you add "Export Details" string to POEditor? 🙂

Thanks for reminding me about it. I'm getting old and often forgetting things. Anyway, just uploaded it.