Permalink
Browse files

Included smali.jar and baksmali.jar

  • Loading branch information...
1 parent 9751313 commit 90407873d340b1e8c33385a9806f628895396a0f @kelwin committed Aug 23, 2012
Showing with 62 additions and 8 deletions.
  1. +2 −2 apimonitor.py
  2. +58 −4 config/default_api_collection
  3. BIN smali/baksmali.jar
  4. BIN smali/smali.jar
  5. +2 −2 test.py
View
@@ -88,13 +88,13 @@
dex_file.write(a.get_dex())
dex_file.close()
-call(args=['baksmali', '-b', '-o', smalidir, dexpath])
+call(args=['java', '-jar', 'smali/baksmali.jar', '-b', '-o', smalidir, dexpath])
s = smali.SmaliTree(level, smalidir)
s = mo.inject(s, level)
s.save(new_smalidir)
-call(args=['smali', '-a', str(level),
+call(args=['java', '-jar', 'smali/smali.jar', '-a', str(level),
'-o', new_dexpath, new_smalidir])
new_dex = open(new_dexpath).read();
@@ -2,30 +2,84 @@
# Intent
Landroid/content/Intent;-><init>
+Landroid/content/ContextWrapper;->sendBroadcast
+Landroid/content/ContextWrapper;->sendOrderedBroadcast
+Landroid/content/ContextWrapper;->sendStickyBroadcast
+Landroid/content/ContextWrapper;->sendStickyOrderedBroadcast
+Landroid/content/ContextWrapper;->startActivity
+Landroid/content/ContextWrapper;->startActivities
+
+# Uri
+Landroid/net/Uri;->parse(Ljava/lang/String;)
# File IO
Landroid/content/ContextWrapper;->openFileInput
Landroid/content/ContextWrapper;->openFileOutput
-Landroid/net/Uri;->parse(Ljava/lang/String;)
+Ljava/io/FileReader;-><init>
+Ljava/io/FileWriter;-><init>
# Network IO
Ljava/net/URL;-><init>
Ljava/net/URL;->openConnection
-Ljava/net/URL;->opendddddddConnection
+Ljava/net/URL;->openStream
# IO
-Ljava/io/OutputStreamWriter;->write
+Ljava/io/Reader;->read
+Ljava/io/Writer;->write
+Ljava/io/BufferedReader;->read
Ljava/io/BufferedReader;->readLine
+Ljava/io/BufferedWriter;->write
+Ljava/io/BufferedWriter;->newLine
+Ljava/io/InputStreamReader;->read
+Ljava/io/OutputStreamWriter;->write
+Ljava/io/CharArrayReader;->read
+Ljava/io/CharArrayWriter;->write
+Ljava/io/CharArrayWriter;->writeTo
+Ljava/io/FilterReader;->read
+Ljava/io/FilterWriter;->write
+Ljava/io/StringReader;->read
+Ljava/io/StringWriter;->write
+Ljava/io/PrintWriter;->append
+Ljava/io/PrintWriter;->format
+Ljava/io/PrintWriter;->print
+Ljava/io/PrintWriter;->printf
+Ljava/io/PrintWriter;->println
+Ljava/io/PrintWriter;->write
+
+# Database
+Landroid/content/ContextWrapper;->openOrCreateDatabase
+Landroid/database/sqlite/SQLiteDatabase;->openDatabase
+Landroid/database/sqlite/SQLiteDatabase;->openOrCreateDatabase
+Landroid/database/sqlite/SQLiteDatabase;->query
+Landroid/database/sqlite/SQLiteDatabase;->rawQuery
+Landroid/database/sqlite/SQLiteDatabase;->queryWithFactory
+Landroid/database/sqlite/SQLiteDatabase;->rawQueryWithFactory
+
+# All methods of ContentResolver
+Landroid/content/ContentResolver;
+#Landroid.content.ContentResolver;->query
+#Landroid.content.ContentResolver;->insert
+#Landroid.content.ContentResolver;->openInputStream
+#Landroid.content.ContentResolver;->openOutputStream
+#Landroid.content.ContentProviderClient;->query
+#Landroid.content.ContentProviderClient;->insert
+#Landroid.content.ContentProviderClient;->bulkInsert
+#Landroid.content.ContentProviderClient;->delete
+#Landroid.content.ContentProviderClient;->openAssetFile
# SMS
Landroid/telephony/SmsManager;->sendTextMessage
+Landroid/telephony/SmsManager;->sendDataMessage
+Landroid/telephony/SmsManager;->sendMultipartTextMessage
# App List
Landroid/content/pm/PackageManager;->getInstalledApplications
-# ID
+# TelephonyManager
Landroid/telephony/TelephonyManager;->getDeviceId
Landroid/telephony/TelephonyManager;->getSubscriberId
+Landroid/telephony/TelephonyManager;->getCallState
+Landroid/telephony/TelephonyManager;->getCellLocation
# Digest
Ljava/security/MessageDigest;->getInstance
View
Binary file not shown.
View
Binary file not shown.
View
@@ -23,7 +23,7 @@
dex_file.write(a.get_dex())
dex_file.close()
-call(args=['baksmali', '-b', '-o', SMALI_DIR, DEX])
+call(args=['java', '-jar', 'smali/baksmali.jar', '-b', '-o', SMALI_DIR, DEX])
s = smali.SmaliTree(min_version, SMALI_DIR)
API_LIST = [ \
@@ -46,7 +46,7 @@
s = mo.inject(s, min_version)
s.save(NEW_OUT)
-call(args=['smali', '-a', str(min_version), '-o', NEW_DEX, NEW_OUT])
+call(args=['java', '-jar', 'smali/smali.jar', '-a', str(min_version), '-o', NEW_DEX, NEW_OUT])
new_dex = open(NEW_DEX).read();
a.new_zip(filename=NEW_APK,

0 comments on commit 9040787

Please sign in to comment.