[Q] Bring CM Pie Controls to Omni. - Omni Q&A

Trying to learn how to do all this stuff, current just been cherry picking various user submitted stuff such as expanded volume controls, multi window, clear all to the recents menu.
Today I wanted to see if I could get PIE controls working just for my own pleasure since i hate how bulky the stock UI is. Any way I thought I was going well but now I'm stuck.
Trying to cherry pick:
Pie Controls part 1 of 2 http://review.cyanogenmod.org/#/c/34026/
Pie Controls part 2 of 2 http://review.cyanogenmod.org/#/c/34681/
Any way, I got an error then I manually added the unmerged files to the various folders and did 'git commit' and now I'm stuck in this terminal and I can't seem to do anything from here:
{
"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"
}
Not sure what I'm supposed to do from here, whether I write out or exit or whatever.
(forgot to tick: "Yes, this thread is a question")

You need to write a commit message, then hit Ctrl-O, Enter and Ctrl-X.

Thanks I'll give it a go.

Damn, couldn't get it to work: http://pastebin.com/DmQUCD6p
Code:
packages/apps/Settings/res/xml/testing_settings.xml:42: error: Error: No resource found that matches the given name (at 'title' with value '@string/testing_wifi_info').
packages/apps/Settings/res/xml/testing_wifi_settings.xml:16: error: Error: No resource found that matches the given name (at 'title' with value '@string/testing_wifi_info').
packages/apps/Settings/res/xml/testing_wifi_settings.xml:21: error: Error: No resource found that matches the given name (at 'title' with value '@string/wifi_api_test').
packages/apps/Settings/res/xml/testing_wifi_settings.xml:29: error: Error: No resource found that matches the given name (at 'title' with value '@string/wifi_config_info').
packages/apps/Settings/res/xml/testing_wifi_settings.xml:37: error: Error: No resource found that matches the given name (at 'title' with value '@string/wifi_status_test').
make: *** [/home/parker/android/omni/out/target/common/obj/APPS/Settings_intermediates/src/R.stamp] Error 1
make: *** Waiting for unfinished jobs....
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
#
# configuration written to .config
#
make[1]: Leaving directory `/home/parker/android/omni/kernel/lge/mako'
frameworks/base/core/java/android/provider/Settings.java:2861: QS_QUICK_PULLDOWN is already defined in android.provider.Settings.System
public static final String QS_QUICK_PULLDOWN = "qs_quick_pulldown";
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
make: *** [/home/parker/android/omni/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes-full-debug.jar] Error 41
real 2m49.709s
user 1m2.552s
sys 0m6.616s
[email protected]:~/android/omni$

parker09 said:
Damn, couldn't get it to work: http://pastebin.com/DmQUCD6p
Code:
packages/apps/Settings/res/xml/testing_settings.xml:42: error: Error: No resource found that matches the given name (at 'title' with value '@string/testing_wifi_info').
packages/apps/Settings/res/xml/testing_wifi_settings.xml:16: error: Error: No resource found that matches the given name (at 'title' with value '@string/testing_wifi_info').
packages/apps/Settings/res/xml/testing_wifi_settings.xml:21: error: Error: No resource found that matches the given name (at 'title' with value '@string/wifi_api_test').
packages/apps/Settings/res/xml/testing_wifi_settings.xml:29: error: Error: No resource found that matches the given name (at 'title' with value '@string/wifi_config_info').
packages/apps/Settings/res/xml/testing_wifi_settings.xml:37: error: Error: No resource found that matches the given name (at 'title' with value '@string/wifi_status_test').
make: *** [/home/parker/android/omni/out/target/common/obj/APPS/Settings_intermediates/src/R.stamp] Error 1
make: *** Waiting for unfinished jobs....
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
#
# configuration written to .config
#
make[1]: Leaving directory `/home/parker/android/omni/kernel/lge/mako'
frameworks/base/core/java/android/provider/Settings.java:2861: QS_QUICK_PULLDOWN is already defined in android.provider.Settings.System
public static final String QS_QUICK_PULLDOWN = "qs_quick_pulldown";
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
make: *** [/home/parker/android/omni/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes-full-debug.jar] Error 41
real 2m49.709s
user 1m2.552s
sys 0m6.616s
[email protected]:~/android/omni$
Click to expand...
Click to collapse
Try removing line 2861 of frameworks/base/core/java/android/provider/Settings.java
BTW I prefer PA PIE over CM. I tried to port it but I got stuck as its too hard for my small brain

mithun46 said:
Try removing line 2861 of frameworks/base/core/java/android/provider/Settings.java
BTW I prefer PA PIE over CM. I tried to port it but I got stuck as its too hard for my small brain
Click to expand...
Click to collapse
Damn didn't work
I'll look into PA's PIE.

chasmodo said:
You need to write a commit message, then hit Ctrl-O, Enter and Ctrl-X.
Click to expand...
Click to collapse
Hey man, I want to get into building from source. I understand mostly everything about it, just got some questions:
1.What is the minimum size hard drive that can be used? (including space for java,python,all the other build tools)
2.Is 3GB of ram enough? I can upgrade to 8GB

parker09 said:
Damn didn't work
I'll look into PA's PIE.
Click to expand...
Click to collapse
Do this on root of android repo and pastebin the output
cat frameworks/base/core/java/android/provider/Settings.java

arDroid.99 said:
1.What is the minimum size hard drive that can be used? (including space for java,python,all the other build tools)
Click to expand...
Click to collapse
I'd say 80Gbs would be a minimum because you'll want to use ccache to speed up your builds, otherwise they'll take forever to complete.
arDroid.99 said:
2.Is 3GB of ram enough? I can upgrade to 8GB
Click to expand...
Click to collapse
You should upgrade if you can afford to. Small memory means that the compiler will have to use swap a lot, and that will slow you down considerably.

