[Q] Execution failed for task: ':app:preDexDebug' - Android Studio

Hi, I am experiencing that famous ':appreDexDebug'-error.
First of all: Cleaning the project or rebuilding it works without errors. Under default settings I set the project bytecode version to 1.7 and under SDK Location in the project structure the JDK location seems to be correct, too. After a while of researching I still did not find the solution for this problem.
The error occurs when I try to run the project under Android Studio. Like mentioned before, cleaning, rebuilding and syncing with Gradle works fine (looks like it - no errors).
This is what the gradle console shows:
Code:
Configuration on demand is an incubating feature.
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:compileDebugNdk UP-TO-DATE
:app:checkDebugManifest
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources UP-TO-DATE
:app:processDebugManifest UP-TO-DATE
:app:processDebugResources UP-TO-DATE
:app:generateDebugSources UP-TO-DATE
:app:compileDebugJava UP-TO-DATE
:app:preDexDebug
AGPBI: {"kind":"SIMPLE","text":"UNEXPECTED TOP-LEVEL EXCEPTION:","position":{},"original":"UNEXPECTED TOP-LEVEL EXCEPTION:"}
AGPBI: {"kind":"SIMPLE","text":"com.android.dx.cf.iface.ParseException: bad class file magic (cafebabe) or version (0034.0000)","position":{},"original":"com.android.dx.cf.iface.ParseException: bad class file magic (cafebabe) or version (0034.0000)"}
AGPBI: {"kind":"SIMPLE","text":"\tat com.android.dx.cf.direct.DirectClassFile.parse0(DirectClassFile.java:472)","position":{},"original":"\tat com.android.dx.cf.direct.DirectClassFile.parse0(DirectClassFile.java:472)"}
AGPBI: {"kind":"SIMPLE","text":"\tat com.android.dx.cf.direct.DirectClassFile.parse(DirectClassFile.java:406)","position":{},"original":"\tat com.android.dx.cf.direct.DirectClassFile.parse(DirectClassFile.java:406)"}
AGPBI: {"kind":"SIMPLE","text":"\tat com.android.dx.cf.direct.DirectClassFile.parseToInterfacesIfNecessary(DirectClassFile.java:388)","position":{},"original":"\tat com.android.dx.cf.direct.DirectClassFile.parseToInterfacesIfNecessary(DirectClassFile.java:388)"}
AGPBI: {"kind":"SIMPLE","text":"\tat com.android.dx.cf.direct.DirectClassFile.getMagic(DirectClassFile.java:251)","position":{},"original":"\tat com.android.dx.cf.direct.DirectClassFile.getMagic(DirectClassFile.java:251)"}
AGPBI: {"kind":"SIMPLE","text":"\tat com.android.dx.command.dexer.Main.processClass(Main.java:704)","position":{},"original":"\tat com.android.dx.command.dexer.Main.processClass(Main.java:704)"}
AGPBI: {"kind":"SIMPLE","text":"\tat com.android.dx.command.dexer.Main.processFileBytes(Main.java:673)","position":{},"original":"\tat com.android.dx.command.dexer.Main.processFileBytes(Main.java:673)"}
AGPBI: {"kind":"SIMPLE","text":"\tat com.android.dx.command.dexer.Main.access$300(Main.java:83)","position":{},"original":"\tat com.android.dx.command.dexer.Main.access$300(Main.java:83)"}
AGPBI: {"kind":"SIMPLE","text":"\tat com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:602)","position":{},"original":"\tat com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:602)"}
AGPBI: {"kind":"SIMPLE","text":"\tat com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284)","position":{},"original":"\tat com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284)"}
AGPBI: {"kind":"SIMPLE","text":"\tat com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)","position":{},"original":"\tat com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)"}
AGPBI: {"kind":"SIMPLE","text":"\tat com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)","position":{},"original":"\tat com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)"}
AGPBI: {"kind":"SIMPLE","text":"\tat com.android.dx.command.dexer.Main.processOne(Main.java:632)","position":{},"original":"\tat com.android.dx.command.dexer.Main.processOne(Main.java:632)"}
AGPBI: {"kind":"SIMPLE","text":"\tat com.android.dx.command.dexer.Main.processAllFiles(Main.java:510)","position":{},"original":"\tat com.android.dx.command.dexer.Main.processAllFiles(Main.java:510)"}
AGPBI: {"kind":"SIMPLE","text":"\tat com.android.dx.command.dexer.Main.runMonoDex(Main.java:280)","position":{},"original":"\tat com.android.dx.command.dexer.Main.runMonoDex(Main.java:280)"}
AGPBI: {"kind":"SIMPLE","text":"\tat com.android.dx.command.dexer.Main.run(Main.java:246)","position":{},"original":"\tat com.android.dx.command.dexer.Main.run(Main.java:246)"}
AGPBI: {"kind":"SIMPLE","text":"\tat com.android.dx.command.dexer.Main.main(Main.java:215)","position":{},"original":"\tat com.android.dx.command.dexer.Main.main(Main.java:215)"}
AGPBI: {"kind":"SIMPLE","text":"\tat com.android.dx.command.Main.main(Main.java:106)","position":{},"original":"\tat com.android.dx.command.Main.main(Main.java:106)"}
AGPBI: {"kind":"SIMPLE","text":"...while parsing impl/org/controlsfx/ImplUtils.class","position":{},"original":"...while parsing impl/org/controlsfx/ImplUtils.class"}
AGPBI: {"kind":"SIMPLE","text":"1 error; aborting","position":{},"original":"1 error; aborting"}
FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:preDexDebug'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_67\bin\java.exe'' finished with non-zero exit value 1
As you see below, I removed the "compile android. ..."-line in my build.gradle, but it still didn't work. So here is my gradle build file:
Code:
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion '22.0.1'
compileOptions.encoding = 'windows-1251'
defaultConfig {
applicationId "de.giessen.advenco.key2operate"
minSdkVersion 15
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
}
It looks like Gradle has some problems with my JDK, but I don't know what kind of and how to fix them. I hope you guys can help.

KJaeg said:
Hi, I am experiencing that famous ':appreDexDebug'-error.
First of all: Cleaning the project or rebuilding it works without errors. Under default settings I set the project bytecode version to 1.7 and under SDK Location in the project structure the JDK location seems to be correct, too. After a while of researching I still did not find the solution for this problem.
The error occurs when I try to run the project under Android Studio. Like mentioned before, cleaning, rebuilding and syncing with Gradle works fine (looks like it - no errors).
This is what the gradle console shows:
Code:
Configuration on demand is an incubating feature.
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:compileDebugNdk UP-TO-DATE
:app:checkDebugManifest
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources UP-TO-DATE
:app:processDebugManifest UP-TO-DATE
:app:processDebugResources UP-TO-DATE
:app:generateDebugSources UP-TO-DATE
:app:compileDebugJava UP-TO-DATE
:app:preDexDebug
AGPBI: {"kind":"SIMPLE","text":"UNEXPECTED TOP-LEVEL EXCEPTION:","position":{},"original":"UNEXPECTED TOP-LEVEL EXCEPTION:"}
AGPBI: {"kind":"SIMPLE","text":"com.android.dx.cf.iface.ParseException: bad class file magic (cafebabe) or version (0034.0000)","position":{},"original":"com.android.dx.cf.iface.ParseException: bad class file magic (cafebabe) or version (0034.0000)"}
AGPBI: {"kind":"SIMPLE","text":"\tat com.android.dx.cf.direct.DirectClassFile.parse0(DirectClassFile.java:472)","position":{},"original":"\tat com.android.dx.cf.direct.DirectClassFile.parse0(DirectClassFile.java:472)"}
AGPBI: {"kind":"SIMPLE","text":"\tat com.android.dx.cf.direct.DirectClassFile.parse(DirectClassFile.java:406)","position":{},"original":"\tat com.android.dx.cf.direct.DirectClassFile.parse(DirectClassFile.java:406)"}
AGPBI: {"kind":"SIMPLE","text":"\tat com.android.dx.cf.direct.DirectClassFile.parseToInterfacesIfNecessary(DirectClassFile.java:388)","position":{},"original":"\tat com.android.dx.cf.direct.DirectClassFile.parseToInterfacesIfNecessary(DirectClassFile.java:388)"}
AGPBI: {"kind":"SIMPLE","text":"\tat com.android.dx.cf.direct.DirectClassFile.getMagic(DirectClassFile.java:251)","position":{},"original":"\tat com.android.dx.cf.direct.DirectClassFile.getMagic(DirectClassFile.java:251)"}
AGPBI: {"kind":"SIMPLE","text":"\tat com.android.dx.command.dexer.Main.processClass(Main.java:704)","position":{},"original":"\tat com.android.dx.command.dexer.Main.processClass(Main.java:704)"}
AGPBI: {"kind":"SIMPLE","text":"\tat com.android.dx.command.dexer.Main.processFileBytes(Main.java:673)","position":{},"original":"\tat com.android.dx.command.dexer.Main.processFileBytes(Main.java:673)"}
AGPBI: {"kind":"SIMPLE","text":"\tat com.android.dx.command.dexer.Main.access$300(Main.java:83)","position":{},"original":"\tat com.android.dx.command.dexer.Main.access$300(Main.java:83)"}
AGPBI: {"kind":"SIMPLE","text":"\tat com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:602)","position":{},"original":"\tat com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:602)"}
AGPBI: {"kind":"SIMPLE","text":"\tat com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284)","position":{},"original":"\tat com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284)"}
AGPBI: {"kind":"SIMPLE","text":"\tat com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)","position":{},"original":"\tat com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)"}
AGPBI: {"kind":"SIMPLE","text":"\tat com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)","position":{},"original":"\tat com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)"}
AGPBI: {"kind":"SIMPLE","text":"\tat com.android.dx.command.dexer.Main.processOne(Main.java:632)","position":{},"original":"\tat com.android.dx.command.dexer.Main.processOne(Main.java:632)"}
AGPBI: {"kind":"SIMPLE","text":"\tat com.android.dx.command.dexer.Main.processAllFiles(Main.java:510)","position":{},"original":"\tat com.android.dx.command.dexer.Main.processAllFiles(Main.java:510)"}
AGPBI: {"kind":"SIMPLE","text":"\tat com.android.dx.command.dexer.Main.runMonoDex(Main.java:280)","position":{},"original":"\tat com.android.dx.command.dexer.Main.runMonoDex(Main.java:280)"}
AGPBI: {"kind":"SIMPLE","text":"\tat com.android.dx.command.dexer.Main.run(Main.java:246)","position":{},"original":"\tat com.android.dx.command.dexer.Main.run(Main.java:246)"}
AGPBI: {"kind":"SIMPLE","text":"\tat com.android.dx.command.dexer.Main.main(Main.java:215)","position":{},"original":"\tat com.android.dx.command.dexer.Main.main(Main.java:215)"}
AGPBI: {"kind":"SIMPLE","text":"\tat com.android.dx.command.Main.main(Main.java:106)","position":{},"original":"\tat com.android.dx.command.Main.main(Main.java:106)"}
AGPBI: {"kind":"SIMPLE","text":"...while parsing impl/org/controlsfx/ImplUtils.class","position":{},"original":"...while parsing impl/org/controlsfx/ImplUtils.class"}
AGPBI: {"kind":"SIMPLE","text":"1 error; aborting","position":{},"original":"1 error; aborting"}
FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:preDexDebug'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_67\bin\java.exe'' finished with non-zero exit value 1
As you see below, I removed the "compile android. ..."-line in my build.gradle, but it still didn't work. So here is my gradle build file:
Code:
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion '22.0.1'
compileOptions.encoding = 'windows-1251'
defaultConfig {
applicationId "de.giessen.advenco.key2operate"
minSdkVersion 15
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
}
It looks like Gradle has some problems with my JDK, but I don't know what kind of and how to fix them. I hope you guys can help.
Click to expand...
Click to collapse
I have the same sh.t! And I have already tried all tips and tricks that I found on different forums. So, I dont know what to do P.S. Are you trying to create a game with libGDX?)

