Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,812,386 Members 38,394 Now Online
XDA Developers Android and Mobile Development Forum

[Q] android.policy.jar in stock odexed rom

Tip us?
 
xansoft
Old
(Last edited by xansoft; 22nd June 2014 at 01:35 AM.)
#1  
Junior Member - OP
Thanks Meter 0
Posts: 4
Join Date: Nov 2013
Default [Q] android.policy.jar in stock odexed rom

Hi!
I got a samsung galaxy young (S6310N JB 4.1.2) with a deodexed rooted rom and I have edited android.policy.jar in order to edit the power menu.
Everything work fine but now I need make the same edit in another samsung galaxy y s6310N, but with a stock odexed rom...

I've followed this guide:

http://forum.xda-developers.com/show...76&postcount=1

without succes...every time I odex back my edited android.policy.jar the device start in bootloop...

here is the logcat that loop with this error:

Code:
1:23:29.549: E/dalvikvm(2734): /system/framework/android.policy.jar odex has stale dependencies
01-01 01:23:29.559: E/dalvikvm(2734): /system/framework/services.jar odex has stale dependencies
01-01 01:23:29.559: E/dalvikvm(2734): /system/framework/apache-xml.jar odex has stale dependencies
01-01 01:23:29.559: E/dalvikvm(2734): /system/framework/sec_edm.jar odex has stale dependencies
01-01 01:23:29.559: E/dalvikvm(2734): /system/framework/seccamera.jar odex has stale dependencies
01-01 01:23:29.739: E/BandwidthController(2733): runIptablesCmd(): failed /system/bin/iptables -t raw -N bw_raw_PREROUTING res=256
01-01 01:23:29.739: E/BandwidthController(2733): runIptablesCmd(): failed /system/bin/ip6tables -t raw -N bw_raw_PREROUTING res=256
01-01 01:23:30.009: E/(2732): Qint android::get_number_of_cameras(): E
01-01 01:23:30.069: E/(2732): libaudcal: acph_init() - Allocated memory for acph_main_buffer!!
01-01 01:23:30.069: E/Diag_Lib(2732): actp_diag_init: call diag init function with 4038933D
01-01 01:23:30.069: E/Diag_Lib(2732):  Diag_LSM_Init: Failed to open handle to diag driver, error = 13
01-01 01:23:30.069: E/Diag_Lib(2732): actp_diag_init: diag init failed
01-01 01:23:30.179: E/AudioFlinger(2732): int android::load_audio_interface(char const*, audio_hw_device_t**) couldn't load audio hw module audio.usb (No such file or directory)
01-01 01:23:30.179: E/AudioFlinger(2732): int android::load_audio_interface(char const*, audio_hw_device_t**) couldn't load audio hw module audio.wfd (No such file or directory)
01-01 01:23:30.279: E/GestureDeviceService(2732): Could not load gesture HAL module
01-01 01:23:30.389: E/JNIHelp(2734): Native registration unable to find class 'com/android/server/Watchdog', aborting
01-01 01:23:30.389: A/libc(2734): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 2734 (zygote)
01-01 01:23:31.679: E/SMD(137): DCD ON
01-01 01:23:34.679: E/SMD(137): DCD ON
01-01 01:23:36.189: E/dalvikvm(2893): /system/framework/android.policy.jar odex has stale dependencies
01-01 01:23:36.189: E/dalvikvm(2893): /system/framework/services.jar odex has stale dependencies
01-01 01:23:36.199: E/dalvikvm(2893): /system/framework/apache-xml.jar odex has stale dependencies
01-01 01:23:36.199: E/dalvikvm(2893): /system/framework/sec_edm.jar odex has stale dependencies
01-01 01:23:36.199: E/dalvikvm(2893): /system/framework/seccamera.jar odex has stale dependencies
01-01 01:23:36.379: E/BandwidthController(2892): runIptablesCmd(): failed /system/bin/iptables -t raw -N bw_raw_PREROUTING res=256
01-01 01:23:36.389: E/BandwidthController(2892): runIptablesCmd(): failed /system/bin/ip6tables -t raw -N bw_raw_PREROUTING res=256
01-01 01:23:36.639: E/(2891): Qint android::get_number_of_cameras(): E
01-01 01:23:36.719: E/(2891): libaudcal: acph_init() - Allocated memory for acph_main_buffer!!
01-01 01:23:36.719: E/Diag_Lib(2891): actp_diag_init: call diag init function with 4002B33D
01-01 01:23:36.719: E/Diag_Lib(2891):  Diag_LSM_Init: Failed to open handle to diag driver, error = 13
01-01 01:23:36.719: E/Diag_Lib(2891): actp_diag_init: diag init failed
01-01 01:23:36.819: E/AudioFlinger(2891): int android::load_audio_interface(char const*, audio_hw_device_t**) couldn't load audio hw module audio.usb (No such file or directory)
01-01 01:23:36.819: E/AudioFlinger(2891): int android::load_audio_interface(char const*, audio_hw_device_t**) couldn't load audio hw module audio.wfd (No such file or directory)
01-01 01:23:36.929: E/GestureDeviceService(2891): Could not load gesture HAL module
Someone can help me or have any suggestion of what can be the problem?

Thanks very much!
 
xansoft
Old
#2  
Junior Member - OP
Thanks Meter 0
Posts: 4
Join Date: Nov 2013
I found the problem. using dexopt-wrapper to make android.policy.odex I was not supposed to add ":/system/framework/android.policy.jar" in the list of dependencies...

Code:
/dexopt-wrapper ./android.policy.jar ./android.policy_hacked.odex /system/framework/core.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/framework2.jar:/system/framework/framework_ext.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar:/system/framework/sec_edm.jar:/system/framework/seccamera.jar
so i remove it and everything works fine now
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes