kandi background
Explore Kits

EdXposed | Elder driver Xposed Framework.

 by   ElderDrivers Java Version: v0.5.2.2 License: GPL-3.0

 by   ElderDrivers Java Version: v0.5.2.2 License: GPL-3.0

Download this library from

kandi X-RAY | EdXposed Summary

EdXposed is a Java library. EdXposed has no vulnerabilities, it has build file available, it has a Strong Copyleft License and it has medium support. However EdXposed has 140 bugs. You can download it from GitHub.
A Riru module trying to provide an ART hooking framework (initially for Android Pie) which delivers consistent APIs with the OG Xposed, leveraging YAHFA (or SandHook) hooking framework, supports Android 8.0 ~ 11. Xposed is a framework for modules that can change the behavior of the system and apps without touching any APKs. That's great because it means that modules can work for different versions and even ROMs without any changes (as long as the original code was not changed too much). It's also easy to undo. As all changes are done in the memory, you just need to deactivate the module and reboot to get your original system back. There are many other advantages, but here is just one more: Multiple modules can do changes to the same part of the system or app. With modified APKs, you to decide for one. No way to combine them, unless the author builds multiple APKs with different combinations.
Support
Support
Quality
Quality
Security
Security
License
License
Reuse
Reuse

kandi-support Support

  • EdXposed has a medium active ecosystem.
  • It has 4291 star(s) with 525 fork(s). There are 182 watchers for this library.
  • It had no major release in the last 12 months.
  • There are 26 open issues and 725 have been closed. On average issues are closed in 40 days. There are 1 open pull requests and 0 closed requests.
  • It has a neutral sentiment in the developer community.
  • The latest version of EdXposed is v0.5.2.2
EdXposed Support
Best in #Java
Average in #Java
EdXposed Support
Best in #Java
Average in #Java

quality kandi Quality

  • EdXposed has 140 bugs (12 blocker, 1 critical, 67 major, 60 minor) and 4445 code smells.
EdXposed Quality
Best in #Java
Average in #Java
EdXposed Quality
Best in #Java
Average in #Java

securitySecurity

  • EdXposed has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
  • EdXposed code analysis shows 0 unresolved vulnerabilities.
  • There are 25 security hotspots that need review.
EdXposed Security
Best in #Java
Average in #Java
EdXposed Security
Best in #Java
Average in #Java

license License

  • EdXposed is licensed under the GPL-3.0 License. This license is Strong Copyleft.
  • Strong Copyleft licenses enforce sharing, and you can use them when creating open source projects.
EdXposed License
Best in #Java
Average in #Java
EdXposed License
Best in #Java
Average in #Java

buildReuse

  • EdXposed releases are available to install and integrate.
  • Build file is available. You can build the component from source.
  • Installation instructions are available. Examples and code snippets are not available.
  • EdXposed saves you 64874 person hours of effort in developing the same functionality from scratch.
  • It has 73379 lines of code, 7118 functions and 667 files.
  • It has high code complexity. Code complexity directly impacts maintainability of the code.
EdXposed Reuse
Best in #Java
Average in #Java
EdXposed Reuse
Best in #Java
Average in #Java
Top functions reviewed by kandi - BETA

kandi has reviewed EdXposed and discovered the below as its top functions. This is intended to give you an instant insight into EdXposed implemented functionality, and help decide if they suit your requirements.

  • Internal append method .
  • Parses instruction instructions .
  • Converts a jop op code to its corresponding opcode .
  • Retrieves the code for all methods .
  • Decode parameters .
  • Parse a constant .
  • Dop for the given instruction .
  • Pick an unordered chain .
  • Convert dex data to byte array .
  • Process all the specified classes .

EdXposed Key Features

Elder driver Xposed Framework.

(Ed)Xposed Ressource override failing

