Full Code of wuxiaosu/XposedRimetHelper for AI

master 6aca85400c10 cached
32 files
73.1 KB
18.5k tokens
54 symbols
1 requests
Download .txt
Repository: wuxiaosu/XposedRimetHelper
Branch: master
Commit: 6aca85400c10
Files: 32
Total size: 73.1 KB

Directory structure:
gitextract_0adaubdc/

├── LICENSE
├── README.md
├── amaplitelib/
│   ├── build.gradle
│   ├── libs/
│   │   └── AMap2DMap_5.2.0_AMapSearch_5.7.0_20171229.jar
│   ├── proguard-rules.pro
│   └── src/
│       └── main/
│           └── AndroidManifest.xml
├── build.gradle
├── rimethelper/
│   ├── build.gradle
│   ├── proguard-rules.pro
│   └── src/
│       └── main/
│           ├── AndroidManifest.xml
│           ├── assets/
│           │   └── xposed_init
│           ├── java/
│           │   └── com/
│           │       └── wuxiaosu/
│           │           └── rimethelper/
│           │               ├── Main.java
│           │               ├── activity/
│           │               │   ├── AMapLiteActivity.java
│           │               │   └── MainActivity.java
│           │               ├── base/
│           │               │   └── BaseActivity.java
│           │               ├── bean/
│           │               │   └── LocationSearchSuggestions.java
│           │               └── hook/
│           │                   └── LocationHook.java
│           └── res/
│               ├── drawable/
│               │   └── ic_arrow_back.xml
│               ├── drawable-xhdpi/
│               │   ├── ic_done.xml
│               │   ├── ic_info.xml
│               │   └── ic_search.xml
│               ├── layout/
│               │   ├── activity_amap_lite.xml
│               │   ├── activity_main.xml
│               │   ├── dialog_about_content.xml
│               │   └── toolbar_common.xml
│               ├── menu/
│               │   ├── menu_amap_lite.xml
│               │   └── menu_main.xml
│               └── values/
│                   ├── colors.xml
│                   ├── dimens.xml
│                   ├── strings.xml
│                   └── styles.xml
└── settings.gradle

================================================
FILE CONTENTS
================================================

================================================
FILE: LICENSE
================================================
                    GNU GENERAL PUBLIC LICENSE
                       Version 2, June 1991

 Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 Everyone is permitted to copy and distribute verbatim copies
 of this license document, but changing it is not allowed.

                            Preamble

  The licenses for most software are designed to take away your
freedom to share and change it.  By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users.  This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it.  (Some other Free Software Foundation software is covered by
the GNU Lesser General Public License instead.)  You can apply it to
your programs, too.

  When we speak of free software, we are referring to freedom, not
price.  Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.

  To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.

  For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have.  You must make sure that they, too, receive or can get the
source code.  And you must show them these terms so they know their
rights.

  We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.

  Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software.  If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.

  Finally, any free program is threatened constantly by software
patents.  We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary.  To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.

  The precise terms and conditions for copying, distribution and
modification follow.

                    GNU GENERAL PUBLIC LICENSE
   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

  0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License.  The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language.  (Hereinafter, translation is included without limitation in
the term "modification".)  Each licensee is addressed as "you".

Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope.  The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.

  1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.

You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.

  2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:

    a) You must cause the modified files to carry prominent notices
    stating that you changed the files and the date of any change.

    b) You must cause any work that you distribute or publish, that in
    whole or in part contains or is derived from the Program or any
    part thereof, to be licensed as a whole at no charge to all third
    parties under the terms of this License.

    c) If the modified program normally reads commands interactively
    when run, you must cause it, when started running for such
    interactive use in the most ordinary way, to print or display an
    announcement including an appropriate copyright notice and a
    notice that there is no warranty (or else, saying that you provide
    a warranty) and that users may redistribute the program under
    these conditions, and telling the user how to view a copy of this
    License.  (Exception: if the Program itself is interactive but
    does not normally print such an announcement, your work based on
    the Program is not required to print an announcement.)

These requirements apply to the modified work as a whole.  If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works.  But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.

Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.

In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.

  3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:

    a) Accompany it with the complete corresponding machine-readable
    source code, which must be distributed under the terms of Sections
    1 and 2 above on a medium customarily used for software interchange; or,

    b) Accompany it with a written offer, valid for at least three
    years, to give any third party, for a charge no more than your
    cost of physically performing source distribution, a complete
    machine-readable copy of the corresponding source code, to be
    distributed under the terms of Sections 1 and 2 above on a medium
    customarily used for software interchange; or,

    c) Accompany it with the information you received as to the offer
    to distribute corresponding source code.  (This alternative is
    allowed only for noncommercial distribution and only if you
    received the program in object code or executable form with such
    an offer, in accord with Subsection b above.)

The source code for a work means the preferred form of the work for
making modifications to it.  For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable.  However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.

If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.

  4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License.  Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.

  5. You are not required to accept this License, since you have not
signed it.  However, nothing else grants you permission to modify or
distribute the Program or its derivative works.  These actions are
prohibited by law if you do not accept this License.  Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.

  6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions.  You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.

  7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License.  If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all.  For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.

If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.

It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices.  Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.

This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.

  8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded.  In such case, this License incorporates
the limitation as if written in the body of this License.

  9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time.  Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.

Each version is given a distinguishing version number.  If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation.  If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.

  10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission.  For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this.  Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.

                            NO WARRANTY

  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.

  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.

                     END OF TERMS AND CONDITIONS

            How to Apply These Terms to Your New Programs

  If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.

  To do so, attach the following notices to the program.  It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

    <one line to give the program's name and a brief idea of what it does.>
    Copyright (C) <year>  <name of author>

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License along
    with this program; if not, write to the Free Software Foundation, Inc.,
    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

Also add information on how to contact you by electronic and paper mail.

If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:

    Gnomovision version 69, Copyright (C) year name of author
    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
    This is free software, and you are welcome to redistribute it
    under certain conditions; type `show c' for details.

The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License.  Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.

You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary.  Here is a sample; alter the names:

  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
  `Gnomovision' (which makes passes at compilers) written by James Hacker.

  <signature of Ty Coon>, 1 April 1989
  Ty Coon, President of Vice

This General Public License does not permit incorporating your program into
proprietary programs.  If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library.  If this is what you want to do, use the GNU Lesser General
Public License instead of this License.


================================================
FILE: README.md
================================================
# XposedRimetHelper  

Xposed 钉钉辅助模块,暂时实现模拟位置。理论上支持 4.2.0 以上所有版本。  
“酷公司”是怎样的反正我是不知道,不过恶心的公司恶心的做法应该都是一样了,模拟位置让你在哪都能打卡。  

## 设置界面  

![00.png](https://raw.githubusercontent.com/wuxiaosu/XposedRimetHelper/master/screenshots/00.png)

## 下载  

- release from [github](https://github.com/wuxiaosu/XposedRimetHelper/releases)  

- ~~release from [酷安](https://www.coolapk.com/apk/180336)~~(被和谐了)  


================================================
FILE: amaplitelib/build.gradle
================================================
apply plugin: 'com.android.library'

android {
    compileSdkVersion 26

    defaultConfig {
        minSdkVersion 21
        targetSdkVersion 26
        versionCode 1
        versionName "1.0"

    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

}

dependencies {
    api fileTree(dir: 'libs', include: ['*.jar'])
}


================================================
FILE: amaplitelib/proguard-rules.pro
================================================
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
#   http://developer.android.com/guide/developing/tools/proguard.html

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
#   public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile


================================================
FILE: amaplitelib/src/main/AndroidManifest.xml
================================================
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.wuxiaosu.amaplitelib" />


================================================
FILE: build.gradle
================================================
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {

    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:4.1.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        google()
        jcenter()
        maven {
            url 'https://raw.githubusercontent.com/wuxiaosu/MvnRepository/master'
        }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}


================================================
FILE: rimethelper/build.gradle
================================================
apply plugin: 'com.android.application'

android {
    compileSdkVersion 30
    defaultConfig {
        applicationId "com.wuxiaosu.rimethelper"
        minSdkVersion 21
        targetSdkVersion 23
        versionCode 6
        versionName "1.05"
    }

    signingConfigs {
        release {
            storeFile file(RIMETHELPER_STORE_FILE)
            storePassword RIMETHELPER_STORE_PASSWORD
            keyAlias RIMETHELPER_KEY_ALIAS
            keyPassword RIMETHELPER_KEY_PASSWORD
        }
    }

    buildTypes {

        release {
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            signingConfig signingConfigs.release

            manifestPlaceholders = [
                    AMapKey: "26b0d2cd5c99befe30cf73c6d93fe8ea"
            ]
            applicationVariants.all { variant ->
                variant.outputs.all { output ->
                    def oldFile = output.outputFile
                    def newName = oldFile.name
                    if (variant.buildType.name == 'release') {
                        newName = oldFile.name.replace(".", "-v" + variant.versionName + '.')
                    }
                    outputFileName = newName
                }
            }
        }

        debug {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

            manifestPlaceholders = [
                    AMapKey: "26b0d2cd5c99befe30cf73c6d93fe8ea"
            ]
        }
    }
    android {
        lintOptions {
            checkReleaseBuilds false
            abortOnError false
        }
    }
}

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    //noinspection GradleCompatible
    implementation 'com.android.support:appcompat-v7:26.1.0'
    implementation 'com.android.support:design:26.1.0'
    implementation 'com.android.support:support-v4:26.1.0'
    implementation 'com.jaeger.statusbarutil:library:1.4.0'
    compileOnly 'de.robv.android.xposed:api:82'
    implementation 'com.github.wuxiaosu:SettingLabelView:1.0@aar'
    implementation project(':amaplitelib')
    implementation 'com.github.arimorty:floatingsearchview:2.1.1'
}


================================================
FILE: rimethelper/proguard-rules.pro
================================================
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
#   http://developer.android.com/guide/developing/tools/proguard.html

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
#   public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile

-keep class com.wuxiaosu.rimethelper.activity.MainActivity {
    private void showModuleActiveInfo(...);
}
-keep class com.wuxiaosu.rimethelper.Main {
    public void handleLoadPackage(...);
}

# 搜索
-keep   class com.amap.api.services.**{*;}

# 2D地图
-keep class com.amap.api.col.**{*;}
-keep class com.amap.api.location.**{*;}
-keep class com.amap.api.maps2d.**{*;}
-keep class com.amap.api.mapcore2d.**{*;}

-dontwarn  com.amap.api.location.**
-dontwarn  com.amap.api.maps2d.**
-dontwarn  com.amap.api.mapcore2d.**
-dontwarn  com.amap.apis.utils.**
-dontwarn  com.amap.api.maps.**

================================================
FILE: rimethelper/src/main/AndroidManifest.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="com.wuxiaosu.rimethelper">

    <!--允许程序打开网络套接字-->
    <uses-permission android:name="android.permission.INTERNET" />
    <!--允许程序设置内置sd卡的写权限-->
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <!--允许程序获取网络状态-->
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <!--允许程序访问WiFi网络信息-->
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <!--允许程序读写手机状态和身份-->
    <uses-permission android:name="android.permission.READ_PHONE_STATE" />
    <!--允许程序访问CellID或WiFi热点来获取粗略的位置-->
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />

    <application
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:resizeableActivity="true"
        android:supportsRtl="true"
        android:theme="@style/AppTheme"
        tools:targetApi="n">
        <activity
            android:name=".activity.MainActivity"
            android:label="@string/app_name"
            android:launchMode="singleTop"
            android:screenOrientation="portrait"
            android:theme="@style/AppTheme.NoActionBar">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="de.robv.android.xposed.category.MODULE_SETTINGS" />
            </intent-filter>
        </activity>

        <activity-alias
            android:name=".activity.MainActivity_Alias"
            android:enabled="true"
            android:label="@string/app_name"
            android:screenOrientation="portrait"
            android:targetActivity=".activity.MainActivity"
            android:theme="@style/AppTheme.NoActionBar">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity-alias>

        <meta-data
            android:name="xposedmodule"
            android:value="true" />
        <meta-data
            android:name="xposeddescription"
            android:value="@string/app_description" />
        <meta-data
            android:name="xposedminversion"
            android:value="30" />

        <meta-data
            android:name="com.amap.api.v2.apikey"
            android:value="${AMapKey}" />

        <activity
            android:name=".activity.AMapLiteActivity"
            android:screenOrientation="portrait"
            android:theme="@style/AppTheme.NoActionBar" />

    </application>

</manifest>

================================================
FILE: rimethelper/src/main/assets/xposed_init
================================================
com.wuxiaosu.rimethelper.Main

================================================
FILE: rimethelper/src/main/java/com/wuxiaosu/rimethelper/Main.java
================================================
package com.wuxiaosu.rimethelper;

import android.app.Application;
import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;

import com.wuxiaosu.rimethelper.hook.LocationHook;

import de.robv.android.xposed.IXposedHookLoadPackage;
import de.robv.android.xposed.XC_MethodHook;
import de.robv.android.xposed.XposedHelpers;
import de.robv.android.xposed.callbacks.XC_LoadPackage;

/**
 * Created by su on 2018/3/15.
 */

public class Main implements IXposedHookLoadPackage {
    @Override
    public void handleLoadPackage(XC_LoadPackage.LoadPackageParam lpparam) throws Throwable {

        if (lpparam.appInfo == null || (lpparam.appInfo.flags & (ApplicationInfo.FLAG_SYSTEM |
                ApplicationInfo.FLAG_UPDATED_SYSTEM_APP)) != 0) {
            return;
        }

        final String RIMET_PACKAGENAME = "com.alibaba.android.rimet";
        if (BuildConfig.APPLICATION_ID.equals(lpparam.packageName)) {
            XposedHelpers.findAndHookMethod("com.wuxiaosu.rimethelper.activity.MainActivity", lpparam.classLoader,
                    "showModuleActiveInfo", boolean.class, new XC_MethodHook() {
                        @Override
                        protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
                            param.args[0] = true;
                            super.beforeHookedMethod(param);
                        }
                    });
        }

        if (lpparam.packageName.equals(RIMET_PACKAGENAME)) {
            try {
                XposedHelpers.findAndHookMethod(Application.class,
                        "attach",
                        Context.class, new XC_MethodHook() {
                            @Override
                            protected void afterHookedMethod(XC_MethodHook.MethodHookParam param) throws Throwable {
                                super.afterHookedMethod(param);
                                Context context = (Context) param.args[0];
                                ClassLoader appClassLoader = context.getClassLoader();
                                handleHook(appClassLoader,
                                        getVersionName(context, RIMET_PACKAGENAME));
                            }
                        });
            } catch (Error | Exception e) {
                e.printStackTrace();
            }
        }
    }

    private void handleHook(ClassLoader classLoader, String versionName) {
        LocationHook.hook(classLoader);
    }

    private String getVersionName(Context context, String pkgName) {
        try {
            PackageManager packageManager = context.getPackageManager();
            PackageInfo packInfo = packageManager.getPackageInfo(pkgName, 0);
            return packInfo.versionName;
        } catch (PackageManager.NameNotFoundException e) {
            e.printStackTrace();
        }
        return "";
    }
}


================================================
FILE: rimethelper/src/main/java/com/wuxiaosu/rimethelper/activity/AMapLiteActivity.java
================================================
package com.wuxiaosu.rimethelper.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AppCompatActivity;
import android.text.Html;
import android.text.TextUtils;
import android.view.MenuItem;
import android.view.View;
import android.view.WindowManager;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;

import com.amap.api.maps2d.AMap;
import com.amap.api.maps2d.CameraUpdate;
import com.amap.api.maps2d.CameraUpdateFactory;
import com.amap.api.maps2d.MapView;
import com.amap.api.maps2d.model.BitmapDescriptorFactory;
import com.amap.api.maps2d.model.CameraPosition;
import com.amap.api.maps2d.model.LatLng;
import com.amap.api.maps2d.model.Marker;
import com.amap.api.maps2d.model.MarkerOptions;
import com.amap.api.services.core.PoiItem;
import com.amap.api.services.poisearch.PoiResult;
import com.amap.api.services.poisearch.PoiSearch;
import com.arlib.floatingsearchview.FloatingSearchView;
import com.arlib.floatingsearchview.suggestions.SearchSuggestionsAdapter;
import com.arlib.floatingsearchview.suggestions.model.SearchSuggestion;
import com.jaeger.library.StatusBarUtil;
import com.wuxiaosu.rimethelper.R;
import com.wuxiaosu.rimethelper.bean.LocationSearchSuggestions;

import java.util.ArrayList;
import java.util.List;

public class AMapLiteActivity extends AppCompatActivity {

    public final static String LAT_KEY = "lat";
    public final static String LON_KEY = "lon";
    public final static int REQUEST_CODE = 1001;

    private MapView mMapView;
    private AMap mAMap;
    private FloatingSearchView mFloatingSearchView;
    private FloatingActionButton mFbDone;
    private Marker mChooseMarker;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_amap_lite);

        StatusBarUtil.setTranslucentForImageView(this, findViewById(R.id.view_need_offset));

        getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);

        initMap(savedInstanceState);
    }

    private void initMap(Bundle savedInstanceState) {
        mMapView = findViewById(R.id.mapview);
        mFloatingSearchView = findViewById(R.id.floating_search_view);
        mFbDone = findViewById(R.id.fb_done);

        mMapView.onCreate(savedInstanceState);// 此方法必须重写
        mAMap = mMapView.getMap();

        Intent intent = getIntent();
        String lat = intent.getStringExtra(LAT_KEY);
        String lon = intent.getStringExtra(LON_KEY);
        LatLng latLng = new LatLng(39.908692, 116.397477); //天安门

        mAMap.getUiSettings().setZoomControlsEnabled(false); //不显示缩放按钮

        if (!TextUtils.isEmpty(lat) && !TextUtils.isEmpty(lon)) {
            latLng = new LatLng(Double.valueOf(lat), Double.valueOf(lon));
            addMarker(latLng, null);
        }
        cameraUpdate(latLng);

        mAMap.setOnMapClickListener(new AMap.OnMapClickListener() {
            @Override
            public void onMapClick(LatLng latLng) {
                addMarker(latLng, null);
            }
        });

        mFbDone.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                chooseDone();
            }
        });

        mFloatingSearchView.setOnSearchListener(new FloatingSearchView.OnSearchListener() {
            @Override
            public void onSuggestionClicked(SearchSuggestion searchSuggestion) {
                LocationSearchSuggestions suggestions = (LocationSearchSuggestions) searchSuggestion;
                addMarker(suggestions.getLatLng(), suggestions.getTitle());
                cameraUpdate(suggestions.getLatLng());
                mFloatingSearchView.clearSuggestions();
                mFloatingSearchView.clearSearchFocus();
            }

            @Override
            public void onSearchAction(String currentQuery) {
            }
        });

        mFloatingSearchView.setOnMenuItemClickListener(new FloatingSearchView.OnMenuItemClickListener() {
            @Override
            public void onActionMenuItemSelected(MenuItem item) {
                poiSearch(mFloatingSearchView.getQuery());
            }
        });

        mFloatingSearchView.setOnBindSuggestionCallback(new SearchSuggestionsAdapter.OnBindSuggestionCallback() {
            @Override
            public void onBindSuggestion(View suggestionView,
                                         ImageView leftIcon,
                                         TextView textView,
                                         SearchSuggestion item,
                                         int itemPosition) {

                LocationSearchSuggestions suggestions = (LocationSearchSuggestions) item;
                leftIcon.setImageDrawable(ContextCompat.getDrawable(AMapLiteActivity.
                        this, R.drawable.ic_current_location));
                String key = mFloatingSearchView.getQuery().split(" ")[1];
                String text = suggestions.getTitle()
                        .replaceFirst(key, "<font color=\"#E040FB\">" + key + "</font>")
                        + "<br/>" + suggestions.getBody();
                textView.setText(Html.fromHtml(text));
            }
        });
    }

    private void poiSearch(String key) {
        if (TextUtils.isEmpty(key)) {
            return;
        }
        final String[] strings = key.trim().split(" ");
        if (strings.length != 2) {
            Toast.makeText(this, "搜索格式错误", Toast.LENGTH_SHORT).show();
            return;
        }
        PoiSearch.Query query = new PoiSearch.Query(strings[1], "", strings[0]);
        query.requireSubPois(true);   //true 搜索结果包含POI父子关系; false
        query.setPageSize(20);
        query.setPageNum(0);
        PoiSearch poiSearch = new PoiSearch(this, query);
        poiSearch.setOnPoiSearchListener(new PoiSearch.OnPoiSearchListener() {
            @Override
            public void onPoiSearched(PoiResult poiResult, int i) {
                if (i == 1000) {
                    if (poiResult != null && poiResult.getPois() != null
                            && poiResult.getPois().size() != 0) {
                        mFloatingSearchView.swapSuggestions(searchResultData2SearchSuggestion(poiResult.getPois()));
                    } else {
                        Toast.makeText(AMapLiteActivity.this, "在“" +
                                strings[0] + "”搜索不到“" + strings[1] + "”", Toast.LENGTH_SHORT).show();
                    }
                } else {
                    Toast.makeText(AMapLiteActivity.this, "搜索错误", Toast.LENGTH_SHORT).show();
                }
            }

            @Override
            public void onPoiItemSearched(PoiItem poiItem, int i) {
            }
        });
        poiSearch.searchPOIAsyn();
    }

    private List<LocationSearchSuggestions> searchResultData2SearchSuggestion(List<PoiItem> data) {
        List<LocationSearchSuggestions> result = new ArrayList<>();
        for (PoiItem datum : data) {
            result.add(new LocationSearchSuggestions(datum.getTitle(),
                    datum.getCityName() + datum.getAdName() + datum.getSnippet(),
                    new LatLng(datum.getLatLonPoint().getLatitude(),
                            datum.getLatLonPoint().getLongitude())));
        }
        return result;
    }

    private void cameraUpdate(LatLng latLng) {
        CameraUpdate cameraSigma =
                CameraUpdateFactory.newCameraPosition(
                        new CameraPosition(latLng, 18, 0, 0));
        mAMap.moveCamera(cameraSigma);
    }

    /**
     * 添加标记 并移除旧的
     *
     * @param latLng
     * @return
     */
    private void addMarker(LatLng latLng, String name) {
        MarkerOptions markerOptions = new MarkerOptions();
        markerOptions.icon(BitmapDescriptorFactory.fromResource(R.drawable.ic_current_location));
        markerOptions.position(latLng);
        markerOptions.snippet(latLng.latitude + "," + latLng.longitude);
        markerOptions.title(TextUtils.isEmpty(name) ? "未知" : name);
        Marker marker = mAMap.addMarker(markerOptions);

        if (mChooseMarker != null) {
            mChooseMarker.remove();
        }
        mChooseMarker = marker;
    }

    public void chooseDone() {
        if (mChooseMarker != null) {
            Intent result = new Intent();
            result.putExtra(LAT_KEY, String.valueOf(mChooseMarker.getPosition().latitude));
            result.putExtra(LON_KEY, String.valueOf(mChooseMarker.getPosition().longitude));
            setResult(RESULT_OK, result);
        }
        finish();
    }

    @Override
    protected void onDestroy() {
        mMapView.onDestroy();
        super.onDestroy();
    }

    @Override
    protected void onPause() {
        mMapView.onPause();
        super.onPause();
    }

    @Override
    protected void onResume() {
        mMapView.onResume();
        super.onResume();
    }

    public static void actionStart(Activity context,
                                   String lat, String lon) {
        Intent intent = new Intent(context, AMapLiteActivity.class);
        intent.putExtra(AMapLiteActivity.LAT_KEY, lat);
        intent.putExtra(AMapLiteActivity.LON_KEY, lon);
        context.startActivityForResult(intent, REQUEST_CODE);
    }
}


