Then I got this far:
Code:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'Superuser'.
> SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.
BUILD FAILED
To fix this, I created Superuser/Superuser/local.properites with
sdk.dir=/home/havealoha/adt/sdk
Actually, proper usual android way, is to set ANDROID_HOME=/home/havealoha/adt/sdk/
And put it in your bashrc/zshrc
Then I was able to get this far and am currently stuck, even with adding --continue to :
Code:
Successfully started process 'command '/home/havealoha/adt/sdk/build-tools/23.0.1/aapt''
Position 2 : Tag <manifest> attribute package has invalid character ' '.
:processDebugResources FAILED
:processDebugResources (Thread[main,5,main]) completed. Took 0.13 secs.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/home/havealoha/adt/sdk/build-tools/23.0.1/aapt'' finished with non-zero exit value 1
Did you change packageName? Please note that it must NOT contain a trailing \n
Finally I did a ./gradlew clean and that finished building but I dont find an apk anywhere.
You did ./gradlew assembleDebug?
It should create it in build/outputs/apk/ (yes gradle is annoying with the output paths)
As far as su goes, I build it and it is tiny compared to your binary and it does not work:
Code:
[havealoha@CentOS7-DELL9020 Superuser]$ ndk-build clean
[x86] Clean : selinux [x86]
[x86] Clean : sepol [x86]
[x86] Clean : stdc++ [x86]
[x86] Clean : su [x86]
[armeabi] Clean : selinux [armeabi]
[armeabi] Clean : sepol [armeabi]
[armeabi] Clean : stdc++ [armeabi]
[armeabi] Clean : su [armeabi]
[mips] Clean : selinux [mips]
[mips] Clean : sepol [mips]
[mips] Clean : stdc++ [mips]
[mips] Clean : su [mips]
[havealoha@CentOS7-DELL9020 Superuser]$ ls -l ./li
libs/ lint.xml
[havealoha@CentOS7-DELL9020 Superuser]$ ls -l ./libs/armeabi/
total 312
-rwxr-xr-x 1 havealoha havealoha 315980 Oct 30 14:51 su
I don't understand... You call ndk-build clean? Why? It won't make the thing build
If you want to build just call ndk-build
Also, do you have a bit more infos than "doesn't work" ?
This seams cool
http://xdaforums.com/showpost.php?p=63197935&postcount=2. Looks like the same thing but at a bigger scale (because it's Chainfire).
Way ****ing bigger scale is ongoing on
https://github.com/phhusson/super-bootimg
It is still work in progress, but it takes a boot.img as input, and outputs a rooted boot.img, and will be callable either from a recovery or from a desktop.
Obviously not all architectures are supported yet, but I tested it on CAF 6.0 roms, Nexus 5 6.0, 5.1, Nexus 9 6.0, MTK 5.1 devices.
Also compared to current doitright's AOSP patch, not all domains are restrained, I still have some permissive domains.
Also, as for UI, if anyone wants to help, he is welcome, I really don't plan to work on UI, and I don't think doitright is planning to either.