All Projects → Trumeet → RedirectStorage

Trumeet / RedirectStorage

Licence: Apache-2.0 license
针对第三方 SDK 乱改存储卡和读取用户数据等行为,利用反射方式重定向 SD 卡目录。

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to RedirectStorage

Justweengine
An easy open source Android Native Game FrameWork.
Stars: ✭ 762 (+1521.28%)
Mutual labels:  jitpack
Android Issue Reporter
A powerful and simple library to open issues on GitHub directly from your app.
Stars: ✭ 115 (+144.68%)
Mutual labels:  jitpack
Codeeditor
Code Editor Native Way
Stars: ✭ 155 (+229.79%)
Mutual labels:  jitpack
Canvas
Canvas Drawing Android Library
Stars: ✭ 35 (-25.53%)
Mutual labels:  jitpack
Drawablecolorchange
Android Library to dynamically change color of drawable.
Stars: ✭ 101 (+114.89%)
Mutual labels:  jitpack
Android Example
Example Android library that builds on jitpack.io
Stars: ✭ 129 (+174.47%)
Mutual labels:  jitpack
Material Viewpagerindicator
Dot-based Android ViewPager indicator with Material Design animations.
Stars: ✭ 511 (+987.23%)
Mutual labels:  jitpack
Diffadapter
A high-performance , easy-to-use Adapter for RecyclerView ,using diffutil
Stars: ✭ 193 (+310.64%)
Mutual labels:  jitpack
Android Ratingreviews
Simple star rating system bars, a view similar to the ones seen on Google Playstore. ⭐🌟✨
Stars: ✭ 110 (+134.04%)
Mutual labels:  jitpack
Maildroid
Maildroid is a small robust android library for sending emails using SMTP server
Stars: ✭ 150 (+219.15%)
Mutual labels:  jitpack
Livechart
Android library to draw beautiful and rich line charts.
Stars: ✭ 78 (+65.96%)
Mutual labels:  jitpack
Realm Browser
Android Database Browser for realm-java
Stars: ✭ 101 (+114.89%)
Mutual labels:  jitpack
Material Intro
A simple material design app intro with cool animations and a fluent API.
Stars: ✭ 1,718 (+3555.32%)
Mutual labels:  jitpack
Publishtojcenter
快速集成发布lib到jcenter的例子,针对新版本的brintray,让你的库可以更简单的发布到jcenter
Stars: ✭ 30 (-36.17%)
Mutual labels:  jitpack
Androidbluetoothlibrary
A Library for easy implementation of Serial Bluetooth Classic and Low Energy on Android. 💙
Stars: ✭ 171 (+263.83%)
Mutual labels:  jitpack
Material Drawer
Custom drawer implementation for Material design apps.
Stars: ✭ 611 (+1200%)
Mutual labels:  jitpack
Cosin
Android loading view library 📊🍭
Stars: ✭ 129 (+174.47%)
Mutual labels:  jitpack
Telegrambots
Java library to create bots using Telegram Bots API
Stars: ✭ 2,728 (+5704.26%)
Mutual labels:  jitpack
Jitpack.io
Documentation and issues of https://jitpack.io
Stars: ✭ 2,156 (+4487.23%)
Mutual labels:  jitpack
Customstage
A JavaFX UI framework to create fully customized undecorated windows
Stars: ✭ 148 (+214.89%)
Mutual labels:  jitpack

RedirectStorage

针对第三方 SDK 乱改存储卡和读取用户数据等行为,利用反射方式重定向 SD 卡目录。

依賴

  • Add it in your root build.gradle at the end of repositories:
allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}
  • 查詢最新版本

最新版本:

  • 添加依賴
dependencies {
        compile 'com.github.Trumeet:RedirectStorage:<最新版本號>'
}

Usage

只有一个类,非常简单:

// 启用
enable(PathCallback callback) // 当需要 Hack 路径的时候的 Callback

// 禁用
disable()

// 是否已启用
isEnable()

// 是否已安装
isInstall()

// 获取真实路径,比如需要保存图片
getRealPath()

尚未严格兼容性测试,目前 Android O 模拟器测试通过,理论上支持 KitKat 至 Oreo。有问题请提交 issues

不支持 KitKat 以下 ROM。(哪位大佬能帮忙想出办法兼容,个人认为主要是 `getDirectory`` 方法,感激不尽。)

Licenses

使用本項目請確保您遵守 Apache License 2.0

特别感谢 @heruoxin (冰箱作者)提供核心代码 ,我只是做了个简单封装和提供了几个接口 逃跑

Copyright (C) 2017 Trumeet

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].