================================================
FILE: rimethelper/src/main/java/com/wuxiaosu/rimethelper/activity/MainActivity.java
================================================
package com.wuxiaosu.rimethelper.activity;

import android.annotation.SuppressLint;
import android.app.AlertDialog;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Bundle;
import android.text.Editable;
import android.text.Html;
import android.text.TextWatcher;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.CompoundButton;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.Toast;

import com.wuxiaosu.rimethelper.BuildConfig;
import com.wuxiaosu.rimethelper.R;
import com.wuxiaosu.rimethelper.base.BaseActivity;
import com.wuxiaosu.widget.SettingLabelView;

import java.util.Arrays;

public class MainActivity extends BaseActivity {

    private SettingLabelView mSlvHideIcon;
    private EditText mEtLatitude;
    private EditText mEtLongitude;
    private ImageView mIvLocation;

    private SettingLabelView mSlvLocation;
    private LinearLayout mLlLocationTime;
    private EditText mEtLocationStartTime;

    private final String[] supportVersions =
            new String[]{"4.2.0", "4.2.1", "4.2.6", "4.2.8", "4.3.0", "4.3.1", "4.3.2", "4.3.3", "4.3.5", "4.3.7", "5.1.35"};

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        getToolbar().setNavigationIcon(null);

        showModuleActiveInfo(false);
        initView();
    }

    private void initView() {
        mSlvHideIcon = findViewById(R.id.slv_hide_icon);
        mEtLatitude = findViewById(R.id.et_latitude);
        mEtLongitude = findViewById(R.id.et_longitude);
        mIvLocation = findViewById(R.id.iv_location);

        mSlvLocation = findViewById(R.id.slv_location);
        mLlLocationTime = findViewById(R.id.ll_location_time);
        mEtLocationStartTime = findViewById(R.id.et_location_start_time);

        SharedPreferences sharedPreferences =
                getSharedPreferences(SettingLabelView.DEFAULT_PREFERENCES_NAME, Context.MODE_WORLD_READABLE);

        bindPreferences(mEtLatitude, sharedPreferences, R.string.pre_key_latitude, null);
        bindPreferences(mEtLongitude, sharedPreferences, R.string.pre_key_longitude, null);
        bindPreferences(mEtLocationStartTime, sharedPreferences, R.string.pre_key_location_start_time, null);

        mSlvHideIcon.setCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
                hideLauncherIcon(isChecked);
            }
        });

        mIvLocation.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                AMapLiteActivity.actionStart(MainActivity.this,
                        mEtLatitude.getText().toString(), mEtLongitude.getText().toString());
            }
        });

        mLlLocationTime.post(new Runnable() {
            @Override
            public void run() {
                mLlLocationTime.setVisibility(mSlvLocation.isChecked() ? View.VISIBLE : View.GONE);
            }
        });
        mSlvLocation.setCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
                mLlLocationTime.setVisibility(isChecked ? View.VISIBLE : View.GONE);
            }
        });
    }

    public void hideLauncherIcon(boolean isHide) {
        PackageManager packageManager = this.getPackageManager();
        int hide = isHide ? PackageManager.COMPONENT_ENABLED_STATE_DISABLED : PackageManager.COMPONENT_ENABLED_STATE_ENABLED;
        packageManager.setComponentEnabledSetting(getAliasComponentName(), hide, PackageManager.DONT_KILL_APP);
    }

    private ComponentName getAliasComponentName() {
        return new ComponentName(MainActivity.this,
                BuildConfig.APPLICATION_ID + ".activity.MainActivity_Alias");
    }

    private void bindPreferences(EditText editText, final SharedPreferences sharedPreferences, final int preStrResId, Object defaultValue) {
        String temp = sharedPreferences.getString(getString(preStrResId), (String) defaultValue);
        editText.setText(temp);
        editText.addTextChangedListener(new TextWatcher() {
            @Override
            public void beforeTextChanged(CharSequence s, int start, int count, int after) {

            }

            @Override
            public void onTextChanged(CharSequence s, int start, int before, int count) {

            }

            @Override
            public void afterTextChanged(Editable s) {
                sharedPreferences.edit().putString(getString(preStrResId), s.toString()).apply();
            }
        });
    }

    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
        if (requestCode == AMapLiteActivity.REQUEST_CODE && resultCode == RESULT_OK) {
            mEtLatitude.setText(data.getStringExtra(AMapLiteActivity.LAT_KEY));
            mEtLongitude.setText(data.getStringExtra(AMapLiteActivity.LON_KEY));
        }
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.menu_main, menu);
        return true;
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        int id = item.getItemId();
        if (id == R.id.action_about) {
            showInfo();
        }
        return super.onOptionsItemSelected(item);
    }

    @SuppressLint("SetTextI18n")
    private void showInfo() {
        View view = LayoutInflater.from(this).inflate(R.layout.dialog_about_content, null);
        TextView mTvVersionName = view.findViewById(R.id.tv_version_name);
        TextView mTvInfo = view.findViewById(R.id.tv_info);
        final TextView mTvUrl = view.findViewById(R.id.tv_url);
        mTvUrl.setText(Html.fromHtml("<a href=''>https://github.com/wuxiaosu/XposedRimetHelper</a>"));
        mTvUrl.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                sendURLIntent(((TextView) v).getText().toString());
            }
        });
        mTvVersionName.setText(getString(R.string.app_name) + " v" + BuildConfig.VERSION_NAME);
        mTvInfo.setText(getString(R.string.app_description)
                + ",理论上支持钉钉4.2.0以上所有版本,当前版本实测支持以下版本\n钉钉:"
                + Arrays.toString(supportVersions)
                + "\n更多详情:");
        AlertDialog alertDialog = new AlertDialog.Builder(this)
                .setTitle("关于")
                .setView(view)
                .create();
        alertDialog.show();
    }

    private void sendURLIntent(String url) {
        Intent intent = new Intent();
        intent.setAction("android.intent.action.VIEW");
        Uri contentUrl = Uri.parse(url);
        intent.setData(contentUrl);
        startActivity(intent);
    }

    /**
     * 模块激活信息
     *
     * @param isModuleActive
     */
    private void showModuleActiveInfo(boolean isModuleActive) {
        if (!isModuleActive) {
            Toast.makeText(this, "模块未激活", Toast.LENGTH_SHORT).show();
        }
    }

}


