ehrenb
167ef191d8
fix comment
2024-03-09 20:19:48 -05:00
ehrenb
126bac4605
ensure .show() works for MethodAnalysis that are External. Add logging when creating new ClassAnalysis instance. Similar to wrapping all fields into FieldAnalysis, also add and wrap all strings into StringAnalysis. Create explicit methods for getting internal/external methods. Updated expected outputs for test_analysis, as underlying implementations have changed
2024-03-09 15:27:51 -05:00
ehrenb
8fdb6f939d
update all tests to use explicit functions for encoded methods/fields. fix failing test mentioned in https://github.com/androguard/androguard/issues/989\#issuecomment-1925512272 so that it assumes testing for wrapped fields. make new tests for DEX-class level testing that tests counts of parsed values in the DEX header
2024-02-25 18:12:46 -05:00
ehrenb
f47720aea2
update access flags test to use Analysis' underlying ClassDefItem's get_methods() and get_fields() for getting fields and methods, as opposed to the Analysis get_methods() and get_fields() which are supposed to only return xrefs of methods and fields.
2024-02-03 17:22:43 -05:00
ehrenb
2724ccc86b
ensure expected class, methods, and fields exist before moving forward with testing their access flags
2024-01-14 00:02:04 -05:00
ehrenb
5f45f149b1
add more tests for access flags, will do fields' access flags after https://github.com/androguard/androguard/issues/989 is cleared up
2024-01-07 20:25:53 -05:00
ehrenb
a35c241a4b
initial tests for callgraph
2024-01-01 20:55:33 -05:00
erev0s
c1a7428f6d
adding the rest of the tests
2023-12-30 01:02:03 +02:00
erev0s
8031ed355e
test_analysis.py
2023-12-23 20:34:24 +02:00
erev0s
0c0af30ca6
test files, tests.yml and logo with name
2023-12-15 16:40:23 +02:00
erev0s
397d7b0743
update tests to be run locally and from poetry
2023-12-15 16:16:40 +02:00
Hallucino
bd85695da8
Fix error
2023-06-13 09:10:20 +02:00
Hallucino
56e16d3a29
Add more tests
2023-06-12 09:37:00 +02:00
totoag
ccb81171fa
Merge pull request #883 from tirkarthi/fix-assert
...
Use assertEqual instead of assertEquals for Python 3.11 compatibility.
2023-06-10 16:13:18 +02:00
totoag
ca1c12b94f
Clean up and add some ui for dynamic analysis
2023-06-10 07:00:04 -07:00
totoag
16a71d894b
improve pentesting
2022-07-18 14:39:23 +02:00
totoag
8df1fe850d
Switch to mutf8 to decode string
2022-07-08 11:28:37 +02:00
Karthikeyan Singaravelan
4352f8d62f
Use assertEqual instead of assertEquals for Python 3.11 compatibility.
2021-10-27 16:56:36 +00:00
Meir Komet
2c403e5638
Added support for Android 10's Dalvik 039 (hidden api annotation)
2020-10-24 04:16:45 -07:00
Jakob
1bfeb89b00
Merge branch 'master' into dev-xrefs
2019-11-22 12:37:19 +01:00
Jakob
b91ac1c150
Add new xrefs: new_instance, const_class and xref_read/write to MethodAnalysis
...
To avoid iterating over all fields in order to find the ones a method
can read/write from/to, the Fields are now available through a
MethodAnalysis object. Additionally, the _new_instance and _cons_class
references are added to MethodAnalysis and ClassAnalysis for the same
reason as well as to avoid using xref_to to a non-existent method.
2019-11-22 11:51:10 +01:00
Sebastian Bachmann
c96e670488
change test for AST
2019-10-23 17:08:55 +02:00
Sebastian Bachmann
eff2cb3163
enable AST tests
2019-10-23 17:00:40 +02:00
Sebastian Bachmann
666be43bae
replace get_annotations by resolved types
2019-10-23 13:29:34 +02:00
Sebastian Bachmann
657231422f
uhm, does nosetest collect these automagically?
2019-10-23 11:04:18 +02:00
Sebastian Bachmann
1692573870
remove useless stuff
2019-10-23 10:49:57 +02:00
Sebastian Bachmann
82adc7c58f
fix wrong click options
2019-10-23 10:20:28 +02:00
Sebastian Bachmann
ffe9bd14bb
remove testcase
2019-10-23 10:03:08 +02:00
Sebastian Bachmann
a02f941cec
other way of testing scripts
2019-10-23 09:48:37 +02:00
Sebastian Bachmann
d43194c84e
make filename length hard limit
2019-10-22 08:12:35 +02:00
Sebastian Bachmann
851fcae5a2
networkx attribute name has changed
2019-10-18 10:03:13 +02:00
Sebastian Bachmann
dc93942270
debug travis
2019-10-18 09:50:57 +02:00
Sebastian Bachmann
7a5c8ede43
lets go debug mode
2019-10-18 09:35:15 +02:00
Sebastian Bachmann
477ea10951
fixing the broken stuff
2019-10-18 08:18:40 +02:00
Sebastian Bachmann
add1a5b2f0
Merging MethodAnalysis and MethodClassAnalysis
...
Dropped MethodClassAnalysis and pulled all functions
into MethodAnalysis.
This should also be slightly faster when creating xrefs,
as the method can not be looked up directly instead of using
an exhaustive search.
resolves #412
2019-10-17 15:18:06 +02:00
Sebastian Bachmann
288db98b06
patch the tests
2019-10-16 14:42:10 +02:00
Sebastian Bachmann
f95bb327d3
fix instructions once more
2019-10-16 14:16:25 +02:00
Sebastian Bachmann
534fc2e4f3
fixes
2019-10-16 13:03:17 +02:00
Sebastian Bachmann
b2f3a4d388
get rid of formatted_operands
2019-10-05 18:27:28 +02:00
Sebastian Bachmann
a97c89378e
more stuff regarding constants
2019-10-01 14:25:29 +02:00
Sebastian Bachmann
6f2cf4981b
Merge branch 'master' of https://github.com/androguard/androguard into opcodemadness
2019-09-25 19:47:12 +02:00
Sebastian Bachmann
597890448d
adding tests for offsets
2019-09-01 18:26:16 +02:00
Sebastian Bachmann
ce8cce9394
add offsets to xrefs
2019-09-01 15:36:17 +02:00
Sebastian Bachmann
00db856b68
Merge branch 'master' of https://github.com/androguard/androguard into opcodemadness
2019-08-27 15:08:25 +02:00
Sebastian Bachmann
0cc92ee2cf
Merge branch 'master' of ssh://github.com/reox/androguard into opcodemadness
2019-08-27 15:08:06 +02:00
s
0aae4162b2
change path
2019-08-27 11:16:35 +09:00
s
f07e462aaa
add unittest
2019-08-27 11:11:02 +09:00
Seonggi Kim
2ecea0e036
Updated testcase of get_intent_filters
2019-06-21 15:24:24 +09:00
Seonggi Kim
18df12cbb7
Fix get_intent_filters in apk.py
2019-06-17 17:22:49 +09:00
Seonggi Kim
d5427d54f5
Code refactoring and insert data-element #715
2019-06-07 17:48:46 +09:00