Code Monkey home page Code Monkey logo

androidlib's Introduction

统一接入源

maven { url 'https://jitpack.io' }

最新版本

接入RSharedPreferences

  • 解决MODE_WORLD_WRITEABLE no longer supported问题
implementation 'com.github.Humenger.androidlib:RSharedPreferences:{latest_version}'

使用RSharedPreferences

RSharedPreferences.getSharedPreferences(context,name,mode);
RSharedPreferences.getSharedPreferences(getPreferenceManager());

包裹方式使用

RSharedPreferences.sharedPreferencesBypass(getContext(), (RBypassCallback<Void>) () -> {
                setPreferencesFromResource(R.xml.root_preferences,rootKey);
                return null;
            });
//带回调
SharedPreferences preferences= RSharedPreferences.sharedPreferencesBypass(getContext(), (RBypassCallback<SharedPreferences>) () -> 
                    getPreferenceManager().getSharedPreferences());

接入XReflectHelpers

  • 移植Xposed的反射库,可以在任何APP中使用,就相当于一个普通的反射库
implementation 'com.github.Humenger.androidlib:XReflectHelpers:{latest_version}'

使用XReflectHelpers

XReflectHelpers.XXXX();

api列表

XReflectHelpers

接入HSystemHelpers

  • 一些系统辅助类
 implementation 'com.github.Humenger.androidlib:HSystemHelpers:{latest_version}'

使用HSystemHelpers

//根据class名字查找其对应的系统jar所在路径
HSystemHelpers.findSystemJarPathWithClassName("android.app.Activity");
//获取当前进程名,目测支持android4-最新系统版本
HSystemHelpers.getProcessName(context);
//获取已加载的so库列表
HSystemHelpers.getLoadSoLibrary(onlyApp);

接入Httposed(开发中)

  • 以Xposed思维设计Http拦截框架
 implementation 'com.github.Humenger.androidlib:Httposed:{latest_version}'

接入GithubProxyHelpers

  • 处理github国内无法访问问题,可以不用配置代理,快捷访问github
 implementation 'com.github.Humenger.androidlib:GithubProxyHelpers:{latest_version}'

使用GithubProxyHelpers

//初始化 可以放在Application.onCreate()函数里  
GithubProxyHelpers.init(context);
GithubProxyHelpers.getProxyUrl("https://raw.githubusercontent.com/xxxx")

接入MiniBrowser

  • 让App内置一个迷你浏览器
 implementation 'com.github.Humenger.androidlib:MiniBrowser:{latest_version}'

使用MiniBrowser

    <com.github.Humenger.mininrowser.MiniBrowser
        android:id="@+id/mini_browser"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />
MiniBrowser browser = findViewById(R.id.mini_browser);
browser.loadUrl("https://baidu.com/");

接入multi-level-listview

  • 多级菜单
 implementation 'com.github.Humenger.androidlib:multi-level-listview:{latest_version}'

使用multi-level-listview

接入LogLite

  • 简单Log工具
 implementation 'com.github.Humenger.androidlib:LogLite:{latest_version}'

使用LogLite

LogLite.tag("xx").i(format,args...);

接入MultiDexHook

  • Xposed下多dex Hook工具
implementation 'com.github.Humenger.androidlib:MultiDexHook:{latest_version}'

使用MultiDexHook

//初始化
MultiDexHook.getInstance().init();
//注册类加载器监听器,会回调所有拦截到的classLoader
        MultiDexHook.getInstance().register((classLoader)->{});

接入FrpHelper

  • 一个Android端Frp封装库
implementation 'com.github.Humenger.androidlib:FrpHelper:{latest_version}'

使用FrpHelper

FrpHelper.with(VERSION_0_42_0).startClientFormAssetsConfig(context,"frpc.ini");

接入AndroidHideApi

  • 方便调用系统隐藏api
compileOnly 'com.github.Humenger.androidlib:FrpHelper:{latest_version}'

注意:这里应使用compileOnly(仅用于通过编译)方式导入

使用AndroidHideApi

IBinder binder=ServiceManager.getService(NETWORKMANAGEMENT_SERVICE);

致谢 Thanks

IntelliJ IDEA logo

androidlib's People

Contributors

jitcor avatar

Stargazers

Amelia Riski avatar Buerck avatar  avatar mahongyin avatar

Watchers

 avatar  avatar  avatar Buerck avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.