Related

[SOLVED, problem was java6] Can anyone help me edit the Launcher app from source?

I tried to PM some devs that I thought could help and didn't get a response back so maybe I can get a response here because it would seem that the devs are too busy.
Anyway... I am using Cyanogens source for Launcher and I opened it in Eclipse.
Then I go to Launcher.java and edit this to get nine screens:
Code:
static final int SCREEN_COUNT = 5;
static final int DEFAULT_SCREN = 2;
to
Code:
static final int SCREEN_COUNT = 9;
static final int DEFAULT_SCREN = 4;
then I open the layout-land and layout-port files and edit the Launcher.xml files with:
Code:
launcher:defaultScreen="4">
<include android:id="@+id/cell1" layout="@layout/workspace_screen" />
<include android:id="@+id/cell2" layout="@layout/workspace_screen" />
<include android:id="@+id/cell3" layout="@layout/workspace_screen" />
<include android:id="@+id/cell4" layout="@layout/workspace_screen" />
<include android:id="@+id/cell5" layout="@layout/workspace_screen" />
<include android:id="@+id/cell6" layout="@layout/workspace_screen" />
<include android:id="@+id/cell7" layout="@layout/workspace_screen" />
<include android:id="@+id/cell8" layout="@layout/workspace_screen" />
<include android:id="@+id/cell9" layout="@layout/workspace_screen" />
then I go back to Launcher and export an unsigned application package.
I then sign it with test keys (size is 1.82mb) and add it to an update.zip file.
I apply it and reboot.
and while booting up i get this in logcat:
Code:
01-12 15:22:03.622: INFO/jdwp(2943): Ignoring second debugger -- accepting and dropping
01-12 15:22:03.712: DEBUG/ddm-heap(2943): Got feature list request
01-12 15:22:04.072: INFO/ActivityThread(2943): Publishing provider com.android.globalsearch.SuggestionProvider: com.android.globalsearch.SuggestionProvider
01-12 15:22:10.132: INFO/ActivityThread(2943): Publishing provider com.android.launcher.settings: com.android.launcher.LauncherProvider
01-12 15:22:10.242: DEBUG/AndroidRuntime(2943): Shutting down VM
01-12 15:22:10.262: WARN/dalvikvm(2943): threadid=3: thread exiting with uncaught exception (group=0x4001e170)
01-12 15:22:10.262: ERROR/AndroidRuntime(2943): Uncaught handler: thread main exiting due to uncaught exception
01-12 15:22:10.302: ERROR/AndroidRuntime(2943): java.lang.Error: Unresolved compilation problems:
01-12 15:22:10.302: ERROR/AndroidRuntime(2943): The import com.android.internal.util.XmlUtils cannot be resolved
01-12 15:22:10.302: ERROR/AndroidRuntime(2943): XmlUtils cannot be resolved
01-12 15:22:10.302: ERROR/AndroidRuntime(2943): at com.android.launcher.LauncherProvider.<init>(LauncherProvider.java:49)
01-12 15:22:10.302: ERROR/AndroidRuntime(2943): at java.lang.Class.newInstanceImpl(Native Method)
01-12 15:22:10.302: ERROR/AndroidRuntime(2943): at java.lang.Class.newInstance(Class.java:1479)
01-12 15:22:10.302: ERROR/AndroidRuntime(2943): at android.app.ActivityThread.installProvider(ActivityThread.java:4213)
01-12 15:22:10.302: ERROR/AndroidRuntime(2943): at android.app.ActivityThread.installContentProviders(ActivityThread.java:4000)
01-12 15:22:10.302: ERROR/AndroidRuntime(2943): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3959)
01-12 15:22:10.302: ERROR/AndroidRuntime(2943): at android.app.ActivityThread.access$2900(ActivityThread.java:118)
01-12 15:22:10.302: ERROR/AndroidRuntime(2943): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1872)
01-12 15:22:10.302: ERROR/AndroidRuntime(2943): at android.os.Handler.dispatchMessage(Handler.java:99)
01-12 15:22:10.302: ERROR/AndroidRuntime(2943): at android.os.Looper.loop(Looper.java:123)
01-12 15:22:10.302: ERROR/AndroidRuntime(2943): at android.app.ActivityThread.main(ActivityThread.java:4320)
01-12 15:22:10.302: ERROR/AndroidRuntime(2943): at java.lang.reflect.Method.invokeNative(Native Method)
01-12 15:22:10.302: ERROR/AndroidRuntime(2943): at java.lang.reflect.Method.invoke(Method.java:521)
01-12 15:22:10.302: ERROR/AndroidRuntime(2943): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
01-12 15:22:10.302: ERROR/AndroidRuntime(2943): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
01-12 15:22:10.302: ERROR/AndroidRuntime(2943): at dalvik.system.NativeStart.main(Native Method)
01-12 15:22:10.312: INFO/dalvikvm(2943): threadid=7: reacting to signal 3
01-12 15:22:10.332: INFO/dalvikvm(2943): Wrote stack trace to '/data/anr/traces.txt'
01-12 15:23:58.992: INFO/Process(2943): Sending signal. PID: 2943 SIG: 9
So where did I go wrong?
Thanks.
I think the 9 pages is the source of your prob, but i think adv launcher can do that though.When you made the update was it a standalone update or did you put it in a rom?
ya bro, instead of doing all, just use advanced launcher. It allows u to change ur number of home screens straight from your phone with an easy to use UI.
Ace42 said:
I think the 9 pages is the source of your prob, but i think adv launcher can do that though.When you made the update was it a standalone update or did you put it in a rom?
Click to expand...
Click to collapse
it was a standalone update.
nephron said:
ya bro, instead of doing all, just use advanced launcher. It allows u to change ur number of home screens straight from your phone with an easy to use UI.
Click to expand...
Click to collapse
I've used the Adv Launcher but the reason for doing this is to see how much the Adv Launcher slows down the phone. I was skeptical at first but I used the Adv Launcher with 5 screens and did ten benchmarks and came up with an average of 14210. When I used the standard launcher and did the benchmark it came up with an average of 12005. A significant difference. So I am trying with a larger amount of screens. In this case 9. But it's not working. Should I try 7 and see if that works?
EDIT: Nope. Seven screens gave the same result.
Wow... no one? Seriously? In a forum with over a dozen devs?
It seems completely right to me what you did but it's been a time since I have done this. I don't think that your error is at modifying the source, I think this error has something to do with compilation.
How did you compile it? Did you build the complete source code?
I have to say I never saw this failure and it doesn't even make sense to me. Why the hell should the system throw an error _at runtime_ which says unresolved _compilation problems_? A little crazy
I compiled it just by checking out the whole android source and running make in the top directory of it. It needs some time, but after that everytime you change anything in the launcher and run make it needs just 2 minutes or so .
Sorry if you already know this I just want to make shure there isn't something fundamental going wrong
FYI: Some days ago I stumbled over this: http://code.google.com/p/android-launcher-for-sdk/ it's the 1.6 launcher ported to the sdk so it can be compile without compiling the source code. Credits go over to the guys who made Home++.
irrenhaus said:
It seems completely right to me what you did but it's been a time since I have done this. I don't think that your error is at modifying the source, I think this error has something to do with compilation.
How did you compile it? Did you build the complete source code?
I have to say I never saw this failure and it doesn't even make sense to me. Why the hell should the system throw an error _at runtime_ which says unresolved _compilation problems_? A little crazy
I compiled it just by checking out the whole android source and running make in the top directory of it. It needs some time, but after that everytime you change anything in the launcher and run make it needs just 2 minutes or so .
Sorry if you already know this I just want to make shure there isn't something fundamental going wrong
FYI: Some days ago I stumbled over this: http://code.google.com/p/android-launcher-for-sdk/ it's the 1.6 launcher ported to the sdk so it can be compile without compiling the source code. Credits go over to the guys who made Home++.
Click to expand...
Click to collapse
As I mentioned in my original post, I used Cyanogen's github launcher source and made the modifications from there. Could it be the source?
You mentioned you opened it in eclipse.
I have a problem with that IDE because it modifies your files w/o your permission to what it thinks it is that you really need.
I'd suggest you revert your code, then edit it on gedit, and run "make launcher", and then push that to your phone. Other than that, the code looks alright
I did not much programming on adroid, but I know Java a bit ... Probably I am wrong, but the error message says, that the class com.android.internal.util.XmlUtils could not be found, i.e. the classloader is not able to locate this class, but this class is referenced from com.android.launcher.LauncherProvider. There are two possibilities: either a library containing the class com.android.internal.util.XmlUtils must be provided with the android launcher package, or it's already installed on the phone. Probably you need to package the application with the libs.
jubeh said:
You mentioned you opened it in eclipse.
I have a problem with that IDE because it modifies your files w/o your permission to what it thinks it is that you really need.
I'd suggest you revert your code, then edit it on gedit, and run "make launcher", and then push that to your phone. Other than that, the code looks alright
Click to expand...
Click to collapse
I don't think i have my Ubuntu 9.10 set up correctly.
I run "make launcher" and i get:
make: *** No rule to make target `launcher'. Stop.
Okay... I followed the directions from http://source.android.com/download and then:
cd ~/mydroid
make launcher
and got this back:
[email protected]:~/mydroid$ make launcher
build/core/product_config.mk:261: WARNING: adding test OTA key
============================================
TARGET_PRODUCT=generic
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=
============================================
frameworks/policies/base/PolicyConfig.mk:22: *** No module defined for the given PRODUCT_POLICY (android.policy_phone). Stop.
[email protected]:~/mydroid$ make launcher
build/core/product_config.mk:261: WARNING: adding test OTA key
============================================
TARGET_PRODUCT=generic
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=
============================================
frameworks/policies/base/PolicyConfig.mk:22: *** No module defined for the given PRODUCT_POLICY (android.policy_phone). Stop.
[email protected]:~/mydroid$
Click to expand...
Click to collapse
edit: Using our mutual friend Google, I stumbled onto this:
http://translate.google.com/transla...om.ubuntu:en-US:official&hs=XuU&sa=N&start=10
so hopefully it will work. this is starting to become a pain in the butt!
edit: THIS IS STARTING TO PISS ME OFF! IT'S ONE THING AFTER ANOTHER. Have anybody seen this? I had to install java 5 because 6 is unsupported.
So I tried
sudo apt-get install git-core gnupg sun-java5-jdk flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev
Click to expand...
Click to collapse
which got me:
E: Couldn't find package sun-java5-jdk
so I installed sun-j2re1.5_1.5.0+update22_i386.deb.
now I get this when I try it:
[email protected]:~/mydroid$ java -version
java version "1.5.0_22"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_22-b03)
Java HotSpot(TM) Client VM (build 1.5.0_22-b03, mixed mode, sharing)
[email protected]:~/mydroid$ make
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=1.6
TARGET_PRODUCT=generic
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=Donut
============================================
************************************************************
You are attempting to build with the incorrect version
of javac.
Your version is: javac 1.6.0_0.
The correct version is: 1.5.
Please follow the machine setup instructions at
http://source.android.com/download
************************************************************
build/core/main.mk:121: *** stop. Stop.
Click to expand...
Click to collapse
what are you building? eclair?
it should be good enough to create a generic launcher.
Try from your android directory:
Code:
$. build/envsetup.sh
$lunch
and then select any build type, and then
Code:
make launcher (maybe case sensititve, try make Launcher?)
jubeh said:
what are you building? eclair?
it should be good enough to create a generic launcher.
Try from your android directory:
Code:
$. build/envsetup.sh
$lunch
and then select any build type, and then
Code:
make launcher (maybe case sensititve, try make Launcher?)
Click to expand...
Click to collapse
now i'm getting
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=1.6
TARGET_PRODUCT=generic
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=Donut
============================================
************************************************************
You are attempting to build with the incorrect version
of javac.
Your version is: javac 1.6.0_0.
The correct version is: 1.5.
Please follow the machine setup instructions at
http://source.android.com/download
************************************************************
build/core/main.mk:121: *** stop. Stop.
Click to expand...
Click to collapse
java version "1.5.0_22"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_22-b03)
Java HotSpot(TM) Client VM (build 1.5.0_22-b03, mixed mode, sharing)
Click to expand...
Click to collapse
nvm. I finally got it. Thanks everybody.
I love Google.
update
Hi,
sorry for updating that topics as it looks resolved but I am currently facing the same problems. Which means, when I try to do a make, to build my Eclair Android version :
$ make launcher
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.1-update1
TARGET_PRODUCT=generic
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=ECLAIR
============================================
Checking build tools versions...
************************************************************
You are attempting to build with the incorrect version
of java.
Your version is: java version "1.6.0_0".
The correct version is: 1.5.
Please follow the machine setup instructions at
************************************************************
build/core/main.mk:111: *** stop. Stop.
[[email protected] mydroid]$ java -version
java version "1.6.0_0"
OpenJDK Runtime Environment (IcedTea6 1.6) (fedora-31.b16.fc12-i386)
OpenJDK Client VM (build 14.0-b16, mixed mode)
I've installed:
jdk-1_5_0_22-linux-i586.bin
java_ee_sdk-5_08-linux-nojdk.bin
but it still looks like I'm the 1.6 java version...
What can I do to fix this? Thank you

[THEME][CM12][CM12.1] Dark WhoAmI v1.2 (20150827) DISCONTINUED

Today, i will share the dark theme called "dark whoami"...Ofcourse this theme have a lot of bugs. so please report the bugs here and give me some suggestions
NB:
*Please forgive me if my theme has expired
**If you got error like can't install or fc please give me LOGCAT
Requirement :
Stock framework cm12/cm12.1
Latest build cm12/cm12.1
Changelog :
v1.0
initial release
v1.1
Improvement material dark
Fixed some background and text
Change some drawables
New font UI
etc
v1.2
Fixed issue can't install, reported by @Enoalife
Fixed QS tile in settings
Fixed music theme (eleven)
Themed sony apps (music, album, video)
Now you can't see material light
etc
Themed apps:
Almost all system apps
Root explorer
Greenify
Xperia Home
soon
Bug :
Greenify
tell me
Installation :
Just install as normal apk
Reboot after update
Enjoy
Screenshots and Download:
See second post​
Credit:
@mikeioannina and @Mardon for cm12.1 build :good:
@nicholaschum for awesome guide and help :good:
@Ambor for xperia themes port :good:
@gamzekal for guide and help :good:
@gianton for awesome font :good:
all users for test and report the issue :good:
Please pm me if i forgot
Simply press thank's button :good:
Screenshots and Download
Screenshots
v1.0
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
v1.1
v1.2
Download
v1.0 Click Here
v1.1 Click Here
v1.2 Click Here
It's failing to install
Sent from my Nexus 6 using XDA Free mobile app
bigstunta101 said:
It's failing to install
Sent from my Nexus 6 using XDA Free mobile app
Click to expand...
Click to collapse
Give me a logcat...
Nice work:good:
Can't install...temasek build , LG G2.
Envoyé de mon LG-D802 en utilisant Tapatalk
Updated
V1.1 Updated
Changelog :
Improvement material dark
Fixed some background and text
Change some drawables
New font UI
etc
Important note !!!
You must read the first post before download
Failed to install cm-12.1-20150825-NIGHTLY (Nexus 5)
Code:
s device.
W/Finsky ( 4043): [1] FinskyApp.getCurrentAccount: No account configured on thi
s device.
W/Finsky ( 4043): [1] FinskyApp.getCurrentAccount: No account configured on thi
s device.
W/Finsky ( 4043): [1] FinskyApp.getCurrentAccount: No account configured on thi
s device.
W/Finsky ( 4043): [1] FinskyApp.getCurrentAccount: No account configured on thi
s device.
W/Finsky ( 4043): [1] FinskyApp.getCurrentAccount: No account configured on thi
s device.
W/Finsky ( 4043): [1] FinskyApp.getCurrentAccount: No account configured on thi
s device.
W/Finsky ( 4043): [1] FinskyApp.getCurrentAccount: No account configured on thi
s device.
W/Finsky ( 4043): [1] FinskyApp.getCurrentAccount: No account configured on thi
s device.
W/Finsky ( 4043): [1] FinskyApp.getCurrentAccount: No account configured on thi
s device.
W/Finsky ( 4043): [1] FinskyApp.getCurrentAccount: No account configured on thi
s device.
W/Finsky ( 4043): [1] FinskyApp.getCurrentAccount: No account configured on thi
s device.
D/Finsky ( 4043): [1] DailyHygiene.goMakeHygieneIfDirty: No need to run daily h
ygiene.
I/ActivityManager( 687): Start proc 4079:com.google.android.gms:car/u0a22 for s
ervice com.google.android.gms/.car.CarService
W/Settings( 4043): Setting download_manager_max_bytes_over_mobile has moved from
android.provider.Settings.Secure to android.provider.Settings.Global.
W/Settings( 4043): Setting download_manager_recommended_max_bytes_over_mobile ha
s moved from android.provider.Settings.Secure to android.provider.Settings.Globa
l.
W/Finsky ( 4043): [1] FinskyApp.getCurrentAccount: No account configured on thi
s device.
W/Finsky ( 4043): [1] FinskyApp.getCurrentAccount: No account configured on thi
s device.
W/Finsky ( 4043): [1] FinskyApp.getDfeApi: No account configured on this device
.
D/Finsky ( 4043): [1] PackageVerificationReceiver.onReceive: Verification reque
sted, id = 1
D/Finsky ( 4043): [1] WorkerTask.onPreExecute: Verification Requested for id =
1, data=file:///storage/emulated/0/DarkWhoamI_v1.1.apk flags=16 fromVerification
Activity=false
W/ResourcesManager( 4079): Asset path '/system/framework/com.android.media.remot
edisplay.jar' does not exist or contains no resources.
W/ResourcesManager( 4079): Asset path '/system/framework/com.android.location.pr
ovider.jar' does not exist or contains no resources.
I/MultiDex( 4079): VM with version 2.1.0 has multidex support
I/MultiDex( 4079): install
I/MultiDex( 4079): VM has multidex support, MultiDex support library is disabled
.
V/JNIHelp ( 4079): Registering com/google/android/gms/org/conscrypt/NativeCrypto
's 227 native methods...
D/Finsky ( 4043): [1] GmsCoreHelper.cleanupNlp: result=false type=4
D/Finsky ( 4043): [1] RestoreTracker.stopServiceIfDone: Restore complete with 0
success and 0 failed.
I/ProviderInstaller( 4079): Installed default security provider GmsCore_OpenSSL
D/GCM ( 1477): GcmService start Intent { act=com.google.android.gms.INITIALI
ZE flg=0x10 pkg=com.google.android.gms cmp=com.google.android.gms/.gcm.GcmServic
e } com.google.android.gms.INITIALIZE
D/AuthorizationBluetoothService( 1477): Received GmsCore event: Intent { act=com
.google.android.gms.INITIALIZE flg=0x10 pkg=com.google.android.gms cmp=com.googl
e.android.gms/.auth.be.proximity.authorization.bt.AuthorizationBluetoothService$
AutoStarter }.
V/GmsCoreStatsServiceLauncher( 1835): Received broadcast intent Intent { act=com
.google.android.gms.INITIALIZE flg=0x10 pkg=com.google.android.gms cmp=com.googl
e.android.gms/.common.stats.GmsCoreStatsServiceLauncher }
D/WearableService( 1933): callingUid 10022, callindPid: 1933
E/MDM ( 1413): [144] b.run: Couldn't connect to Google API client: Connectio
nResult{statusCode=API_UNAVAILABLE, resolution=null}
D/LocationInitializer( 1835): Restart initialization of location
I/Timeline( 687): Timeline: Activity_windows_visible id: ActivityRecord{160be2c
1 u0 com.android.packageinstaller/.InstallAppProgress t17} time:386239
V/Finsky ( 4043): [1] GearheadStateMonitor.onReady: sIsProjecting:false
I/qtaguid ( 4043): Failed write_ctrl(u 36) res=-1 errno=22
I/qtaguid ( 4043): Untagging socket 36 failed errno=-22
W/NetworkManagementSocketTagger( 4043): untagSocket(36) failed with errno -22
D/Finsky ( 4043): [1] 1.onResponse: Verification id=1 response=0
D/Finsky ( 4043): [1] PackageVerificationReceiver.onReceive: Verification reque
sted, id = 1
D/DefContainer( 3537): Copying /storage/emulated/0/DarkWhoamI_v1.1.apk to base.a
pk
I/auditd ( 4122): Starting up
E/auditd ( 4122): Failed on audit_set_pid with error: Protocol not supported
I/auditd ( 4122): Exiting
D/audio_hw_primary( 197): disable_audio_route: reset and update mixer path: low
-latency-playback
D/audio_hw_primary( 197): disable_snd_device: snd_device(2: speaker)
D/PackageManager( 687): Renaming /data/app/vmdl500165273.tmp to /data/app/com.a
fah_me.dark.whoami-1
V/BackupManagerService( 687): restoreAtInstall pkg=com.afah_me.dark.whoami toke
n=2 restoreSet=0
V/BackupManagerService( 687): Finishing install immediately
W/Settings( 687): Setting install_non_market_apps has moved from android.provid
er.Settings.Global to android.provider.Settings.Secure, returning read-only valu
e.
I/InputReader( 687): Reconfiguring input devices. changes=0x00000020
D/BackupManagerService( 687): Received broadcast Intent { act=android.intent.ac
tion.PACKAGE_ADDED dat=package:com.afah_me.dark.whoami flg=0x4000010 (has extras
) }
W/BackupManagerService( 687): Removing schedule queue dupe of com.afah_me.dark.
whoami
D/installd( 198): aapt source_apk=/data/app/com.afah_me.dark.whoami-1/base.apk
internal_path=assets/icons/ out_restable=/data/resource-cache/com.afah_me.dark.w
hoami/icons uid=50070, pkgId=98, min_sdk_version=21, common_res_path=
D/Documents( 3712): Update found 6 roots in 63ms
E/cutils-trace( 4128): Error opening trace file: No such file or directory (2)
W/ResourcesManager( 1112): Asset path '/system/framework/com.google.android.medi
a.effects.jar' does not exist or contains no resources.
I/Launcher( 1112): Deferring update until onResume
I/art ( 687): Explicit concurrent mark sweep GC freed 122434(6MB) AllocSpac
e objects, 22(7MB) LOS objects, 32% free, 32MB/48MB, paused 79.554ms total 538.9
48ms
I/ActivityManager( 687): Start proc 4135:com.google.android.partnersetup/u0a25
for broadcast com.google.android.partnersetup/.RlzPingBroadcastReceiver
D/ChimeraCfgMgr( 1835): Loading module com.google.android.gms.games from APK com
.google.android.gms
D/ChimeraCfgMgr( 1835): Loading module com.google.android.gms.vision from APK co
m.google.android.gms
D/Vision ( 1835): Received broadcast Intent { act=android.intent.action.PACKAGE
_ADDED dat=package:com.afah_me.dark.whoami flg=0x4000010 cmp=com.google.android.
gms/.vision.DependencyBroadcastReceiverProxy (has extras) }
D/PackageBroadcastService( 1835): Received broadcast action=android.intent.actio
n.PACKAGE_ADDED and uri=com.afah_me.dark.whoami
D/Vision ( 1835): Failed to find package metadata for com.afah_me.dark.whoami
D/Vision ( 1835): No vision deps
I/ConfigService( 1477): onCreate
I/ConfigFetchService( 1835): onStartCommand Intent { act=android.intent.action.P
ACKAGE_ADDED dat=package:com.afah_me.dark.whoami cmp=com.google.android.gms/.con
fig.ConfigFetchService (has extras) }
I/ConfigFetchService( 1835): launchTask
I/ConfigFetchService( 1835): service connected
I/PeopleContactsSync( 1835): CP2 sync disabled
D/ConfigFetchService( 1835): ConfigApi connection successful.
V/ConfigFetchTask( 1835): ConfigFetchTask getDeviceDataVersionInfo(): ABFEt1XZ_s
LyAHRryZH2gS3VcNRc16ABP_sUsHwq2H_XUgOgq3hjuIiFHo9qgYEXHtGccGbpQLSdl4_OLMiSNUnylj
RlzvkqbxN7gpdRqCbNZzpw5jD-Ft8m-R4Pkc4B18LppXEEn7ByASg0oJbY6C6WVdCOCkmy8M79QL3_B9
GOso_g7TJvMZX-7ldsYEdcidxU0V1yjPXk6MdHduN8voL4D5p9qWQ4Y6fNNoPjgHwT1jynGWYzRRQ2B6
U8zb_b8sh_yS23ZLluCg8oRDywR8RXAoFt8f4ugnDwyveIkoH-d5Ixh9W6dUtltQqd0aZVX0ZxSSK4sx
wE8P_1YDAPINSnWKu1WK-sPKsVTGyMTMZ8G6KzHgUkK84
I/UpdateIcingCorporaServi( 2643): Updating corpora: APPS=com.afah_me.dark.whoami
, CONTACTS=MAYBE
I/GoogleURLConnFactory( 1835): Using platform SSLCertificateSocketFactory
I/UpdateIcingCorporaServi( 2643): UpdateCorporaTask done [took 26 ms] updated ap
ps [took 26 ms]
D/installd( 198): aapt source_apk=/data/app/com.afah_me.dark.whoami-1/base.apk
internal_path=assets/overlays/common/ out_restable=/data/resource-cache/com.afah
_me.dark.whoami/common uid=50070, pkgId=95, min_sdk_version=21, common_res_path=
E/cutils-trace( 4167): Error opening trace file: No such file or directory (2)
D/installd( 198): aapt source_apk=/data/app/com.afah_me.dark.whoami-1/base.apk
internal_path=assets/overlays/com.android.cellbroadcastreceiver/ out_restable=/d
ata/resource-cache/com.afah_me.dark.whoami/com.android.cellbroadcastreceiver uid
=50070, pkgId=97, min_sdk_version=21, common_res_path=/data/resource-cache/com.a
fah_me.dark.whoami/common/resources.apk
E/cutils-trace( 4168): Error opening trace file: No such file or directory (2)
D/installd( 198): idmap target_apk=/system/priv-app/CellBroadcastReceiver/CellB
roadcastReceiver.apk overlay_apk=/data/app/com.afah_me.dark.whoami-1/base.apk ca
che_path=/data/resource-cache/com.afah_me.dark.whoami/com.android.cellbroadcastr
eceiver uid=50005
I/ConfigFetchService( 1835): fetch service done; releasing wakelock
I/ConfigFetchService( 1835): stopping self
D/installd( 198): aapt source_apk=/data/app/com.afah_me.dark.whoami-1/base.apk
internal_path=assets/overlays/com.android.gallery3d/ out_restable=/data/resource
-cache/com.afah_me.dark.whoami/com.android.gallery3d uid=50070, pkgId=97, min_sd
k_version=21, common_res_path=/data/resource-cache/com.afah_me.dark.whoami/commo
n/resources.apk
E/cutils-trace( 4170): Error opening trace file: No such file or directory (2)
D/installd( 198): idmap target_apk=/system/app/Gallery2/Gallery2.apk overlay_ap
k=/data/app/com.afah_me.dark.whoami-1/base.apk cache_path=/data/resource-cache/c
om.afah_me.dark.whoami/com.android.gallery3d uid=50044
D/installd( 198): aapt source_apk=/data/app/com.afah_me.dark.whoami-1/base.apk
internal_path=assets/overlays/com.android.calendar/ out_restable=/data/resource-
cache/com.afah_me.dark.whoami/com.android.calendar uid=50070, pkgId=97, min_sdk_
version=21, common_res_path=/data/resource-cache/com.afah_me.dark.whoami/common/
resources.apk
E/cutils-trace( 4172): Error opening trace file: No such file or directory (2)
E/InstallTheme( 198): Failed to generate resource table for split ''
E/InstallTheme( 198): assets/overlays/com.android.calendar/res/values/drawables
.xml:4: error: Error: Resource is not public. (at 'list_primary_holo' with value
'@android:color/background_material_dark').
E/InstallTheme( 198):
E/installd( 198): aapt failed, status=0x0100
E/PackageManager( 687): Unable to process theme, uninstalling com.afah_me.dark.
whoami
E/PackageManager( 687): com.android.server.pm.PackageManagerService$AaptExcepti
on: Failed to run aapt
E/PackageManager( 687): at com.android.server.pm.PackageManagerService.c
ompileResourcesWithAapt(PackageManagerService.java:7071)
E/PackageManager( 687): at com.android.server.pm.PackageManagerService.c
ompileResources(PackageManagerService.java:6987)
E/PackageManager( 687): at com.android.server.pm.PackageManagerService.c
ompileResourcesIfNeeded(PackageManagerService.java:6976)
E/PackageManager( 687): at com.android.server.pm.PackageManagerService.c
ompileResourcesAndIdmapIfNeeded(PackageManagerService.java:6959)
E/PackageManager( 687): at com.android.server.pm.PackageManagerService.p
rocessThemeResources(PackageManagerService.java:14691)
E/PackageManager( 687): at android.app.ApplicationPackageManager.process
ThemeResources(ApplicationPackageManager.java:1859)
E/PackageManager( 687): at com.android.server.ThemeService$ResourceProce
ssingHandler.handleMessage(ThemeService.java:197)
E/PackageManager( 687): at android.os.Handler.dispatchMessage(Handler.ja
va:102)
E/PackageManager( 687): at android.os.Looper.loop(Looper.java:135)
E/PackageManager( 687): at android.os.HandlerThread.run(HandlerThread.ja
va:61)
I/ActivityManager( 687): Force stopping com.afah_me.dark.whoami appid=10070 use
r=-1: uninstall pkg
I/ActivityManager( 687): Force stopping com.afah_me.dark.whoami appid=10070 use
r=0: pkg removed
W/GeofencerStateMachine( 1413): Ignoring removeGeofence because network location
is disabled.
D/BackupManagerService( 687): Received broadcast Intent { act=android.intent.ac
tion.PACKAGE_REMOVED dat=package:com.afah_me.dark.whoami flg=0x4000010 (has extr
as) }
D/JobSchedulerService( 687): Receieved: android.intent.action.PACKAGE_REMOVED
I/InputReader( 687): Reconfiguring input devices. changes=0x00000020
I/art ( 3586): Explicit concurrent mark sweep GC freed 1563(112KB) AllocSpac
e objects, 0(0B) LOS objects, 24% free, 16MB/21MB, paused 212us total 18.477ms
I/Launcher( 1112): Deferring update until onResume
I/LatinIME:LogUtils( 965): Dictionary info: dictionary = ? ; version = 26 ; dat
e = 1351062238
D/Documents( 3712): Update found 6 roots in 48ms
D/VoicemailCleanupService( 2555): Cleaning up data for package: com.afah_me.dark
.whoami
I/Launcher( 1112): Deferring update until onResume
W/Launcher( 1112): setApplicationContext called twice! old=com.android.launcher3
[email protected] [email protected]
0c07
E/NetworkScheduler.SchedulerReceiver( 1477): Invalid parameter app
E/NetworkScheduler.SchedulerReceiver( 1477): Invalid package name : Perhaps you
didn't include a PendingIntent in the extras?
D/PackageBroadcastService( 1835): Received broadcast action=android.intent.actio
n.PACKAGE_REMOVED and uri=com.afah_me.dark.whoami
D/ChimeraCfgMgr( 1835): Loading module com.google.android.gms.games from APK com
.google.android.gms
D/AccountUtils( 1835): Clearing selected account for com.afah_me.dark.whoami
I/LocationSettingsChecker( 1835): Removing dialog suppression flag for package c
om.afah_me.dark.whoami
I/ConfigFetchService( 1835): onStartCommand Intent { act=android.intent.action.P
ACKAGE_REMOVED dat=package:com.afah_me.dark.whoami cmp=com.google.android.gms/.c
onfig.ConfigFetchService (has extras) }
D/GOOGLEHELP_CompatibleDatabase( 1835): Open SQLiteDatabase: /data/data/com.goog
le.android.gms/databases/metrics.db, release reference: 1
D/GOOGLEHELP_CompatibleDatabase( 1835): Acquire reference of SQLiteDatabase: /da
ta/data/com.google.android.gms/databases/metrics.db: 2
D/gH_MetricsDatabase( 1835): 0 metrics were deleted when clearing package com.af
ah_me.dark.whoami.
D/GOOGLEHELP_CompatibleDatabase( 1835): Release reference of SQLiteDatabase: /da
ta/data/com.google.android.gms/databases/metrics.db: 1
I/ConfigFetchService( 1835): service connected
I/PeopleContactsSync( 1835): CP2 sync disabled
D/GOOGLEHELP_CompatibleDatabase( 1835): Open SQLiteDatabase: /data/data/com.goog
le.android.gms/databases/help_responses.db, release reference: 1
D/GOOGLEHELP_CompatibleDatabase( 1835): Acquire reference of SQLiteDatabase: /da
ta/data/com.google.android.gms/databases/help_responses.db: 2
D/GOOGLEHELP_CompatibleDatabase( 1835): Release reference of SQLiteDatabase: /da
ta/data/com.google.android.gms/databases/help_responses.db: 1
D/GOOGLEHELP_CompatibleDatabase( 1835): Open SQLiteDatabase: /data/data/com.goog
le.android.gms/databases/auto_complete_suggestions.db, release reference: 1
D/GOOGLEHELP_CompatibleDatabase( 1835): Acquire reference of SQLiteDatabase: /da
ta/data/com.google.android.gms/databases/auto_complete_suggestions.db: 2
D/GOOGLEHELP_CompatibleDatabase( 1835): Release reference of SQLiteDatabase: /da
ta/data/com.google.android.gms/databases/auto_complete_suggestions.db: 1
D/GOOGLEHELP_CompatibleDatabase( 1835): Close SQLiteDatabase: /data/data/com.goo
gle.android.gms/databases/metrics.db, release reference: 0
D/GOOGLEHELP_CompatibleDatabase( 1835): Close SQLiteDatabase: /data/data/com.goo
gle.android.gms/databases/help_responses.db, release reference: 0
D/GOOGLEHELP_CompatibleDatabase( 1835): Close SQLiteDatabase: /data/data/com.goo
gle.android.gms/databases/auto_complete_suggestions.db, release reference: 0
I/Icing ( 1835): doRemovePackageData com.afah_me.dark.whoami
W/ContextImpl( 3686): Calling a method in the system process without a qualified
user: android.app.ContextImpl.startService:1721 android.content.ContextWrapper.
startService:522 android.content.ContextWrapper.startService:522 com.android.key
chain.KeyChainBroadcastReceiver.onReceive:12 android.app.ActivityThread.handleRe
ceiver:2641
I/UpdateIcingCorporaServi( 2643): Updating corpora: APPS=com.afah_me.dark.whoami
, CONTACTS=MAYBE
I/UpdateIcingCorporaServi( 2643): UpdateCorporaTask done [took 21 ms] updated ap
ps [took 21 ms]
I/art ( 687): Explicit concurrent mark sweep GC freed 17743(1297KB) AllocSp
ace objects, 14(5MB) LOS objects, 33% free, 27MB/41MB, paused 1.428ms total 173.
967ms
W/PackageManager( 687): Couldn't remove dex file for package: at location /dat
a/app/com.afah_me.dark.whoami-1/base.apk, retcode=-1
E/org.cyanogenmod.themes.provider.AppReceiver( 3586): Unable to update theme com
.afah_me.dark.whoami, result=-400
I/ActivityManager( 687): Killing 3733:com.android.externalstorage/u0a10 (adj 15
): empty #17
V/ActivityManager( 687): killProcessGroupAsync took 41 ms for PID 3733 on threa
d 17
I/auditd ( 4200): Starting up
E/auditd ( 4200): Failed on audit_set_pid with error: Protocol not supported
I/auditd ( 4200): Exiting
I/ConfigService( 1477): onDestroy
I/auditd ( 4202): Starting up
E/auditd ( 4202): Failed on audit_set_pid with error: Protocol not supported
I/auditd ( 4202): Exiting
^C
E:\Nexus5\Stock>
Fast Update
Changelog:
v1.2
Fixed issue can't install by @Enoalife
Fixed QS tile in settings
Fixed music theme (eleven)
Themed sony apps (music, album, video)
Now you can't see material light
etc
NB:
If not themed all please reboot or soft reboot
If still failed to install please give me logcat

[Development Question] New To Development, Keep Getting ClassNotFoundException

EDIT: FOUND THE BUG!
Turns out that Android's Instant Run feature does not work with Xposed. I turned it off and the module ran perfectly.
Kinda sad that I spent hours just staring at my code trying to find a bug. I guess I'll submit an issue on GitHub to update the tutorial. Hopefully other developers will see that a lot quicker
===============
Hey guys, I'm new to developing Xposed modules and have been following the Xposed development guide that Rovo made on GitHub. I understand how Xposed works and have tried to recreate the tutorial on Android Studio myself. However, when I load the module, I keep getting a java.lang.ClassNotFoundException. I was hoping that someone could take a look at my (very short) code and tell me if I am forgetting to do something.
Here is the error I am getting:
Code:
05-19 11:03:15.591 4049-4049/? I/Xposed: Loading modules from /data/app/com.tejasvinareddy.xposed.tutorial-1/base.apk
05-19 11:03:15.636 4049-4049/? I/Xposed: Loading class com.tejasvinareddy.xposed.tutorial.Main
05-19 11:03:15.637 4049-4049/? E/Xposed: java.lang.ClassNotFoundException: Didn't find class "com.tejasvinareddy.xposed.tutorial.Main" on path: DexPathList[[zip file "/data/app/com.tejasvinareddy.xposed.tutorial-1/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
at de.robv.android.xposed.XposedBridge.loadModule(XposedBridge.java:497)
at de.robv.android.xposed.XposedBridge.loadModules(XposedBridge.java:457)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:122)
Suppressed: java.lang.ClassNotFoundException: Didn't find class "com.tejasvinareddy.xposed.tutorial.Main" on path: DexPathList[[zip file "/system/framework/XposedBridge.jar"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
... 4 more
Suppressed: java.lang.ClassNotFoundException: com.tejasvinareddy.xposed.tutorial.Main
at java.lang.Class.classForName(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
... 5 more
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
AndroidManifest.xml
Code:
<manifest xmlns:android="<<CAN'T POST LINK CAUSE I'M NEW ugh>>"
package="com.tejasvinareddy.xposed.tutorial">
<application android:allowBackup="true"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<meta-data
android:name="xposedmodule"
android:value="true" />
<meta-data
android:name="xposeddescription"
android:value="Teju's first Xposed module" />
<meta-data
android:name="xposedminversion"
android:value="53" />
</application>
</manifest>
The app's build.gradle file:
Code:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "com.tejasvinareddy.xposed.tutorial"
minSdkVersion 15
targetSdkVersion 23
versionCode 2
versionName "1.0.1"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.4.0'
provided 'de.robv.android.xposed:api:82'
provided 'de.robv.android.xposed:api:82:sources'
}
My main code:
Code:
package com.tejasvinareddy.xposed.tutorial;
import de.robv.android.xposed.IXposedHookLoadPackage;
import de.robv.android.xposed.XposedBridge;
import de.robv.android.xposed.callbacks.XC_LoadPackage;
public class Main implements IXposedHookLoadPackage {
@Override
public void handleLoadPackage(XC_LoadPackage.LoadPackageParam lpparam)
throws Throwable {
XposedBridge.log("TUTORIAL: Loaded app " + lpparam.packageName);
}
}
And finally xposed_init:
Code:
com.tejasvinareddy.xposed.tutorial.Main
Are there any other files that I could be messing up?

[ROM][RC1] Huawei P8 unofficial Cyanogenmod 13.0

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Target device: GRA-L09 (Huawei P8)
GRA-LU00 has been reported to work but you may mess with phone.prop and build.prop to get dualsim working.
(Video is outdated)
GIT & Bugreports
Devs or contributors go here - https://github.com/CM-Huawei-P8-Development/local_manifests_gra_l09
Bugreportes go here - https://github.com/CM-Huawei-P8-Development/device_gra_l09/issues
Watchers go here - https://github.com/CM-Huawei-P8-Development/device_gra_l09/commits/cm-13.0-ZNH5Y
Done so far (basically everything)
SDCard
GPS
Camera (Use an app with the old api like footej for video recording)
Flashlight
MTP/PTP/ADB
Tethering (USB/WIFI/BT)
WiFi
Bluetooth
Audio output (Speaker, Headphones, A2DP) / Mic
RIL (Read the bugs before you complain about signal strenght)
Backlight and LEDs
HWC (XePeleato)
CPU and GPU are fine
Power profile (stock is somehow messed up 0o)
All the sensors
TWRP-3.0.2 Vanilla & Materialized dark (thx AD2076)
NFC
Bugs
Youtube (general?) video playback @60 fps doesn't work.
FM Radio (this won't get a fix soon)
Downloads (RC1)
Just to make it clear I'm not responsible for whatever damage this could possibly cause to your device. I
You must update to official android6.0 first! - For updating an already modified device to the android6.0 see:
http://forum.xda-developers.com/showpost.php?p=69383769&postcount=303
I strongly recommend to use this one:
Huawei P8 Firmware (GRA-L09, Android 6.0, EMUI4.0, C432B321, Nordic European)
mega.nz mirror
Or at least any B321 release.
Here is a step by step (Installation)
Changelog - 12.05.2017
Code:
- Fix mac address change on reboot (unconfirmed)
- Fix equalizer (unconfirmed - works for me)
- Fix reported signal strength (sort of)
- Fix USB tethering
- Glove mode (unconfirmed)
- Removed emulator traces
- A little more space in the ramdisk (2 binaries less, 3 more headroom)
- Improved power consumption (36h standby for me)
- ... maybe more (A lot but not all was applied from the lineage13.0 branch from AD2076)
[URL="https://mega.nz/#!QxcjVLAI!FYKIZV3q6cK6shPD2Xzo_g9KfO-eFy_I-DpsWtcoLKM"]system.img[/URL] (0043e055136131faf434d59525d114f8)[URL="https://mega.nz/#!k0kUyIxR!vJGlHdkazsF2ExDTcsFNIfqus8hWMDSczkxdTpzAamY"]boot.img[/URL] (ea8c5d7dd6a58920e05ec02a187daf5d)
Changelog - 28.03.2017 (2)
Code:
- Tearing fix
[URL="https://mega.nz/#!5oNUDbrB!lhIGa7eofdd2dah079e25754WBZysD8GarYUuRkir20"]system.img [/URL](b2d3b3f23154828a52624e1cae2ca7d2)
Changelog - 28.03.2017
Code:
News:
HWC Replacement with the one from XePeleato
- ^ Video recording trough *some* apps. (Confirmed with footej)
- ^ No more app crashes
- SDCard as internal storage & portable (fix)
- Automatic screen brightness (fix)
[URL="https://mega.nz/#!101wSRAI!SAU5TfkZB419ucoC7w2bEsFa07YLrA4-h4UfG2cJCkk"]boot.img[/URL] (fe9c9dbdf920dfd35eacde5a08b869b7)
[URL="https://mega.nz/#!hoFRiRIS!TCVuwgQU9wnseG4Vd5tK2bUvS4T8J6EwTWVL4YJeR7A"]system.img[/URL] (c04b4e792357291f166fed2f938009c6)
Notice:
Someone tried to install Xposed and reported it as a success. Also there shouldn't be a reason why it would not work.
Changelog - 13.02.2017
Code:
Fix - 1 out of n cases where apps would crash.
GPS
[URL="https://mega.nz/#!Ys1WwRBb!Yp7ApOysowX2IwUeqg4Lk92jCsjPO3On7QESEQEpUcE"]system.img (unclean build)[/URL]
Changelog - 31.01.2017
Code:
-Camera (Partial - see bugs)
-Flashlight
-MTP/PTP fix - THX [email protected]
-2G/3G/LTE switch fix
-SDCard fix (not yet tested) - THX [email protected], [email protected] (See bugs)
[URL="https://mega.nz/#!g8dAmTTb!QqtHFOaHjVdHTaB7iZoDr12bC9ci-abrkplXu6eYNws"]boot.img[/URL] (a7c05257971b06017cfd9e3f6d248c01)
[URL="https://mega.nz/#!EhkDwYKT!tBNQOXH8fRVczBkecztC9Ev2u50x1ypGMp_1nKOBxtQ"]system.img[/URL] (ec5d3988fbf2939f8949db07c3dc438c)
Changelog - 28.12.2016 (2nd)
Code:
-NFC
[URL="https://mega.nz/#!px9jEarC!U78kDt0QQfC5IY9YXUcOPDR-xcsKIO01KC6lyU1OX3s"]boot.img[/URL]
[URL="https://mega.nz/#!9kM3HBCI!VUFxttP0n632PWf8L0ZnGSRh7ytCaxzVh0-Lmef-WQg"]system.img[/URL]
Changelog - 28.12.2016
Code:
-Power-off charger fix
[URL="https://mega.nz/#!F5FQSSKC!FRmaCXN3bFjyIVXwbvAmY6NiMdhLuIWdmfiag-uSSsI"]boot.img[/URL]
Changelog - 06.12.2016
Code:
-twrp screen timeout bugfix.
[URL="https://www.androidfilehost.com/?fid=457095661767120290"]recovery.img[/URL]
Changelog - 04.12.2016
Code:
-Accelerometer
-Compass
-Light
-Proximity
-Gyroscope
-Gravity
-Linear Acceleration
-Rotation vector
-Step counter
[URL="https://mega.nz/#!J81WXLSJ!5apXdgqXW9tvKsyeG9I3olvgC0W0TDxk4wk53zVYPXA"]system.img[/URL]
Changelog - 18.11.2016
Code:
-twrp3.0.2-materialised dark + debloated fstab entries
[URL="https://www.androidfilehost.com/?fid=457095661767116143"]recovery.img[/URL] - See [URL="http://forum.xda-developers.com/showpost.php?p=69662469&postcount=351"]#351[/URL]
Changelog - 26.10.2016 - First public build.
Code:
-WiFi + Tethering
-Bluetooth + Tethering
-Audio output (Speaker, Headphones, A2DP) / Mic
-RIL (Read the bugs before you complain about signal strenght)
-Backlight and LEDs
-HWC
-Power profile (stock is somehow messed up 0o)
[URL="https://mega.nz/#!x8cilSBS!mQwKXwj0BkuiQ140S_V77-FP1FHBdaLZXlAPUzABnXU"]system.img[/URL] (2783118c95defcc50d10a2aa29f8585e)(
[URL="https://mega.nz/#!Rxs1lbBR!oqTnS94FdCG_wpus9-FfSSbB9ralzFmkR1RoVa0mtiY"]boot.img[/URL] (4620333a32807f9a203a7265e227e6fa)
[URL="https://mega.nz/#!098WRCZY!Je6Xx7I2IBh8zYud0MK7bfVNtlLq9Tk5gQnbdS6CyDk"]recovery.img[/URL] (434a3d22ce53be1ba26554b503ddfbef)
Active collaborators
Meanwhile I started a collaboration since other developers started to join:
nexolight (XDA; Since project start per 30.08.2016)
AD2076 (XDA; Joined project per 02.11.2016)
Donators:
Burmtim (XDA)
THX to:
erayrafet (XDA; Linked the 3.10.86 kernel which was crucial)
GodzillaMonster (XDA; It wasn't a success story but helped during some assembler/binary patching approaches)
BlueFlame4 (XDA; Some useful hints)
surdu_petru (XDA; Some help related to major functionality parts based on experience with other huawei phones)
PaulFasola (github; SDcard help)
Everyone else who tried to help in this thread.
Speedo.thc (XDA; Helpful exchange - H7 dev)
Kostyan_nsk (XDA; Helful tipps)
Meticulus (XDA/Github; Contribution via pull requests)
XePeleato (XDA/Github; Self written HWC)
-------------------
Have a nice day
XDA:DevDB Information
[ROM] Huawei P8 unofficial Cyanogenmod 13, ROM for the Huawei P8
Contributors
nexolight, nexolight, AD2076, (see thread for more)
Source Code: https://github.com/CM-Huawei-P8-Development
ROM OS Version: 6.0.x Marshmallow
ROM Kernel: Linux 3.10.x
ROM Firmware Required: Android 6.0 Stock preinstalled.
Based On: CyanogenMod
Version Information
Status: Beta
Current Stable Version: 12.05.2017
Stable Release Date: 2017-05-12
Created 2017-04-12
Last Updated 2017-05-18
Amazing work dude!! Nice!
Sent from my SM-N910U using Tapatalk
Hello, I would have great interresse on a CM-Rom for the P8 and many other users also. Maybe you could upload the current state here once, so that other users could share their knowledge with
Hi, nice to see another dev who try to compile cm.
Could you upload your Sources to github? It would be easier to help.
@lataldragon & blackball
Currently I'm working with my own gitlab and made some modifications to the build environment to make it compile. Changes are heavy right now (a huge mess) and I'd rather upload it later when I have a stable base.
In addition I don't feel conftable to share my device tree and modifications right now. As I said I'd like to get it to work with as less help as possible and archived something up to now; I'm not the best teamplayer and would barely accept help until I'm not completely stuck. However I will upload it so as soon as it get's past the bootlogo.
Not sure how much it will take but as I said I'm working like a full time job on it (8 1/2h per day).
The state is the same like yesterday except that I got a bith further with zygote. At the moment I'm stuck somewhere in the init process (no further errors, no kmsg). It seems that the crucial services would start up fine if I start them by hand but that should happen automatically. I'm still using most of the 5.0 ramdisk since I started with the files from the 5.0 rom and later switched to the 6.0 files. It could be the issue (working on it, was to lazy until now) but they don't look that different. I will just check all these services in the init.
That's what happens when I unmount /storage (have to correct that anyway) and then start zygote by hand:
http://pastebin.com/raw/QxbYXAjk
Edit: Ok it looks a bit better now with the 6.0 ramdisk as base
nexolight said:
@lataldragon & blackball
Currently I'm working with my own gitlab and made some modifications to the build environment to make it compile. Changes are heavy right now (a huge mess) and I'd rather upload it later when I have a stable base.
In addition I don't feel conftable to share my device tree and modifications right now. As I said I'd like to get it to work with as less help as possible and archived something up to now; I'm not the best teamplayer and would barely accept help until I'm not completely stuck. However I will upload it so as soon as it get's past the bootlogo.
Not sure how much it will take but as I said I'm working like a full time job on it (8 1/2h per day).
The state is the same like yesterday except that I got a bith further with zygote. At the moment I'm stuck somewhere in the init process (no further errors, no kmsg). It seems that the crucial services would start up fine if I start them by hand but that should happen automatically. I'm still using most of the 5.0 ramdisk since I started with the files from the 5.0 rom and later switched to the 6.0 files. It could be the issue (working on it, was to lazy until now) but they don't look that different. I will just check all these services in the init.
That's what happens when I unmount /storage (have to correct that anyway) and then start zygote by hand:
http://pastebin.com/raw/QxbYXAjk
Click to expand...
Click to collapse
Thanks
No problem
Hope you will meke it. Stock ROM is so heavy if you use lot of apps. I cross fingers for you.
You can collaborate with this other XDA member who tries (tried?) to make a CM port, to avoid duplicate work, if any.
flamelab said:
You can collaborate with this other XDA member who tries (tried?) to make a CM port, to avoid duplicate work, if any.
Click to expand...
Click to collapse
fisher6 is actually working on AOSP port but they can share some solutions for sure (RIL, camera fix, kernel? and more). @nexolight please have a look at the kernel sources linked in the above thread
@AD2076
I did and it wasn't that helpful. At the end I patched the official kernel for my purposes. The kernel isn't a problem anymore.
@flamelab
It will be a duplicate of work which isn't that bad at all. I wouldn't learn it otherwise and 2nd I may find a better solution which I wouldn't find if I take the work from other people. At the very end we can just take the better one. For me this is primary a learning project. Altough I'm almost forced to do it since my old phone is almost dead.
@dariusz666
yep 2.8GB at least- CM is around 1GB. However the main reason I started porting CM to this was the AGB from Huawei.
nexolight said:
@AD2076
I did and it wasn't that helpful. At the end I patched the official kernel for my purposes. The kernel isn't a problem anymore.
@flamelab
It will be a duplicate of work which isn't that bad at all. I wouldn't learn it otherwise and 2nd I may find a better solution which I wouldn't find if I take the work from other people. At the very end we can just take the better one. For me this is primary a learning project. Altough I'm almost forced to do it since my old phone is almost dead.
@dariusz666
yep 2.8GB at least- CM is around 1GB. However the main reason I started porting CM to this was the AGB from Huawei.
Click to expand...
Click to collapse
@nexolight glad to hear kernel is ok.
I am available for testing if you need it.
Bit more patience please I will upload the stuff to work together when I get past the bootlogo. At the moment there's no usuable build to test
nexolight said:
Bit more patience please I will upload the stuff to work together when I get past the bootlogo. At the moment there's no usuable build to test
Click to expand...
Click to collapse
I said I am available just for you to know.
I am not in a hurry and it wasn't my intention to put you in a hurry
np ^^
Here some more logs. I'm not too familiar with that stuff so one of you may give me a hint faster than I find the cause:
http://pastebin.com/raw/0sTM3EfS
The phone is bootlooping it isn't the full log but the same messages again and again. Guess something related to JNI
Edit:
Code:
/*
* Register several native methods for one class.
*/
static int registerNativeMethods(JNIEnv* env, const char* className,
JNINativeMethod* gMethods, int numMethods)
{
jclass clazz;
clazz = env->FindClass(className);
if (clazz == NULL) {
ALOGE("Native registration unable to find class '%s'", className);
return JNI_FALSE;
}
if (env->RegisterNatives(clazz, gMethods, numMethods) < 0) {
ALOGE("RegisterNatives failed for '%s'", className);
return JNI_FALSE;
}
return JNI_TRUE;
}
this fails for class android/util/Log
nexolight said:
np ^^
Here some more logs. I'm not too familiar with that stuff so one of you may give me a hint faster than I find the cause:
http://pastebin.com/raw/0sTM3EfS
The phone is bootlooping it isn't the full log but the same messages again and again. Guess something related to JNI
Edit:
Code:
/*
* Register several native methods for one class.
*/
static int registerNativeMethods(JNIEnv* env, const char* className,
JNINativeMethod* gMethods, int numMethods)
{
jclass clazz;
clazz = env->FindClass(className);
if (clazz == NULL) {
ALOGE("Native registration unable to find class '%s'", className);
return JNI_FALSE;
}
if (env->RegisterNatives(clazz, gMethods, numMethods) < 0) {
ALOGE("RegisterNatives failed for '%s'", className);
return JNI_FALSE;
}
return JNI_TRUE;
}
this fails for class android/util/Log
Click to expand...
Click to collapse
01-28 20:00:42.042 3291 3291 E ImagingSystem: failed to dlopen(/system/lib/hwcam/hwcam.hi3635.m.GRACE.so)!
01-28 20:00:42.042 3291 3291 F ImagingSystem: hw::CNoAddRefRelease4T<T>* hw::CIntfPtrBase<T>:perator->() const [with T = hw::IImagingSystem; hw::CIntfPtrBase<T>::_TPtrNoAddRefRelease = hw::CNoAddRefRelease4T<hw::IImagingSystem>*]: SHOULD NOT BE NULL!
Looks like you miss /system/lib/hwcam/hwcam.hi3635.m.GRACE.so and you get a null pointer error.
Did you included the vendor blobs?
AD2076 said:
01-28 20:00:42.042 3291 3291 E ImagingSystem: failed to dlopen(/system/lib/hwcam/hwcam.hi3635.m.GRACE.so)!
01-28 20:00:42.042 3291 3291 F ImagingSystem: hw::CNoAddRefRelease4T<T>* hw::CIntfPtrBase<T>:perator->() const [with T = hw::IImagingSystem; hw::CIntfPtrBase<T>::_TPtrNoAddRefRelease = hw::CNoAddRefRelease4T<hw::IImagingSystem>*]: SHOULD NOT BE NULL!
Looks like you miss /system/lib/hwcam/hwcam.hi3635.m.GRACE.so and you get a null pointer error.
Did you included the vendor blobs?
Click to expand...
Click to collapse
ofc ^^ and I'm not missing that. But anyway is the camera stuff critical to boot up the system? However this is releated to another library where this one depends on. I didn't tried or included all of them:
Code:
0x00000001 (NEEDED) Shared library: [libdl.so]
0x00000001 (NEEDED) Shared library: [liblog.so]
0x00000001 (NEEDED) Shared library: [libcutils.so]
0x00000001 (NEEDED) Shared library: [libutils.so]
0x00000001 (NEEDED) Shared library: [libui.so]
0x00000001 (NEEDED) Shared library: [libmemtrack.so]
0x00000001 (NEEDED) Shared library: [libcamera_metadata.so]
0x00000001 (NEEDED) Shared library: [libjpegenchw.so]
0x00000001 (NEEDED) Shared library: [libexif.so]
0x00000001 (NEEDED) Shared library: [libjpeg.so]
0x00000001 (NEEDED) Shared library: [libskia.so]
0x00000001 (NEEDED) Shared library: [libhardware.so]
0x00000001 (NEEDED) Shared library: [libHWCamCfgSvr.so]
0x00000001 (NEEDED) Shared library: [liboeminfo.so]
0x00000001 (NEEDED) Shared library: [libnvme.so]
0x00000001 (NEEDED) Shared library: [libgui.so]
0x00000001 (NEEDED) Shared library: [libbinder.so]
0x00000001 (NEEDED) Shared library: [libc++.so]
0x00000001 (NEEDED) Shared library: [libc.so]
0x00000001 (NEEDED) Shared library: [libm.so]
0x0000000e (SONAME) Library soname: [hwcam.hi3635.m.GRACE.so]
I'm sure it's rather related to that:
Code:
01-28 20:00:46.591 2813 2813 W art : CheckJNI: method to register "print_powerlog_native" not in the given class. This is slow, consider changing your RegisterNatives calls.
01-28 20:00:46.591 2813 2813 E art : Failed to register native method android.util.Log.print_powerlog_native(ILjava/lang/String;Ljava/lang/String;)I in /system/framework/framework.jar
01-28 20:00:46.591 2813 2813 E art : ----- class 'Landroid/util/Log;' cl=0x0 -----
01-28 20:00:46.591 2813 2813 E art : objectSize=792 (744 from super)
01-28 20:00:46.591 2813 2813 E art : access=0x0008.0011
01-28 20:00:46.591 2813 2813 E art : super='java.lang.Class<java.lang.Object>' (cl=0x0)
01-28 20:00:46.591 2813 2813 E art : vtable (0 entries, 11 in super):
01-28 20:00:46.591 2813 2813 E art : direct methods (24 entries):
01-28 20:00:46.591 2813 2813 E art : 0: void android.util.Log.<clinit>()
01-28 20:00:46.591 2813 2813 E art : 1: void android.util.Log.<init>()
01-28 20:00:46.591 2813 2813 E art : 2: int android.util.Log.d(java.lang.String, java.lang.String)
01-28 20:00:46.591 2813 2813 E art : 3: int android.util.Log.d(java.lang.String, java.lang.String, java.lang.Throwable)
01-28 20:00:46.591 2813 2813 E art : 4: int android.util.Log.e(java.lang.String, java.lang.String)
01-28 20:00:46.591 2813 2813 E art : 5: int android.util.Log.e(java.lang.String, java.lang.String, java.lang.Throwable)
01-28 20:00:46.591 2813 2813 E art : 6: java.lang.String android.util.Log.getStackTraceString(java.lang.Throwable)
01-28 20:00:46.591 2813 2813 E art : 7: int android.util.Log.i(java.lang.String, java.lang.String)
01-28 20:00:46.591 2813 2813 E art : 8: int android.util.Log.i(java.lang.String, java.lang.String, java.lang.Throwable)
01-28 20:00:46.591 2813 2813 E art : 9: boolean android.util.Log.isLoggable(java.lang.String, int)
01-28 20:00:46.591 2813 2813 E art : 10: int android.util.Log.println(int, java.lang.String, java.lang.String)
01-28 20:00:46.591 2813 2813 E art : 11: int android.util.Log.println_native(int, int, java.lang.String, java.lang.String)
01-28 20:00:46.591 2813 2813 E art : 12: android.util.Log$TerribleFailureHandler android.util.Log.setWtfHandler(android.util.Log$TerribleFailureHandler)
01-28 20:00:46.591 2813 2813 E art : 13: int android.util.Log.v(java.lang.String, java.lang.String)
01-28 20:00:46.591 2813 2813 E art : 14: int android.util.Log.v(java.lang.String, java.lang.String, java.lang.Throwable)
01-28 20:00:46.591 2813 2813 E art : 15: int android.util.Log.w(java.lang.String, java.lang.String)
01-28 20:00:46.591 2813 2813 E art : 16: int android.util.Log.w(java.lang.String, java.lang.String, java.lang.Throwable)
01-28 20:00:46.591 2813 2813 E art : 17: int android.util.Log.w(java.lang.String, java.lang.Throwable)
01-28 20:00:46.591 2813 2813 E art : 18: int android.util.Log.wtf(int, java.lang.String, java.lang.String, java.lang.Throwable, boolean, boolean)
01-28 20:00:46.591 2813 2813 E art : 19: int android.util.Log.wtf(java.lang.String, java.lang.String)
01-28 20:00:46.591 2813 2813 E art : 20: int android.util.Log.wtf(java.lang.String, java.lang.String, java.lang.Throwable)
01-28 20:00:46.591 2813 2813 E art : 21: int android.util.Log.wtf(java.lang.String, java.lang.Throwable)
01-28 20:00:46.591 2813 2813 E art : 22: void android.util.Log.wtfQuiet(int, java.lang.String, java.lang.String, boolean)
01-28 20:00:46.591 2813 2813 E art : 23: int android.util.Log.wtfStack(java.lang.String, java.lang.String)
01-28 20:00:46.591 2813 2813 E art : static fields (12 entries):
01-28 20:00:46.591 2813 2813 E art : 0: int android.util.Log.ASSERT
01-28 20:00:46.591 2813 2813 E art : 1: int android.util.Log.DEBUG
01-28 20:00:46.591 2813 2813 E art : 2: int android.util.Log.ERROR
01-28 20:00:46.591 2813 2813 E art : 3: int android.util.Log.INFO
01-28 20:00:46.591 2813 2813 E art : 4: int android.util.Log.LOG_ID_CRASH
01-28 20:00:46.591 2813 2813 E art : 5: int android.util.Log.LOG_ID_EVENTS
01-28 20:00:46.591 2813 2813 E art : 6: int android.util.Log.LOG_ID_MAIN
01-28 20:00:46.591 2813 2813 E art : 7: int android.util.Log.LOG_ID_RADIO
01-28 20:00:46.591 2813 2813 E art : 8: int android.util.Log.LOG_ID_SYSTEM
01-28 20:00:46.591 2813 2813 E art : 9: int android.util.Log.VERBOSE
01-28 20:00:46.591 2813 2813 E art : 10: int android.util.Log.WARN
01-28 20:00:46.591 2813 2813 E art : 11: android.util.Log$TerribleFailureHandler android.util.Log.sWtfHandler
01-28 20:00:46.592 2813 2813 F art : art/runtime/jni_internal.cc:497] JNI FatalError called: RegisterNatives failed for 'android/util/Log'; aborting...
https://github.com/mt7-dev/cm_andro...mmit/8bc68453dc0e6faca201c87ff19d921702c951e4
This is most likely the same issue.... however I don't want to edit the build environment even more there must be a clean way to do this or just an alternate.
I'm new to porting devices so what is the usual way to alter the framwork source provided by the cm build environment?
This "print_powerlog_native" function comes from at least 1 shared library I can't omit.
nexolight said:
https://github.com/mt7-dev/cm_andro...mmit/8bc68453dc0e6faca201c87ff19d921702c951e4
This is most likely the same issue.... however I don't want to edit the build environment even more there must be a clean way to do this or just an alternate.
I'm new to porting devices so what is the usual way to alter the framwork source provided by the cm build environment?
This "print_powerlog_native" function comes from at least 1 shared library I can't omit.
Click to expand...
Click to collapse
https://github.com/XePeleato/https-...huawei_gra_l09/blob/master/p8-vendor-blobs.mk
You have probably already seen this, but just in case... hope this helps
AD2076 said:
https://github.com/XePeleato/https-...huawei_gra_l09/blob/master/p8-vendor-blobs.mk
You have probably already seen this, but just in case... hope this helps
Click to expand...
Click to collapse
These don't even work with the 5.0 rom for cyanogenmod for me (6.0 is even more different) and I don't want to add these vendor files in bruteforce mode if you know what I mean
In my case I had to replace the libandroid_runtime.so and there this native method is referenced. The solution in the link I posted before would work pretty well I guess this is just a non-standard function I'd have to add and the problem would be solved. However I'm pretty sure the ndk has a standardized way to do this without editing these files directly. To my point of undersanding editing the build environment is a no-go to make it official.

[Q] can i use setResult and callMethod inside afterHookedMethod?

hi i am new to xposed framework and java as well. :laugh:
my objective:
1. hook a class method - DONE
2. modify its first param using beforehooked - DONE
3. log the output and call the same method again in afterhooked. NEED HELP
i am tried like this
PHP:
protected void afterHookedMethod(MethodHookParam param) throws Throwable {
XposedBridge.log("result " + param.setResult);
param.setResult(null);
XposedBridge.log("calling method ");
XposedHelpers.callMethod(param.thisObject, "BodyDataByStr",param.args[0],param.args[1],param.args[2],param.args[3]);
}
but this is throwing null pointer exception in logs.
PHP:
java.lang.NullPointerException
at de.robv.android.xposed.XposedHelpers.callMethod(XposedHelpers.java:947)
at just.trust.me.Main$1.afterHookedMethod(Main.java:70)
at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:645)
at com.nob.mypp.h.a.BodyDataByStr(Native Method)
at com.nob.myapp.h.a.getBody(Unknown Source)
at com.nob.myapp.h.a.<init>(Unknown Source)
at com.nob.myapp.k.bk.<init>(Unknown Source)
at com.nob.myapp.k.bk.a(Unknown Source)
at com.mob.mypp.n.b$1.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
at java.lang.Thread.run(Thread.java:856)
please help me.
hotwap said:
hi i am new to xposed framework and java as well. :laugh:
my objective:
1. hook a class method - DONE
2. modify its first param using beforehooked - DONE
3. log the output and call the same method again in afterhooked. NEED HELP
i am tried like this
PHP:
protected void afterHookedMethod(MethodHookParam param) throws Throwable {
XposedBridge.log("result " + param.setResult);
param.setResult(null);
XposedBridge.log("calling method ");
XposedHelpers.callMethod(param.thisObject, "BodyDataByStr",param.args[0],param.args[1],param.args[2],param.args[3]);
}
but this is throwing null pointer exception in logs.
PHP:
java.lang.NullPointerException
at de.robv.android.xposed.XposedHelpers.callMethod(XposedHelpers.java:947)
at just.trust.me.Main$1.afterHookedMethod(Main.java:70)
at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:645)
at com.nob.mypp.h.a.BodyDataByStr(Native Method)
at com.nob.myapp.h.a.getBody(Unknown Source)
at com.nob.myapp.h.a.<init>(Unknown Source)
at com.nob.myapp.k.bk.<init>(Unknown Source)
at com.nob.myapp.k.bk.a(Unknown Source)
at com.mob.mypp.n.b$1.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
at java.lang.Thread.run(Thread.java:856)
please help me.
Click to expand...
Click to collapse
Code:
XposedBridge.log("result " + param.[COLOR="Red"]setResult[/COLOR]);
It should be getResult() right?
Also, you can use XC_MethodReplacement() instead of XC_MethodHook(), something like this:
PHP:
XposedHelpers.findAndHookMethod(........ new XC_MethodReplacement() {
@Override
protected Object replaceHookedMethod(MethodHookParam param) throws Throwable {
if (mBlaBlaBla == true) {
mBlaBlaBla = false;
XposedBridge.log("log this");
} else {
mBlaBlaBla = true;
// invoke original method
XposedBridge.invokeOriginalMethod(param.method, param.thisObject, param.args);
}
return null;
}
});
serajr said:
Code:
XposedBridge.log("result " + param.[COLOR="Red"]setResult[/COLOR]);
It should be getResult() right?
yes you are right. in the source its already getResult(), i made mistake while creating the thread.
Click to expand...
Click to collapse
Also note, calling the same method using callMethod inside its hook will basically run your hook recursively until stack overflows.
If you need to call the original method you should use XposedBridge.invokeOriginalMethod()
This will bypass any hooks attached to this method.

Categories

Resources