Comments (3)
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.
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.
added: 0a95784
from dtfmods-core.
Related Issues (20)
- Add capablities for analyzing backups
- Add `list` to `sysappdb` HOT 1
- `keytool` fails to parse APK signatures if there is a signature mismatch in a APK HOT 2
- Add new Utils library for commonly used functionality HOT 1
- pylint 9.0+ score for AppDb HOT 1
- `oatdextract` support for 6.0 OAT files HOT 2
- `frameworkdexdb` misses OAT files in "framework/oat/" directory (API 23/6.0) HOT 1
- `sysappdb`'s "pull" misses "oat/arm" directory (API 23/6.0) HOT 1
- `userdb` to use dtfClient API HOT 1
- wget https://www.thecobraden.com/uploads/dtfmods-core-v1.2.0.zip HOT 3
- Parse *.rc files
- Application permission is not checked before checking component permission HOT 2
- do_exposed_providers() logic in `sysappdb` is not correct for permissions HOT 1
- Add`screencap` module HOT 1
- DSA file signatures not parsed correctly
- Delete or fix "broken" modules
- Remove all Bash dependencies
- Take advantage of new "require" feature in modules with dependencies
- Support 1.3.1 changes
- Update `GenerateAIDL` to version 1.1 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dtfmods-core.