General :: Adding SU To Build
Jan 8, 2013
I'm in the process of learning to build android from source. I've got my AOKP rom booting and am working on adding superuser to it, and am running into troubles. After much googling here is what I've done
Cloned Superuser source code
Code:
git clone git://github.com/ChainsDD/Superuser.git packages/apps/Superuser
Copied the su binary from my current rom (/system/xbin/su) to my device tree
Edited device.mk
Code:
# Build superuser
PRODUCT_PACKAGES :=
Superuser
# copy su binary
PRODUCT_COPY_FILES +=
device/lge/E973/su:system/xbin/su
Everything built fine and Superuser is in my app drawer when rom boots. If i try to open Superuser it force closes. Root checker shows that i am rooted, and typing 'su' in terminal emulator gets root access. Neither will give me a dialog asking to deny or grant.
If i install SuperSuperuser from the market, it will present all the normal dialogs and everything seems as it should.
Here is a logcat of the failed attempt to open superuser
Code:
D/dalvikvm( 2157): Late-enabling CheckJNI
I/ActivityManager( 530): Start proc com.noshufou.android.su for activity com.noshufou.android.su/.Su: pid=2157 uid=10040 gids={50040, 3003, 1015, 1028}
[Code] ......
View 1 Replies
Jul 4, 2010
I'm developing an application that is supposed to run on both Android as well as regular Java SE. I have an eclipse project called foobar-core which contains code that is used both by the Android and the SE version. I have another project called foobar-android, which contains all android-specific code. I need to reference some of the foobar-core code in the foobar-android project, so I added foobar-core to foobar-android in Settings -> Java Build path -> Projects -> Required projects on the build path. This works fine, as I can use code from foobare-core in foobar-android now.
Here's the problem: Both foobar-core and foobar-android are independent git repositories, which means they both have a .git subdirectory. Now I get a lot of warnings on the "Console" tab whenever I compile foobar-android. They look like this:
/foobar-core/src/.git/HEAD conflicts with another file already put at .git/HEAD
/foobar-core/src/.git/config conflicts with another file already put at .git/config
/foobar-core/src/.git/description conflicts with another file already put at > .git/description
/foobar-core/src/.git/hooks/applypatch-msg.sample conflicts with another file already > put at .git/hooks/applypatch-msg.sample
How can I tell Eclipse to ignore the .git files when importing sources from the foobar-core project?
View 1 Replies
View Related
Feb 21, 2013
I have a phone with a MT6577. The vendor (Wiko) published the kernel source code. So, i'm trying to build it. I can get the zImage. I converted it to boot.img but i can't boot with it on my phone.build a good zImage? (if you want to try) : URL...
cp mediatek-configs .config
TARGET_PRODUCT=s9081 MTK_ROOT_CUSTOM=../mediatek/custom make
# sudo mtk-tools/repack-MT65xx.pl -boot zImage boot.img-ramdisk boot.img
MTK-Tools by Bruno MartinsMT65xx repack script (last update: 27-01-2013)
Repacking boot image...
Ramdisk size: 2046 blocs
Repacked boot image into 'boot.img'.
Here are the Warnings I got when compiling
mediatek/platform/mt6577/kernel/drivers/video/tvc_drv.c:61:5: warning: "FIXED_WVGA_PARAMS" is not defined
net/ipv4/tcp.c: In function 'tcp_nuke_addr':
include/net/ipv6.h:338: warning: 'in6' may be used uninitialized in this function
net/ipv4/tcp.c:3367: note: 'in6' was declared here
In file included from net/ipv4/netfilter/ipt_LOG.c:27:
include/net/netfilter/xt_log.h: In function 'sb_close':
[code]....
View 9 Replies
View Related
Jun 24, 2010
I downloaded the Android 2.2 source code and try to build it. When I executed the make command, I got an error here like this build/core/java.mk:20: *** frameworks/ex/common: Invalid LOCAL_SDK_VERSION '8' Choices are: current 4 5 6 7. Stop. Then I changed the frameworks/ex/common/Android.mk to LOCAL_SDK_VERSION = 8 from LOCAL_SDK_VERSION = 7. Next place, build/core/java.mk:20: *** external/jsr305: Invalid LOCAL_SDK_VERSION '8' Choices are: current 4 5 6 7. Stop. I changed the external/jsr305/Android.mk to LOCAL_SDK_VERSION = 8 from LOCAL_SDK_VERSION = 7
Last one, build/core/java.mk:20: *** external/guava: Invalid LOCAL_SDK_VERSION '8' Choices are: current 4 5 6 7. Stop. I changed the external/guava/Android.mk to LOCAL_SDK_VERSION = 8 from LOCAL_SDK_VERSION = 7
By these changes the code started the compilation.
1. Why the error occured?
2. Changes which I did is correct or not?
View 3 Replies
View Related
May 3, 2010
I want to add a contact just to my phone and not to my gmail account.Whenever I start to add a contact (phone, 208544.menu, +contact, create new contact,) the next thing it forces me to do is to choose an account to create the new contact under and it lists my 3 gmail accounts.I have no option to just put it on the phone.Any ideas here?We do the same thing on the Incredible but it gives us the gmail account and the phone to choose from but not on the Motorola.
View 4 Replies
View Related
Oct 18, 2013
I want to learn how to build a cwm bc i want to start a recovery for this phone bc nobody didnt start it yet the zte warp 4g lte for boostmobile.
View 1 Replies
View Related
Aug 7, 2012
How to build a free android app?
View 1 Replies
View Related
Feb 24, 2014
I have a rooted Verizon S4 running 4.3, build number JSS15J.I545VRUEMK2. This is a phone provided to me by work, so I have no control over the billing/ tethering abilities..I have searched to no avail on how to create a hotspot with this 4.3 build.
View 2 Replies
View Related
Nov 12, 2013
My company has recently received some new android hardware and has requested that I create a custom operating system for the device. The manufacturer has agreed to provide us with the existing android source, but I have a few questions to get started:
On the following link: [URL] .......
It states that I need to add lines similar to the below to my "51-android.rules" file:"
# adb protocol on maguro/toro (Galaxy Nexus)
SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="6860", MODE="0600", OWNER="<username>"
How do I determine the correct information to use for this process? Should I collect this information with the device connected to a windows PC?
Once connected, I would like to scrap their existing operating system and begin from AOSP source, what information from their original source should I retain (Kernel, bootloader, etc), and what information would I be required to remove to bring in AOSP?
But most seem to be specifying nexus devices, or devices which already have a strong developer backing, neither of which apply to this hardware.
[URL]
View 1 Replies
View Related
Mar 30, 2012
What does "overlay" folder do in device/vendor/*DEVICE directory do? How do you make one? What needs to be in it? I am building for a CM7 port.
View 9 Replies
View Related
Sep 22, 2012
I am writing an app and for one of the features I need the firmware build number.
I know I can get the firmware version(like 4.1.1) with android.os.build but I need the build number of a rom(like "Rom version 1.0") thats stored in build.prop. I know I can parse the whole build.prop file and extract the 1 string of information but is there another way to get is faster and that it doesnt require root to use?
View 4 Replies
View Related
Aug 12, 2013
I am trying to build a fresh cm-10.2 rom for my Nexus S (crespo), but somehow, there is something missing:
Code:
denis@lucifer:~/Development/android/cm-10.2$ brunch crespo
including vendor/cm/vendorsetup.sh[code]....
I've set everything up and the build for "Maguro" runs without any problems, but with "Crespo", there is something missing...
View 1 Replies
View Related
Apr 1, 2012
I was looking through my system files with root explorer and I notice in the build.prop file, I had the information for the Xperia Arc instead of the Xperia Arc S. I changed some of the info to the Arc S, like LT18i instead of LT15i. But I'm not sure if I changed everything correctly and can upload the build.prop file for the Arc S.
View 3 Replies
View Related
Jun 8, 2013
I want to build a rom from source for my xperia s
I searched in the forum but i just saw how to compile the source for nexus...etc
View 8 Replies
View Related
Apr 22, 2014
I have a LG P350 which development has stopped but i want to keep it updated, i have my computer ready for building, also i have kernel sources, Cyanogenmod 11 and 10.1 sources too, (I don't know exactly if 10.1 sources could work) and i know that i need to apply patches to work on Armv6 but i don't know how to apply them to the source code, also i don't know if i would just need the pure source code to build or i need to do more modifications to it and finally, i don't know if the rom would work with 2.36 kernel which it's the most stable one for this device, i'm very new in this but i know that i can keep update my little phone,
View 3 Replies
View Related
Jun 30, 2013
I've just run trough all the setps to be able to build aosp on ubuntu. Currently I'm running a build, looks like it will take a while.
My goal is to build an aosp rom for the samsung galaxy chat, samsung provides downloads for 'platform' and kernel.
My question is, what should I do with the sources of the kernel and the platform, do I need to integrate them into the aosp source?
View 2 Replies
View Related
Jun 6, 2012
How does one build a rom with aosp on windows, is it possible to build on a virtual box or something like that?
View 2 Replies
View Related
Jul 24, 2012
I'm going to build a cm7.2 rom for my huawei c8860e.
From what i've read, i download the source code on my ubuntu 12.04. However, I have not find the cm7 code for my phone.
If i want to build cm rom what i should do next?
View 3 Replies
View Related
Jun 20, 2013
im having trouble merging these 2 build props im porting Xperia E to Xperia J?
View 1 Replies
View Related
Oct 3, 2012
I want my tablet to make a bunch of rom cyanogen rom. I wanna know where should I start and how should I start making a ROM. Is my tablet viewsonic viewpad 7
View 1 Replies
View Related
Jan 13, 2013
what is the most simple way to get the latest version of TextSecure installed on my Android Phone?
My solution was creating something using the sourcecode found here: [URL] But the question is, how can I get it working. I've tried multiple things, but it seems like it isn't as easy as I thought. Currently I am on Windows 8. My phone is an Xperia S without GAPPS flashed, so no Play Store. Only F-Droid with FOSS.
View 9 Replies
View Related
Jan 11, 2014
I'm trying to build CWM for the HP Slate 7 Plus, but both touch and non-touch builds coming from the CWM Builder and manually built builds give a black screen with a few white lines when booted into recovery. The stock recovery.img I provided to the builder is valid because people were able to reflash the same recovery.img via Flashify with no issues, which is the same method used to flash the defunct CWM. I don't have the Slate 7 Plus, so I can't test things myself
The best I can do right now is debloat, deodex, and pre-root ROMs, as well as install more system apps.
View 4 Replies
View Related
Jan 2, 2013
I want to build AOSP from sources. Specifically on the Nexus 10.
I downloaded the proprietary binaries from the Nexus Binary Download page. [URL] .....
I followed instructions how to set up the source code and build it but i am not too sure how to correctly extract the proprietary binaries. [URL] .....
I used the self-extracting shell scripts to extract the binaries in the root of the directory i executed "repo sync" in. (in my case: WORKING_DIRECTORY)
The binaries were put to "WORKING_DIRECTORY/vendor"
My question is whether i did it correctly and whether the binaries will be included in the build when i hit "make".
View 1 Replies
View Related
Oct 26, 2012
how to build a custom rom from Cyanogemod on my Windows 7 PC?
I tried custom rom Compiler but thats only for ubuntu. Dxidia's kitchen doesn't support X8 or W8.
View 1 Replies
View Related
Nov 23, 2012
Newest build to 4.2 keyboard thats an apk and not the zip.
View 9 Replies
View Related
Nov 8, 2012
I want to build some apps (like Camera, Gallery, etc.) from source code of CM. But I don't know how to do it. I have the source code synchronized with CM git.
View 1 Replies
View Related
Nov 25, 2013
I'm trying to build CM KitKat for the Optimus S/V (unsupported by CM). The build is crashing out trying to link libwebviewchromium.so.It gives dozens and dozens of errors like this: external/chromium_org/content/browser/android/browser_media_player_manager.cc:70: error: relocation overflow in R_ARM_THM_CALL
At the end it prints this:
collect2: error: ld returned 1 exit status
make: *** [/home/dbrown/cm11/out/target/product/thunderc/obj/SHARED_LIBRARIES/libwebviewchromium_intermediates/LINKED/libwebviewchromium.so] Error 1
It may be a problem with insufficient memory on my build machine (Core 2 Duo laptop with 3 gb ram). For the time being, or in case that's not the problem I'm looking for a work-around. I looked in the Android.mk file for external/chromium_org and saw this:
# Don't include anything if the product is using a prebuilt webviewchromium.
ifneq ($(PRODUCT_PREBUILT_WEBVIEWCHROMIUM),yes)
how can I add a prebuilt webview library so I can get past this error? I just want to get something built for now so I can test it. This would be the first successful build for this device.
View 3 Replies
View Related
Mar 28, 2012
I couldnt root my arc s, version 2.3.4, build 4.0.2.A.0.62 I've tried several methods, including the Batch on windows and the software "unlock root". It's possible to root my device by any other methods or I still have to wait to something come up?
View 1 Replies
View Related
Sep 10, 2013
Is it possible to add more fonts to use, by loading them from my PC via the USB connection ? Or how can I use the fonts I have on my PC on my S4 without having to go the app route ? I have a couple of True type fonts I'd like to use, but need to know how to install them on the phone.
View 4 Replies
View Related
Jun 8, 2012
I just wanted to know how to do it. HTC Desire
View 1 Replies
View Related