Vijay Keswani

40 papers A* 10C 1Journal 21Unranked 8
YearRankTypeTitle / Venue / Authors
2026 A* conf
AAAI
Vijay Keswani, Cyrus Cousins, Breanna K. Nguyen, Vincent Conitzer, Hoda Heidari, Jana Schaich Borg, Walter Sinnott-Armstrong
2025 J jnl
CoRR
Vijay Keswani, Vincent Conitzer, Walter Sinnott-Armstrong, Breanna K. Nguyen, Hoda Heidari, Jana Schaich Borg
2025 A* conf
CHI
Vijay Keswani, Vincent Conitzer, Walter Sinnott-Armstrong, Breanna K. Nguyen, Hoda Heidari, Jana Schaich Borg
2025 J jnl
CoRR
Vijay Keswani, Cyrus Cousins, Breanna K. Nguyen, Vincent Conitzer, Hoda Heidari, Jana Schaich Borg, Walter Sinnott-Armstrong
2025 J jnl
CoRR
Cyrus Cousins, Vijay Keswani, Vincent Conitzer, Hoda Heidari, Jana Schaich Borg, Walter Sinnott-Armstrong
2024 conf
AIES (1)
Vijay Keswani, L. Elisa Celis
2024 A* conf
ICML
Vijay Keswani, Anay Mehrotra, L. Elisa Celis
2024 J jnl
CoRR
Vijay Keswani, Anay Mehrotra, L. Elisa Celis
2024 conf
AIES (1)
Kyle Boerstler, Vijay Keswani, Lok Chan, Jana Schaich Borg, Vincent Conitzer, Hoda Heidari, Walter Sinnott-Armstrong
2024 J jnl
CoRR
Kyle Boerstler, Vijay Keswani, Lok Chan, Jana Schaich Borg, Vincent Conitzer, Hoda Heidari, Walter Sinnott-Armstrong
2024 conf
AIES (1)
Vijay Keswani, Vincent Conitzer, Hoda Heidari, Jana Schaich Borg, Walter Sinnott-Armstrong
2024 J jnl
CoRR
Vijay Keswani, Vincent Conitzer, Hoda Heidari, Jana Schaich Borg, Walter Sinnott-Armstrong
2023 conf
EAAMO
Vijay Keswani, L. Elisa Celis
2023 conf
HHAI
Vijay Keswani, L. Elisa Celis, Krishnaram Kenthapadi, Matthew Lease
2023 J jnl
CoRR
Vijay Keswani, L. Elisa Celis, Krishnaram Kenthapadi, Matthew Lease
2023 conf
HHAI Workshops
Vijay Keswani
2022 A* conf
ICML
Vijay Keswani, Oren Mangoubi, Sushant Sachdeva, Nisheeth K. Vishnoi
2022 J jnl
CoRR
Vijay Keswani, L. Elisa Celis
2022 J jnl
CoRR
Vijay Keswani, Matthew Lease, Krishnaram Kenthapadi
2022 conf
EAAMO
Florian Evéquoz, Johan Rochel, Vijay Keswani, L. Elisa Celis
2022 J jnl
CoRR
Florian Evéquoz, Johan Rochel, Vijay Keswani, L. Elisa Celis
2021 A* conf
KDD
Vijay Keswani, L. Elisa Celis
2021 J jnl
CoRR
Vijay Keswani, L. Elisa Celis
2021 A* conf
WWW
Vijay Keswani, L. Elisa Celis
2021 A* conf
ICML
L. Elisa Celis, Lingxiao Huang, Vijay Keswani, Nisheeth K. Vishnoi
2021 C conf
AIES
Vijay Keswani, Matthew Lease, Krishnaram Kenthapadi
2021 J jnl
CoRR
Vijay Keswani, Matthew Lease, Krishnaram Kenthapadi
2020 A* conf
ICML
L. Elisa Celis, Vijay Keswani, Nisheeth K. Vishnoi
2020 J jnl
CoRR
L. Elisa Celis, Vijay Keswani
2020 J jnl
Proc. ACM Hum. Comput. Interact.
L. Elisa Celis, Vijay Keswani
2019 J jnl
AI Commun.
L. Elisa Celis, Sayash Kapoor, Farnood Salehi, Vijay Keswani, Nisheeth K. Vishnoi
2019 conf
FAT
L. Elisa Celis, Lingxiao Huang, Vijay Keswani, Nisheeth K. Vishnoi
2019 J jnl
CoRR
L. Elisa Celis, Vijay Keswani, Ozan Yildiz, Nisheeth K. Vishnoi
2019 J jnl
CoRR
L. Elisa Celis, Vijay Keswani
2019 J jnl
CoRR
L. Elisa Celis, Vijay Keswani
2018 A* conf
IJCAI
Sayash Kapoor, Vijay Keswani, Nisheeth K. Vishnoi, L. Elisa Celis
2018 J jnl
CoRR
Sayash Kapoor, Vijay Keswani, Nisheeth K. Vishnoi, L. Elisa Celis
2018 J jnl
CoRR
L. Elisa Celis, Lingxiao Huang, Vijay Keswani, Nisheeth K. Vishnoi
2018 A* conf
ICML
L. Elisa Celis, Vijay Keswani, Damian Straszak, Amit Deshpande, Tarun Kathuria, Nisheeth K. Vishnoi
2018 J jnl
CoRR
L. Elisa Celis, Vijay Keswani, Damian Straszak, Amit Deshpande, Tarun Kathuria, Nisheeth K. Vishnoi
redb/extractors/decompiler/apk/library_filter.py
← Index redb/extractors/decompiler/apk/library_filter.py python
"""Package-based library filtering for APK DEX code analysis.

Determines whether a method belongs to a known library/framework package
and should be filtered out of content tables. This is the Android equivalent
of is_lib_or_thunk() in the Binary Ninja pipeline.
"""