================================================
FILE: rimethelper/src/main/java/com/wuxiaosu/rimethelper/base/BaseActivity.java
================================================
package com.wuxiaosu.rimethelper.base;

import android.app.ProgressDialog;
import android.content.pm.ActivityInfo;
import android.content.pm.PackageManager;
import android.support.annotation.ColorRes;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.Toast;

import com.jaeger.library.StatusBarUtil;
import com.wuxiaosu.rimethelper.R;


/**
 * Created by su on 2018/1/7.
 */

public class BaseActivity extends AppCompatActivity {

    private Toolbar mToolbar;

    @Override
    public void setContentView(int layoutResID) {
        super.setContentView(layoutResID);
        initStatusBar();
        initToolbar();
    }

    /**
     * 初始化状态栏颜色
     * 更多详情https://github.com/laobie/StatusBarUtil
     */
    protected void initStatusBar() {
        if (isStatusBarTransparent()) {
            StatusBarUtil.setTransparent(BaseActivity.this);
            return;
        }
        StatusBarUtil.setColor(this,
                (ContextCompat.getColor(this, getStatusBarColor())), 0);
    }

    /**
     * 状态栏是否透明
     *
     * @return 默认否
     */
    protected boolean isStatusBarTransparent() {
        return false;
    }

    /**
     * 状态栏默认颜色,不支持动态修改
     *
     * @return 状态栏颜色
     */
    @ColorRes
    protected int getStatusBarColor() {
        return R.color.status_bar;
    }


    private void initToolbar() {
        mToolbar = findViewById(R.id.toolbar);
        if (null == mToolbar) {
            return;
        }
        ActivityInfo mActivityInfo = null;
        try {
            mActivityInfo = getPackageManager().
                    getActivityInfo(this.getComponentName(), PackageManager.GET_META_DATA);
        } catch (PackageManager.NameNotFoundException e) {
            e.printStackTrace();
        }
        // 在 AndroidManifest 中添加 android:label 设置默认标题栏
        if (mActivityInfo != null && 0 != mActivityInfo.labelRes) {
            mToolbar.setTitle(mActivityInfo.labelRes);
        } else {
            mToolbar.setTitle("");
        }
        setSupportActionBar(mToolbar);
        mToolbar.setNavigationIcon(R.drawable.ic_arrow_back);
        mToolbar.setNavigationOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                onBackPressed();
            }
        });
    }

    public Toolbar getToolbar() {
        return mToolbar;
    }

    /**
     * 显示状态栏
     */
    public void showToolbar() {
        getToolbar().setVisibility(View.VISIBLE);
    }

    /**
     * 隐藏状态栏
     */
    public void hideToolbar() {
        getToolbar().setVisibility(View.GONE);
    }

    private ProgressDialog mProgressDialog;

    /**
     * 显示 progress dialog
     */
    public void showProgressDialog() {
        showProgressDialog("请稍候...", false);
    }

    /**
     * 显示 progress dialog
     *
     * @param cancelable 点击空白处是否可以关闭
     */
    public void showProgressDialog(boolean cancelable) {
        showProgressDialog("请稍候...", cancelable);
    }

    /**
     * 显示 progress dialog
     *
     * @param text
     * @param cancelable
     */
    public void showProgressDialog(String text, boolean cancelable) {
        if (null == mProgressDialog) {
            mProgressDialog = new ProgressDialog(this);
        }
        mProgressDialog.setMessage(text);
        mProgressDialog.setCancelable(cancelable);
        mProgressDialog.show();
    }

    /**
     * 关闭 progress dialog
     */
    public void dismissProgressDialog() {
        if (null != mProgressDialog && mProgressDialog.isShowing()) {
            mProgressDialog.dismiss();
        }
    }

    /***
     * 双击退出
     *
     * @param text
     */
    protected void exitBy2Click(String text) {
        long secondTime = System.currentTimeMillis();
        if (secondTime - firstTime > 2000) {
            Toast.makeText(this, text, Toast.LENGTH_SHORT).show();
            firstTime = secondTime;
        } else {
            finish();
        }
    }

    private long firstTime = 0;
}


