Coder Social home page Coder Social logo

Comments (3)

jakev avatar jakev commented on August 15, 2024

keytool appears to be better:

keytool -printcert -jarfile system-apps/android.apk
....

This change will add the following new tables to "sysapps.db":

signatures
INT id (primary)
TEXT owner
TEXT issuer
TEXT serial_number
TEXT fingerprint

app_uses_signatures:
INT id (primary)
INT application_id (foreign, apps)
INT signature_id (foreign, signatures)

Signatures will processed in 'process' subcommand (temporary?).

AppDb.Application will have a new field called "signature"

AppDb will have a new Object called Signature, which will use the fields from the 'signatures'

New AppDb API:

resolveSignature(Signature sig) // Returns None if signature doesn't exist, returns resolved Signature (with _id populated) if it does

addSignature(Signature sig) // Adds a signature to DB, returns SQL return

getAppSignature(Application app) //returns signature for given Application, returns None if not found

getAppsBySignature(Signature sig) // Finds all applications with given signature

from dtfmods-core.

jakev avatar jakev commented on August 15, 2024

Example usage:

# Get handle to our processed DB
import AppDb
appdb = AppDb.AppDb(".dbs/sysapps.db")

# Get an application
a = appdb.getAppByName("android")

# Get the signature
s = appdb.getAppSignature(a)
print s.fingerprint
8D:DB:34:2F:2D:A5:40:84:02:D7:5......

# Now we can get other apps with that signature...

print map(lambda app: app.project_name, appdb.getAppsBySignature(s))
[u'com.android.defcontainer', u'com.me......

from dtfmods-core.

jakev avatar jakev commented on August 15, 2024

added: 0a95784

from dtfmods-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.