copy iconCopydownload iconDownload
"^attr-private"
"anim"
"animator"
"array"
"attr"
"bool"
"color"
"configVarying"
"dimen"
"drawable"
"font"
"fraction"
"id"
"integer"
"interpolator"
"layout"
"menu"
"mipmap"
"navigation"
"plurals"
"raw"
"string"
"style"
"styleable"
"transition"
"xml"
resparam.res.setReplacement("org.lineageos.jelly", "array", "pref_search_engine_entries", new String[]{"Baidu", "Bing", "DuckDuckGo", "Ecosia", "Google", "Google encrypted", "Yahoo", "Yandex"});
resparam.res.setReplacement("org.lineageos.jelly", "array", "pref_search_engine_entryvalues", new String[]{"https://www.baidu.com/s?wd={searchTerms}", "https://www.bing.com/search?q={searchTerms}", "https://duckduckgo.com/?q={searchTerms}", "https://www.ecosia.org/search?q={searchTerms}", "https://google.com/search?ie=UTF-8&source=android-browser&q={searchTerms}", "https://encrypted.google.com/search?q={searchTerms}", "https://search.yahoo.com/p={searchTerms}", "https://yandex.com/?q={searchTerms}"});            
-----------------------
"^attr-private"
"anim"
"animator"
"array"
"attr"
"bool"
"color"
"configVarying"
"dimen"
"drawable"
"font"
"fraction"
"id"
"integer"
"interpolator"
"layout"
"menu"
"mipmap"
"navigation"
"plurals"
"raw"
"string"
"style"
"styleable"
"transition"
"xml"
resparam.res.setReplacement("org.lineageos.jelly", "array", "pref_search_engine_entries", new String[]{"Baidu", "Bing", "DuckDuckGo", "Ecosia", "Google", "Google encrypted", "Yahoo", "Yandex"});
resparam.res.setReplacement("org.lineageos.jelly", "array", "pref_search_engine_entryvalues", new String[]{"https://www.baidu.com/s?wd={searchTerms}", "https://www.bing.com/search?q={searchTerms}", "https://duckduckgo.com/?q={searchTerms}", "https://www.ecosia.org/search?q={searchTerms}", "https://google.com/search?ie=UTF-8&source=android-browser&q={searchTerms}", "https://encrypted.google.com/search?q={searchTerms}", "https://search.yahoo.com/p={searchTerms}", "https://yandex.com/?q={searchTerms}"});            

Community Discussions

Trending Discussions on EdXposed
  • (Ed)Xposed Ressource override failing
Trending Discussions on EdXposed

QUESTION

(Ed)Xposed Ressource override failing

Asked 2019-Sep-28 at 13:33
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2017 The LineageOS Project
 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
     http://www.apache.org/licenses/LICENSE-2.0
 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
 -->
 <resources>

    <string-array name="pref_search_engine_entries" translatable="false">
        <item>Baidu</item>
        <item>Bing</item>
        <item>DuckDuckGo</item>
        <item>Google</item>
        <item>Google encrypted</item>
        <item>Yahoo</item>
        <item>Yandex</item>
    </string-array>

    <string-array name="pref_search_engine_entryvalues" translatable="false">
        <item>https://www.baidu.com/s?wd={searchTerms}</item>
        <item>https://www.bing.com/search?q={searchTerms}</item>
        <item>https://duckduckgo.com/?q={searchTerms}</item>
        <item>https://google.com/search?ie=UTF-8&amp;source=android-browser&amp;q={searchTerms}</item>
        <item>https://encrypted.google.com/search?q={searchTerms}</item>
        <item>https://search.yahoo.com/p={searchTerms}</item>
        <item>https://yandex.com/?q={searchTerms}</item>
    </string-array>
</resources>

to: (look after duckduckgo)

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2017 The LineageOS Project
 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
     http://www.apache.org/licenses/LICENSE-2.0
 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
 -->
 <resources>

    <string-array name="pref_search_engine_entries" translatable="false">
        <item>Baidu</item>
        <item>Bing</item>
        <item>DuckDuckGo</item>
        <item>Ecosia</item>
        <item>Google</item>
        <item>Google encrypted</item>
        <item>Yahoo</item>
        <item>Yandex</item>
    </string-array>

    <string-array name="pref_search_engine_entryvalues" translatable="false">
        <item>https://www.baidu.com/s?wd={searchTerms}</item>
        <item>https://www.bing.com/search?q={searchTerms}</item>
        <item>https://duckduckgo.com/?q={searchTerms}</item>
        <item>https://www.ecosia.org/search?q={searchTerms}
        <item>https://google.com/search?ie=UTF-8&amp;source=android-browser&amp;q={searchTerms}</item>
        <item>https://encrypted.google.com/search?q={searchTerms}</item>
        <item>https://search.yahoo.com/p={searchTerms}</item>
        <item>https://yandex.com/?q={searchTerms}</item>
    </string-array>
</resources>

My code:

package org.nift4.xposed.misc;

import de.robv.android.xposed.IXposedHookInitPackageResources;
import de.robv.android.xposed.IXposedHookLoadPackage;
import de.robv.android.xposed.callbacks.XC_InitPackageResources.InitPackageResourcesParam;
import de.robv.android.xposed.callbacks.XC_LoadPackage.LoadPackageParam;

import static de.robv.android.xposed.XposedHelpers.*;
import de.robv.android.xposed.XposedBridge;