================================================
FILE: rimethelper/src/main/java/com/wuxiaosu/rimethelper/bean/LocationSearchSuggestions.java
================================================
package com.wuxiaosu.rimethelper.bean;

import android.annotation.SuppressLint;
import android.os.Parcel;

import com.amap.api.maps2d.model.LatLng;
import com.arlib.floatingsearchview.suggestions.model.SearchSuggestion;

/**
 * Created by su on 2018/3/15.
 */

@SuppressLint("ParcelCreator")
public class LocationSearchSuggestions implements SearchSuggestion {

    private String title;
    private String body;
    private LatLng latLng;

    public LocationSearchSuggestions(String title, String body, LatLng latLng) {
        this.title = title;
        this.body = body;
        this.latLng = latLng;
    }

    @Override
    public String getBody() {
        return body;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public String getTitle() {
        return title;
    }

    public LatLng getLatLng() {
        return latLng;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(title);
        dest.writeString(body);
        dest.writeValue(latLng);
    }
}


================================================
FILE: rimethelper/src/main/java/com/wuxiaosu/rimethelper/hook/LocationHook.java
================================================
package com.wuxiaosu.rimethelper.hook;

import android.annotation.SuppressLint;

import com.wuxiaosu.rimethelper.BuildConfig;
import com.wuxiaosu.widget.SettingLabelView;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;

import de.robv.android.xposed.XC_MethodHook;
import de.robv.android.xposed.XSharedPreferences;
import de.robv.android.xposed.XposedBridge;
import de.robv.android.xposed.XposedHelpers;

/**
 * Created by su on 2018/3/15.
 * 定位 hook
 */

public class LocationHook {

    private static XSharedPreferences sXsp;

    private static boolean sFakeLocation;
    private static boolean sFakeLocationTime;
    private static String sStartTime;
    private static String sLatitude;
    private static String sLongitude;

    private static final List<String> LISTENER_CLASS = new ArrayList<>();

    public static void hook(final ClassLoader classLoader) {
        try {
            final Class<?> aMapLocationClientClazz =
                    XposedHelpers.findClass("com.amap.api.location.AMapLocationClient", classLoader);
            XposedBridge.hookAllMethods(aMapLocationClientClazz, "setLocationListener", new XC_MethodHook() {
                @Override
                protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
                    super.beforeHookedMethod(param);
                    if (param.args.length == 1) {
                        Class<?> listenerClazz = param.args[0].getClass();
                        if (!LISTENER_CLASS.contains(listenerClazz.getName())) {
                            LISTENER_CLASS.add(listenerClazz.getName());
                            XposedBridge.hookAllMethods(listenerClazz, "onLocationChanged", new XC_MethodHook() {
                                @Override
                                protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
                                    param.args[0] = fakeAMapLocationObject(param.args[0]);
                                    super.beforeHookedMethod(param);
                                }
                            });
                        }
                    }
                }
            });
        } catch (Error | Exception e) {
            XposedBridge.log(e);
        }
    }

    private static void reload() {
        if (sXsp == null) {
            sXsp = new XSharedPreferences(BuildConfig.APPLICATION_ID, SettingLabelView.DEFAULT_PREFERENCES_NAME);
            sXsp.makeWorldReadable();
        }
        sXsp.reload();
        sFakeLocation = sXsp.getBoolean("fake_location", false);
        sFakeLocationTime = sXsp.getBoolean("fake_location_time", false);
        sStartTime = sXsp.getString("location_start_time", "8:40");
        sLatitude = sXsp.getString("latitude", "39.908692");
        sLongitude = sXsp.getString("longitude", "116.397477");
    }

    private static Object fakeAMapLocationObject(Object object) {
        reload();
        if (sFakeLocation) {
            if (!sFakeLocationTime || isAfterSetTime(sStartTime)) {
                XposedHelpers.callMethod(object, "setLatitude", Double.valueOf(sLatitude));
                XposedHelpers.callMethod(object, "setLongitude", Double.valueOf(sLongitude));
            }
        }
        return object;
    }

    /**
     * 当前时间在设置时间之后
     *
     * @param setTime 01:12
     * @return
     */
    @SuppressLint("SimpleDateFormat")
    private static boolean isAfterSetTime(String setTime) {
        SimpleDateFormat sdf = new SimpleDateFormat("HH:mm");
        Date date = null;
        Date now = null;
        try {
            date = sdf.parse(setTime);
        } catch (ParseException e) {
            try {
                date = sdf.parse("8:40");
            } catch (ParseException ignored) {
            }
        }
        Calendar calendar = Calendar.getInstance();
        try {
            now = sdf.parse(calendar.get(Calendar.HOUR_OF_DAY)
                    + ":" + calendar.get(Calendar.MINUTE));
        } catch (ParseException e) {
            e.printStackTrace();
        }
        return date.getTime() < now.getTime();
    }
}


================================================
FILE: rimethelper/src/main/res/drawable/ic_arrow_back.xml
================================================
<vector xmlns:android="http://schemas.android.com/apk/res/android"
        android:width="24dp"
        android:height="24dp"
        android:viewportWidth="24.0"
        android:viewportHeight="24.0">
    <path
        android:fillColor="#FFFFFFFF"
        android:pathData="M20,11H7.83l5.59,-5.59L12,4l-8,8 8,8 1.41,-1.41L7.83,13H20v-2z"/>
</vector>


================================================
FILE: rimethelper/src/main/res/drawable-xhdpi/ic_done.xml
================================================
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:viewportHeight="24.0"
    android:viewportWidth="24.0">
    <path
        android:fillColor="#FFFFFFFF"
        android:pathData="M9,16.2L4.8,12l-1.4,1.4L9,19 21,7l-1.4,-1.4L9,16.2z" />
</vector>


================================================
FILE: rimethelper/src/main/res/drawable-xhdpi/ic_info.xml
================================================
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:viewportHeight="24.0"
    android:viewportWidth="24.0">
    <path
        android:fillColor="#FFFFFFFF"
        android:pathData="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zm1,15h-2v-6h2v6zm0,-8h-2V7h2v2z" />
</vector>


================================================
FILE: rimethelper/src/main/res/drawable-xhdpi/ic_search.xml
================================================
<vector xmlns:android="http://schemas.android.com/apk/res/android"
        android:width="24dp"
        android:height="24dp"
        android:viewportWidth="24.0"
        android:viewportHeight="24.0">
    <path
        android:fillColor="#FF000000"
        android:pathData="M15.5,14h-0.79l-0.28,-0.27C15.41,12.59 16,11.11 16,9.5 16,5.91 13.09,3 9.5,3S3,5.91 3,9.5 5.91,16 9.5,16c1.61,0 3.09,-0.59 4.23,-1.57l0.27,0.28v0.79l5,4.99L20.49,19l-4.99,-5zM9.5,14C7.01,14 5,11.99 5,9.5S7.01,5 9.5,5 14,7.01 14,9.5 11.99,14 9.5,14z"/>
</vector>


================================================
FILE: rimethelper/src/main/res/layout/activity_amap_lite.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <com.amap.api.maps2d.MapView
        android:id="@+id/mapview"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />

    <FrameLayout
        android:id="@+id/view_need_offset"
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <com.arlib.floatingsearchview.FloatingSearchView
            android:id="@+id/floating_search_view"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            app:floatingSearch_close_search_on_keyboard_dismiss="true"
            app:floatingSearch_leftActionMode="noLeftAction"
            app:floatingSearch_menu="@menu/menu_amap_lite"
            app:floatingSearch_searchHint="格式:“北京 天安门”"
            app:floatingSearch_showSearchKey="false"
            app:floatingSearch_suggestionsListAnimDuration="250" />
    </FrameLayout>

    <android.support.design.widget.FloatingActionButton
        android:id="@+id/fb_done"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_alignParentRight="true"
        android:layout_marginBottom="@dimen/toolbar_height"
        android:layout_marginRight="@dimen/default_margin"
        android:tint="@color/white"
        app:srcCompat="@drawable/ic_done" />
</RelativeLayout>

================================================
FILE: rimethelper/src/main/res/layout/activity_main.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/light_grey">

    <include layout="@layout/toolbar_common" />

    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_marginTop="@dimen/toolbar_height">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:paddingBottom="@dimen/default_margin">

            <com.wuxiaosu.widget.SettingLabelView
                android:id="@+id/slv_hide_icon"
                style="@style/SettingLayout"
                app:label_text="隐藏图标"
                app:preferences_key="@string/pre_key_hide_icon"
                app:subheading_text="隐藏后可以从 Xposed 模块中打开应用" />

            <com.wuxiaosu.widget.SettingLabelView
                android:id="@+id/slv_location"
                style="@style/SettingLayout"
                app:contact_view="@id/ll_location"
                app:label_text="模拟定位"
                app:preferences_key="@string/pre_key_fake_location" />

            <RelativeLayout
                android:id="@+id/ll_location"
                style="@style/SettingLayout"
                android:layout_marginTop="0dp"
                android:paddingLeft="@dimen/default_margin"
                android:paddingRight="@dimen/default_margin">

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_alignParentBottom="true"
                    android:layout_toLeftOf="@id/iv_location"
                    android:orientation="horizontal">

                    <EditText
                        android:id="@+id/et_latitude"
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_marginRight="@dimen/little_margin"
                        android:layout_weight="1"
                        android:gravity="center_horizontal"
                        android:hint="纬度"
                        android:inputType="numberDecimal" />

                    <EditText
                        android:id="@+id/et_longitude"
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_marginLeft="@dimen/little_margin"
                        android:layout_marginRight="@dimen/little_margin"
                        android:layout_weight="1"
                        android:gravity="center_horizontal"
                        android:hint="经度"
                        android:inputType="numberDecimal" />

                </LinearLayout>

                <ImageView
                    android:id="@+id/iv_location"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_alignParentRight="true"
                    android:layout_centerVertical="true"
                    android:layout_marginLeft="@dimen/mini_margin"
                    android:layout_marginRight="@dimen/mini_margin"
                    android:background="?attr/selectableItemBackgroundBorderless"
                    android:padding="@dimen/mini_margin"
                    android:src="@drawable/ic_current_location"
                    android:tint="@color/accent" />
            </RelativeLayout>

            <LinearLayout
                android:id="@+id/ll_location_time"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical">

                <com.wuxiaosu.widget.SettingLabelView
                    style="@style/SettingLayout"
                    app:contact_view="@id/rl_location_start_time"
                    app:label_text="模拟定位启用时间"
                    app:preferences_key="@string/pre_key_fake_location_time"
                    app:subheading_text="防止早上打开应用自动极速打卡" />

                <RelativeLayout
                    android:id="@+id/rl_location_start_time"
                    style="@style/SettingLayout"
                    android:layout_marginTop="0dp"
                    android:paddingLeft="@dimen/default_margin"
                    android:paddingRight="@dimen/default_margin">

                    <EditText
                        android:id="@+id/et_location_start_time"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_marginRight="@dimen/little_margin"
                        android:layout_weight="1"
                        android:gravity="center_horizontal"
                        android:hint="启用时间,如:8:40"
                        android:inputType="time"
                        android:maxLength="5"
                        android:singleLine="true" />

                </RelativeLayout>

            </LinearLayout>
        </LinearLayout>
    </ScrollView>
</FrameLayout>



================================================
FILE: rimethelper/src/main/res/layout/dialog_about_content.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical"
    android:padding="@dimen/default_margin">

    <TextView
        android:id="@+id/tv_version_name"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="@dimen/default_margin"
        android:gravity="center"
        android:textColor="@color/primary_text"
        android:textSize="@dimen/Title" />

    <TextView
        android:id="@+id/tv_info"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="@dimen/default_margin"
        android:gravity="center" />

    <TextView
        android:id="@+id/tv_url"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="@dimen/default_margin"
        android:gravity="center" />

</LinearLayout>


================================================
FILE: rimethelper/src/main/res/layout/toolbar_common.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto">

    <android.support.design.widget.AppBarLayout
        android:id="@+id/abl"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:theme="@style/AppTheme.AppBarOverlay">

        <android.support.v7.widget.Toolbar
            android:id="@+id/toolbar"
            android:layout_width="match_parent"
            android:layout_height="?attr/actionBarSize"
            app:popupTheme="@style/AppTheme.PopupOverlay" />

    </android.support.design.widget.AppBarLayout>
</merge>


================================================
FILE: rimethelper/src/main/res/menu/menu_amap_lite.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto">
    <item
        android:id="@+id/action_search"
        android:icon="@drawable/ic_search"
        android:orderInCategory="100"
        android:title="@string/action_search"
        app:showAsAction="always" />
</menu>

================================================
FILE: rimethelper/src/main/res/menu/menu_main.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto">
    <item
        android:id="@+id/action_about"
        android:icon="@drawable/ic_info"
        android:orderInCategory="100"
        android:title="@string/action_about"
        app:showAsAction="always" />

</menu>


================================================
FILE: rimethelper/src/main/res/values/colors.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <color name="primary">#03A9F4</color>
    <color name="primary_dark">#0288D1</color>
    <color name="primary_light">#B3E5FC</color>
    <color name="accent">#E040FB</color>

    <!--主要容器背景色-->
    <color name="default_bg">#F5F4F3</color>
    <!--状态栏颜色-->
    <color name="status_bar">#0288D1</color>

    <!-- 透明 -->
    <color name="transparent">#00000000</color>

    <!-- 半透明 -->
    <color name="translucent">#e0000000</color>

    <!--字体颜色-->
    <color name="primary_text">#212121</color>
    <color name="secondary_text">#757575</color>
    <!--下划线 -->
    <color name="divider">#BDBDBD</color>

    <!-- 基础色 -->
    <!-- 红 -->
    <color name="dark_red">#d32f2f</color>
    <color name="primary_red">#f44336</color>
    <color name="light_red">#ef9a9a</color>

    <!-- 粉红 -->
    <color name="dark_pink">#c2185b</color>
    <color name="primary_pink">#e91e63</color>
    <color name="light_pink">#e48fb1</color>

    <!-- 紫 -->
    <color name="dark_purple">#7b1fa2</color>
    <color name="primary_purple">#9c27b0</color>
    <color name="light_purple">#ce93d8</color>

    <!-- 深紫 -->
    <color name="dark_deep_purple">#512da8</color>
    <color name="primary_deep_purple">#673ab7</color>
    <color name="light_deep_purple">#b39ddb</color>

    <!-- 靛蓝 -->
    <color name="dark_indigo">#303f9f</color>
    <color name="primary_indigo">#3f51b5</color>
    <color name="light_indigo">#9fa8da</color>

    <!-- 蓝 -->
    <color name="dark_blue">#1976d2</color>
    <color name="primary_blue">#2196f3</color>
    <color name="light_blue">#90caf9</color>

    <!-- 浅蓝 -->
    <color name="dark_light_blue">#0288d1</color>
    <color name="primary_light_blue">#03a9f4</color>
    <color name="light_light_blue">#81d4fa</color>

    <!-- 青 -->
    <color name="dark_cyan">#0097a7</color>
    <color name="primary_cyan">#00bcd4</color>
    <color name="light_cyan">#80deea</color>

    <!-- 深青 -->
    <color name="dark_teal">#00796b</color>
    <color name="primary_teal">#009688</color>
    <color name="light_teal">#80cbc4</color>

    <!-- 绿 -->
    <color name="dark_green">#388e3c</color>
    <color name="primary_green">#4caf50</color>
    <color name="light_green">#a5d6a7</color>

    <!-- 浅绿 -->
    <color name="dark_light_green">#689f38</color>
    <color name="primary_light_green">#8bc34a</color>
    <color name="light_light_green">#c5e1a5</color>

    <!-- 橙绿 -->
    <color name="dark_lime">#afb42b</color>
    <color name="primary_lime">#cddc39</color>
    <color name="light_lime">#e6ee9c</color>

    <!-- 黄 -->
    <color name="dark_yellow">#fbc02d</color>
    <color name="primary_yellow">#ffeb3b</color>
    <color name="light_yellow">#fff59d</color>

    <!-- 琥珀 -->
    <color name="dark_amber">#ffa000</color>
    <color name="primary_amer">#ffc107</color>
    <color name="light_amber">#ffe082</color>

    <!-- 橙-->
    <color name="dark_orange">#f57c00</color>
    <color name="primary_orange">#ff9800</color>
    <color name="light_orange">#ffcc80</color>

    <!-- 深橙-->
    <color name="dark_deep_orange">#e64a19</color>
    <color name="primary_deep_orange">#ff5722</color>
    <color name="light_deep_orange">#ffab91</color>

    <!-- 棕-->
    <color name="dark_brown">#5d4037</color>
    <color name="primary_brown">#795548</color>
    <color name="light_brown">#bcaaa4</color>

    <!-- 灰-->
    <color name="dark_grey">#616161</color>
    <color name="primary_grey">#9e9e9e</color>
    <color name="light_grey">#eeeeee</color>

    <!-- 蓝灰-->
    <color name="dark_blue_grey">#455a64</color>
    <color name="primary_blue_grey">#607d8b</color>
    <color name="light_blue_grey">#b0bec5</color>

    <!-- 白 -->
    <color name="white">#ffffffff</color>
    <!-- 黑 -->
    <color name="black">#ff000000</color>