import os
from typing import Dict, List


DEFAULT_LIBRARY_PREFIXES = [
    "android.",
    "androidx.",
    "com.google.android.",
    "com.google.firebase.",
    "com.google.gson.",
    "com.google.protobuf.",
    "kotlin.",
    "kotlinx.",
    "org.apache.",
    "com.squareup.",
    "io.reactivex.",
    "org.reactivestreams.",
    "com.facebook.",
    "com.crashlytics.",
    "io.fabric.",
    "org.junit.",
    "org.mockito.",
]


class LibraryFilter:
    """Filters library/framework classes from APK analysis."""

    def __init__(self, prefixes: List[str] = None):
        env_prefixes = os.getenv("APK_LIBRARY_PREFIXES")
        if env_prefixes:
            self._prefixes = [p.strip() for p in env_prefixes.split(",") if p.strip()]
        elif prefixes is not None:
            self._prefixes = prefixes
        else:
            self._prefixes = DEFAULT_LIBRARY_PREFIXES

        # Convert Dalvik-style prefixes to both formats for matching
        self._dot_prefixes = tuple(self._prefixes)

        self._stats = {"library": 0, "user": 0}

    def is_library(self, class_name: str) -> bool:
        """Check if a class belongs to a known library/framework package.

        Accepts both Java dot notation (com.example.Foo) and Dalvik
        descriptor notation (Lcom/example/Foo;).
        """
        # Normalize Dalvik descriptor to dot notation
        normalized = self._normalize_class_name(class_name)

        is_lib = normalized.startswith(self._dot_prefixes)
        if is_lib:
            self._stats["library"] += 1
        else:
            self._stats["user"] += 1
        return is_lib

    def get_filter_stats(self) -> Dict[str, int]:
        """Return counts of filtered vs. retained classes."""
        return dict(self._stats)

    @staticmethod
    def _normalize_class_name(class_name: str) -> str:
        """Convert Dalvik descriptor to dot notation.

        Lcom/example/Foo; -> com.example.Foo
        com.example.Foo -> com.example.Foo
        """
        if class_name.startswith("L") and class_name.endswith(";"):
            return class_name[1:-1].replace("/", ".")
        return class_name.replace("/", ".")