public class Main implements IXposedHookLoadPackage, IXposedHookInitPackageResources
{

    @Override
    public void handleInitPackageResources(InitPackageResourcesParam resparam) throws Throwable
    {
        if (resparam.packageName.equals("org.lineageos.jelly")) {
            XposedBridge.log("found jelly '" + resparam.packageName + "'");
            resparam.res.setReplacement("org.lineageos.jelly", "string-array", "pref_search_engine_entries", new String[]{"Baidu", "Bing", "DuckDuckGo", "Ecosia", "Google", "Google encrypted", "Yahoo", "Yandex"});
            resparam.res.setReplacement("org.lineageos.jelly", "string-array", "pref_search_engine_entryvalues", new String[]{"https://www.baidu.com/s?wd={searchTerms}", "https://www.bing.com/search?q={searchTerms}", "https://duckduckgo.com/?q={searchTerms}", "https://www.ecosia.org/search?q={searchTerms}", "https://google.com/search?ie=UTF-8&amp;source=android-browser&amp;q={searchTerms}", "https://encrypted.google.com/search?q={searchTerms}", "https://search.yahoo.com/p={searchTerms}", "https://yandex.com/?q={searchTerms}"});
        }
        }

    @Override
    public void handleLoadPackage(final LoadPackageParam lpparam) throws Throwable {
    }
}

The error:

09-27 21:00:45.302 23339 23339 I EdXposed-Bridge: found jelly 'org.lineageos.jelly'
09-27 21:00:45.304 23339 23339 E EdXposed-Bridge: android.content.res.Resources$NotFoundException: org.lineageos.jelly:string-array/pref_search_engine_entries
09-27 21:00:45.304 23339 23339 E EdXposed-Bridge:   at android.content.res.XResources.setReplacement(XResources.java:503)
09-27 21:00:45.304 23339 23339 E EdXposed-Bridge:   at org.nift4.xposed.misc.Main.handleInitPackageResources(Main.java:19)
09-27 21:00:45.304 23339 23339 E EdXposed-Bridge:   at de.robv.android.xposed.IXposedHookInitPackageResources$Wrapper.handleInitPackageResources(IXposedHookInitPackageResources.java:37)
09-27 21:00:45.304 23339 23339 E EdXposed-Bridge:   at de.robv.android.xposed.callbacks.XC_InitPackageResources.call(XC_InitPackageResources.java:55)
09-27 21:00:45.304 23339 23339 E EdXposed-Bridge:   at de.robv.android.xposed.callbacks.XCallback.callAll(XCallback.java:117)
09-27 21:00:45.304 23339 23339 E EdXposed-Bridge:   at de.robv.android.xposed.XposedInit.cloneToXResources(XposedInit.java:288)
09-27 21:00:45.304 23339 23339 E EdXposed-Bridge:   at de.robv.android.xposed.XposedInit.access$000(XposedInit.java:61)
09-27 21:00:45.304 23339 23339 E EdXposed-Bridge:   at de.robv.android.xposed.XposedInit$2.afterHookedMethod(XposedInit.java:146)
09-27 21:00:45.304 23339 23339 E EdXposed-Bridge:   at de.robv.android.xposed.XC_MethodHook.callAfterHookedMethod(XC_MethodHook.java:68)
09-27 21:00:45.304 23339 23339 E EdXposed-Bridge:   at com.swift.sandhook.xposedcompat.hookstub.HookStubManager.hookBridge(HookStubManager.java:313)
09-27 21:00:45.304 23339 23339 E EdXposed-Bridge:   at com.swift.sandhook.xposedcompat.hookstub.MethodHookerStubs64.stub_hook_0(MethodHookerStubs64.java:558)
09-27 21:00:45.304 23339 23339 E EdXposed-Bridge:   at android.app.ResourcesManager.getResources(ResourcesManager.java:870)
09-27 21:00:45.304 23339 23339 E EdXposed-Bridge:   at android.app.LoadedApk.getResources(LoadedApk.java:1029)
09-27 21:00:45.304 23339 23339 E EdXposed-Bridge:   at android.app.ContextImpl.createAppContext(ContextImpl.java:2345)
09-27 21:00:45.304 23339 23339 E EdXposed-Bridge:   at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5798)
09-27 21:00:45.304 23339 23339 E EdXposed-Bridge:   at java.lang.reflect.Method.invoke(Native Method)
09-27 21:00:45.304 23339 23339 E EdXposed-Bridge:   at com.swift.sandhook.SandHook.callOriginMethod(SandHook.java:176)
09-27 21:00:45.304 23339 23339 E EdXposed-Bridge:   at com.swift.sandhook.SandHook.callOriginMethod(SandHook.java:154)
09-27 21:00:45.304 23339 23339 E EdXposed-Bridge:   at com.swift.sandhook.xposedcompat.hookstub.HookStubManager.hookBridge(HookStubManager.java:299)
09-27 21:00:45.304 23339 23339 E EdXposed-Bridge:   at com.swift.sandhook.xposedcompat.hookstub.MethodHookerStubs64.stub_hook_0(MethodHookerStubs64.java:198)
09-27 21:00:45.304 23339 23339 E EdXposed-Bridge:   at android.app.ActivityThread.access$1100(ActivityThread.java:200)
09-27 21:00:45.304 23339 23339 E EdXposed-Bridge:   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1656)
09-27 21:00:45.304 23339 23339 E EdXposed-Bridge:   at android.os.Handler.dispatchMessage(Handler.java:106)
09-27 21:00:45.304 23339 23339 E EdXposed-Bridge:   at android.os.Looper.loop(Looper.java:193)
09-27 21:00:45.304 23339 23339 E EdXposed-Bridge:   at android.app.ActivityThread.main(ActivityThread.java:6718)
09-27 21:00:45.304 23339 23339 E EdXposed-Bridge:   at java.lang.reflect.Method.invoke(Native Method)
09-27 21:00:45.304 23339 23339 E EdXposed-Bridge:   at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
09-27 21:00:45.304 23339 23339 E EdXposed-Bridge:   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

I tried to override the values from the search_engines.xml to add Ecosia to the Jelly Browser.

But always the error above throws and the Jelly Browser works but has no idea about Ecosia.

What do I wrong?

ANSWER

Answered 2019-Sep-28 at 13:33

The resource type in the XML resource files is shown as <string-array> and also the Xposed API documentation knowns the type String Array. However the documentation is not clear what concrete values are acceptable for type:

public void setReplacement (String pkg, String type, String name, Object replacement)

type The type name, e.g. string. See Resources.getResourceTypeName(int).

Tracing back the path through the AOSP sources what values can be returned by Resources.getResourceTypeName(int) and therefore are a valid resource type name you end up in the file Resource.cpp and it's StringPiece to_string(ResourceType type) method. It contains all possible resource type names. At the moment therefore the following values are allowed:

"^attr-private"
"anim"
"animator"
"array"
"attr"
"bool"
"color"
"configVarying"
"dimen"
"drawable"
"font"
"fraction"
"id"
"integer"
"interpolator"
"layout"
"menu"
"mipmap"
"navigation"
"plurals"
"raw"
"string"
"style"
"styleable"
"transition"
"xml"

In your case you used "string-array" which would be consistent with the xml tag the resource was defined it. However as you can see this type is not a valid resource type name. The correct resource type therefore in your case is "array".

Therefore you should change the type to "array" for the following two lines:

resparam.res.setReplacement("org.lineageos.jelly", "array", "pref_search_engine_entries", new String[]{"Baidu", "Bing", "DuckDuckGo", "Ecosia", "Google", "Google encrypted", "Yahoo", "Yandex"});
resparam.res.setReplacement("org.lineageos.jelly", "array", "pref_search_engine_entryvalues", new String[]{"https://www.baidu.com/s?wd={searchTerms}", "https://www.bing.com/search?q={searchTerms}", "https://duckduckgo.com/?q={searchTerms}", "https://www.ecosia.org/search?q={searchTerms}", "https://google.com/search?ie=UTF-8&amp;source=android-browser&amp;q={searchTerms}", "https://encrypted.google.com/search?q={searchTerms}", "https://search.yahoo.com/p={searchTerms}", "https://yandex.com/?q={searchTerms}"});            

Source https://stackoverflow.com/questions/58140333

Community Discussions, Code Snippets contain sources that include Stack Exchange Network

Vulnerabilities

No vulnerabilities reported

Install EdXposed

Install Magisk v21+
Install Riru v23+ from Magisk repo.
Download and install EdXposed in Magisk Manager or recovery.
Install EdXposed Manager.
Reboot.
Have fun! :)
Edxposed has three different builds.
Stable:Stable version after passing the test, suitable for general users, update slowly. Download Stable version in Magisk Manager's [Downloads] tab
Alpha: Test version with multiple commits. Download Alpha version in [Github Releases]
Canary: Debug version. Automatically build by CI. Download Canary version in [EdXposed Manager]

Support

For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .

DOWNLOAD this Library from

Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases

Save this library and start creating your kit

Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases

Save this library and start creating your kit

  • © 2022 Open Weaver Inc.