Building CM-12.1 for e975 - LG Optimus G (International)

I followed https://wiki.cyanogenmod.org/w/Build_for_e975 but I get errors when fetching vendor libs from the phone (10 days old NIGHTLY installed) with extract-files.sh:
Code:
...
remote object '/system/vendor/firmware/libpn544_fw.so' does not exist
...
remote object '/system/lib/egl/eglsubAndroid.so' does not exist
remote object '/system/lib/egl/libEGL_adreno200.so' does not exist
remote object '/system/lib/egl/libGLESv1_CM_adreno200.so' does not exist
remote object '/system/lib/egl/libGLESv2_adreno200.so' does not exist
remote object '/system/lib/egl/libq3dtools_adreno200.so' does not exist
remote object '/system/lib/libC2D2.so' does not exist
remote object '/system/lib/libc2d2_a3xx.so' does not exist
28 KB/s (5560 bytes in 0.193s)
remote object '/system/lib/libllvm-a3xx.so' does not exist
remote object '/system/lib/libllvm-arm.so' does not exist
261 KB/s (69344 bytes in 0.258s)
remote object '/system/lib/libsc-a2xx.so' does not exist
remote object '/system/lib/libsc-a3xx.so' does not exist
remote object '/system/lib/libgsl.so' does not exist
Where do I get those libs?

You can get vendor libs from here https://github.com/TheMuppets/proprietary_vendor_lge/tree/cm-12.1

DevSwift1 said:
You can get vendor libs from here https://github.com/TheMuppets/proprietary_vendor_lge/tree/cm-12.1
Click to expand...
Click to collapse
As far as I see this is quite old and also doesn't contain all the libs that are in the proprietary-list file (for example /system/lib/libsc-a2xx.so). So I adjusted that file to what I could find on the phone and can now build. But whether that is now complete I don't know.

Related

[Help Needed] Errors trying to build Android from source