arDroid.99 said:
Hey man, I want to get into building from source. I understand mostly everything about it, just got some questions:
1.What is the minimum size hard drive that can be used? (including space for java,python,all the other build tools)
2.Is 3GB of ram enough? I can upgrade to 8GB
Click to expand...
Click to collapse
SSD Recommended
BTW I think I know the issue OP is facing, What I would do is Change the name of the qs thing in Settings.java and the other file that calls for it - NO IDEA WHERE IT IS WITHOUT SEEING THE PATCH

Okay thanks for the replies. I'll try again shortly.

Your issue is that the comit 2/2 is setting PIE settings to packages/apps/Settings/ but OMNI do not edit this package but have their own.
packages/apps/omni/gears this is where you must implement comit 2/2,

sevenup30 said:
Your issue is that the comit 2/2 is setting PIE settings to packages/apps/Settings/ but OMNI do not edit this package but have their own.
packages/apps/omni/gears this is where you must implement comit 2/2,
Click to expand...
Click to collapse
Any luck? I added the commit to packages/apps/omnigears but threw out errors so mind didn't build.

parker09 said:
Any luck? I added the commit to packages/apps/omnigears but threw out errors so mind didn't build.
Click to expand...
Click to collapse
Tried my commits for settings and fw base for PIE in gerrit. I used PA PIE though . I can't test it now. If you can it Will be great help

I'll just restart my laptop & will try in 2 minutes.
@mithun46 couldn't get it to work, maybe someone else would have better luck with it.

parker09 said:
I'll just restart my laptop & will try in 2 minutes.
@mithun46 couldn't get it to work, maybe someone else would have better luck with it.
Click to expand...
Click to collapse
I know am uploading the fix. Be sure to repo sync before applying
Fixed . Also if there are errors please pastebin them
https://gerrit.omnirom.org/1685
https://gerrit.omnirom.org/1686
https://gerrit.omnirom.org/1690

mithun46 said:
I know am uploading the fix. Be sure to repo sync before applying
Fixed . Also if there are errors please pastebin them
https://gerrit.omnirom.org/1685
https://gerrit.omnirom.org/1686
https://gerrit.omnirom.org/1690
Click to expand...
Click to collapse
Hey thanks for the replies. Still not getting it to compile - probably a error on my end (I'm still a noob at this building thing).
Pastebin: http://pastebin.com/0bkdStnF

parker09 said:
Hey thanks for the replies. Still not getting it to compile - probably a error on my end (I'm still a noob at this building thing).
Pastebin: http://pastebin.com/0bkdStnF
Click to expand...
Click to collapse
Thanks I will fix in 3 hours

mithun46 said:
Thanks I will fix in 3 hours
Click to expand...
Click to collapse
saw the new commits, trying now.

parker09 said:
saw the new commits, trying now.
Click to expand...
Click to collapse
Same here. Am also building. Seems the error is fixed

Related

**DEPRECATED** [TOOL]APK to Java v0.9 BETA *Update*

APK to Java Beta​
Description:
Since I'm into making Android Apps nowadays, I thought of making this tool to save me (and you) time. So I started coding it and it worked out pretty well so far. The tool can decompiles your selected apk to Java code, to learn from it, so as an educational purpose.
Additionally it also can decompile to smali code and it can decompile the resources of the app. It's currently a very early beta but it works successfully (at least at my computer)
Used External Tools:
- 7za
- apktool
- baksmali-1.4.0
- jd-gui
- dex2jar
Requirements:
- JRE 6/7 (I think that's all, but maybe android-sdk is needed, I guess not)
Screenshots:
{
"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"
}
Added very basic help file, various code fixes (no errors should occur on decompiling java/smali/resource. the Eclipse projects are still bugged though)
Download:
Version 0.9 beta (check github for changelog):
Mirror #1: broodplank.net
Mirror #2: Mediafire.com
Version 0.8 beta (check github for changelog):
Mirror #1: broodplank.net
Mirror #2: Mediafire.com
Version 0.7 beta (check github for changelog):
Mirror #1: broodplank.net
Mirror #2: Mediafire.com
Version 0.6 beta (check github for changelog):
Mirror #1: broodplank.net
Mirror #2: Mediafire.com
Version 0.5 beta:
Mirror #1: broodplank.net
Mirror #2: Mediafire.com
Github Sources:
https://github.com/broodplank/APKtoJava
Please let me know how it runs!
Thanks! Was looking for a tool like this. I need to learn a lot about developing android apps. Will download this as soon as i get on my PC this evening.
Sent from my GT-S5360 using xda premium
anasdcool71 said:
Thanks! Was looking for a tool like this. I need to learn a lot about developing android apps. Will download this as soon as i get on my PC this evening.
Sent from my GT-S5360 using xda premium
Click to expand...
Click to collapse
You're welcome! Please let me know your experience with the app, it still needs a lot of testing!
Alright, so i tested the 0.6 beta. I chose my app from eclipse, as i already knew its source code. Decompiling into resources and smali files are working totally fine, but it is not able to generate the java code. I got that message :-
I went to jd-gui and did what i was told, but nothing happened. After clicking OK, an error message came that the input file was invalid. After that the tool won't close. I had to open the task manager to end it.
anasdcool71 said:
Alright, so i tested the 0.6 beta. I chose my app from eclipse, as i already knew its source code. Decompiling into resources and smali files are working totally fine, but it is not able to generate the java code. I got that message :-
I went to jd-gui and did what i was told, but nothing happened. After clicking OK, an error message came that the input file was invalid. After that the tool won't close. I had to open the task manager to end it.
Click to expand...
Click to collapse
Thanks for your feedback, I had the same error once, it seems there is a problem with this file "dex2jar.bat". somehow I just doesn't get executed the right way, the strange thing is that it's executed the same way as the other batch files, and if I do it manually: "dex2jar.bat classes.dex" then it also works..
So I though maybe the working directory needs to be set.
edit:
Code:
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit
Press any key to continue . . .
so that's the problem . Will lower the heap ^^
Open the /tools/dex2jar.bat file and paste this contents into it:
Code:
@echo off
cd /d %~dp0
REM
REM dex2jar - Tools to work with android .dex and java .class files
REM Copyright (c) 2009-2012 Panxiaobo
REM
REM Licensed under the Apache License, Version 2.0 (the "License");
REM you may not use this file except in compliance with the License.
REM You may obtain a copy of the License at
REM
REM http://www.apache.org/licenses/LICENSE-2.0
REM
REM Unless required by applicable law or agreed to in writing, software
REM distributed under the License is distributed on an "AS IS" BASIS,
REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
REM See the License for the specific language governing permissions and
REM limitations under the License.
REM
set CLASSPATH=
FOR %%i IN ("%~dp0lib\*.jar") DO CALL "%~dp0setclasspath.bat" %%i
java -Xms512m -cp "%CLASSPATH%" "com.googlecode.dex2jar.tools.Dex2jarCmd" %*
new version released! the option to convert to an Eclipse project is now available (still beta though)
See changes here
Btw i forgot a critical fix. Check latest commit for fix
Awesome apk.
tapatalked² from cowsquadGnex®
cowsquad said:
Awesome apk.
tapatalked² from cowsquadGnex®
Click to expand...
Click to collapse
Thanks.
btw, V0.8 released!
Changes: 1 2 3
It's becoming much more stable luckily
Alright bro, i've to yet try the 0.8 version (using the 0.6). Your solution worked. My source was decompiled to the java files. But i see there were some changes :-
1) I saw that the 'this' keyword was used before almost every variable even if i hadn't included it (but that's not much of a problem, though).
2) I had used that tag R.id.editText1, R.id.radioButton1, etc. to use my views from the res folder. But in place of those, there were some numbers.. I really find it hard to work with them.
anasdcool71 said:
Alright bro, i've to yet try the 0.8 version (using the 0.6). Your solution worked. My source was decompiled to the java files. But i see there were some changes :-
1) I saw that the 'this' keyword was used before almost every variable even if i hadn't included it (but that's not much of a problem, though).
2) I had used that tag R.id.editText1, R.id.radioButton1, etc. to use my views from the res folder. But in place of those, there were some numbers.. I really find it hard to work with them.
Click to expand...
Click to collapse
Hmm the random numbers as variables kinda sucks, I know, but that's just the way the program (jd-gui) works unfortunately, it makes things a lot harder to read but at least it's a working java source. Unfortunately jd-gui doesn't have any commandline tool with several switches. (I saw some other jar to java decompilers, but they gave a source code even more strange, so I think jd-gui is the best solution for now, of course I will update it if possible)
Looking forward to more updates for this great tool!
emd2009 said:
Looking forward to more updates for this great tool!
Click to expand...
Click to collapse
v0.9 released
Changes: 1 2 3
With all versions of your tool, including v9, I get an error whenever I export as an Eclipse project:
Line 4503 in APKtoJava.exe
Error: Subscript used with non-Array variable
emd2009 said:
With all versions of your tool, including v9, I get an error whenever I export as an Eclipse project:
Line 4503 in APKtoJava.exe
Error: Subscript used with non-Array variable
Click to expand...
Click to collapse
Thanks for letting me know. Ill take a look at it ^-^
I think i know what to change
Attached a screenshot of the error when trying to get an eclipse project (happens after the JD-GUI thing)
Jonny said:
Attached a screenshot of the error when trying to get an eclipse project (happens after the JD-GUI thing)
Click to expand...
Click to collapse
Thanks, more people reported that problem, I think changing this: "$namearray[0]" to "$namearray" and "$tarsdkarray[0]" to "$tarsdkarray" will do the trick, but I'm not sure since it always works at my computer no matter if I put [0] or nothing.
Ill upload new version soon

