Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apk to jimple #888

Open
wants to merge 41 commits into
base: develop
Choose a base branch
from
Open

Apk to jimple #888

wants to merge 41 commits into from

Conversation

palaniappan1
Copy link
Collaborator

No description provided.

# Conflicts:
#	sootup.core/src/main/java/sootup/core/inputlocation/FileType.java
# Conflicts:
#	sootup.java.bytecode/src/main/java/sootup/java/bytecode/inputlocation/PathBasedAnalysisInputLocation.java
# Conflicts:
#	sootup.core/src/main/java/sootup/core/jimple/basic/LocalGenerator.java
#	sootup.core/src/main/java/sootup/core/model/HasPosition.java
#	sootup.examples/src/test/java/sootup/examples/bodyInterceptor/BodyInterceptor.java
#	sootup.java.bytecode/src/test/java/sootup/java/bytecode/interceptors/CastAndReturnInlinerTest.java
#	sootup.java.bytecode/src/test/java/sootup/java/bytecode/interceptors/LocalSplitterTest.java
#	sootup.java.bytecode/src/test/java/sootup/java/bytecode/interceptors/typeresolving/AugEvalFunctionTest.java
#	sootup.java.bytecode/src/test/java/sootup/java/bytecode/interceptors/typeresolving/TypeResolverTest.java
#	sootup.java.core/src/main/java/sootup/java/core/interceptors/JimpleSemanticsChecker.java
#	sootup.java.core/src/main/java/sootup/java/core/interceptors/LocalSplitter.java
# Conflicts:
#	sootup.java.bytecode/src/test/java/sootup/java/bytecode/interceptors/typeresolving/BytecodeHierarchyTest.java
#	sootup.java.bytecode/src/test/java/sootup/java/bytecode/interceptors/typeresolving/TypeAssignerTest.java
#	sootup.java.core/src/main/java/sootup/java/core/interceptors/typeresolving/AugEvalFunction.java
#	sootup.java.core/src/main/java/sootup/java/core/interceptors/typeresolving/BytecodeHierarchy.java
#	sootup.java.core/src/main/java/sootup/java/core/interceptors/typeresolving/PrimitiveHierarchy.java
#	sootup.java.core/src/main/java/sootup/java/core/interceptors/typeresolving/TypePromotionVisitor.java
#	sootup.java.core/src/main/java/sootup/java/core/interceptors/typeresolving/TypeResolver.java
#	sootup.java.core/src/main/java/sootup/java/core/interceptors/typeresolving/types/TopType.java
# Conflicts:
#	sootup.java.core/src/main/java/sootup/java/core/interceptors/typeresolving/AugEvalFunction.java
#	sootup.java.core/src/main/java/sootup/java/core/interceptors/typeresolving/BytecodeHierarchy.java
#	sootup.java.core/src/main/java/sootup/java/core/interceptors/typeresolving/PrimitiveHierarchy.java
#	sootup.java.core/src/main/java/sootup/java/core/interceptors/typeresolving/TypePromotionVisitor.java
#	sootup.java.core/src/main/java/sootup/java/core/interceptors/typeresolving/types/TopType.java
Copy link

codecov bot commented Mar 11, 2024

Codecov Report

Attention: Patch coverage is 0.49917% with 598 lines in your changes missing coverage. Please review.

Project coverage is 67.58%. Comparing base (482f23b) to head (d81c264).
Report is 9 commits behind head on develop.

Files Patch % Lines
...java/core/interceptors/Dex/DexNullTransformer.java 0.00% 243 Missing ⚠️
...ava/core/interceptors/Dex/DexNumberTranformer.java 0.00% 126 Missing ⚠️
...tup/java/core/interceptors/Dex/DexTransformer.java 0.00% 119 Missing ⚠️
.../java/core/interceptors/Dex/DexDefUseAnalysis.java 0.00% 88 Missing ⚠️
...core/interceptors/Dex/AbstractNullTransformer.java 0.00% 20 Missing ⚠️
...a/core/interceptors/UnreachableCodeEliminator.java 0.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##             develop     #888      +/-   ##
=============================================
- Coverage      70.18%   67.58%   -2.60%     
- Complexity      4129     4131       +2     
=============================================
  Files            315      320       +5     
  Lines          15588    16198     +610     
  Branches        2672     2875     +203     
=============================================
+ Hits           10940    10948       +8     
- Misses          3761     4356     +595     
- Partials         887      894       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@swissiety swissiety left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for your big contribution :) I have a little feedback for you..

sootup.apk.parser/src/test/java/ApkToDexTest.java Outdated Show resolved Hide resolved
sootup.apk.parser/src/test/java/ApkToDexTest.java Outdated Show resolved Hide resolved
@Nullable
@Override
public SourceType getSourceType() {
return SourceType.Application;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in theory we have it configurable everywhere.. but I see no usecase to set it to Library - so i guess we can keep it that way.

sootup.core/src/main/java/sootup/core/model/Body.java Outdated Show resolved Hide resolved
import sootup.core.model.Body;

/* Flow -insensitive def-use analysis */
public class DexDefUseAnalysis {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it dex specific or would it make sense to move it to the analysis module?

if (baseDef instanceof JAssignStmt) {
JAssignStmt stmt = (JAssignStmt) baseDef;
Value r = stmt.getRightOp();
if (r instanceof JFieldRef) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ValueVisitor would make sense here to replace the ifelse tree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants