Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f90c9655 authored by Guillaume Jacquart's avatar Guillaume Jacquart
Browse files

Add unlocked android.jar and instructions

parent bdab4cff
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -11,6 +11,17 @@ You can just follow the instructions given by this project [ anggrayudi/android-

**Caution:** Actually, the given android.jar for sdk 29 (android 10 / Q) doesn't work out of the box. To make it work, you just have to unzip it twice, until you get a list of directories (android, androidx, assets, ...) in the root of the android.jar archive.


https://hardiannicko.medium.com/create-your-own-android-hidden-apis-fa3cca02d345

TL;DR

* Get your sdk's android.jar here : <SDK-dir>/platforms/android-X/android.jar
* On a running android device (/e/ one to be sure about the licences) get the platform.jar : `adb pull /system/framework/framework.jar`
* Then we will merge .classes of platform.jar/android into android.jar (using dex2jar at some point)
* Replace the new builded android.jar in <SDK-dir>/platforms/android-X/


# Structure (UML class diagrams)

* v0.0.2.1 (Permissions)
+3 −2
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@ buildscript {
    ext.kotlin_version = "1.4.10"
    repositories {
        google()
        jcenter()
        mavenCentral()
    }
    dependencies {
        classpath "com.android.tools.build:gradle:4.0.1"
@@ -17,7 +17,8 @@ buildscript {
allprojects {
    repositories {
        google()
        jcenter()
        mavenCentral()
        mavenLocal()
    }
}

privacymodulesapi/build.gradle

deleted100644 → 0
+0 −2
Original line number Diff line number Diff line
configurations.maybeCreate("default")
artifacts.add("default", file('privacymodulesapi-release.aar'))
 No newline at end of file
−32.1 KiB

File deleted.

+3 −2
Original line number Diff line number Diff line
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'

android {
    compileSdkVersion 30
@@ -25,7 +24,9 @@ android {
}

dependencies {
    implementation project(":privacymodulesapi")
    implementation 'foundation.e:privacymodule.api:0.2.1'

    //implementation project(":privacymodulesapi")

    implementation fileTree(dir: "libs", include: ["*.jar"])
    implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"