[LOLIPOP] Xperia AOSP Project

hi all
we have included this device in open devices project
you can check news about project on
http://developer.sonymobile.com/know.../open-devices/
feel free to fork, build, fix and push back
Br
J
Andoroid L (5.0) code, binaries and guides are published
Wow, you are already testing 5.0 on the Z3?
thx @jerpelea wasn't sure if we would be lucky enought to get lollipop at the first instance ?
Fix? Does the code contain any major bugs something not working? Just got soooo excited with this news
tx a lot @jerpelea! Just make bl unlock a bit more straightforward (e.g. easy to go back to stock)!
Inviato dal mio LG-D802 utilizzando Tapatalk
Would unlocking the bootloader and installing this eventual ROM that's based off of Sony's source code not be impacted by this warning from Sony (meaning the DRM security keys would be intact?
http://developer.sonymobile.com/unlockbootloader/unlock-yourboot-loader/
Certain pre-loaded content on your device may also be inaccessible due to the removal of DRM security keys. For high-end devices running recent software versions, for instance Xperia Z3, the removal of DRM security keys may affect advanced camera functionality. For example, noise reduction algorithms might be removed, and performance when taking photos in low-light conditions might be affected. The secure user data partition may also become inaccessible, and you will not be able to get any more official software upgrades if you unlock the boot loader.
Click to expand...
Click to collapse
the proprietary software thar uses drm is not part of aosp
more the point re this lollipop source: camera and phone modem are disabled ~ so no daily driver for a while yet.
I will post results of my first build in this thread (give me a few hours).
update: build failed..
(something to do with bluetooth ~ checked remotely so no details yet)
try again later
iBuzman said:
the proprietary software thar uses drm is not part of aosp
more the point re this lollipop source: camera and phone modem are disabled ~ so no daily driver for a while yet.
I will post results of my first build in this thread (give me a few hours).
update: build failed..
(something to do with bluetooth ~ checked remotely so no details yet)
try again later
Click to expand...
Click to collapse
I'll also build but will not be installing until our gurus fix the camera and modem.
rebuilding now, java was still 6 defaulted not java 7, plus a system folder missing.. fingers crossed..
---------- Post added at 12:24 PM ---------- Previous post was at 12:09 PM ----------
@jerpelea
cd external/libnfc-nci/
git cherry-pick 83cf98d0a5018e023eb9cc8b4e394957f9a6989f
FYI - throws out a "fatal: bad object" error
thanks
no good for my builds.. bluetooth errors during build stopping build approx 2hrs into "make" process..
I don't know how to fix so will hold off on any more builds until after source updated or somebody else builds without error.
iBuzman said:
no good for my builds.. bluetooth errors during build stopping build approx 2hrs into "make" process..
I don't know how to fix so will hold off on any more builds until after source updated or somebody else builds without error.
Click to expand...
Click to collapse
What kind of errors are you getting? Im compiling now so will see how that goes.
^^ I'll kick off another build, but resetting up first, will capture error details then, it's something along the lines of:
/android/external/bluetooth <- android/external/bluetooth.. something something
make stopped with jobs still to run (something like that)
definitely bluetooth each time and suggests something missing.
deleted all repos/android folder etc and re-syncing now (just in case change from 4.4.4 to 5.0.0 in repos is causing issues. probably a few hours before next attempt.
thanks for your message
guide updated to cherry-pick nfc from google review
br
J
iBuzman said:
rebuilding now, java was still 6 defaulted not java 7, plus a system folder missing.. fingers crossed..
---------- Post added at 12:24 PM ---------- Previous post was at 12:09 PM ----------
@jerpelea
cd external/libnfc-nci/
git cherry-pick 83cf98d0a5018e023eb9cc8b4e394957f9a6989f
FYI - throws out a "fatal: bad object" error
thanks
Click to expand...
Click to collapse
jerpelea said:
thanks for your message
guide updated to cherry-pick nfc from google review
br
J
Click to expand...
Click to collapse
Alin. Should we be using AOSP Master or the android-5.0.0_r2 branch?
iBuzman said:
^^ I'll kick off another build, but resetting up first, will capture error details then, it's something along the lines of:
/android/external/bluetooth <- android/external/bluetooth.. something something
make stopped with jobs still to run (something like that)
definitely bluetooth each time and suggests something missing.
deleted all repos/android folder etc and re-syncing now (just in case change from 4.4.4 to 5.0.0 in repos is causing issues. probably a few hours before next attempt.
Click to expand...
Click to collapse
I'm getting the same thing when building for D6503, fair noob here but i'll let you know if I find anything.
Code:
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/src/btif_util.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/co/bta_ag_co.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/co/bta_dm_co.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/co/bta_fs_co.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/co/bta_gattc_co.c
external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c: In function 'bta_av_audio_sink_getconfig':
external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c:557:52: error: 'p_sink' undeclared (first use in this function)
if (bta_av_co_audio_sink_has_scmst(p_sink))
^
external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c:557:52: note: each undeclared identifier is reported only once for each function it appears in
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/co/bta_gatts_co.c
make: *** [out/target/product/sirius/obj/SHARED_LIBRARIES/bluetooth.default_intermediates/../btif/co/bta_av_co.o] Error 1
make: *** Waiting for unfinished jobs....
external/sqlite/dist/sqlite3.c: In function 'fts3SnippetFunc':
external/sqlite/dist/sqlite3.c:143651:11: warning: 'iS' may be used uninitialized in this function [-Wmaybe-uninitialized]
if( iS>iBestScore ){
^
external/sqlite/dist/sqlite3.c:143643:13: note: 'iS' was declared here
int iS;
^
make: *** wait: No child processes. Stop.
#### make failed to build some targets (33:43 (mm:ss)) ####
thats the one @XeKToReX... (and I need a better computer!! takes me 2.04hr to get that error!) @jerpelea maybe can shed some light? (thanks, appreciate all your help)
SSD makes a difference! Seems like others have built it for the Z2, glad its not just me though, I'd have just blown the is away and started again lol
Sent from my D6503 using xda-developers.com, powered by appyet.com
On each command you will have to select the version of java you want to use. This command is helpful if you also do other coding.
sudo update-alternatives --config java
sudo update-alternatives --config javac
sudo update-alternatives --config jar
sudo update-alternatives --config javadoc
I've included the master from jerpelea's branch in case anybody is having issues and needs it quickly
After i get out of class today i'm going to run through android.com and see what i can find out about the new compiling method for Android L. I'm sure there's something we've all missed.
bluetooth patch pushed on github
enjoy
XeKToReX said:
I'm getting the same thing when building for D6503, fair noob here but i'll let you know if I find anything.
Code:
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/src/btif_util.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/co/bta_ag_co.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/co/bta_dm_co.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/co/bta_fs_co.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/co/bta_gattc_co.c
external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c: In function 'bta_av_audio_sink_getconfig':
external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c:557:52: error: 'p_sink' undeclared (first use in this function)
if (bta_av_co_audio_sink_has_scmst(p_sink))
^
external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c:557:52: note: each undeclared identifier is reported only once for each function it appears in
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/co/bta_gatts_co.c
make: *** [out/target/product/sirius/obj/SHARED_LIBRARIES/bluetooth.default_intermediates/../btif/co/bta_av_co.o] Error 1
make: *** Waiting for unfinished jobs....
external/sqlite/dist/sqlite3.c: In function 'fts3SnippetFunc':
external/sqlite/dist/sqlite3.c:143651:11: warning: 'iS' may be used uninitialized in this function [-Wmaybe-uninitialized]
if( iS>iBestScore ){
^
external/sqlite/dist/sqlite3.c:143643:13: note: 'iS' was declared here
int iS;
^
make: *** wait: No child processes. Stop.
#### make failed to build some targets (33:43 (mm:ss)) ####
Click to expand...
Click to collapse

[LOLLIPOP] Xperia AOSP Project

hi all
we have included this device in open devices project
you can check news about project on
http://developer.sonymobile.com/know.../open-devices/
feel free to fork, build, fix and push back
Br
J
Wohooo! Finally! [emoji106] [emoji2] [emoji3]
Excellent! An AOSP ROM is the only thing I can think is missing from an otherwise perfect device.
GCC here we come..
Andoroid L (5.0) code, binaries and guides are published
No working camera or modem, looks like we've still got awhile guys...
great news,thankss
nice
I'm syncing it now. I'm going to do a blind build (not changing anything just going with what's already there) because I have yet to unlock my bootloader and won't until they can figure out a way so at least the camera and noise cancellation don't get messed up when unlocking (if I go back to a sony stock rom I know it won't matter on AOSP)
graffixnyc said:
I'm syncing it now.
Click to expand...
Click to collapse
Preparing to build as well. Like you, I haven't BL unlocked and won't until the DRM issues are resolved.
jerpelea said:
Andoroid L (5.0) code, binaries and guides are published
Click to expand...
Click to collapse
Your work is really appreciated. FYI, I convinced a friend to buy a Z3C in large part due to your AOSP commitment. [emoji106]
Guessing we'll need to reverse engineer the camera and modem binaries? Is that right?
illogic6 said:
Guessing we'll need to reverse engineer the camera and modem binaries? Is that right?
Click to expand...
Click to collapse
no
Reverse Engeneering
In other words - SONY will deliver the required drivers or better all required driver will be there in a while...
I get compile error:
Code:
external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c: In function 'bta_av_audio_sink_getconfig':
external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c:557:52: error: 'p_sink' undeclared (first use in this function)
if (bta_av_co_audio_sink_has_scmst(p_sink))
^
external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c:557:52: note: each undeclared identifier is reported only once for each function it appears in
make: *** [out/target/product/aries/obj/SHARED_LIBRARIES/bluetooth.default_intermediates/../btif/co/bta_av_co.o] Error 1
make: *** Waiting for unfinished jobs....
help appreciated
m0d said:
I get compile error:
Code:
external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c: In function 'bta_av_audio_sink_getconfig':
external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c:557:52: error: 'p_sink' undeclared (first use in this function)
if (bta_av_co_audio_sink_has_scmst(p_sink))
^
external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c:557:52: note: each undeclared identifier is reported only once for each function it appears in
make: *** [out/target/product/aries/obj/SHARED_LIBRARIES/bluetooth.default_intermediates/../btif/co/bta_av_co.o] Error 1
make: *** Waiting for unfinished jobs....
help appreciated
Click to expand...
Click to collapse
just re sync your tree and fix is there
That inform you in: <insert the cpu thread number of your computer> ??? Please
I got a build to finish. I'll post the boot and system img for someone to try.. I'm not going to go through the trouble yet to make a flashable zip until we at least know it boots. I'll upload the images now
Posted the images: http://forum.xda-developers.com/z3-compact/development/img-aosp-5-0-boot-imgs-t2940499
So @NisseGurra flashed the build I made yesterday here is what he found to be broken:
no wifi, no network, some reboots, no usb storage, no external sd, no sound or camera
But its very snappy, looking forward to a functional aosp
Thank you for the guides,
I was able to compile AOSP for D5803 successfully.
A couple of issues,
First,
Has the Cherry-Pick for external/libnfc-nci/ that is provided in the guide been merged?
As I get the following error,
Code:
/external/libnfc-nci $ git cherry-pick 83cf98d0a5018e023eb9cc8b4e394957f9a6989f
fatal: bad object 83cf98d0a5018e023eb9cc8b4e394957f9a6989f
(Updated on blog to correspond with Shinano Issue.)
Second,
I get the following error when I try to output zipped package,
Code:
[B]No private recovery resources for TARGET_DEVICE aries
No recovery.fstab for TARGET_DEVICE aries[/B]
make: *** no rule to make target `otapackage'. stop.
Does this have anything to do with: TARGET_BOOTLOADER_BOARD_NAME := D5803
or that it is called aosp_d5803 (aosp_d5803.mk)
UPDATE: otatools seems to work, [" . build/envsetup.sh && time lunch aosp_d5803-userdebug && make otatools "].
But I can not find the output / output directory for package
Oh,
Is there supposed to be a userdata.img too?
Looking around a different sources mention it, however there is no userdata.img when I compiled it.
Thank you for your time

[Project]Lollipop for the Kindle Fire HD's(2012 Models)

LOLLIPOP!
This is a project thread to help out with getting Lollipop on our HDs !
this is the default manifest that you can put into your repo to make things more smooth for you:
https://www.androidfilehost.com/?fid=95784891001611544
Download Repo:
Code:
repo init -u [url]https://android.googlesource.com/platform/manifest.git[/url] -b android-5.0.0_r7
Then Run:
Code:
repo sync -j#
(#=6,8,16,32) depends on how well your pc can handle muliple projects at once
After sources have downloaded Run:
Code:
lunch
then choose device which is tate
then Run:
Code:
make -j8 otapackage
and itll start compiling
Sources have been bumped up to LRX21T 5.0.0_r7
CURRENT ERRORS AND TEMPORARY FIXES
ERROR #1
So it builds and then stops at netlink/genl/genl.h no such file...
to fix this error run:
Code:
cd external
then:
Code:
git clone https://android.googlesource.com/platform/external/libnl-headers
and then:
Code:
make -j8 otapackage
ERROR #2
Code:
frameworks/av/media/libstagefright/ACodec.cpp: In member function 'android::status_t android::ACodec::configureOutputBuffersFromNativeWindow(OMX_U32*, OMX_U32*, OMX_U32*)':
frameworks/av/media/libstagefright/ACodec.cpp:627:11: warning: 'int native_window_set_buffers_geometry(ANativeWindow*, int, int, int)' is deprecated (declared at system/core/include/system/window.h:734) [-Wdeprecated-declarations]
err = native_window_set_buffers_geometry(
^
frameworks/av/media/libstagefright/ACodec.cpp:631:42: warning: 'int native_window_set_buffers_geometry(ANativeWindow*, int, int, int)' is deprecated (declared at system/core/include/system/window.h:734) [-Wdeprecated-declarations]
def.format.video.eColorFormat);
^
frameworks/av/media/libstagefright/ACodec.cpp: In member function 'android::status_t android::ACodec::allocateOutputBuffersFromNativeWindow()':
frameworks/av/media/libstagefright/ACodec.cpp:779:5: error: 'mNumUndequeuedBuffers' was not declared in this scope
mNumUndequeuedBuffers = minUndequeuedBuffers;
^
frameworks/av/media/libstagefright/ACodec.cpp: In member function 'android::status_t android::ACodec::allocateOutputMetaDataBuffers()':
frameworks/av/media/libstagefright/ACodec.cpp:848:5: error: 'mNumUndequeuedBuffers' was not declared in this scope
mNumUndequeuedBuffers = minUndequeuedBuffers;
^
frameworks/av/media/libstagefright/ACodec.cpp: In member function 'void android::ACodec::waitUntilAllPossibleNativeWindowBuffersAreReturnedToUs()':
frameworks/av/media/libstagefright/ACodec.cpp:2969:48: error: 'mNumUndequeuedBuffers' was not declared in this scope
while (countBuffersOwnedByNativeWindow() > mNumUndequeuedBuffers
^
frameworks/av/media/libstagefright/ACodec.cpp: In member function 'android::status_t android::ACodec::pushBlankBuffersToNativeWindow()':
frameworks/av/media/libstagefright/ACodec.cpp:3591:11: warning: 'int native_window_set_buffers_geometry(ANativeWindow*, int, int, int)' is deprecated (declared at system/core/include/system/window.h:734) [-Wdeprecated-declarations]
err = native_window_set_buffers_geometry(mNativeWindow.get(), 1, 1,
^
frameworks/av/media/libstagefright/ACodec.cpp:3592:39: warning: 'int native_window_set_buffers_geometry(ANativeWindow*, int, int, int)' is deprecated (declared at system/core/include/system/window.h:734) [-Wdeprecated-declarations]
HAL_PIXEL_FORMAT_RGBX_8888);
^
frameworks/av/media/libstagefright/ACodec.cpp: In member function 'bool android::ACodec::BaseState::onOMXMessage(const android::sp<android::AMessage>&)':
frameworks/av/media/libstagefright/ACodec.cpp:3813:26: warning: NULL used in arithmetic [-Wpointer-arith]
if (mCodec->mNode == NULL) {
^
frameworks/av/media/libstagefright/ACodec.cpp: In member function 'virtual void android::ACodec::UninitializedState::stateEntered()':
frameworks/av/media/libstagefright/ACodec.cpp:4406:19: warning: converting to non-pointer type 'android::IOMX::node_id {aka unsigned int}' from NULL [-Wconversion-null]
mCodec->mNode = NULL;
^
frameworks/av/media/libstagefright/ACodec.cpp: In member function 'bool android::ACodec::UninitializedState::onAllocateComponent(const android::sp<android::AMessage>&)':
frameworks/av/media/libstagefright/ACodec.cpp:4477:5: warning: NULL used in arithmetic [-Wpointer-arith]
CHECK(mCodec->mNode == NULL);
^
frameworks/av/media/libstagefright/ACodec.cpp:4525:26: warning: converting to non-pointer type 'android::IOMX::node_id {aka unsigned int}' from NULL [-Wconversion-null]
IOMX::node_id node = NULL;
^
frameworks/av/media/libstagefright/ACodec.cpp:4544:14: warning: converting to non-pointer type 'android::IOMX::node_id {aka unsigned int}' from NULL [-Wconversion-null]
node = NULL;
^
frameworks/av/media/libstagefright/ACodec.cpp:4547:17: warning: NULL used in arithmetic [-Wpointer-arith]
if (node == NULL) {
^
frameworks/av/media/libstagefright/ACodec.cpp: In member function 'bool android::ACodec::LoadedState::onConfigureComponent(const android::sp<android::AMessage>&)':
frameworks/av/media/libstagefright/ACodec.cpp:4693:5: warning: NULL used in arithmetic [-Wpointer-arith]
CHECK(mCodec->mNode != NULL);
^
make: *** [/home/android/lol/out/target/product/tate/obj/SHARED_LIBRARIES/libstagefright_intermediates/ACodec.o] Error 1
make: *** Waiting for unfinished jobs....
Note: frameworks/base/cmds/am/src/com/android/commands/am/Am.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
#### make failed to build some targets (04:22 (mm:ss)) ####
to fix this error: download this ACodec.cpp and replace it with the one thats in frameworks/av/media/libstagefright
ERROR #3
Code:
bcmdhd-wifi/wpa_supplicant_8_lib/driver_cmd_nl80211.c:65: error: undefined reference to 'os_strncpy'
collect2: error: ld returned 1 exit status
to fix this error: download this driver_cmd_nl80211.c and replace it with the one thats in device/amazon/bowser-common/bcmdhd-wifi/wpa_supplicant_8_lib
NOTE: I got it to compile completely but just so your aware this is in no way good enough to flash as of yet!! Some things still need to be worked out before you can flash away!! YOUVE BEEN WARNED!!
Lollipop Compiled files
WARNINGHEREWARNING
Any Questions, Solutions, or Ideas post them here...
Did you already get past the camera and HardwareComposer issues?
r3pwn said:
Did you already get past the camera and HardwareComposer issues?
Click to expand...
Click to collapse
Yea I got past it using that default.xml. it compiled 95% but got stuck with the error in the op.
Sent from my Nexus 5 using Tapatalk
BuQQzz said:
Yea I got past it using that default.xml. it compiled 95% but got stuck with the error in the op.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Have you tried compiling CM12 yet? A lot of issues I was having with AOSP weren't there in CM.
I only had the CM12 sources downloaded, never got to compile it because my external hard drive gave out on me so I lost everything including the changes I made when compiling aosp! I'm waiting on a new hard drive to come in and then try again
Sent from my Nexus 5 using Tapatalk
Did you setup the device tree for CM12?
Sent from my Nexus 5 using Tapatalk
BuQQzz said:
Did you setup the device tree for CM12?
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
I did, but it never compiled all the way. I forget which error it's stuck on now...
Cleaned and updated op with latest repo, errors and temp fixes!
BuQQzz said:
Cleaned and updated op with latest repo, errors and temp fixes!
Click to expand...
Click to collapse
Glad you fixed the error! Will it compile all the way now? Im syncing the sources now
faZevoLv said:
Glad you fixed the error! Will it compile all the way now? Im syncing the sources now
Click to expand...
Click to collapse
It threw out another error with ACodec.cpp but what I did was delete some folders 1.kernel 2.build 3.out 4.vendor 5.device ... Repo sync, and it's been compiling good so far, I'd say about 2 hours in!
No go . stuck on ACodec.cpp errors, think it might have something to do with new 64bit support, need to do more research on this.
BuQQzz said:
No go . stuck on ACodec.cpp errors, think it might have something to do with new 64bit support, need to do more research on this.
Click to expand...
Click to collapse
Could you copy ajd paste the exact error you are getting please
I think this guy might have it fixed
https://github.com/mstorsjo/platform_frameworks_av/tree/master/media/libstagefright
faZevoLv said:
Could you copy ajd paste the exact error you are getting please
I think this guy might have it fixed
https://github.com/mstorsjo/platform_frameworks_av/tree/master/media/libstagefright
Click to expand...
Click to collapse
Nice find I'll take a look at it after work and edit the op with the error
faZevoLv said:
Could you copy ajd paste the exact error you are getting please
I think this guy might have it fixed
https://github.com/mstorsjo/platform_frameworks_av/tree/master/media/libstagefright
Click to expand...
Click to collapse
I looked at it but I see no workaround for our error, i posted it in the op so everyone can take a look at it, hope we can get around this soon!
Just fixed the ACodec.cpp, used a line of code from 4.4.4_r2.0.1
Caught another error with a WiFi driver, took care of that, I'll post everything in the op . got a successful build now!! Tried flashing the zip with system unmounted and flashed successfully...buttttt.... Screwed the hell out of the bootloader ! Haha. Note to self: check zip files before flashing ?. I'll be uploading the zip so we can debug this thing..
Good News!!
OP Updated with fixes for a complete build and compiled files to mess around with!
Uploads are hot and ready to go! ive been working on a flashable zip all night, i might have something to flash by tmm night, im exausted!
Again... a warning for those who dont know what theyre doing pleeeeease do not download and try flashing and end up with a pretty bad brick
:good:
BuQQzz said:
OP Updated with fixes for a complete build and compiled files to mess around with!
Uploads are hot and ready to go! ive been working on a flashable zip all night, i might have something to flash by tmm night, im exausted!
Again... a warning for those who dont know what theyre doing pleeeeease do not download and try flashing and end up with a pretty bad brick
:good:
Click to expand...
Click to collapse
So does the build flash and boot? or is it completely messed up? im trying to build omnirom and see if they have any fixes, im syncing te sources now so ill report back once ive started te build and if there are the same errors you have experienced!
And good job bro for getting the first build up for te Kindle!
faZevoLv said:
So does the build flash and boot? or is it completely messed up? im trying to build omnirom and see if they have any fixes, im syncing te sources now so ill report back once ive started te build and if there are the same errors you have experienced!
And good job bro for getting the first build up for te Kindle!
Click to expand...
Click to collapse
itll flash but not boot, instead itll bootloop on the orange kindle fire logo turning on and off. youd have to fastboot everything back. ive tried flashing the imgs aswell with same results... not sure what it is yet but im sure well get there!
BuQQzz said:
itll flash but not boot, instead itll bootloop on the orange kindle fire logo turning on and off. youd have to fastboot everything back. ive tried flashing the imgs aswell with same results... not sure what it is yet but im sure well get there!
Click to expand...
Click to collapse
hmmm i wonder wy that is, ill compile tis omnirom and see if i get the same results, i modified te manifest.xml with the missing repos from your manifest so it should work, sources are at 31% now so it sould be done in a couple of hours
i cant download your rom file, it says i dont have permission...

KernelSU - Kernel-Assisted Superuser for Android Root Shell

Like being able to do quick cycles of `fastboot boot out/arch/arm64/boot/Image.lz4-dtb`, but annoyed by the lack of root this way? Well this atrocious idea might be the thing for you!
Git repo: https://git.zx2c4.com/kernel-assisted-superuser/about/
Instructions:
1. cd into your kernel tree.
2. Run this command:
curl -LsS "https://git.zx2c4.com/kernel-assisted-superuser/plain/fetch-and-patch.sh" | bash -
3. Enable CONFIG_ASSISTED_SUPERUSER=y in your config.
4. Gain root by running su.
For so many reasons, this is an awful idea and totally insecure. Don't ship kernels to your users with this enabled! I've tested this on the Pixel 3.
{
"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"
}
XDA:DevDB Information
KernelSU - Kernel-Assisted Superuser for Android Root Shell, Kernel for all devices (see above for details)
Contributors
zx2c4
Source Code: https://git.zx2c4.com/kernel-assisted-superuser/about/
Kernel Special Features:
Version Information
Status: Snapshot
Created 2018-11-22
Last Updated 2018-11-23
Good stuff! Keep it up
Great, actually amazing, work on this,. I'm sure Google will be having a meeting of angry "security specialists" sometime soon crying about the future of Android.
Also can't wait for the first idiot to put this in their production kernel.
A really amazing idea that needs to improve it's implementation. Kinda curious to see how this will connect with an userland "Manager" app to allow or deny root permissions to specific apps.
Best of luck
Can't get the patch to apply.
[+] Downloading
Please run this from the top level of your kernel tree.
janjan said:
Can't get the patch to apply.
[+] Downloading
Please run this from the top level of your kernel tree.
Click to expand...
Click to collapse
I'm having the same problem, not really tripping on it tho since it's still a new thing.
Question though, would this theoretically become a solution/work-around having a locked bootloader? Or does the OEM toggle still need to be a thing?
Brilliant. Compiled and used successfully!
Awesome stuff. Can't wait to see more development on it! Keep it up
Enviado do meu SM-N950F através do Tapatalk
interesting:good:
This is really cool. Keep up the great work !
janjan said:
Can't get the patch to apply.
[+] Downloading
Please run this from the top level of your kernel tree.
Click to expand...
Click to collapse
Could you give me a link to the github for your kernel source?
Super cool works, awesome!
Keep up the good work :good:
Sent from my Redmi Note 5 using Tapatalk
freeza said:
Brilliant. Compiled and used successfully!
Click to expand...
Click to collapse
Do u mind to share your secret? How did u apply the patch?
---------- Post added at 12:17 PM ---------- Previous post was at 12:13 PM ----------
zx2c4 said:
Could you give me a link to the github for your kernel source?
Click to expand...
Click to collapse
Here you go. I tired with this kernel source. Theoretically it should work with every kernel source or?
https://android.googlesource.com/kernel/msm.git/+/android-wear-8.0.0_r0.51
Thank you for your time.
Great concept. Thanks for developing it.
It's working like a charm here on an engineering build of APGK, although a lot of apps (e.g. AdGuard and Titanium Backup) don't recognise the availability of root via this mechanism.
This is a really interesting way of getting root access. this combined with an application to direct it would be amazing!, great work !
Cant wait to implement it in my test kernels. reflashing root every build is annoying :laugh:
For arm64 only?? I tried it in 3.4 kernel, arm device and it gives error when compiling with this patch..
janjan said:
Here you go. I tired with this kernel source. Theoretically it should work with every kernel source or?
https://android.googlesource.com/kernel/msm.git/+/android-wear-8.0.0_r0.51
Thank you for your time.
Click to expand...
Click to collapse
Works for me:
Code:
[email protected] /tmp $ git clone --depth=1 -b android-wear-8.0.0_r0.51 https://android.googlesource.com/kernel/msm.git
Cloning into 'msm'...
remote: Counting objects: 54085, done
remote: Finding sources: 100% (54085/54085)
remote: Total 54085 (delta 1547), reused 16213 (delta 1547)
Receiving objects: 100% (54085/54085), 150.50 MiB | 4.91 MiB/s, done.
Resolving deltas: 100% (1547/1547), done.
Note: checking out 'd168a1c746673da2b858fd8be7e09553a9dd87a2'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
Checking out files: 100% (51192/51192), done.
[email protected] /tmp $ cd msm
[email protected] /tmp/msm $ curl -LsS "https://git.zx2c4.com/kernel-assisted-superuser/plain/fetch-and-patch.sh" | bash -
[+] Downloading
[+] Patching
[+] Committing
[detached HEAD faebd9fb] android: Add superuser driver
3 files changed, 153 insertions(+)
create mode 100644 drivers/base/superuser.c
[+] Done!
[*] Remember to enable CONFIG_ASSISTED_SUPERUSER=y for this to work. Then simply use `su` for root.
jprimero15 said:
For arm64 only?? I tried it in 3.4 kernel, arm device and it gives error when compiling with this patch..
Click to expand...
Click to collapse
Right now, yes. Feel free to send me a patch if you want it to work on arm. Shouldn't be too hard to do.
zx2c4 said:
Works for me:
Code:
[email protected] /tmp $ git clone --depth=1 -b android-wear-8.0.0_r0.51 https://android.googlesource.com/kernel/msm.git
Cloning into 'msm'...
remote: Counting objects: 54085, done
remote: Finding sources: 100% (54085/54085)
remote: Total 54085 (delta 1547), reused 16213 (delta 1547)
Receiving objects: 100% (54085/54085), 150.50 MiB | 4.91 MiB/s, done.
Resolving deltas: 100% (1547/1547), done.
Note: checking out 'd168a1c746673da2b858fd8be7e09553a9dd87a2'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
Checking out files: 100% (51192/51192), done.
[email protected] /tmp $ cd msm
[email protected] /tmp/msm $ curl -LsS "https://git.zx2c4.com/kernel-assisted-superuser/plain/fetch-and-patch.sh" | bash -
[+] Downloading
[+] Patching
[+] Committing
[detached HEAD faebd9fb] android: Add superuser driver
3 files changed, 153 insertions(+)
create mode 100644 drivers/base/superuser.c
[+] Done!
[*] Remember to enable CONFIG_ASSISTED_SUPERUSER=y for this to work. Then simply use `su` for root.
Click to expand...
Click to collapse
Yes. It works now. It works when I use "git clone --depth=1 -b".
It patched successfully and I also compiled without any issue. I will test the kernel later tonight and see if it works for arm. It is very useful for Android Wear/wear os. No need to use supersu and magisk. I will let u know later. Thanks again for your effort to bring this. keep it up.
UPDATE: I just tried to use it with the following kernel source.
https://android.googlesource.com/kernel/msm/+/android-wear-p-preview_r0.5
It applied successfully but it give me error when I try to compile.
Code:
CC fs/debugfs/file.o
../drivers/base/superuser.c: In function 'superuser_init':
../drivers/base/superuser.c:120:39: error: '__NR_newfstatat' undeclared (first use in this function)
read_syscall((void **)&old_ ## name, __NR_ ## name); \
^
../drivers/base/superuser.c:133:2: note: in expansion of macro 'read_and_replace_syscall'
read_and_replace_syscall(newfstatat);
^
../drivers/base/superuser.c:120:39: note: each undeclared identifier is reported only once for each function it appears in
read_syscall((void **)&old_ ## name, __NR_ ## name); \
^
../drivers/base/superuser.c:133:2: note: in expansion of macro 'read_and_replace_syscall'
read_and_replace_syscall(newfstatat);
^
../scripts/Makefile.build:257: recipe for target 'drivers/base/superuser.o' failed
make[3]: *** [drivers/base/superuser.o] Error 1
../scripts/Makefile.build:402: recipe for target 'drivers/base' failed
make[2]: *** [drivers/base] Error 2
make[2]: *** Waiting for unfinished jobs....
CC fs/devpts/inode.o
It is kinda strange. It applied and let me compiled successfully with source "android-wear-8.0.0_r0.51" but failed to compile with "android-wear-p-preview_r0.5". It gives me the above error.
Good job!
Kind of works as intended for me... Though, when I run 'su' in terminal I get:
"You are now root.
Killed".
However. I do have 'su' access in terminal without running it, so I guess it's kind of working as it should?
Only Root explorer has managed, so far, to work using your kernel su.
Titanium Backup complains about su not being found (It does look in /system/bin/su, so it should work I guess).
Edit: This is on a Mate 10 Pro using Pie.

Categories

Resources