Skip to content

Commit

Permalink
Merge pull request CodingGay#30 from 18712886438/main
Browse files Browse the repository at this point in the history
[Bcore] Compatible with case sensitive system
  • Loading branch information
nnjun authored Jul 5, 2021
2 parents b61d086 + 844328e commit 24a5a78
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 10 deletions.
1 change: 1 addition & 0 deletions Bcore/src/main/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ add_subdirectory(${DOBBY_SOURCE_DIR} blackdex_d.out)
# Gradle automatically packages shared libraries with your APK.
include_directories( dex )
include_directories( base )
include_directories( jnihook )
include_directories( ./ )

aux_source_directory(./ SRC7)
Expand Down
6 changes: 3 additions & 3 deletions Bcore/src/main/cpp/VmCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
#include "utils/Log.h"
#include "IO.h"
#include <jni.h>
#include <jniHook/JniHook.h>
#include <jniHook/ArtM.h>
#include <JniHook.h>
#include <ArtM.h>
#include <hook/ProcessHook.h>
#include <hook/VMClassLoaderHook.h>
#include <hook/UnixFileSystemHook.h>
#include "DexDump.h"
#include "Utils/HexDump.h"
#include "utils/HexDump.h"
#import "xhook/xhook.h"

struct {
Expand Down
2 changes: 1 addition & 1 deletion Bcore/src/main/cpp/hook/ProcessHook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include <sys/types.h>
#include "ProcessHook.h"
#import "jniHook/JniHook.h"
#import <JniHook.h>
#import "utils/Log.h"
#import "xhook/xhook.h"

Expand Down
2 changes: 1 addition & 1 deletion Bcore/src/main/cpp/hook/UnixFileSystemHook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include <IO.h>
#include "UnixFileSystemHook.h"
#import "jniHook/JniHook.h"
#import <JniHook.h>

/*
* Class: java_io_UnixFileSystem
Expand Down
3 changes: 2 additions & 1 deletion Bcore/src/main/cpp/hook/VMClassLoaderHook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@

#include <cstring>
#include "VMClassLoaderHook.h"
#import "jniHook/jniHook.h"
#include <JniHook.h>

static bool hideXposedClass = false;

HOOK_JNI(jobject, findLoadedClass, JNIEnv *env, jobject obj, jobject class_loader, jstring name) {
Expand Down
2 changes: 1 addition & 1 deletion Bcore/src/main/cpp/jnihook/JniHook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
//

#include <jni.h>
#include "jniHook.h"
#include "utils/Log.h"
#include "Art.h"
#include "ArtM.h"
#include "JniHook.h"

static struct {
int api_level;
Expand Down
4 changes: 2 additions & 2 deletions Bcore/src/main/cpp/utils/HexDump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
//

#include <jni.h>
#include <stdio.h>
#include <cstdio>
#include "HexDump.h"
#include "log.h"
#include "Log.h"

void HexDump(char *buf, int len, int addr) {
int i, j, k;
Expand Down
2 changes: 1 addition & 1 deletion Bcore/src/main/cpp/ziparchive/zip_writer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

#include "android-base/logging.h"
#include "utils/Compat.h"
#include "android/Log.h"
//#include "android/Log.h"

#include "entry_name_utils-inl.h"
#include "zip_archive_common.h"
Expand Down

0 comments on commit 24a5a78

Please sign in to comment.