Hey guys, so I never built AOSP before and so I thought I would give it a try. kernel.org is still down so I used the alternative method here: Alternative Android Repo
So I downloaded the repo script:
Code:
curl "http://php.webtutor.pl/en/wp-content/uploads/2011/09/repo" > ~/bin/repo
chmod a+x ~/bin/repo
PATH=~/bin:$PATH
Then I downloaded the Android source:
Code:
mkdir WORKING_DIRECTORY
cd WORKING_DIRECTORY
repo init -u git://codeaurora.org/platform/manifest.git -b gingerbread
repo sync
Once I had the source downloaded I went and found jdkoreclipse's How To Built AOSP guide. Combined with the official Source Building guide on the Android Source website, I was able to come up with somewhat of an instruction path to continue.
I read JDK's guide and skipped ahead to where I was in the process. Which is to setup the Vendor overlay. I used CM's Inc tree and did these commands:
Code:
mkdir inc
cd inc
git clone http://github.com/koush/android_device_htc_inc.git inc
Ok so after get clone I notice that in WORKING_DIRECTORY/device/htc/inc it had created a new inc directory. So I drug the new inc directory out to my desktop and then dragged the contents of it into the old WORKING_DIRECTORY/device/htc/inc directory.
Once that was complete I connected my phone and then did:
Code:
cd ~/WORKING_DIRECTORY/device/htc/inc
And then did:
Code:
./extract-files.sh
It runs and outputs stuff in Terminal:
Code:
[email protected]:~/WORKING_DIRECTORY/device/htc/inc$ ./extract-files.sh382 KB/s (34280 bytes in 0.087s)
68 KB/s (5412 bytes in 0.077s)
119 KB/s (9492 bytes in 0.077s)
173 KB/s (13724 bytes in 0.077s)
69 KB/s (5488 bytes in 0.077s)
123 KB/s (9808 bytes in 0.077s)
38 KB/s (3073 bytes in 0.077s)
9 KB/s (718 bytes in 0.077s)
2 KB/s (199 bytes in 0.077s)
1885 KB/s (3008536 bytes in 1.557s)
remote object '/system/etc/agps_rm' does not exist
remote object '/system/etc/firmware/BCM4329B1_002.002.023.0436.0439.hcd' does not exist
1072 KB/s (173004 bytes in 0.157s)
1072 KB/s (173004 bytes in 0.157s)
remote object '/system/etc/firmware/Incredible_C_20100319_VZW_Neo_324016_v8_default.acdb' does not exist
979 KB/s (137833 bytes in 0.137s)
979 KB/s (137833 bytes in 0.137s)
978 KB/s (137833 bytes in 0.137s)
14 KB/s (1156 bytes in 0.076s)
116 KB/s (9220 bytes in 0.077s)
remote object '/system/etc/pvasflocal.cfg' does not exist
976 KB/s (79936 bytes in 0.079s)
1283 KB/s (163008 bytes in 0.124s)
1800 KB/s (1746672 bytes in 0.947s)
1137 KB/s (206768 bytes in 0.177s)
718 KB/s (86336 bytes in 0.117s)
610 KB/s (67168 bytes in 0.107s)
708 KB/s (85220 bytes in 0.117s)
remote object '/system/lib/libgps.so' does not exist
385 KB/s (34548 bytes in 0.087s)
117 KB/s (9328 bytes in 0.077s)
1587 KB/s (449872 bytes in 0.276s)
1756 KB/s (1398720 bytes in 0.777s)
remote object '/system/lib/libomx_wmadec_sharedlibrary.so' does not exist
remote object '/system/lib/libomx_wmvdec_sharedlibrary.so' does not exist
remote object '/system/lib/libpvasfcommon.so' does not exist
remote object '/system/lib/libpvasflocalpb.so' does not exist
remote object '/system/lib/libpvasflocalpbreg.so' does not exist
remote object '/system/lib/libspeech.so' does not exist
0 KB/s (32 bytes in 0.077s)
3 KB/s (245 bytes in 0.077s)
28 KB/s (2265 bytes in 0.077s)
[email protected]:~/WORKING_DIRECTORY/device/htc/inc$
I notice a bunch of 'does not exist' but I keep going anyway.
Once that was done I went to build the source:
Code:
cd WORKING_DIRECTORY
. build/envsetup.sh
It outputs:
Code:
including device/htc/inc/vendorsetup.sh
including device/htc/passion/vendorsetup.sh
including device/samsung/crespo/vendorsetup.sh
I do:
Code:
lunch full-eng
It outputs:
Code:
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.5
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GRJ90
============================================
I do:
Code:
make
And then it just errors out of control, lol:
Code:
[email protected]:~/WORKING_DIRECTORY$ make
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.5
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GRJ90
============================================
build/core/base_rules.mk:105: *** Module name: hostapd contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: hostapd_cli contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: nt_password_hash contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: hlr_auc_gw contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: Stk contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:146: user tag on app Stk at packages/apps/Stk - add your app to core.mk instead
build/core/base_rules.mk:105: *** Module name: ip contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libqsap_sdk contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libQWiFiSoftApCfg contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: pvplayer contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libopencore_common contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libopencore_author contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libopencore_player contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libomx_sharedlibrary contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libomx_avcdec_sharedlibrary contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libomx_m4vdec_sharedlibrary contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libomx_aacdec_sharedlibrary contains invalid LOCAL_MODULE_TAGS
build/core/copy_headers.mk:15: warning: overriding commands for target `out/target/product/generic/obj/include/libpv/getactualaacconfig.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `out/target/product/generic/obj/include/libpv/getactualaacconfig.h'
build/core/base_rules.mk:105: *** Module name: libomx_amrdec_sharedlibrary contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libomx_mp3dec_sharedlibrary contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libomx_amrenc_sharedlibrary contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libopencore_net_support contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libopencore_downloadreg contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libopencore_download contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libopencore_rtspreg contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libopencore_rtsp contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libopencore_mp4localreg contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libopencore_mp4local contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libOmxCore contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libmm-omxcore contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: librefcne contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: cnd contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: QualcommSoftAP contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:146: user tag on app QualcommSoftAP at packages/apps/QualcommSoftAP - add your app to core.mk instead
host C: acp <= build/tools/acp/acp.c
In file included from /usr/include/features.h:388:0,
from /usr/include/stdlib.h:25,
from build/tools/acp/acp.c:11:
/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory
compilation terminated.
make: *** [out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp.o] Error 1
[email protected]:~/WORKING_DIRECTORY$
I don't know whats going on but I know it can't be good, lol
I was hoping someone could give some pointers or incite on what I need to do or if I'm doing it wrong all together.
Thanks in advance.
When I first tried, I couldn't get JDK's guide to work either (I'm assuming you are using Ubuntu). I used the guide in Chef Central posted here. It seemed to work for me. I don't know if kernel.org being down would effect it or not, but I wouldn't think so. Good luck!
EDIT: There is a workaround at the top of the guide that has worked for some.
Codeaura isn't updated; they only had some devices, and the incredible wasn't one of them, when I checked a couple of weeks ago. I would try to rebuild and resync using this, see what errors you get, and then go from there.
http://synrgi.wordpress.com/2011/09/07/android-repository-remedy/
Edit: this may or may not help you. I was building CM7, got a bunch of errors, switched repositories, and it worked. Granted, you're doing pure AOSP, but it's worth a shot to resync.
dmeadows013 said:
When I first tried
Click to expand...
Click to collapse
Thanks for the help.
Could I possibly get you to unquote me? That's a lot to scroll through on my phone.
PonsAsinorem said:
Codeaura isn't updated; they only had some devices, and the incredible wasn't one of them, when I checked a couple of weeks ago. I would try to rebuild and resync using this, see what errors you get, and then go from there.
http://synrgi.wordpress.com/2011/09/07/android-repository-remedy/
Edit: this may or may not help you. I was building CM7, got a bunch of errors, switched repositories, and it worked. Granted, you're doing pure AOSP, but it's worth a shot to resync.
Click to expand...
Click to collapse
Thanks Pons. So is this possibley gonna get me up to 2.3.7 atleast?
Was kinda agitated when I synced for three days just to find out it was 2.3.5 on Aurora.
Edit: I think that's not what I'm looking for. I'm trying to stay away from as much CM business as possible.
There's got to be a way to get a 100% pure unmodded Android build for this Incredible.
My fault for starting out with porting. Should've started out on source.
wildstang83 said:
Thanks Pons. So is this possibley gonna get me up to 2.3.7 atleast?
Was kinda agitated when I synced for three days just to find out it was 2.3.5 on Aurora.
Edit: I think that's not what I'm looking for. I'm trying to stay away from as much CM business as possible.
There's got to be a way to get a 100% pure unmodded Android build for this Incredible.
My fault for starting out with porting. Should've started out on source.
Click to expand...
Click to collapse
Instead of using other's guides, I would try looking at the official documentation.
http://source.android.com/source/building.html
I'm away from my computer right now, and it's hard to flip between tapatalk and browsers and keep track of where I'm at, so I'm just trying to point you in the right direction.
Already been there. That's what I used to clean up jdk's instructions.
wildstang83 said:
Already been there. That's what I used to clean up jdk's instructions.
Click to expand...
Click to collapse
When I get home, I'll try to build and see what I come up with.
Cool, yea man if you know how to do it then I could use some help. I just don't want CM. Anything except CM.
wildstang83 said:
Thanks for the help.
Could I possibly get you to unquote me? That's a lot to scroll through on my phone.
Click to expand...
Click to collapse
Done lol
dmeadows013 said:
Done lol
Click to expand...
Click to collapse
Thank you so much.
Hi can anyone help me with this
http://jenkins3.legacyserver.in/job/nitrogen_Z00L/11/console

can we use crespo ROM for S I9000?

I have downloaded the source code for greenbreed 2.3.7 in which I have some changes to c++ library.
Then I build the images from the source code without error.
I want to create the update.zip form that to test it on my galaxy SI9000, but I dont know how? Could you help me?
What are the required files for making this zip file?
Also, In the device directory I found this source support crespo and crespo4G. Can we use them for galaxy SI9000??
I have searched this forum but this step is not stated (as far as I know)
My linux is ubuntu 11.10
alzaq said:
I have downloaded the source code for greenbreed 2.3.7 in which I have some changes to c++ library.
Then I build the images from the source code without error.
I want to create the update.zip form that to test it on my galaxy SI9000, but I dont know how? Could you help me?
What are the required files for making this zip file?
Also, In the device directory I found this source support crespo and crespo4G. Can we use them for galaxy SI9000??
I have searched this forum but this step is not stated (as far as I know)
My linux is ubuntu 11.10
Click to expand...
Click to collapse
It won't work without proprietary files, why don't you just use cm7 source?
For flash able zip I'm sure it's:
Make -jX otapackage
thanks for your replay.
but I want to know what are proprietary files?
from where can I download the cm7 soutces?
I have used the following command to get the proprietary files (from the device/crespo)
./extract-files.sh
I have got the following
744 KB/s (300352 bytes in 0.393s)
remote object '/system/vendor/lib/egl/libEGL_POWERVR_SGX540_120.so' does not exist
remote object '/system/vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so' does not exist
remote object '/system/vendor/lib/egl/libGLESv2_POWERVR_SGX540_120.so' does not exist
remote object '/system/vendor/lib/hw/gps.s5pc110.so' does not exist
remote object '/system/vendor/lib/hw/gralloc.s5pc110.so' does not exist
remote object '/system/vendor/lib/libakm.so' does not exist
remote object '/system/vendor/lib/libglslcompiler.so' does not exist
remote object '/system/vendor/lib/libIMGegl.so' does not exist
remote object '/system/vendor/lib/libpvr2d.so' does not exist
remote object '/system/vendor/lib/libpvrANDROID_WSEGL.so' does not exist
remote object '/system/vendor/lib/libPVRScopeServices.so' does not exist
remote object '/system/vendor/lib/libsec-ril.so' does not exist
remote object '/system/vendor/lib/libsrv_init.so' does not exist
remote object '/system/vendor/lib/libsrv_um.so' does not exist
remote object '/system/vendor/lib/libusc.so' does not exist
[email protected]:~/WORKING_DIRECTORY/device/samsung/crespo$
which means the proprietary files does not existed.
any idea?
alzaq said:
I have used the following command to get the proprietary files (from the device/crespo)
./extract-files.sh
I have got the following
744 KB/s (300352 bytes in 0.393s)
remote object '/system/vendor/lib/egl/libEGL_POWERVR_SGX540_120.so' does not exist
remote object '/system/vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so' does not exist
remote object '/system/vendor/lib/egl/libGLESv2_POWERVR_SGX540_120.so' does not exist
remote object '/system/vendor/lib/hw/gps.s5pc110.so' does not exist
remote object '/system/vendor/lib/hw/gralloc.s5pc110.so' does not exist
remote object '/system/vendor/lib/libakm.so' does not exist
remote object '/system/vendor/lib/libglslcompiler.so' does not exist
remote object '/system/vendor/lib/libIMGegl.so' does not exist
remote object '/system/vendor/lib/libpvr2d.so' does not exist
remote object '/system/vendor/lib/libpvrANDROID_WSEGL.so' does not exist
remote object '/system/vendor/lib/libPVRScopeServices.so' does not exist
remote object '/system/vendor/lib/libsec-ril.so' does not exist
remote object '/system/vendor/lib/libsrv_init.so' does not exist
remote object '/system/vendor/lib/libsrv_um.so' does not exist
remote object '/system/vendor/lib/libusc.so' does not exist
[email protected]:~/WORKING_DIRECTORY/device/samsung/crespo$
which means the proprietary files does not existed.
any idea?
Click to expand...
Click to collapse
Grab from cm?
burakgon said:
Grab from cm?
Click to expand...
Click to collapse
no. But even if I grab from CM 7 I got the following
[email protected]:~/android/system/device/samsung/galaxysmtd$ adb devices
List of devices attached
3034A5A47EDE00EC device
[email protected]:~/android/system/device/samsung/galaxysmtd$ ./extract-files.sh
4 KB/s (238 bytes in 0.048s)
783 KB/s (1295612 bytes in 1.615s)
29 KB/s (2559 bytes in 0.084s)
remote object '/system/vendor/lib/hw/gps.aries.so' does not exist
306 KB/s (45080 bytes in 0.143s)
153 KB/s (13708 bytes in 0.087s)
625 KB/s (416192 bytes in 0.649s)
109 KB/s (9808 bytes in 0.087s)
remote object '/system/lib/libsamsungcamera.so' does not exist
remote object '/radio/modem.bin' does not exist
remote object '/system/vendor/bin/pvrsrvinit' does not exist
234 KB/s (17626 bytes in 0.073s)
24 KB/s (1221 bytes in 0.049s)
remote object '/system/vendor/firmware/cypress-touchkey.bin' does not exist
723 KB/s (300352 bytes in 0.405s)
440 KB/s (93672 bytes in 0.207s)
remote object '/system/vendor/lib/egl/libEGL_POWERVR_SGX540_120.so' does not exist
remote object '/system/vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so' does not exist
remote object '/system/vendor/lib/egl/libGLESv2_POWERVR_SGX540_120.so' does not exist
remote object '/system/vendor/lib/hw/gralloc.aries.so' does not exist
remote object '/system/vendor/lib/libakm.so' does not exist
remote object '/system/vendor/lib/libglslcompiler.so' does not exist
remote object '/system/vendor/lib/libIMGegl.so' does not exist
remote object '/system/vendor/lib/libpvr2d.so' does not exist
remote object '/system/vendor/lib/libpvrANDROID_WSEGL.so' does not exist
remote object '/system/vendor/lib/libPVRScopeServices.so' does not exist
remote object '/system/vendor/lib/libsrv_init.so' does not exist
remote object '/system/vendor/lib/libsrv_um.so' does not exist
remote object '/system/vendor/firmware/CE147F02.bin' does not exist
remote object '/system/vendor/lib/libusc.so' does not exist
remote object '/system/vendor/lib/libsensor_yamaha_test.so' does not exist
remote object '/system/vendor/lib/libsensorservice.so' does not exist
remote object '/system/vendor/bin/orientationd' does not exist
remote object '/system/vendor/bin/geomagneticd' does not exist
788 KB/s (594465 bytes in 0.736s)
793 KB/s (2156747 bytes in 2.652s)
491 KB/s (78024 bytes in 0.154s)
233 KB/s (17884 bytes in 0.074s)
260 KB/s (29776 bytes in 0.111s)
782 KB/s (905356 bytes in 1.129s)
478 KB/s (107680 bytes in 0.219s)
782 KB/s (636964 bytes in 0.794s)
161 KB/s (13648 bytes in 0.082s)
353 KB/s (48208 bytes in 0.133s)
532 KB/s (94148 bytes in 0.172s)
110 KB/s (9568 bytes in 0.084s)
500 KB/s (79032 bytes in 0.154s)
166 KB/s (14392 bytes in 0.084s)
297 KB/s (35168 bytes in 0.115s)
232 KB/s (17904 bytes in 0.075s)
151 KB/s (13640 bytes in 0.087s)
330 KB/s (47352 bytes in 0.139s)
61 KB/s (5392 bytes in 0.086s)
739 KB/s (460800 bytes in 0.608s)
764 KB/s (460800 bytes in 0.588s)
0 KB/s (4 bytes in 0.080s)
257 KB/s (19737 bytes in 0.074s)
0 KB/s (17 bytes in 0.048s)
747 KB/s (732591 bytes in 0.957s)
103 KB/s (9748 bytes in 0.091s)
113 KB/s (10052 bytes in 0.086s)
750 KB/s (482607 bytes in 0.627s)
448 KB/s (58556 bytes in 0.127s)
355 KB/s (53708 bytes in 0.147s)
498 KB/s (57984 bytes in 0.113s)
449 KB/s (57764 bytes in 0.125s)
489 KB/s (58176 bytes in 0.115s)
439 KB/s (57556 bytes in 0.127s)
437 KB/s (57924 bytes in 0.129s)
400 KB/s (57200 bytes in 0.139s)
427 KB/s (57372 bytes in 0.130s)
448 KB/s (57956 bytes in 0.126s)
437 KB/s (57396 bytes in 0.128s)
366 KB/s (56844 bytes in 0.151s)
351 KB/s (56704 bytes in 0.157s)
380 KB/s (56704 bytes in 0.145s)
363 KB/s (56568 bytes in 0.151s)
383 KB/s (56356 bytes in 0.143s)
391 KB/s (56300 bytes in 0.140s)
390 KB/s (56260 bytes in 0.140s)
393 KB/s (56232 bytes in 0.139s)
415 KB/s (56360 bytes in 0.132s)
389 KB/s (56860 bytes in 0.142s)
378 KB/s (55696 bytes in 0.143s)
I have solved a part of the problem by changing the extract-files.sh
most of these not existed files are stored in different directories and the extract-files.sh provied the wrong path. I have found that the /system/vendor/lib/... points to false directory and I have corrected it to /system/lib/...
another solution can be as follows
install the orignal CM7 from thier website
the perform the same command ./extract-files.sh
alzaq said:
I have solved a part of the problem by changing the extract-files.sh
most of these not existed files are stored in different directories and the extract-files.sh provied the wrong path. I have found that the /system/vendor/lib/... points to false directory and I have corrected it to /system/lib/...
Click to expand...
Click to collapse
a smart user would have noticed in this part of the instructions: http://wiki.cyanogenmod.com/wiki/Sa...le_CyanogenMod_(Linux)#Copy_proprietary_files
where it clearly states you must *already* be running CM7 to use the command as it is.

[Q] FieldTest app (RIL), AT commands only response +CME ERROR: 100

Hello
I am working directly with AT commands on my phone. For example: AT$GSM?\r for the GSM page of the FieldTest application.
I wrote a little app which call the command "AT$GSM?\r". The app is running nicely on a HTC Magic 32 B (CM 7) and a Nexus One (CM 9). Now I installed it on the CM10 on my HTC One X. But I only get the response +CME ERROR: 100.
The detailed "logcat -b radio" output is:
AT$GSM?\r
(t=1357078390)>> AT$GSM?\r
D/HTC_RIL ( 161): TX::> AT$GSM?\r
}/RILJ ( 698): [3691]< OEM_HOOK_STRINGS {UNIAT, +CME ERROR: 100
When I call the RIL through the byte commands I get the error:
< OEM_HOOK_RAW error: com.android.internal.telephony.CommandException: GENERIC_FAILURE
At the moment I use CM9 with baseband-version: 2.1204.119.17
In FASTBOOT is the information:
RADIO-1.1204.105.14
MODEM PATH: OFF
Does anybody has an idea how to solve it?
Felix
Hi Felix,
FelixGroup said:
OEM_HOOK_STRINGS {UNIAT, +CME ERROR: 100
Click to expand...
Click to collapse
Did you ever resolve this?
CME ERROR: 100 is labelled as "unknown" in the 3GPP 27.007 docs, so it means that your script is working but perhaps that AT command/device is not enabled on that device. Usually ATCoP on Qualcomm MSM8960 can be easily customized by OEM. Since HTC love to customize everything, perhaps its a RIL thing. Many RILs can be made to "interpret" AT commands, and thus they either don't reach CP at all, and is faked by RIL in AP, or reformatted or blocked. Basically anything can happen. Did you try some other AT commands and see if something changes.

[Q] (Help) CM11 compiling errors

Hello! I'm new building a ROM and I have a lot of issues with the compilation of CM11, a lot of these has been fixed with a few workarounds in the source code, but I'm getting an error with the headers, exactly with the file Flattenable.h
The problem is that the "guard" of the headers includes only once the header Flattenable.h for one of the needed headers but not for the rest of headers that require the same header Flattenable.h and I get this error:
target thumb C++: libandroid <= frameworks/base/native/android/native_window.cpp
In file included from frameworks/native/include/ui/Rect.h:22:0,
from frameworks/native/include/ui/Region.h:25,
from system/core/include/utils/Flattenable.h:26,
from frameworks/native/include/ui/Fence.h:26,
from frameworks/native/include/gui/IGraphicBufferProducer.h:28,
from frameworks/native/include/gui/Surface.h:20,
from frameworks/base/native/android/native_window.cpp:21:
frameworks/native/include/ui/Point.h:29:41: error: expected template-name before '<' token
frameworks/native/include/ui/Point.h:29:41: error: expected '{' before '<' token
frameworks/native/include/ui/Point.h:29:41: error: expected unqualified-id before '<' token
frameworks/base/native/android/native_window.cpp:84:1: error: expected '}' at end of input
make: *** [/home/richy/Escritorio/Development/CM-11/out/target/product/hwmt1_u06/obj/SHARED_LIBRARIES/libandroid_intermediates/native_window.o] Error 1
the error is because the "template-name" has been defined in Flattenable.h but the "guard" disable the #include of the file Point.h because this header has been included previusly on the file Fence.h
Someone knows a "fix" for this problem?
I'm compiling in Ubuntu 14.04
Excuse my poor english :silly:
I found the reason of this
Thanks but i find that I have added the next line to flattenable.h and I don't remember when :/ but... it was there haha
#include <ui/Region.h>
and I search the file on another site and this include wasn't here hahaha thanks =):silly:

how to get the result of a method

Hi All,
I am new to Xposed and am trying to understand how Xposed works and how are modules for Xposed written. I am stuck with something that's apparently very basic. Please bare with me and help me out with it.
Quoting example from XposedBridge/wiki/Development-tutorial
I understand that if the method updateClock() is called as myClock.updateClock(), then I can get access to the object myClock as param.thisObject.
So similarly, if my case is url.openConnection(), instead of myClock.updateClock(), then using param.thisObject I would have access to the 'url' object above. This works absolutely fine.
In my case above, I am trying to hook url.openConnection() as below :
Code:
findAndHookMethod("java.net.URL", lpparam.classLoader, "openConnection", new XC_MethodHook(){
@Override
protected void afterHookedMethod(MethodHookParam param)
after openConnection() has completed executing, it returns an HttpUrlConnection or an HttpsUrlConnection object. I want to have a reference to this returned object itself, (like I had access to the 'url' object on which openConnection() was called using param.thisObject).
How can I access the returned object from a method ?
Will param.getResult() or param.getResultOrThrowable() be useful ?
If not what are they used for / is there any resource that has a documentation of these APIs ?
param.getResult() is what you're looking for.

Categories

Resources