</resources>


================================================
FILE: rimethelper/src/main/res/values/dimens.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <!-- padding margin 通用标尺-->
    <dimen name="default_margin">16dp</dimen>
    <dimen name="mini_margin">8dp</dimen>
    <dimen name="little_margin">4dp</dimen>

    <!--不同尺寸头像高度-->
    <dimen name="avatar_height">64dp</dimen>
    <dimen name="avatar_radius">32dp</dimen>
    <dimen name="mini_avatar_height">40dp</dimen>
    <dimen name="little_avatar_height">24dp</dimen>

    <dimen name="btn_default_radius">2dp</dimen>
    <dimen name="btn_default_height">36dp</dimen>
    <dimen name="btn_middle_height">48dp</dimen>

    <!--floating action button 高度-->
    <dimen name="fab_height_default">56dp</dimen>
    <dimen name="fab_height_mini">40dp</dimen>
    <!--toolbar 默认高度 -->
    <dimen name="toolbar_height">56dp</dimen>
    <!--分割线-->
    <dimen name="divider_height">1dp</dimen>

    <!--Dense scripts(密集字体样式)-->
    <!--Chinese, Japanese, and Korean(中文,日语,韩语)-->
    <dimen name="Display4">112sp</dimen>
    <dimen name="Display3">56sp</dimen>
    <dimen name="Display2">45sp</dimen>
    <dimen name="Display1">34sp</dimen>
    <dimen name="Headline">24sp</dimen>
    <dimen name="Title">20sp</dimen>
    <dimen name="Subheading">16sp</dimen>
    <dimen name="Body2">14sp</dimen>
    <dimen name="Body1">14sp</dimen>
    <dimen name="Caption">12sp</dimen>
    <dimen name="Button">14sp</dimen>

    <!-- 默认圆形进度条的高度 -->
    <dimen name="progress_bar_height">36dp</dimen>

    <!-- 默认阴影高度 -->
    <dimen name="dialog_elevation">24dp</dimen>
    <dimen name="picker_elevation">24dp</dimen>
    <dimen name="fab_pressed_elevation">12dp</dimen>
    <dimen name="fab_resting_elevation">6dp</dimen>
    <dimen name="card_picked_elevation">8dp</dimen>
    <dimen name="appbar_elevation">4dp</dimen>
    <dimen name="card_resting_elevation">2dp</dimen>
    <dimen name="switch_elevation">1dp</dimen>

</resources>


================================================
FILE: rimethelper/src/main/res/values/strings.xml
================================================
<resources>
    <string name="app_name">钉钉助手</string>
    <string name="app_description">钉钉辅助</string>

    <string name="pre_key_hide_icon">hide_icon</string>
    <string name="pre_key_fake_location">fake_location</string>
    <string name="pre_key_fake_location_time">fake_location_time</string>
    <string name="pre_key_location_start_time">location_start_time</string>
    <string name="pre_key_latitude">latitude</string>
    <string name="pre_key_longitude">longitude</string>

    <string name="action_search">搜索</string>
    <string name="action_about">关于</string>
</resources>


================================================
FILE: rimethelper/src/main/res/values/styles.xml
================================================
<resources>

    <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
        <item name="colorPrimary">@color/primary</item>
        <item name="colorPrimaryDark">@color/primary_dark</item>
        <item name="colorAccent">@color/accent</item>
        <item name="actionModeBackground">@color/primary</item>
    </style>

    <style name="AppTheme.NoActionBar">
        <item name="windowActionBar">false</item>
        <item name="windowNoTitle">true</item>
    </style>

    <style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />

    <style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />

    <style name="SettingLayout">
        <item name="android:layout_width">match_parent</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:layout_marginTop">@dimen/default_margin</item>
        <item name="android:background">@color/white</item>
    </style>
</resources>


================================================
FILE: settings.gradle
================================================
include ':rimethelper', ':amaplitelib', ':SettingLabelView'
Download .txt
gitextract_0adaubdc/

├── LICENSE
├── README.md
├── amaplitelib/
│   ├── build.gradle
│   ├── libs/
│   │   └── AMap2DMap_5.2.0_AMapSearch_5.7.0_20171229.jar
│   ├── proguard-rules.pro
│   └── src/
│       └── main/
│           └── AndroidManifest.xml
├── build.gradle
├── rimethelper/
│   ├── build.gradle
│   ├── proguard-rules.pro
│   └── src/
│       └── main/
│           ├── AndroidManifest.xml
│           ├── assets/
│           │   └── xposed_init
│           ├── java/
│           │   └── com/
│           │       └── wuxiaosu/
│           │           └── rimethelper/
│           │               ├── Main.java
│           │               ├── activity/
│           │               │   ├── AMapLiteActivity.java
│           │               │   └── MainActivity.java
│           │               ├── base/
│           │               │   └── BaseActivity.java
│           │               ├── bean/
│           │               │   └── LocationSearchSuggestions.java
│           │               └── hook/
│           │                   └── LocationHook.java
│           └── res/
│               ├── drawable/
│               │   └── ic_arrow_back.xml
│               ├── drawable-xhdpi/
│               │   ├── ic_done.xml
│               │   ├── ic_info.xml
│               │   └── ic_search.xml
│               ├── layout/
│               │   ├── activity_amap_lite.xml
│               │   ├── activity_main.xml
│               │   ├── dialog_about_content.xml
│               │   └── toolbar_common.xml
│               ├── menu/
│               │   ├── menu_amap_lite.xml
│               │   └── menu_main.xml
│               └── values/
│                   ├── colors.xml
│                   ├── dimens.xml
│                   ├── strings.xml
│                   └── styles.xml
└── settings.gradle
Download .txt
SYMBOL INDEX (54 symbols across 6 files)

FILE: rimethelper/src/main/java/com/wuxiaosu/rimethelper/Main.java
  class Main (line 20) | public class Main implements IXposedHookLoadPackage {
    method handleLoadPackage (line 21) | @Override
    method handleHook (line 61) | private void handleHook(ClassLoader classLoader, String versionName) {
    method getVersionName (line 65) | private String getVersionName(Context context, String pkgName) {

FILE: rimethelper/src/main/java/com/wuxiaosu/rimethelper/activity/AMapLiteActivity.java
  class AMapLiteActivity (line 40) | public class AMapLiteActivity extends AppCompatActivity {
    method onCreate (line 52) | @Override
    method initMap (line 64) | private void initMap(Bundle savedInstanceState) {
    method poiSearch (line 141) | private void poiSearch(String key) {
    method searchResultData2SearchSuggestion (line 178) | private List<LocationSearchSuggestions> searchResultData2SearchSuggest...
    method cameraUpdate (line 189) | private void cameraUpdate(LatLng latLng) {
    method addMarker (line 202) | private void addMarker(LatLng latLng, String name) {
    method chooseDone (line 216) | public void chooseDone() {
    method onDestroy (line 226) | @Override
    method onPause (line 232) | @Override
    method onResume (line 238) | @Override
    method actionStart (line 244) | public static void actionStart(Activity context,

FILE: rimethelper/src/main/java/com/wuxiaosu/rimethelper/activity/MainActivity.java
  class MainActivity (line 33) | public class MainActivity extends BaseActivity {
    method onCreate (line 47) | @Override
    method initView (line 57) | private void initView() {
    method hideLauncherIcon (line 103) | public void hideLauncherIcon(boolean isHide) {
    method getAliasComponentName (line 109) | private ComponentName getAliasComponentName() {
    method bindPreferences (line 114) | private void bindPreferences(EditText editText, final SharedPreference...
    method onActivityResult (line 135) | @Override
    method onCreateOptionsMenu (line 144) | @Override
    method onOptionsItemSelected (line 150) | @Override
    method showInfo (line 159) | @SuppressLint("SetTextI18n")
    method sendURLIntent (line 184) | private void sendURLIntent(String url) {
    method showModuleActiveInfo (line 197) | private void showModuleActiveInfo(boolean isModuleActive) {

FILE: rimethelper/src/main/java/com/wuxiaosu/rimethelper/base/BaseActivity.java
  class BaseActivity (line 21) | public class BaseActivity extends AppCompatActivity {
    method setContentView (line 25) | @Override
    method initStatusBar (line 36) | protected void initStatusBar() {
    method isStatusBarTransparent (line 50) | protected boolean isStatusBarTransparent() {
    method getStatusBarColor (line 59) | @ColorRes
    method initToolbar (line 65) | private void initToolbar() {
    method getToolbar (line 93) | public Toolbar getToolbar() {
    method showToolbar (line 100) | public void showToolbar() {
    method hideToolbar (line 107) | public void hideToolbar() {
    method showProgressDialog (line 116) | public void showProgressDialog() {
    method showProgressDialog (line 125) | public void showProgressDialog(boolean cancelable) {
    method showProgressDialog (line 135) | public void showProgressDialog(String text, boolean cancelable) {
    method dismissProgressDialog (line 147) | public void dismissProgressDialog() {
    method exitBy2Click (line 158) | protected void exitBy2Click(String text) {

FILE: rimethelper/src/main/java/com/wuxiaosu/rimethelper/bean/LocationSearchSuggestions.java
  class LocationSearchSuggestions (line 13) | @SuppressLint("ParcelCreator")
    method LocationSearchSuggestions (line 20) | public LocationSearchSuggestions(String title, String body, LatLng lat...
    method getBody (line 26) | @Override
    method describeContents (line 31) | @Override
    method getTitle (line 36) | public String getTitle() {
    method getLatLng (line 40) | public LatLng getLatLng() {
    method writeToParcel (line 44) | @Override

FILE: rimethelper/src/main/java/com/wuxiaosu/rimethelper/hook/LocationHook.java
  class LocationHook (line 25) | public class LocationHook {
    method hook (line 37) | public static void hook(final ClassLoader classLoader) {
    method reload (line 65) | private static void reload() {
    method fakeAMapLocationObject (line 78) | private static Object fakeAMapLocationObject(Object object) {
    method isAfterSetTime (line 95) | @SuppressLint("SimpleDateFormat")
Condensed preview — 32 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (81K chars).
[
  {
    "path": "LICENSE",
    "chars": 18092,
    "preview": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 2, June 1991\n\n Copyright (C) 1989, 1991 Fr"
  },
  {
    "path": "README.md",
    "chars": 392,
    "preview": "# XposedRimetHelper  \n\nXposed 钉钉辅助模块,暂时实现模拟位置。理论上支持 4.2.0 以上所有版本。  \n“酷公司”是怎样的反正我是不知道,不过恶心的公司恶心的做法应该都是一样了,模拟位置让你在哪都能打卡。  "
  },
  {
    "path": "amaplitelib/build.gradle",
    "chars": 451,
    "preview": "apply plugin: 'com.android.library'\n\nandroid {\n    compileSdkVersion 26\n\n    defaultConfig {\n        minSdkVersion 21\n  "
  },
  {
    "path": "amaplitelib/proguard-rules.pro",
    "chars": 751,
    "preview": "# Add project specific ProGuard rules here.\n# You can control the set of applied configuration files using the\n# proguar"
  },
  {
    "path": "amaplitelib/src/main/AndroidManifest.xml",
    "chars": 111,
    "preview": "<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    package=\"com.wuxiaosu.amaplitelib\" />\n"
  },
  {
    "path": "build.gradle",
    "chars": 641,
    "preview": "// Top-level build file where you can add configuration options common to all sub-projects/modules.\n\nbuildscript {\n\n    "
  },
  {
    "path": "rimethelper/build.gradle",
    "chars": 2266,
    "preview": "apply plugin: 'com.android.application'\n\nandroid {\n    compileSdkVersion 30\n    defaultConfig {\n        applicationId \"c"
  },
  {
    "path": "rimethelper/proguard-rules.pro",
    "chars": 1333,
    "preview": "# Add project specific ProGuard rules here.\n# You can control the set of applied configuration files using the\n# proguar"
  },
  {
    "path": "rimethelper/src/main/AndroidManifest.xml",
    "chars": 2764,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:to"
  },
  {
    "path": "rimethelper/src/main/assets/xposed_init",
    "chars": 29,
    "preview": "com.wuxiaosu.rimethelper.Main"
  },
  {
    "path": "rimethelper/src/main/java/com/wuxiaosu/rimethelper/Main.java",
    "chars": 2976,
    "preview": "package com.wuxiaosu.rimethelper;\n\nimport android.app.Application;\nimport android.content.Context;\nimport android.conten"
  },
  {
    "path": "rimethelper/src/main/java/com/wuxiaosu/rimethelper/activity/AMapLiteActivity.java",
    "chars": 9498,
    "preview": "package com.wuxiaosu.rimethelper.activity;\n\nimport android.app.Activity;\nimport android.content.Intent;\nimport android.o"
  },
  {
    "path": "rimethelper/src/main/java/com/wuxiaosu/rimethelper/activity/MainActivity.java",
    "chars": 7603,
    "preview": "package com.wuxiaosu.rimethelper.activity;\n\nimport android.annotation.SuppressLint;\nimport android.app.AlertDialog;\nimpo"
  },
  {
    "path": "rimethelper/src/main/java/com/wuxiaosu/rimethelper/base/BaseActivity.java",
    "chars": 4098,
    "preview": "package com.wuxiaosu.rimethelper.base;\n\nimport android.app.ProgressDialog;\nimport android.content.pm.ActivityInfo;\nimpor"
  },
  {
    "path": "rimethelper/src/main/java/com/wuxiaosu/rimethelper/bean/LocationSearchSuggestions.java",
    "chars": 1058,
    "preview": "package com.wuxiaosu.rimethelper.bean;\n\nimport android.annotation.SuppressLint;\nimport android.os.Parcel;\n\nimport com.am"
  },
  {
    "path": "rimethelper/src/main/java/com/wuxiaosu/rimethelper/hook/LocationHook.java",
    "chars": 4230,
    "preview": "package com.wuxiaosu.rimethelper.hook;\n\nimport android.annotation.SuppressLint;\n\nimport com.wuxiaosu.rimethelper.BuildCo"
  },
  {
    "path": "rimethelper/src/main/res/drawable/ic_arrow_back.xml",
    "chars": 361,
    "preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n        android:width=\"24dp\"\r\n        android:height"
  },
  {
    "path": "rimethelper/src/main/res/drawable-xhdpi/ic_done.xml",
    "chars": 326,
    "preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n  "
  },
  {
    "path": "rimethelper/src/main/res/drawable-xhdpi/ic_info.xml",
    "chars": 374,
    "preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n  "
  },
  {
    "path": "rimethelper/src/main/res/drawable-xhdpi/ic_search.xml",
    "chars": 538,
    "preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n        android:width=\"24dp\"\n        android:height=\""
  },
  {
    "path": "rimethelper/src/main/res/layout/activity_amap_lite.xml",
    "chars": 1648,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<RelativeLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xm"
  },
  {
    "path": "rimethelper/src/main/res/layout/activity_main.xml",
    "chars": 5380,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FrameLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns"
  },
  {
    "path": "rimethelper/src/main/res/layout/dialog_about_content.xml",
    "chars": 1109,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n    an"
  },
  {
    "path": "rimethelper/src/main/res/layout/toolbar_common.xml",
    "chars": 710,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<merge xmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n    xmlns:app"
  },
  {
    "path": "rimethelper/src/main/res/menu/menu_amap_lite.xml",
    "chars": 382,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<menu xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"h"
  },
  {
    "path": "rimethelper/src/main/res/menu/menu_main.xml",
    "chars": 380,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<menu xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"h"
  },
  {
    "path": "rimethelper/src/main/res/values/colors.xml",
    "chars": 3821,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <color name=\"primary\">#03A9F4</color>\n    <color name=\"primary_da"
  },
  {
    "path": "rimethelper/src/main/res/values/dimens.xml",
    "chars": 1870,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <!-- padding margin 通用标尺-->\n    <dimen name=\"default_margin\">16dp"
  },
  {
    "path": "rimethelper/src/main/res/values/strings.xml",
    "chars": 587,
    "preview": "<resources>\n    <string name=\"app_name\">钉钉助手</string>\n    <string name=\"app_description\">钉钉辅助</string>\n\n    <string name"
  },
  {
    "path": "rimethelper/src/main/res/values/styles.xml",
    "chars": 983,
    "preview": "<resources>\n\n    <style name=\"AppTheme\" parent=\"Theme.AppCompat.Light.DarkActionBar\">\n        <item name=\"colorPrimary\">"
  },
  {
    "path": "settings.gradle",
    "chars": 60,
    "preview": "include ':rimethelper', ':amaplitelib', ':SettingLabelView'\n"
  }
]

// ... and 1 more files (download for full content)

About this extraction

This page contains the full source code of the wuxiaosu/XposedRimetHelper GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 32 files (73.1 KB), approximately 18.5k tokens, and a symbol index with 54 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!