[Q] Android add vendorsetup - Android Software/Hacking General [Developers Only]

Hi guys,
I've loaded Jacobs Wildfire vendor setup from GitHub. I added it to the device / htc / wildfire folder. I also created a vendor setup sh script, and now I'm trying to do a
source envsetup sh
lunch => full_wildfire
But the Terminal gives me this response:
** Don't have a product spec for: 'full_wildfire'
** Do you have the right repo manifest?
** Invalid variant: 'full_wildfire'
** Must be one of user userdebug eng
Am I missing something? What am I doing wrong?
Could you please help me? The questions is general, what I've to do, to include new vendorsetups and compile them?
Thank you all in advance!! (haven't found ressources here or in google)

What am I doing wrong with posting? Is it only because I'm a new User that no one helps me :-(

Related

[Q] How to compile (big) C-Projects with Makefile for Android NDK

Hi,
i would like to compile a C-Library which is normally compiled with:
Code:
* ./configure with some parameters
* make
* make install
with the Android NDK for use in my Android Application. My Questions now is whats the easiest of getting a corresponding Android.mk file.
Thanks in advance.
Hi; I am not aware of any way to avoid doing this manually. Unless this library has lots of other dependencies, it shouldn't be too much work anyway (mainly populating LOCAL_SRC_FILES, as far as I know).
I'd be interesting to see if there's an automatic/semi-automatic way to help with this though, especially if dependencies are involved.
Have you done this before? Could you please describe how to do it? Whats the equivalent to the ./configure -someParameters ?
Give a try to our AGCC script from here. http://code.google.com/p/android-cruft/
I had a good luck cross-compiling many GNU project using this script. What you need to do is just download and unpack the script then run your configure script like this
CC=agcc LD=agcc ./configure
Make sure that agcc is in your path. After you run configure you can just make the project as usual. Note that as always when cross compiling the configure script could not as many tests as it does when compiling in the native environment, so you might need to supply extra options.
--- Vlad
Hi Vlad,
i tried it, but the scripts seems tu be using wrongs Paths. I'm Using NDK Version r5b, maybe thats the problem?
Here the first few lines of output from agcc:
GCC at /home/dirk/android-ndk-r5b/toolchains/arm-eabi-4.4.0/prebuilt/linux-x86/bin
DROID at /home/dirk/android-ndk-r5b/toolchains/arm-eabi-4.4.0
TOOLCHAIN at /home/dirk/android-ndk-r5b/toolchains/arm-eabi-4.4.0/prebuilt/linux-x86/toolchain/arm-eabi-4.2.1
Click to expand...
Click to collapse
The Project I'm trying to compile is openpace.sourceforge.net. Maybe you have yourself a try.
Thanks so far.
Nevermind, i found a way using the new standalone toolchain included in NDK-r5 and newer.
So please tell us about your way!
Could you help me please?
Hello miracoli and others,
I'm trying to port a C-code to Android. I use it on linux terminals since the project started and it's perfect. The project it's called ser2net (see Links.txt attached). With this project you can create a server to your serial ports in your PC, and access them with putty,telnet,etc...
I compiled it with arm-none-linux-gnueabi-gcc but I have no success on run it:
Code:
# ser2net
ser2net: not found
You can download the compiled binary here (see Links.txt attached) and the configuration file here (see Links.txt attached). You must copy these 2 files to /etc to run it.
I compiled it and tested on MID 7 ARM9, for EKEN M009S WM8650 processor and Sony Xperia X10 Mini. I'm not an expert about Android but I've already ported lot of GNU projects to ARM9 and ARM11 architecture with no problem.
If it helps, I also created a dummy hello.c (only to say hello) and it built and run with no problem.
If somebody know how to have it done, post here. Or, if would like to contact me, please do it on skype: antonio.spadim.
Bye
Toni
Bump! No news?

[CM 7.2 Alpha 8.3] help for get source code.

Hi all,
First of all, where I can find a good tuto for starting dev ?
I want help for porting CM 7.2 so I find this in the thread:
1. Download source codes
- Get cyanogenmod source in a directory (eg: /cm7/)
- put device config to device/samsung/apollo
- put vendor files to vendor/samsung/apollo
- put cyanogen vendor files to vendor/cyanogen
Click to expand...
Click to collapse
I understand how too get "device config", "vendor files" and "cyanogen vendor files" but not "cyanogenmod source".
I think, I will get it with this command:
repo init -u git://github.com/CyanogenMod/android.git -b gingerbread
Thanks all.
Kalite-Iruka said:
Hi all,
First of all, where I can find a good tuto for starting dev ?
I want help for porting CM 7.2 so I find this in the thread:
Click to expand...
Click to collapse
Your help is welcome... there is a lot to do.
I think, I will get it with this command:
repo init -u git://github.com/CyanogenMod/android.git -b gingerbread
Thanks all.
Click to expand...
Click to collapse
yes, then
Code:
# repo sync -j4
and you will get the cyanogenmod source (cm7).
Thanks for the help for get CM7 source code.
For cyanogen vendor files, the folder already exist. What i need to do?
1 - merge the too folder (remplace existing file with yours)
2 - delete all files in the folder and put just your files in it
Kalite-Iruka said:
Thanks for the help for get CM7 source code.
For cyanogen vendor files, the folder already exist. What i need to do?
1 - merge the too folder (remplace existing file with yours)
2 - delete all files in the folder and put just your files in it
Click to expand...
Click to collapse
I have test the two : The solution is the first.
For doing it, I make a clone of your git repository in a temp directory. After that I copy the result in vendor/cyanogen.
I don't find a git comand to do it, does it exist ?
I tried too use eclipse indigo by following android source documentation.
When I tired too create the java project, there isn't "Create project from existing source" option. So, I search on google but I find any thing for CM and android source code.
What must I do?

[Q] [NDK] Can't build android_external_sshfs (resolved)

Hi Everyone,
hopefully I picked the right Forum to post this Thread.
I'm not really familiar with the Android-NDK or CPP in general but I hope someone can clarify things for me.
I like to build android_external_sshfs (https://github.com/l3iggs/android_external_sshfs) for my Nexus 5, so far I've done the following:
1. Download "android-ndk-r9b-linux-x86.tar.bz2" => /home/xxx/android-ndk-r9b/
2. Clone Android-Sources: "Branch android-4.4_r1" => /home/xxx/android-4.4_r1/ (http://source.android.com/source/downloading.html)
3. Clone android_external_sshfs => /home/xxx/android-4.4_r1/external/sshfs/ (https://github.com/l3iggs/android_external_sshfs)
4. Clone android_external_glib => /home/xxx/android-4.4_r1/external/glib/ (https://github.com/l3iggs/android_external_sshfs)
5. Modify Android.mk of sshfs => /home/xxx/android-4.4_r1/external/sshfs/Android.mk (attached)
6. Create Application.mk for sshfs => /home/xxx/android-4.4_r1/external/sshfs/Application.MK (attached)
7. Include Android-NDK in Path => PATH=$PATH:/home/xxx/android-ndk-r9b/
8. Set NDK_PROJECT_PATH => export NDK_PROJECT_PATH=/home/benjamin/Downloads/android-4.4_r1/external/sshfs/
9. Run ndk-build in /home/xxx/android-4.4_r1/external/sshfs/ => ndk-build NDK_APPLICATION_MK=Application.mk V=1 &> build.txt (attached)
To me it seems that "size_t" is not defined, but since size_t is Platform/Compiler depended it should be automatically defined by the Android-NDK-Toolchain.
I'm missing something basic here...
Ok so after some Weeks of trying I finally build it
The Problem was my understanding of the android-4.4_r1 Sources and the android-ndk. I thought that need the ndk to build the sources, but i was kind of wrong.
So for everyone with a similar "Problem":
You need to use the toolchain in the sources to build a module like android_externa_sshfs:
1. Setup Build Enviroment "$ . build/envsetup.sh"
2. Choose a Target Device "$ lunch"
3. Build with the Functiontions registered by envsetup.sh "$ hmm"
I'm also trying to build
https://github.com/l3iggs/android_external_sshfs
for the (HTC sensation) pyramid.
I described the issue in detail here
https://github.com/l3iggs/android_external_sshfs/issues/2
but haven't received an answer yet.
It boils down to this:
After following the instructions in the README, in the last step (building sshfs), I get:
Code:
make: *** No rule to make target '/home/user1/android/system/out/target/product/pyramid/obj/SHARED_LIBRARIES/libglib-2.0_intermediates/export_includes', needed by '/home/user1/android/system/out/target/product/pyramid/obj/EXECUTABLES/sshfs_intermediates/import_includes'. Stop.
That looks to me as if it needs glib. I did try deviating from the instructions and build glib before that and failed.
Did you have the same issue? If so, how did you solve it?
Hi,
at first this Error means:
Code:
make: *** No rule to make target '/home/user1/android/system/out/target/product/pyramid/obj/SHARED_LIBRARIES/libglib-2.0_intermediates/export_includes', needed by '/home/user1/android/system/out/target/product/pyramid/obj/EXECUTABLES/sshfs_intermediates/import_includes'. Stop.
That while trying to build "sshfs" a dependancy "glib" was not found (compiled first).
So you're right, you need to build "glib" first.
You can do this with "mm" in the "/home/user1/android/external/glib" directory
or you can build "sshfs" with it's dependancy's with "mma" in the "/home/user1/android/external/sshfs" directory.
Hint: "hmm" gives you all the commands for you build-enviroment.
I wasn't able to build "glib" with the aosp or cyanogenmod build-enviroment, but with the android-ndk. But in the end sshfs crashed (see: https://github.com/l3iggs/android_external_sshfs/issues/1)
Hi,I want to use it too,can you share the apk with me?

Trying to compile CM 12.1 with no luck so far because of Terminal errors.

So I used @kylevessPL's "ready" configuration ( https://github.com/kylevessPL/android_device_lge_l70pn ) for our device's CM 12.1 to try to compile it and see what happens.
But with no luck, unfortunately. For some reason, when I execute the brunch command, errors show up.
Here's an example of one of the a lot similar errors that appear just right after the previous one was fixed: http://pastebin.com/KkhjttJB .
The exact error here is:
"Notice file: external/zip/NOTICE -- /home/max-pc/cm-12.1/out/target/product/l70pn/obj/NOTICE_FILES/src//system/xbin/zip.txt
make: *** No rule to make target `device/lge/l70pn/prebuilt/usr/keylayout/Generic-290.kl', needed by `/home/max-pc/cm-12.1/out/target/product/l70pn/system/usr/keylayout/Generic-D290.kl'. Stop."
P.S: You can also see the Terminal error in the picture attached to the post.
P.S. 2: I did NOT execute the "vendor/cm/get-prebuilts" command in "Initializing repo" section, because it always says: "bash: vendor/cm/get-prebuilts: No such file or directory"
proudlytm said:
So I used @kylevessPL's "ready" configuration ( https://github.com/kylevessPL/android_device_lge_l70pn ) for our device's CM 12.1 to try to compile it and see what happens.
But with no luck, unfortunately. For some reason, when I execute the brunch command, errors show up.
Here's an example of one of the a lot similar errors that appear just right after the previous one was fixed: http://pastebin.com/KkhjttJB .
The exact error here is:
"Notice file: external/zip/NOTICE -- /home/max-pc/cm-12.1/out/target/product/l70pn/obj/NOTICE_FILES/src//system/xbin/zip.txt
make: *** No rule to make target `device/lge/l70pn/prebuilt/usr/keylayout/Generic-290.kl', needed by `/home/max-pc/cm-12.1/out/target/product/l70pn/system/usr/keylayout/Generic-D290.kl'. Stop."
P.S: You can also see the Terminal error in the picture attached to the post.
P.S. 2: I did NOT execute the "vendor/cm/get-prebuilts" command in "Initializing repo" section, because it always says: "bash: vendor/cm/get-prebuilts: No such file or directory"
Click to expand...
Click to collapse
Renames "l70pn" to the original "l70pds".... or edit the following lines;
in the path "device/lge/l70pds/device_l70pds.mk
the_naxhoo said:
Renames "l70pn" to the original "l70pds".... or edit the following lines;
in the path "device/lge/l70pds/device_l70pds.mk
Click to expand...
Click to collapse
I just tried but I don't know the new compile command. Can you tell it to me ? When I do it with cm_l70pds-userdebug instead with cm_l70pn-userdebug command, this happens:
[email protected]:~/cm-12.1$ brunch cm_l70pds-userdebug
including vendor/cm/vendorsetup.sh
build/core/product_config.mk:239: *** _nic.PRODUCTS.[[device/lge/l70pds/cm.mk]]: "device/lge/l70pn/full_l70pn.mk" does not exist. Stop.
Device l70pds not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Repository for l70pds not found in the CyanogenMod Github repository list. If this is in error, you may need to manually add it to your local_manifests/roomservice.xml.
build/core/product_config.mk:239: *** _nic.PRODUCTS.[[device/lge/l70pds/cm.mk]]: "device/lge/l70pn/full_l70pn.mk" does not exist. Stop.
** Don't have a product spec for: 'cm_l70pds'
** Do you have the right repo manifest?
No such item in brunch menu. Try 'breakfast'
proudlytm said:
I just tried but I don't know the new compile command. Can you tell it to me ? When I do it with cm_l70pds-userdebug instead with cm_l70pn-userdebug command, this happens:
[email protected]:~/cm-12.1$ brunch cm_l70pds-userdebug
including vendor/cm/vendorsetup.sh
build/core/product_config.mk:239: *** _nic.PRODUCTS.[[device/lge/l70pds/cm.mk]]: "device/lge/l70pn/full_l70pn.mk" does not exist. Stop.
Device l70pds not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Repository for l70pds not found in the CyanogenMod Github repository list. If this is in error, you may need to manually add it to your local_manifests/roomservice.xml.
build/core/product_config.mk:239: *** _nic.PRODUCTS.[[device/lge/l70pds/cm.mk]]: "device/lge/l70pn/full_l70pn.mk" does not exist. Stop.
** Don't have a product spec for: 'cm_l70pds'
** Do you have the right repo manifest?
No such item in brunch menu. Try 'breakfast'
Click to expand...
Click to collapse
no no no, my mistake, i'm sorry... you should use Github "VM03". Or my Github ( https://github.com/ignacio28 )
just change "device/lge/l70pds/prebuilt/usr/keylayout/Generic-290.kl:system/usr/keylayout/Generic-D290.kl" to "device/lge/l70pds/prebuilt/usr/keylayout/Generic-D290.kl:system/usr/keylayout/Generic-D290.kl" in the file "device_170pn.mk"
@proudlytm Would you like to do a telegram group for compilation on LG L Fino? @the_naxhoo is helping me with the compilation. If both of you tells me what to do i can help. I have already CM 12.1 sources downloads so maybe i can do something with my computer
carliquiss said:
@proudlytm Would you like to do a telegram group for compilation on LG L Fino? @the_naxhoo is helping me with the compilation. If both of you tells me what to do i can help. I have already CM 12.1 sources downloads so maybe i can do something with my computer
Click to expand...
Click to collapse
I wish I could help but I accidentally hard bricked my phone and I'm gonna take it to the place I bought it from and they're either gonna get it exchanged for a new one, or they will repair it. I think it will take like 1 week for everything to be done.
proudlytm said:
I wish I could help but I accidentally hard bricked my phone and I'm gonna take it to the place I bought it from and they're either gonna get it exchanged for a new one, or they will repair it. I think it will take like 1 week for everything to be done.
Click to expand...
Click to collapse
Okey no problem, if you want you can help is debugging the compilation and we can try in our smartphones. If you are interested send me a pm with your telegram name
Enviado desde mi Zippers 5 mediante Tapatalk

How to build custom ROM for enchilada(One Plus 6)?

I am new to AOSP development and want to flash a custom ROM for One Plus 6. I have done the following things:
1. Sync compatible source code with Enchilada:
- Find the build version of One Plus 6: Run adb shell getprop | grep ‘ro.build.id’ This will print OPM1.171019.011.
- Find the similar version at:https://source.android.com/setup/start/build-numbers.html#source-code-tags-and-builds. I found
OPM1.171019.011 android-8.1.0_r1 Oreo Pixel 2 XL, Pixel 2, Pixel XL, Pixel, Pixel C, Nexus 6P, Nexus 5X 2017-12-05
- Initialize repo using repo init -u https://android.googlesource.com/platform/manifest -b android-8.1.0_r1
- Finally, sync the code using repo sync
2. Find the proprietary binaries for the device. I have searched on google and find the below results:
- https://github.com/wuxianlin/android_device_oneplus_enchilada/tree/android-8.1/recovery/root. Here I found the vendor folder but I am not sure that I should copy this vendor folder directly into the aosp source or I need to configure it before copying?
- https://github.com/OnePlusOSS/android. Here, I found that there may exist pull_library.sh in the mobile itself but I am not able to find this file. The One Plus 6 device that I have is rooted and its bootloader is already unlocked. When I have tried to find the file using adb shell ls -lR | find "pull_library.sh" then I got permission errors. Resolved permission errors with `su` but got no result for `ls -lR | find "pull_library.sh"`.
- I have also searched an article https://forums.oneplus.com/threads/...vice-tree-kernel-source-for-oneplus-6.833612/. It refers to a GitHub page for the device tree https://github.com/OnePlusOSS. But due to my insufficient knowledge, I am not able to find the right device tree for my One Plus 6.
- https://forum.xda-developers.com/oneplus-6/development/official-xenonhd-8-1-t3868368 also have device tree and kernel code.
I just need help to understand the process to add binaries in aosp code. If someone can help me to go in right directions then I will be very thankful.

Categories

Resources