Use at your own risk - untested
I am not responsible for bricked devices.
Back up before doing anything
Compiled using the following device tree: https://github.com/CyanogenMod/android_device_sony_z3c
Working:
Nothing, as far as I am concerned which is why you should use at your own risk.Not Working:
Everything, as far as I am concerned which is why you should use at your own risk.
The commands I used to make zip package was:
Code:
. build/envsetup.sh
lunch
make bacon
(Brunch and Breakfast are for official devices only, I believe)
Local Manifest includes:
Code:
<project name="CyanogenMod/android_device_sony_z3c" path="device/sony/z3c" remote="github" />
<project name="CyanogenMod/android_device_sony_shinano-common" path="device/sony/shinano-common" remote="github" />
<project name="CyanogenMod/android_kernel_sony_msm8974" path="kernel/sony/msm8974" remote="github" />
<project name="CyanogenMod/android_device_sony_qcom-common" path="device/sony/qcom-common" remote="github" />
<project name="CyanogenMod/android_device_sony_common" path="device/sony/common" remote="github" />
<project name="CyanogenMod/android_device_sony_msm8974-common" path="device/sony/msm8974-common" remote="github" />
<project name="CyanogenMod/android_device_qcom_common" path="device/qcom/common" remote="github" />
File can be found in Downloads Tab
And,
Mirror: AndroidFileHost
XDA:DevDB Information
ROM compilation, ROM for the Sony Xperia Z3 Compact
Contributors
m0d
Thank you to Kali- and chirayudesai for setting up device tree at: android_device_sony_z3c
And, thank you to the people who spared the time in correcting my silly mistakes, and for responding to my even sillier questions.
ROM OS Version: 5.0.x Lollipop
Version Information
Status: Testing
Created 2014-12-15
Last Updated 2014-12-17
No clue how you managed to build, I've been trying for days!
Anyhow, booted it up and it restarts repeatedly at the 'starting system apps' stage. Here's a logcat:
Code:
https://bpaste.net/show/6aaa730e0985
---------- Post added at 07:42 PM ---------- Previous post was at 07:37 PM ----------
Gairtial said:
No clue how you managed to build, I've been trying for days!
Anyhow, booted it up and it restarts repeatedly at the 'starting system apps' stage. Here's a logcat:
Code:
https://bpaste.net/show/6aaa730e0985
Click to expand...
Click to collapse
I should also mention that the installation initially failed. The device calls itself 'aries', not 'd5803'. Had to modify the script in the ZIP before flashing.
Gairtial said:
No clue how you managed to build, I've been trying for days!
Click to expand...
Click to collapse
Magic!
But, there is no magic.
Send me your build error,
And also the error for show commands and I will try to help.
As that is the secret. In programming I come to find more and more that there is no better place to go than an actual person - not all errors are documented and some strange things happen for no apparent reason, or so one thinks.
Gairtial said:
I should also mention that the installation initially failed. The device calls itself 'aries', not 'd5803'. Had to modify the script in the ZIP before flashing.
Click to expand...
Click to collapse
Yes, someone mentioned that before.
Not sure where to look.
I did find this in BoardConfig.mk,
Code:
# Assert
TARGET_OTA_ASSERT_DEVICE := D5803,D5833,z3c
And, in init.sony.usb.rc - this:
Code:
on boot
write /sys/class/android_usb/android0/iSerial ${ro.serialno}
write /sys/class/android_usb/android0/iManufacturer ${ro.product.manufacturer}
write /sys/class/android_usb/android0/iProduct ${ro.product.model}
The problem is sony calls the device aries, the code for the device is d5803, and the device tree by cm12 is z3c.
I like z3c but if anyone knows where, maybe one of the mk files, to make the changes?
Any help appreciated. I am learning as I go and as I said above:
Thank you to the people who take the time to correct my silly mistakes, and for responding to my even sillier questions
Click to expand...
Click to collapse
I only compiled device tree, no changes as of yet, other than small fixes for compilation.
m0d said:
Magic!
But, there is no magic.
Send me your build error,
And also the error for show commands and I will try to help.
As that is the secret. In programming I come to find more and more that there is no better place to go than an actual person - not all errors are documented and some strange things happen for no apparent reason, or so one thinks.
Click to expand...
Click to collapse
The build errors started with libtime_genoff.so being missing from the output directory so I manually copied it over and it continued on fine.
There were some issues with AAPT but I manually fixed those (and submitted patches for review to Gerrit).
Just waiting for the build to complete now. Are you on IRC/Hangouts or something? Mind if I PM you so we can talk a little more freely?
m0d said:
Magic!
But, there is no magic.
Send me your build error,
And also the error for show commands and I will try to help.
As that is the secret. In programming I come to find more and more that there is no better place to go than an actual person - not all errors are documented and some strange things happen for no apparent reason, or so one thinks.
Yes, someone mentioned that before.
Not sure where to look.
I did find this in BoardConfig.mk,
Code:
# Assert
TARGET_OTA_ASSERT_DEVICE := D5803,D5833,z3c
And, in init.sony.usb.rc - this:
Code:
on boot
write /sys/class/android_usb/android0/iSerial ${ro.serialno}
write /sys/class/android_usb/android0/iManufacturer ${ro.product.manufacturer}
write /sys/class/android_usb/android0/iProduct ${ro.product.model}
The problem is sony calls the device aries, the code for the device is d5803, and the device tree by cm12 is z3c.
I like z3c but if anyone knows where, maybe one of the mk files, to make the changes?
Any help appreciated. I am learning as I go and as I said above:
I only compiled device tree, no changes as of yet, other than small fixes for compilation.
Click to expand...
Click to collapse
Check your build.prop in your compiled build folder (/system) and look for the variables below:
"ro.product.device" "ro.build.product"
If you want to change the values, mount your system.img, make your changes and make new .img
(PM me if you need help with this..)
it's not hard to delect the first sentence in updater-script in zip,then we could get it flashed
Okay, did my own build using similar instructions and came up with the following issues:
libtime_genoff.so wasn't copied during the build process, manually copying required manually copying a second time after the build.
DPI was first set to 480 in build.prop. Reset it to 320 through ADB after booting and it works fine
On the first boot the modem appeared to work (connected to my network), on the second it did not. Nothing I can understand in ADB that's relevant.
Wifi appears to work properly
Camera crashes
GPS error message:
Code:
D/LocSvc_utils_cfg( 5088): D/loc_read_conf: using /etc/gps.conf
D/LocSvc_utils_cfg( 5088): D/loc_set_config_entry: PARAM DEBUG_LEVEL = 2
E/gpsone_dmn( 5088): gpsone_glue_pipeget:46] /data/misc/gsiff_ctrl_q, mode = 2
E/gpsone_dmn( 5088): gpsone_glue_pipeget:50] pipe_name: /data/misc/gsiff_ctrl_q failed: 13
E/gsiff_dmn( 5088): W/gsiff_dmn_init: Unable to initialize Message Queue!
E/gsiff_dmn( 5088): W/gsiff_loc_api_close: Improperly closing Loc API Client!
E/gsiff_dmn( 5088): W/gsiff_dmn_destroy: Could not destroy loc api!
E/gsiff_sp_glue( 5088): W/sp_destroy: Sensor provider not initialized. Sensor provider = 0
E/gsiff_dmn( 5088): W/gsiff_dmn_destroy: Could not destroy sensor provider rc = 0!
E/gpsone_dmn( 5088): gpsone_glue_piperemove:92] fd = -1, /data/misc/gsiff_ctrl_q
E/LocSvc_utils_ll( 5088): W/linked_list_destroy: Invalid list parameter!
F/libc ( 5088): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x8 in tid 5088 (gsiff_daemon)
I/DEBUG ( 263): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 263): Build fingerprint: 'Sony/D5803/D5803:4.4.4/23.0.A.2.105/lvf_Rw:user/release-keys'
I/DEBUG ( 263): Revision: '0'
I/DEBUG ( 263): ABI: 'arm'
I/DEBUG ( 263): pid: 5088, tid: 5088, name: gsiff_daemon >>> /system/bin/gsiff_daemon <<<
I/DEBUG ( 263): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8
W/NativeCrashListener( 732): Couldn't find ProcessRecord for pid 5088
I/DEBUG ( 263): r0 00000008 r1 93475f55 r2 93475f55 r3 93475f55
E/DEBUG ( 263): AM write failure (32 / Broken pipe)
I/DEBUG ( 263): r4 00000008 r5 b4f539a4 r6 00000000 r7 b4f539a0
I/DEBUG ( 263): r8 00000003 r9 b6f9a098 sl 00000001 fp b6f94da0
I/DEBUG ( 263): ip b6c5dfbc sp be91f9b8 lr b6f116d1 pc b6f115b6 cpsr 600f0030
I/DEBUG ( 263):
I/DEBUG ( 263): backtrace:
I/DEBUG ( 263): #00 pc 000145b6 /system/lib/libc.so (pthread_mutex_trylock+3)
I/DEBUG ( 263): #01 pc 000146cd /system/lib/libc.so (pthread_mutex_destroy+4)
I/DEBUG ( 263): #02 pc 00002157 /system/lib/libgps.utils.so (msg_q_destroy+66)
I/DEBUG ( 263): #03 pc 00001a85 /system/bin/gsiff_daemon
I/DEBUG ( 263): #04 pc 00002af3 /system/bin/gsiff_daemon
I/DEBUG ( 263): #05 pc 0000fbb9 /system/lib/libc.so (__libc_init+44)
I/DEBUG ( 263): #06 pc 00001968 /system/bin/gsiff_daemon
I/DEBUG ( 263):
I/DEBUG ( 263): Tombstone written to: /data/tombstones/tombstone_
Camera messages:
Code:
E/cacao ( 7380): 1459692 cacao_chokoball.cpp (4914) 9002 E [CKB] ckb preCompile fail. keymgr create credmgr context.
W/cacao ( 7380): 1459761 cacao_chokoball.cpp (4923) 9002 W [CKB] Post process preLoad(0xffffff90)
E/mm-camera-sensor( 297): sony_sensor_power_up:1138,error
E/mm-camera-sensor( 297): sony_sensor_power_up:1145,error
I/Adreno-EGL( 7613): <qeglDrvAPI_eglInitialize:410>: EGL 1.4 QUALCOMM build: RGURRAM_AU_LINUX_ANDROID_LNX.LA.3.5.2.2_RB1.04.04.04.087.030+PATCH[ES]_msm8974_LNX.LA.3.5.2.2_RB1__release_ENGG ()
I/Adreno-EGL( 7613): OpenGL ES Shader Compiler Version: E031.24.00.15
I/Adreno-EGL( 7613): Build Date: 08/12/14 Tue
I/Adreno-EGL( 7613): Local Branch:
I/Adreno-EGL( 7613): Remote Branch: quic/LNX.LA.3.5.2.2_rb1
I/Adreno-EGL( 7613): Local Patches: 8b00bd16f3c1d9d35a2fa902df5e679888d2b2e3 Fixes an llvm crash with mini dEQP apk
I/Adreno-EGL( 7613): 38bad22e162dead4e008444520a0144c78a347bd Fixes a potential dEQP crash.
I/Adreno-EGL( 7613): ce345e1c45c2ae2d1fb2cb125c8d2574f1af5f95 Rev
I/OpenGLRenderer( 7613): Initialized EGL, version 1.4
D/OpenGLRenderer( 7613): Enabling debug mode 0
E/mm-camera( 297): cpp_module_set_clock_freq:1015] clk:133330000, dim:0, stream_type:0,
D/mm-camera( 297): mct_pipeline_process_set:command=800000e
E/cammw ( 7380): E: void* cammw_util_msg_cli_open(const char*, int32_t, cammw_util_msg_callbacks_t, uint32_t, cammw_any_t, uint32_t, cammw_any_t): connect err -1
E/cammw ( 7380): E: cammw_link_isp_cli_open: msg_cli_open fail
E/cammw ( 7380): E: cammw_camera_isp_create: isp create fail
E/cammw ( 7380): E: cammw_camera_open: isp socket create error
E/cammw ( 7380): E: cammw_camera_isp_destroy: invalid arg
E/cammw ( 7380): E: cammw_camera_sensor_destroy: invalid arg
E/cammw ( 7380): E: cammw_link_sensor_cli_close: invalid arg handle = 0x0
E/cammw ( 7380): E: cammw_err_t cammw_util_ashmem_free(cammw_buf_t*): Invalid Arg
E/cammw ( 7380): E: cammw_err_t cammw_util_ashmem_free(cammw_buf_t*): Invalid Arg
D/mm-camera( 297): mct_pipeline_process_set:command=800000b
D/mm-camera-sensor( 297): module_sensor_stop_session:700 session 1
E/cald ( 7380): 1463787 excal_system.cpp (221) 7891 E [EXC] Camera can't open.
E/cald ( 7380): 1463850 excal_system.cpp (447) 7891 E [EXC] system init is failed. General
E/cald ( 7380): 1463930 excal_comp_mgr.cpp (156) 7891 E [EXC] Unregister component: DebugMgr is not found
E/cald ( 7380): 1463984 excal_comp_mgr.cpp (156) 7891 E [EXC] Unregister component: BufMgr is not found
E/cald ( 7380): 1464037 excal_comp_mgr.cpp (156) 7891 E [EXC] Unregister component: DB is not found
I/cacao ( 7380): 1465315 pal.cpp (3383) 7891 I [INF] PAL_Delete
I/cald ( 7380): 1470629 cald_client.c (2051) 7891 I [INF] Cald_Client_Create
E/libcamera( 7380): failed to create Cald instance
E/libcamera( 7380): createInstance: failed startCamera
I/libcamera( 7380): HAL_openCameraHardware: X created hardware=0x0
E/CameraWrapper( 7380): vendor camera open fail
E/CameraClient( 7380): Could not open camera 0: -19
E/CameraClient( 7380): initialize: Camera 0: unable to initialize device: No such device (-19)
I/CameraClient( 7380): Destroying camera 0
D/NuPlayerDriver( 7380): reset(0xb460d040)
D/NuPlayerDriver( 7380): notifyResetComplete(0xb460d040)
D/NuPlayerDriver( 7380): reset(0xb460d1c0)
D/NuPlayerDriver( 7380): notifyResetComplete(0xb460d1c0)
W/CameraManager( 8386): Error querying camera device 0 for listing.
I/CameraService( 7380): getCameraCharacteristics: Switching to HAL1 shim implementation...
I/libcamera( 7380): HAL_getCameraInfo: E cameraId=1
I/libcamera( 7380): HAL_getCameraInfo: X
I/libcamera( 7380): HAL_getCameraInfo: E cameraId=1
I/libcamera( 7380): HAL_getCameraInfo: X
---------- Post added at 06:15 AM ---------- Previous post was at 06:06 AM ----------
Sorry, noticed a few things were out of date. in my tree. Previous post may not be correct. I'll be doing another build tonight after extracting vendor blobs and syncing properly and I'll post with more results.
Uploading new build I made with following:
I added to check for aries as well:
Code:
# Assert
TARGET_OTA_ASSERT_DEVICE := D5803,D5833,z3c,aries
Which updates update script to:
Code:
assert(getprop("ro.product.device") == "D5803" || getprop("ro.build.product") == "D5803" || getprop("ro.product.device") == "D5833" || getprop("ro.build.product") == "D5833" || getprop("ro.product.device") == "z3c" || getprop("ro.build.product") == "z3c" || getprop("ro.product.device") == "aries" || getprop("ro.build.product") == "aries" || abort("This package is for device: D5803,D5833,z3c,aries; this device is " + getprop("ro.product.device") + "."););
nelvinchi said:
Check your build.prop in your compiled build folder (/system) and look for the variables below:
"ro.product.device" "ro.build.product"
If you want to change the values, mount your system.img, make your changes and make new .img
(PM me if you need help with this..)
Click to expand...
Click to collapse
Build prop is not the problem, consistency is.
Code:
ro.product.name=D5803
ro.build.product=z3c
ro.product.device=z3c
CM uses the above. Sony uses aries.
So I guess checking for all three, and the variation(D5833) should work in the end.
jsscx said:
it's not hard to delect the first sentence in updater-script in zip,then we could get it flashed
Click to expand...
Click to collapse
No, but that is not ideal. It should check the for the correct device.
But, the problem is that there is no consistency so I guess checking for all four should do it - D5803,D5833,z3c,aries.
Gairtial said:
Okay, did my own build using similar instructions and came up with the following issues:
libtime_genoff.so wasn't copied during the build process, manually copying required manually copying a second time after the build.
DPI was first set to 480 in build.prop. Reset it to 320 through ADB after booting and it works fine
On the first boot the modem appeared to work (connected to my network), on the second it did not. Nothing I can understand in ADB that's relevant.
Wifi appears to work properly
Camera crashes
---------- Post added at 06:15 AM ---------- Previous post was at 06:06 AM ----------
[/COLOR]Sorry, noticed a few things were out of date. in my tree. Previous post may not be correct. I'll be doing another build tonight after extracting vendor blobs and syncing properly and I'll post with more results.
Click to expand...
Click to collapse
I am not sure if I had any problems with "libtime_genoff.so", I checked the proprietary files list and it is in none of them.
The aapt was fixed in a commit, z3c.mk is now
Code:
PRODUCT_AAPT_CONFIG := normal hdpi xhdpi
PRODUCT_AAPT_PREF_CONFIG := xhdpi
And it compiled fine.
DPI also had a commit to change to 320.
So doing a repo sync should fix those previous issues.
I believe there was an issue with proprietary files as the proprietary-files.txt has been updated.
And now I have no errors when extracting files, so maybe camera files now are getting tranferred.
Review with updated changes just for z3c - http://review.cyanogenmod.org/#/q/status:merged+project:CyanogenMod/android_device_sony_z3c,n,z
Maybe a commit will be needed to fix update script as mentioned above,
Code:
# Assert
TARGET_OTA_ASSERT_DEVICE := D5803,D5833,z3c,aries
I believe there is a pull request with that specific change as well.
Thank you all for responses
Added to OP:
Mirror: AndroidFileHost
Also,
Please submit feedback.
All issues are welcome
so here's quick test:
boot with animation,when the app starting screen lasts a few seconds,then restart.
https://www.dropbox.com/s/nfexgudos3bni87/1.txt?dl=0
jsscx said:
so here's quick test:
boot with animation,when the app starting screen lasts a few seconds,then restart.
https://www.dropbox.com/s/nfexgudos3bni87/1.txt?dl=0
Click to expand...
Click to collapse
The name of the zip package you used will be helpful, i.e. 20141215 or 20141219
19
jsscx said:
so here's quick test:
boot with animation,when the app starting screen lasts a few seconds,then restart.
https://www.dropbox.com/s/nfexgudos3bni87/1.txt?dl=0
Click to expand...
Click to collapse
Maybe @jerpelea could help as more than one person has been encountering this issue.
jsscx said:
19
Click to expand...
Click to collapse
Uploaded new build only on AFH,
Mirror: AndroidFileHostThe repo sync includes these commits,
http://review.cyanogenmod.org/#/c/82475/
http://review.cyanogenmod.org/#/c/82465/
I can confirm the issue with the start loop.
Get a starting apps message, then reverts back to CM bootanimation, does this in a loop, hard to hard shut down phone (Volume up and Power) to get it to turn off.
EDIT
- Also had to delete first line of updater script to get it to install
- The built in recovery still didn't let me install using 'apply' update, i had to use CWM 6.0.5.0 from AndroPlus Kernel to flash it
- Updater script recognized my device as 'Amami' when i don't have any reference to it in my build.prop, all value were D5803
Regards
spida_singh said:
I can confirm the issue with the start loop.
Get a starting apps message, then reverts back to CM bootanimation, does this in a loop, hard to hard shut down phone (Volume up and Power) to get it to turn off.
Regards
Click to expand...
Click to collapse
I had the same problem and I could not test the rom
spida_singh said:
EDIT
- Also had to delete first line of updater script to get it to install
- The built in recovery still didn't let me install using 'apply' update, i had to use CWM 6.0.5.0 from AndroPlus Kernel to flash it
- Updater script recognized my device as 'Amami' when i don't have any reference to it in my build.prop, all value were D5803
Regards
Click to expand...
Click to collapse
Not sure why it is recognizing your device as Amami.
I added 'aries' to the assert so it should work.
I am creating zip packages using "make bacon", by default CM uses CWM so it is not surprising that you must use CWM to flash it.
As for built-in recovery, I am not sure, as it gets created automatically with the build.
Maybe changes are needed.
spida_singh said:
I can confirm the issue with the start loop.
Get a starting apps message, then reverts back to CM bootanimation, does this in a loop, hard to hard shut down phone (Volume up and Power) to get it to turn off.
Click to expand...
Click to collapse
Burakki said:
I had the same problem and I could not test the rom
Click to expand...
Click to collapse
I may have found why 'com.qualcomm.location.apk' was crashing,
It seems devs are trying to move it from 'app' to 'priv-app':
Code:
-app/com.qualcomm.location.apk:priv-app/com.qualcomm.location/com.qualcomm.location.apk
Changing 'proprietary-files.txt' from the above to
Code:
-app/com.qualcomm.location.apk
might fix that issue.
Compiling with change to see if it works.
m0d said:
It seems devs are trying to move it from 'app' to 'priv-app'
Click to expand...
Click to collapse
Any reason behind why this is trying to be done? Hasn't it always been inside app?
someone755 said:
Any reason behind why this is trying to be done? Hasn't it always been inside app?
Click to expand...
Click to collapse
No, not sure.
On Stock ROM it is located in app; however, somewhere along the line CM devs are moving it to priv-app.
The change I made does not seem to make a difference and I can not seem to find where are they moving it to priv-app
Android.mk in 'vendor/sony/shinano-common'
Code:
include $(CLEAR_VARS)
LOCAL_MODULE := com.qualcomm.location
LOCAL_MODULE_OWNER := sony
[COLOR="SeaGreen"]LOCAL_SRC_FILES := proprietary/priv-app/com.qualcomm.location/com.qualcomm.location.apk[/COLOR]
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
LOCAL_MODULE_CLASS := APPS
LOCAL_CERTIFICATE := platform
LOCAL_PRIVILEGED_MODULE := true
include $(BUILD_PREBUILT)
And, it is being copied to: out/target/product/z3c/system/priv-app/com.qualcomm.location
I am not sure if this is of any concern, but from the logs com.qualcomm.location.apk looks like the root of the issue as everything dies after it encounters:
Code:
E/installd( 269): DexInv: --- END '/system/priv-app/com.qualcomm.location/com.qualcomm.location.apk' --- status=0x0100, process failed
D/AndroidRuntime( 4634): Shutting down VM
E/AndroidRuntime( 4634): *** FATAL EXCEPTION IN SYSTEM PROCESS: main
I tested it's working great..
Just a heads up! Cyanogenmod now has an official nightly for the Sony Xperia Z3 compact.
You can download their nighty builds from here:
http://download.cyanogenmod.org/?device=z3c
Related
Hi,
I am trying to get access to the IOMX interface for use in a video decoding app.
I realize the API's I am using are non public and subject to change but the public API are not good enough for me.
I need access to the compressed and decoded data and so this seems to the way to go.
I found some sample code on the net that shows how to get the IOMX pointer.
(tried to post the link but it won't let me since, apparently I am a noob :cyclops
So I tried running that and I get a crash.
This is the code:
Code:
sp<IServiceManager> sm = defaultServiceManager();
Vector<String16> vec = sm->listServices();
sp<IBinder> binder = sm->getService(String16("media.player"));
sp<IMediaPlayerService> service = interface_cast<IMediaPlayerService>(binder);
[COLOR="Red"]sp<IOMX> mOMX = service->getOMX();[/COLOR]
And the crash occurrs on the last line (red) - start of dump below.
All I want is to be able to enumerate the OMX components for now. When that works I expect I can continue.
Should I be initializing anything before running the above code? OMX? Stagefright?
Thank you in advance,
Tomer
06-25 10:02:40.300: I/DEBUG(13769): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
06-25 10:02:40.300: I/DEBUG(13769): Build fingerprint: 'samsung/GT-P7500/GT-P7500:3.2/HTJ85B/JJKK3:user/release-keys'
06-25 10:02:40.300: I/DEBUG(13769): pid: 15347, tid: 15359 >>> com.ai.playcast <<<
06-25 10:02:40.300: I/DEBUG(13769): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr ae684e99
06-25 10:02:40.300: I/DEBUG(13769): r0 ae684e99 r1 ae684e99 r2 00000001 r3 00000008
06-25 10:02:40.300: I/DEBUG(13769): r4 5c55e914 r5 ae684e99 r6 5c55e9d8 r7 00268910
06-25 10:02:40.300: I/DEBUG(13769): r8 a90388f5 r9 ae684e99 10 00268048 fp fffffe90
06-25 10:02:40.300: I/DEBUG(13769): ip a81233dc sp 5c55e8c0 lr a811aafd pc aff14aec cpsr 00000010
Questions go in the Q&A section
I have some updates on this that may make this less opaque.
I looked into the implementation of getOMX().
It seems straight forward enough so I copied it to my own code instead of calling getOMX(). This time it didn't crash - this is becoming a little voodoo.
However I got the handle to the IOMX object.
So then I tried enumerating the components but the list comes back empty.
Anyone has any idea why?
Here is my original crashing code (crashing on the red line):
Code:
android::ProcessState::self()->startThreadPool();
sp<IServiceManager> sm = defaultServiceManager();
sp<IBinder> binder = sm->getService(String16("media.player"));
sp<IMediaPlayerService> service = interface_cast<IMediaPlayerService>(binder);
[COLOR="Red"]sp<IOMX> mOMX = service->getOMX();[/COLOR]
This is my non-crashing code that returns an empty component list:
Code:
android::ProcessState::self()->startThreadPool();
sp<IServiceManager> sm = defaultServiceManager();
sp<IBinder> binder = sm->getService(String16("media.player"));
sp<IMediaPlayerService> service = interface_cast<IMediaPlayerService>(binder);
sp<IOMX> mOMX;
{
Parcel data, reply;
data.writeInterfaceToken(service->getInterfaceDescriptor());
binder->transact(6, data, &reply);
mOMX = interface_cast<IOMX>(reply.readStrongBinder());
}
List<IOMX::ComponentInfo> componenInfos;
status_t err = mOMX->listNodes(&componenInfos);
if (componenInfos.size() == 0)
[COLOR="red"]log_err("no components found %d", err);[/COLOR]
I've also tried calling OMX_Init() before all this but it didn't help.
Please, if anyone has any idea what's going on I would greatly appreciate it.
Thank you in advance
:victory:
Hi everyone,
I love this phone! Unfortunately I am stuck at this time with CM 7.2, because when I tried 9.0 and 9.1 I get this boot loop:
Code:
E/libgenlock( 1005): genlock_create_lock: open genlock device failed (err=No such file or directory)
E/msm7x30.gralloc( 1005): alloc_impl: genlock_create_lock failed
E/msm7x30.gralloc( 1005): terminateBuffer: unmapping a non pmem/ashmem buffer flags = 0x0
E/memalloc( 1005): getAllocator: Invalid flags passed: 0x0
E/msm7x30.gralloc( 1005): Could not unmap memory at address 0x21
E/memalloc( 1005): getAllocator: Invalid flags passed: 0x0
F/libc ( 1005): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1)
I/DEBUG ( 121): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 121): Build fingerprint: 'SEMC/SK17i_1249-7380/SK17i:4.0.4/4.1.B.0.431/UL5_3w:user/release-keys'
I/DEBUG ( 121): pid: 1005, tid: 1018 >>> system_server <<<
I/DEBUG ( 121): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000
Any ideas what's going on? I've also gotten the same thing with an Xperia Active. I must be doing something wrong I think?
Thank you!
Edit: This is related to a few bug reports:
http://code.google.com/p/cyanogenmod/issues/detail?id=5504
http://code.google.com/p/cyanogenmod/issues/detail?id=5586
http://code.google.com/p/cyanogenmod/issues/detail?id=5522
I also found this thread: http://forum.xda-developers.com/showthread.php?t=1737703 which indicates that the problem could be that I need to reformat with some other partition type? I tried the SuperWipe file they suggested but it won't run on the SonyEricsson. I'm pretty good with ADB and I know how to use Clockwork Mod and all that but I don't know how to mess around with partitions (yet).
These bug reports say it is fixed but it is not, at least on my two devices here. Anything I can do to help figure this out, I will try!
Follow this http://forum.xda-developers.com/showthread.php?p=30732959
Sent from my WT19i using xda app-developers app
rachit.rc96 said:
Follow this http://forum.xda-developers.com/showthread.php?p=30732959
Click to expand...
Click to collapse
Thanks for the suggestion. No luck on that. I formatted /system, wiped the cache, /data, and Dalvik cache. Nothing changed. Anything else I should do? Surely I'm not the only one getting this?
UPDATE: SUCCESS!!!
The magic is that I need to install the new boot.img that comes with CM 9.1 ICS. The way to do this is:
adb reboot bootloader
Then unzip the cm-9.1-mango.zip file, find the boot.img file, and install it using fastboot:
./platform-tools/fastboot flash boot /tmp/f/boot.img
Then everything will work! My problem is that I had previously installed CM 7.2 and the install script for CM 9.0 doesn't update the boot partition from that. Anyway, of course it's user error, and now I'm glad I have it working. Now I get to play around with ICS on my favorite phone!
Toughdroid said:
Thanks for the suggestion. No luck on that. I formatted /system, wiped the cache, /data, and Dalvik cache. Nothing changed. Anything else I should do? Surely I'm not the only one getting this?
Thanks
Click to expand...
Click to collapse
follow the same procedure but do not format system, it will work then
Now that the galaxy player 4.0 has a stable 3.0 kernel and the hardware appears to be working. I am thinking of attempting to do one last build of cm9 to cm10.2 based on the current 3.0 kernel source and device tree. I was just curios to see who would be interested.
I think having one final build of the older versions of cyanogenmod would give people options if they think cm11 runs a little slow.
dorfd1 said:
Now that the galaxy player 4.0 has a stable 3.0 kernel and the hardware appears to be working. I am thinking of attempting to do one last build of cm9 to cm10.2 based on the current 3.0 kernel source and device tree. I was just curios to see who would be interested.
I think having one final build of the older versions of cyanogenmod would give people options if they think cm11 runs a little slow.
Click to expand...
Click to collapse
That's a nice idea! I thought of doing a last cm10.2 because it was known to be "smoother" than cm11 but I never got the time to do it. (because of school) You decide whether to do it or not.
Envoyé de mon Nexus 7 en utilisant Tapatalk
zaclimon said:
That's a nice idea! I thought of doing a last cm10.2 because it was known to be "smoother" than cm11 but I never got the time to do it. (because of school) You decide whether to do it or not.
Envoyé de mon Nexus 7 en utilisant Tapatalk
Click to expand...
Click to collapse
my benifit for doing this would be getting more experience in compiling roms.
Code:
curl: (22) The requested URL returned error: 404
Server does not provide clone.bundle; ignoring.
is the error I get during repo sync. Happens no matter what version I try to sync.
dorfd1 said:
Code:
curl: (22) The requested URL returned error: 404
Server does not provide clone.bundle; ignoring.
is the error I get during repo sync. Happens no matter what version I try to sync.
Click to expand...
Click to collapse
Hmm what command do you use while syncing? Also it would be best to compile each CM version in a different folder.
Also for the branches:
ics for CM9
jellybean for CM10
cm-10.1 for CM10.1
cm-10.2 for CM10.2
It could be possible that you used cm-9 while it's not the right branch. Just a quick note.
I used cm-9.1 for ICS. But I also tried syncing cm12 and had the same issue.
dorfd1 said:
I used cm-9.1 for ICS. But I also tried syncing cm12 and had the same issue.
Click to expand...
Click to collapse
Hmm okk well CM had a bit of issues so actually you could used cm-9.1.0 to build but the thing is, this branch was frozen code prior to the release of CM9.1 and does not feature the latest commits from the ICS branch of CM which is why the best would be to use the ics branch instead of the cm-9.1.0. Also for CM12, it's cm-12.0 and not cm-12. You can check the manifest to be sure that the branch you're entering while doing repo init fits for the branch for the version you wish compiling to.
https://github.com/CyanogenMod/android
zaclimon said:
Hmm okk well CM had a bit of issues so actually you could used cm-9.1.0 to build but the thing is, this branch was frozen code prior to the release of CM9.1 and does not feature the latest commits from the ICS branch of CM which is why the best would be to use the ics branch instead of the cm-9.1.0. Also for CM12, it's cm-12.0 and not cm-12. You can check the manifest to be sure that the branch you're entering while doing repo init fits for the branch for the version you wish compiling to.
https://github.com/CyanogenMod/android
Click to expand...
Click to collapse
when I said cm12 I meant cm-12.0. I'm gonna try to resync tomorrow
NVM I haven't read enough it seems...
I'm still getting
Code:
curl: (22) The requested URL returned error: 404
Server does not provide clone.bundle; ignoring.
will the code still sync?
dorfd1 said:
I'm still getting
Code:
curl: (22) The requested URL returned error: 404
Server does not provide clone.bundle; ignoring.
will the code still sync?
Click to expand...
Click to collapse
Are you getting this for every time or it shows once in a while?
Envoyé de mon Nexus 7 en utilisant Tapatalk
zaclimon said:
Are you getting this for every time or it shows once in a while?
Envoyé de mon Nexus 7 en utilisant Tapatalk
Click to expand...
Click to collapse
I am getting this every time.
dorfd1 said:
I am getting this every time.
Click to expand...
Click to collapse
I don't think the code would get synced at this time. I'll try to sync CM12's source tomorrow to see if I get the same problem as you. Also sometimes your internet connection could be the cause (but I highly doubt this as I guess that it was working perfectly fine before)
zaclimon said:
I don't think the code would get synced at this time. I'll try to sync CM12's source tomorrow to see if I get the same problem as you. Also sometimes your internet connection could be the cause (but I highly doubt this as I guess that it was working perfectly fine before)
Click to expand...
Click to collapse
I think it synced the source code fine.
I fixed it.
Code:
target Prebuilt: (/home/owner/android/system/out/target/product/ypg1/kernel)
Boot image: /home/owner/android/system/out/target/product/ypg1/boot.img
/home/owner/android/system/out/host/linux-x86/bin/acp /home/owner/android/system/out/target/product/ypg1/boot.img /home/owner/android/system/out/target/product/ypg1/recovery.img
Package target files: /home/owner/android/system/out/target/product/ypg1/obj/PACKAGING/target_files_intermediates/cm_ypg1-target_files-eng.owner.zip
Package OTA: /home/owner/android/system/out/target/product/ypg1/cm_ypg1-ota-eng.owner.zip
./build/tools/releasetools/ota_from_target_files -v \
-p /home/owner/android/system/out/host/linux-x86 \
-k build/target/product/security/testkey \
--backup=true \
--override_device=YP-G1,ypg1 \
/home/owner/android/system/out/target/product/ypg1/obj/PACKAGING/target_files_intermediates/cm_ypg1-target_files-eng.owner.zip /home/owner/android/system/out/target/product/ypg1/cm_ypg1-ota-eng.owner.zip
unzipping target target-files...
running: unzip -o -q /home/owner/android/system/out/target/product/ypg1/obj/PACKAGING/target_files_intermediates/cm_ypg1-target_files-eng.owner.zip -d /tmp/targetfiles-ZOgowC
recovery: unknown option "defaults"
boot: unknown option "defaults"
cache: unknown option "defaults"
datadata: unknown option "defaults"
/dev/lvpool/system: unknown option "ro"
/dev/lvpool/userdata: unknown option "noatime"
/dev/lvpool/userdata: unknown option "nodev"
/dev/lvpool/userdata: unknown option "nosuid"
/dev/lvpool/userdata: unknown option "nomblk_io_submit"
/dev/lvpool/userdata: unknown option "errors=panic"
/devices/platform/s3c-sdhci.0/mmc_host/mmc0: unknown option "defaults"
/devices/platform/s3c-sdhci.2/mmc_host/mmc1: unknown option "defaults"
/dev/block/zram0: unknown option "defaults"
--- target info ---
blocksize = (int) 131072
default_system_dev_certificate = (str) build/target/product/security/testkey
extfs_sparse_flag = (str) -s
fs_type = (str) ext4
fstab = (dict) {'recovery': <common.Partition object at 0x250c050>, '/devices/platform/s3c-sdhci.0/mmc_host/mmc0': <common.Partition object at 0x250c290>, 'cache': <common.Partition object at 0x250c150>, 'boot': <common.Partition object at 0x250c110>, '/dev/block/zram0': <common.Partition object at 0x250c2d0>, '/dev/lvpool/system': <common.Partition object at 0x250c1d0>, '/devices/platform/s3c-sdhci.2/mmc_host/mmc1': <common.Partition object at 0x250c310>, 'datadata': <common.Partition object at 0x250c190>, '/dev/lvpool/userdata': <common.Partition object at 0x250c250>}
mkyaffs2_extra_flags = (str) -c 4096 -s 128
recovery_api_version = (int) 2
system_size = (int) 395264000
tool_extensions = (str) device/samsung/ypg1
using device-specific extensions in device/samsung/ypg1
Traceback (most recent call last):
File "./build/tools/releasetools/ota_from_target_files", line 863, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/ota_from_target_files", line 831, in main
WriteFullOTAPackage(input_zip, output_zip)
File "./build/tools/releasetools/ota_from_target_files", line 401, in WriteFullOTAPackage
script.Mount("/system")
File "/home/owner/android/system/build/tools/releasetools/edify_generator.py", line 155, in Mount
p = fstab[mount_point]
KeyError: '/system'
make: *** [/home/owner/android/system/out/target/product/ypg1/cm_ypg1-ota-eng.owner.zip] Error 1
Cyanogenmod 10 compiled fine but this happens when it trys to create the zip.
dorfd1 said:
Code:
target Prebuilt: (/home/owner/android/system/out/target/product/ypg1/kernel)
Boot image: /home/owner/android/system/out/target/product/ypg1/boot.img
/home/owner/android/system/out/host/linux-x86/bin/acp /home/owner/android/system/out/target/product/ypg1/boot.img /home/owner/android/system/out/target/product/ypg1/recovery.img
Package target files: /home/owner/android/system/out/target/product/ypg1/obj/PACKAGING/target_files_intermediates/cm_ypg1-target_files-eng.owner.zip
Package OTA: /home/owner/android/system/out/target/product/ypg1/cm_ypg1-ota-eng.owner.zip
./build/tools/releasetools/ota_from_target_files -v \
-p /home/owner/android/system/out/host/linux-x86 \
-k build/target/product/security/testkey \
--backup=true \
--override_device=YP-G1,ypg1 \
/home/owner/android/system/out/target/product/ypg1/obj/PACKAGING/target_files_intermediates/cm_ypg1-target_files-eng.owner.zip /home/owner/android/system/out/target/product/ypg1/cm_ypg1-ota-eng.owner.zip
unzipping target target-files...
running: unzip -o -q /home/owner/android/system/out/target/product/ypg1/obj/PACKAGING/target_files_intermediates/cm_ypg1-target_files-eng.owner.zip -d /tmp/targetfiles-ZOgowC
recovery: unknown option "defaults"
boot: unknown option "defaults"
cache: unknown option "defaults"
datadata: unknown option "defaults"
/dev/lvpool/system: unknown option "ro"
/dev/lvpool/userdata: unknown option "noatime"
/dev/lvpool/userdata: unknown option "nodev"
/dev/lvpool/userdata: unknown option "nosuid"
/dev/lvpool/userdata: unknown option "nomblk_io_submit"
/dev/lvpool/userdata: unknown option "errors=panic"
/devices/platform/s3c-sdhci.0/mmc_host/mmc0: unknown option "defaults"
/devices/platform/s3c-sdhci.2/mmc_host/mmc1: unknown option "defaults"
/dev/block/zram0: unknown option "defaults"
--- target info ---
blocksize = (int) 131072
default_system_dev_certificate = (str) build/target/product/security/testkey
extfs_sparse_flag = (str) -s
fs_type = (str) ext4
fstab = (dict) {'recovery': <common.Partition object at 0x250c050>, '/devices/platform/s3c-sdhci.0/mmc_host/mmc0': <common.Partition object at 0x250c290>, 'cache': <common.Partition object at 0x250c150>, 'boot': <common.Partition object at 0x250c110>, '/dev/block/zram0': <common.Partition object at 0x250c2d0>, '/dev/lvpool/system': <common.Partition object at 0x250c1d0>, '/devices/platform/s3c-sdhci.2/mmc_host/mmc1': <common.Partition object at 0x250c310>, 'datadata': <common.Partition object at 0x250c190>, '/dev/lvpool/userdata': <common.Partition object at 0x250c250>}
mkyaffs2_extra_flags = (str) -c 4096 -s 128
recovery_api_version = (int) 2
system_size = (int) 395264000
tool_extensions = (str) device/samsung/ypg1
using device-specific extensions in device/samsung/ypg1
Traceback (most recent call last):
File "./build/tools/releasetools/ota_from_target_files", line 863, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/ota_from_target_files", line 831, in main
WriteFullOTAPackage(input_zip, output_zip)
File "./build/tools/releasetools/ota_from_target_files", line 401, in WriteFullOTAPackage
script.Mount("/system")
File "/home/owner/android/system/build/tools/releasetools/edify_generator.py", line 155, in Mount
p = fstab[mount_point]
KeyError: '/system'
make: *** [/home/owner/android/system/out/target/product/ypg1/cm_ypg1-ota-eng.owner.zip] Error 1
Cyanogenmod 10 compiled fine but this happens when it trys to create the zip.
Click to expand...
Click to collapse
cm 10 probably uses and older version of fstab... Are you using the cm-11.0 tree?
https://github.com/bbelos/android_device_samsung_ypg1/blob/cm-10.1/recovery.fstab
EDIT: * I meant to ask "Are you using the cm-11.0 device tree?"
@dorfd1 For the sake of consistency between the versions, I think it would be better to not change the partition layout (which is expressed with the errors from your compiling). Also there's some stuff in the CM11 tree that won't work with the older CM versions. The best option would be the port-foward the newer fixes to the old CM's.
Hi,
I have a Wiko Wax smartphone (Official page)
It's an NVIDIA® Tegra® 4i with Quad Core, 1.7 GHz soc.
I trying to build, in first time, a clean CM11.0 ROM without any bug. After what I'll try to make an CM12.1.
I have follow this GUIDE
I'm using mucski's device tree to build :
https://github.com/mucski/device_nvidia_s8515/ --> forked from Cpasjuste
https://github.com/mucski/kernel_nvidia_s8515 --> forked from Cpasjuste
https://github.com/mucski/proprietary_vendor_nvidia --> forked from TheMuppets
I succeful build a flashable zip but I want to fix some bugs:
1# can't move App to SD
2# the led color is orange (red/green) in charge
3# I've got "screen glitch" (?) sometimes
4# the bleutooth works in call but I can't stream music
5# I wan't add an OC kernel
My original thread is on wikoandco site. HERE but as you have understand it's in french because I'm !
Edit:
I'm found a CM12.1 working ROM for the Nvidia Sheildtablet with device tree which is nearly the same! Do you think I can use those sources for build a CM12.1 fo my the Wax ?
And what I need to edite for make it work ?
Hi, I'm not an expert so I can't help and unfortunately I don't know french, but I'm interested about your work because I'd like to have CM on my Wax!
Did you build the ROM without bug or you still have problems?
lemon_lama said:
Hi, I'm not an expert so I can't help and unfortunately I don't know french, but I'm interested about your work because I'd like to have CM on my Wax!
Did you build the ROM without bug or you still have problems?
Click to expand...
Click to collapse
Hi,
If build a working ROM but stile have all bugs mentioned in first post.
Pre-requires:
1# Install TWPR
(tuto in french)
Installation :
1# Backup your ROM (make sure your chose external sd folder)
2# Wipe Data / Factory reset / System / Internal storage
3# Install .zip
4# Reboot
You can find ZIP:
cm-11-20151022-UNOFFICIAL-s8515.zip
Google Apps:
3# Add .zip to list
Got to http://opengapps.org/
Chose ARM / 4.4 / variant you want
I use pico....
There's a folder duplication in gallery because Cpasjuste try to merge external and internal storage....
You can fix by editing /system/builp.prop
replace :
Code:
swapsd @ cpasjuste
config.swapsd=true
by:
Code:
swapsd @ cpasjuste
config.swapsd=false
CM13.0 branch
Hi, I'm trying to build a CM13.0 ROM for this device.
I use my specific manifest .repo/local_manifests/core.entin.xml
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<manifest>
<remove-project name="CyanogenMod/android_external_tinycompress"/>
<project path="external/tinycompress" name="BriceChk/tinycompress" remo$
<remove-project name="CyanogenMod/android_bootable_recovery"/>
<project path="bootable/recovery" name="omnirom/android_bootable_recove$
<!-- <project path="bootable/recovery" name="TeamWin/Team-Win-Recovery-Proje$
<project path="external/busybox" name="omnirom/android_external_busybox$
</manifest>
you can find my device tree :
https://github.com/coreentin/android_device_nvidia_s8515
I use following command to make the ROM :
Code:
source build/envsetup.sh
lunch cm_s8515-userdebug
make -j5 bacon
but the following error:
Code:
build/tools/generate-notice-files.py /home/corentin/00_Android_build/WAX/CM13.0/out/target/product/s8515/obj/NOTICE.txt /home/corentin/00_Android_build/WAX/CM13.0/out/target/product/s8515/obj/NOTICE.html "Notices for files contained in the filesystem images in this directory:" /home/corentin/00_Android_build/WAX/CM13.0/out/target/product/s8515/obj/NOTICE_FILES/src
Combining NOTICE files into HTML
Combining NOTICE files into text
Installing recovery patch to system partition
Warning: could not find SYSTEM/build.prop in <built-in function zip>
using prebuilt recovery.img from BOOTABLE_IMAGES...
using prebuilt boot.img from BOOTABLE_IMAGES...
Traceback (most recent call last):
File "./build/tools/releasetools/make_recovery_patch", line 55, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/make_recovery_patch", line 51, in main
common.MakeRecoveryPatch(input_dir, output_sink, recovery_img, boot_img)
File "/home/corentin/00_Android_build/WAX/CM13.0/build/tools/releasetools/common.py", line 1460, in MakeRecoveryPatch
_, _, patch = d.ComputePatch()
File "/home/corentin/00_Android_build/WAX/CM13.0/build/tools/releasetools/common.py", line 1146, in ComputePatch
p = Run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
File "/home/corentin/00_Android_build/WAX/CM13.0/build/tools/releasetools/common.py", line 100, in Run
return subprocess.Popen(args, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
make: *** [/home/corentin/00_Android_build/WAX/CM13.0/out/target/product/s8515/system/bin/install-recovery.sh] Erreur 1
#### make failed to build some targets (01:19 (mm:ss)) ####
Is anyone can help me ?
Hi! I also have a Wiko Wax 4G (S8515) and I would love to get Android 6.0 working on this. I'm not a experienced person regarding creating roms, but I would like to help whatever I can on putting this to work.
Have you got any new news regading the rom?
Core.entin said:
Hi, I'm trying to build a CM13.0 ROM for this device.
I use my specific manifest .repo/local_manifests/core.entin.xml
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<manifest>
<remove-project name="CyanogenMod/android_external_tinycompress"/>
<project path="external/tinycompress" name="BriceChk/tinycompress" remo$
<remove-project name="CyanogenMod/android_bootable_recovery"/>
<project path="bootable/recovery" name="omnirom/android_bootable_recove$
<!-- <project path="bootable/recovery" name="TeamWin/Team-Win-Recovery-Proje$
<project path="external/busybox" name="omnirom/android_external_busybox$
</manifest>
you can find my device tree :
https://github.com/coreentin/android_device_nvidia_s8515
I use following command to make the ROM :
Code:
source build/envsetup.sh
lunch cm_s8515-userdebug
make -j5 bacon
but the following error:
Code:
build/tools/generate-notice-files.py /home/corentin/00_Android_build/WAX/CM13.0/out/target/product/s8515/obj/NOTICE.txt /home/corentin/00_Android_build/WAX/CM13.0/out/target/product/s8515/obj/NOTICE.html "Notices for files contained in the filesystem images in this directory:" /home/corentin/00_Android_build/WAX/CM13.0/out/target/product/s8515/obj/NOTICE_FILES/src
Combining NOTICE files into HTML
Combining NOTICE files into text
Installing recovery patch to system partition
Warning: could not find SYSTEM/build.prop in <built-in function zip>
using prebuilt recovery.img from BOOTABLE_IMAGES...
using prebuilt boot.img from BOOTABLE_IMAGES...
Traceback (most recent call last):
File "./build/tools/releasetools/make_recovery_patch", line 55, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/make_recovery_patch", line 51, in main
common.MakeRecoveryPatch(input_dir, output_sink, recovery_img, boot_img)
File "/home/corentin/00_Android_build/WAX/CM13.0/build/tools/releasetools/common.py", line 1460, in MakeRecoveryPatch
_, _, patch = d.ComputePatch()
File "/home/corentin/00_Android_build/WAX/CM13.0/build/tools/releasetools/common.py", line 1146, in ComputePatch
p = Run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
File "/home/corentin/00_Android_build/WAX/CM13.0/build/tools/releasetools/common.py", line 100, in Run
return subprocess.Popen(args, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
make: *** [/home/corentin/00_Android_build/WAX/CM13.0/out/target/product/s8515/system/bin/install-recovery.sh] Erreur 1
#### make failed to build some targets (01:19 (mm:ss)) ####
Is anyone can help me ?
Click to expand...
Click to collapse
After upgrade my linux mitn to 18 (Sarah), and follow this GUIDE
I can't build a zip ROM anymore :
Code:
...
LD fs/built-in.o
Copy: /home/corentin/00_android_build/CM13.0/out/target/product/s8515/obj/STATIC_LIBRARIES/libext6_intermediates/libip6t_ipv6header.c
Copy: /home/corentin/00_android_build/CM13.0/out/target/product/s8515/obj/STATIC_LIBRARIES/libext6_intermediates/libip6t_NETMAP.c
Copy: /home/corentin/00_android_build/CM13.0/out/target/product/s8515/obj/STATIC_LIBRARIES/libext6_intermediates/libip6t_REDIRECT.c
Copy: /home/corentin/00_android_build/CM13.0/out/target/product/s8515/obj/STATIC_LIBRARIES/libext6_intermediates/libip6t_REJECT.c
Copy: /home/corentin/00_android_build/CM13.0/out/target/product/s8515/obj/STATIC_LIBRARIES/libext6_intermediates/libip6t_icmp6.c
Makefile:130*: la recette pour la cible «*sub-make*» a échouée
make[1]: *** [sub-make] Erreur 2
make[1]*: on quitte le répertoire «*/home/corentin/00_android_build/CM13.0/kernel/nvidia/s8515*»
build/core/tasks/kernel.mk:286*: la recette pour la cible «*TARGET_KERNEL_BINARIES*» a échouée
make: *** [TARGET_KERNEL_BINARIES] Erreur 2
make: *** Attente des tâches non terminées....
make*: on quitte le répertoire «*/home/corentin/00_android_build/CM13.0*»
I want to use a 3rd party jar in the system app - Settings.
I have tried two methods, but both failed.
The Android version is 4.2.2 JB.
The first method is that I put the jar file into /packages/apps/Settings/ and modify the Android.mk.
Code:
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_JAVA_LIBRARIES := bouncycastle telephony-common
LOCAL_STATIC_JAVA_LIBRARIES := guava android-support-v4 jsr305 nxpnfclib
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_PACKAGE_NAME := Settings
LOCAL_CERTIFICATE := platform
LOCAL_PROGUARD_FLAG_FILES := proguard.flags
include $(BUILD_PACKAGE)
include $(CLEAR_VARS)
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := nxpnfclib.jar
include $(BUILD_MULTI_PREBUILT)
# Use the folloing include to make our test apk.
include $(call all-makefiles-under,$(LOCAL_PATH))
Some proguard warnings show up:
Code:
Warning: class [com/nxp/nfclib/ntag/╦К.class] unexpectedly contains class [com.nxp.nfclib.ntag.ˊ]
Warning: there were 30 classes in incorrectly named files. You should make sure all file names correspond
to their class names. The directory hierarchies must correspond to the package hierarchies. If you don't mind
the mentioned classes not being written out, you could try your luck using the '-ignorewarnings' option.
Error: Please correct the above warnings first. make: *** [out/target/common/obj/APPS/Settings_intermed
iates/proguard.classes.jar] Error 1
Then I add some proguard flags to prevent this warnings. I can compile Android now. However, when I boot the system, some errors show up:
Code:
W/dalvikvm( 732): Unable to resolve superclass of Lcom/nxp/nfclib/ntag/NTag213215216; (1855)
W/dalvikvm( 732): Link of class 'Lcom/nxp/nfclib/ntag/NTag213215216;' failed
W/dalvikvm( 732): Unable to resolve superclass of Lcom/nxp/nfclib/ntag/NTag213F216F; (1844)
W/dalvikvm( 732): Link of class 'Lcom/nxp/nfclib/ntag/NTag213F216F;' failed
E/dalvikvm( 732): Could not find class 'com.nxp.nfclib.ntag.NTag213F216F', referenced from method com.nxp.nfclib.NxpNfcLib.ˊ
Another mothod: I put the jar file to /prebuilts/misc/common/nxp and write an Android.mk:
Code:
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_PREBUILT_JAVA_LIBRARIES := \
nxpnfclib$(COMMON_JAVA_PACKAGE_SUFFIX)
LOCAL_MODULE_TAGS := optional
include $(BUILD_HOST_PREBUILT)
Then modify /packages/apps/Settings/Android.mk:
Code:
LOCAL_STATIC_JAVA_LIBRARIES := guava android-support-v4 jsr305 nxpnfclib
However, when I compile the whole AOSP, the same proguard warnings show up:
Code:
Warning: class [com/nxp/nfclib/ntag/╦К.class] unexpectedly contains class [com.nxp.nfclib.ntag.ˊ]
Warning: there were 30 classes in incorrectly named files. You should make sure all file names correspond
to their class names. The directory hierarchies must correspond to the package hierarchies. If you don't mind
the mentioned classes not being written out, you could try your luck using the '-ignorewarnings' option.
Error: Please correct the above warnings first. make: *** [out/target/common/obj/APPS/Settings_interm
ediates/proguard.classes.jar] Error 1
Is there some other way to add the jar?
The jar runs well if I use Android Studio to build an app.
Can I put the jar in the system instead of merge it into the system?