Hi there,
I am trying to deodex LatinIME.odex file from the latest MIUI and having this error :
Code:
UNEXPECTED TOP-LEVEL EXCEPTION:
org.jf.dexlib.Util.ExceptionWithContext: regCount does not match the number of a
rguments of the method
at org.jf.dexlib.Util.ExceptionWithContext.withContext(ExceptionWithCont
ext.java:54)
at org.jf.dexlib.Code.InstructionIterator.IterateInstructions(Instructio
nIterator.java:92)
at org.jf.dexlib.CodeItem.readItem(CodeItem.java:154)
at org.jf.dexlib.Item.readFrom(Item.java:76)
at org.jf.dexlib.OffsettedSection.readItems(OffsettedSection.java:48)
at org.jf.dexlib.Section.readFrom(Section.java:143)
at org.jf.dexlib.DexFile.<init>(DexFile.java:431)
at org.jf.baksmali.main.main(main.java:265)
Caused by: java.lang.RuntimeException: regCount does not match the number of arg
uments of the method
at org.jf.dexlib.Code.Format.Instruction3rc.checkItem(Instruction3rc.jav
a:129)
at org.jf.dexlib.Code.Format.Instruction3rc.<init>(Instruction3rc.java:7
9)
at org.jf.dexlib.Code.Format.Instruction3rc.<init>(Instruction3rc.java:4
4)
at org.jf.dexlib.Code.Format.Instruction3rc$Factory.makeInstruction(Inst
ruction3rc.java:145)
at org.jf.dexlib.Code.InstructionIterator.IterateInstructions(Instructio
nIterator.java:84)
... 6 more
Error occured at code address 0
code_item @0xa90c
I type this cmd line to get that :
java -jar baksmali.jar -d framework -x LatinIME.odex
In the frameworkd folder, I just put all the files found in the \system\framework folder from the ROM.
I don't understand quite well the -c option, maybe I got to play with it, but how ?
Thanks for your help
Ok, I found here that I had to specify an other API Level that de default one (14) set by the baksmali tool.
Whether I don't know what is the API Level for...
Still a newby at this
hello,
i open this thread to collect informations about a common problem that happens after flashing new roms
this thread has generic purpose, and is not intended for a specific board...
- suggestions on how to discover the cause of the problem
- suggestions on how to fix the problem
anyone that think to have some useful informations on this issue can insert his post
i am not an expert ( and still my wifi is not working )
but i collected some informations, and i would like to share them
The first thing is:
what happens when from the settings i click on wifi to turn it on
to see this, i opened a terminal emulator session
and i have written this:
adb logcat > 'some file name on a writable directory' (for example , i redirected the output to the external sd card)
here is what was written on the file (extracting from the file only the last part, that is the output related to my action of wifi activation):
D/WifiHW ( 368): Read wifi chip type OK ! wifi_chip_type = RK901
D/WifiHW ( 368): wifi_load_driver: DRIVER_MODULE_PATH = /system/lib/modules/rkwifi.ko, DRIVER_MODULE_ARG =
D/BluetoothAdapterService(1097373104)( 811): getState(): mAdapterProperties: [email protected] 4168aef0
D/BluetoothAdapterService(1097373104)( 811): getState(): mAdapterProperties: [email protected] 4168aef0
D/WifiService( 368): setWifiEnabled: true pid=870, uid=1000
D/AudioHardwareALSA( 109): Audio exiting sandby will open audio device
D/AudioHardwareALSA( 109): AudioStreamOutALSA::standby().....
D/WifiHW ( 368): wifi_load_driver: driver load failed
D/WifiHW ( 368): Unable to unload driver module "wlan": No such file or directory
E/WifiStateMachine( 368): Failed to load driver!
E/WifiStateMachine( 368): DriverFailedState
Searching on the web this string: "Read wifi chip type OK ! wifi_chip_type"
i found this:
https://github.com/aloksinha2001/pi****u-3.0.8-alok/blob/master/RK30_MT5931_MT6622/wifi/wifi.c
into procedure check_wifi_chip_type() i saw exactly this part:
else if (0 == strncmp(buf, "RK901", strlen("RK901")) )
{
wifi_chip_type = RK901;
ALOGD("Read wifi chip type OK ! wifi_chip_type = RK901");
}
here is compared the value of string buf with "RK901"
the string buf is read from this file: "/sys/class/rkwifi/chip"
(so i suppose that this file has been written before by some other procedure)
so, i searched the caller procedure of check_wifi_chip_type():
in the same source i find this caller:
int wifi_load_driver()
{
#ifdef WIFI_DRIVER_MODULE_PATH
char driver_status[PROPERTY_VALUE_MAX];
int count = 100; /* wait at most 20 seconds for completion */
int type;
char path[64];
if (is_wifi_driver_loaded()) {
return 0;
}
strcpy(path, DRIVER_MODULE_PATH);
type = check_wifi_chip_type();
if((type == RK901) || (type == RK903) || (type == BCM4330)) {
strcpy(path, "/system/lib/modules/rkwifi.ko");
} else if (type == RTL8188CU) {
....
this procedure as first step checks if the driver is already loaded,
if not:
the driver module path is set by default to "/system/lib/modules/wlan.ko"
Then basing on the chip type is got a more specific path:
for example, for RK901/RK903/BCM4330 the path is set to : "/system/lib/modules/rkwifi.ko"
Then, is checked if the file does exist, and if not the path is seth to the default DRIVER_MODULE_PATH,
that is "/system/lib/modules/wlan.ko"
// judge if the KO file exist, if not, insmod wlan.ko
if (access(path, F_OK) < 0) {
ALOGD("DRIVER_MODULE_PATH = %s (Not such file)...", path);
strcpy(path, DRIVER_MODULE_PATH);
}
Then,
is called insmod (insert module),
to load the driver file in 'memory' (a new module into the kernel, i suppose):
if (insmod(path, DRIVER_MODULE_ARG) < 0) {
ALOGD("%s: driver load failed", __FUNCTION__);
wifi_unload_driver();
if(retry_count-- > 0) goto retry_load_driver;
return -1;
}
Looking the logcat above,
the flow in my case stops here, with : wifi_load_driver: driver load failed
so something happened in insmod:it is not able to load the file /system/lib/modules/rkwifi.ko in memory or initialize it
(the file is found, else the process should stop before, when checking access to the file)
The insmod function does this:
allocates memory for the structure name (type utsname) :
memset(&name, 0, sizeof(name));
and load the file on this area:
module = load_file(filename_release, &size);
Then is checked if the file has been loaded
if (!module)
return -1;
and finally
the module is 'initialized':
ret = init_module(module, size, args);
One of this two events went wrong, because insmod returned -1
My investigation stops here... i am not able to proceed more...
but i am open to all suggestions and hints
Thank you!!
Vicolodo said:
The first thing is:
what happens when from the settings i click on wifi to turn it on
to see this, i opened a terminal emulator session
and i have written this:
adb logcat > 'some file name on a writable directory' (for example , i redirected the output to the external sd card)
here is what was written on the file (extracting from the file only the last part, that is the output related to my action of wifi activation):
D/WifiHW ( 368): Read wifi chip type OK ! wifi_chip_type = RK901
D/WifiHW ( 368): wifi_load_driver: DRIVER_MODULE_PATH = /system/lib/modules/rkwifi.ko, DRIVER_MODULE_ARG =
D/BluetoothAdapterService(1097373104)( 811): getState(): mAdapterProperties: [email protected] 4168aef0
D/BluetoothAdapterService(1097373104)( 811): getState(): mAdapterProperties: [email protected] 4168aef0
D/WifiService( 368): setWifiEnabled: true pid=870, uid=1000
D/AudioHardwareALSA( 109): Audio exiting sandby will open audio device
D/AudioHardwareALSA( 109): AudioStreamOutALSA::standby().....
D/WifiHW ( 368): wifi_load_driver: driver load failed
D/WifiHW ( 368): Unable to unload driver module "wlan": No such file or directory
E/WifiStateMachine( 368): Failed to load driver!
E/WifiStateMachine( 368): DriverFailedState
Searching on the web this string: "Read wifi chip type OK ! wifi_chip_type"
i found this:
https://github.com/aloksinha2001/pi****u-3.0.8-alok/blob/master/RK30_MT5931_MT6622/wifi/wifi.c
into procedure check_wifi_chip_type() i saw exactly this part:
else if (0 == strncmp(buf, "RK901", strlen("RK901")) )
{
wifi_chip_type = RK901;
ALOGD("Read wifi chip type OK ! wifi_chip_type = RK901");
}
here is compared the value of string buf with "RK901"
the string buf is read from this file: "/sys/class/rkwifi/chip"
(so i suppose that this file has been written before by some other procedure)
so, i searched the caller procedure of check_wifi_chip_type():
in the same source i find this caller:
int wifi_load_driver()
{
#ifdef WIFI_DRIVER_MODULE_PATH
char driver_status[PROPERTY_VALUE_MAX];
int count = 100; /* wait at most 20 seconds for completion */
int type;
char path[64];
if (is_wifi_driver_loaded()) {
return 0;
}
strcpy(path, DRIVER_MODULE_PATH);
type = check_wifi_chip_type();
if((type == RK901) || (type == RK903) || (type == BCM4330)) {
strcpy(path, "/system/lib/modules/rkwifi.ko");
} else if (type == RTL8188CU) {
....
this procedure as first step checks if the driver is already loaded,
if not:
the driver module path is set by default to "/system/lib/modules/wlan.ko"
Then basing on the chip type is got a more specific path:
for example, for RK901/RK903/BCM4330 the path is set to : "/system/lib/modules/rkwifi.ko"
Then, is checked if the file does exist, and if not the path is seth to the default DRIVER_MODULE_PATH,
that is "/system/lib/modules/wlan.ko"
// judge if the KO file exist, if not, insmod wlan.ko
if (access(path, F_OK) < 0) {
ALOGD("DRIVER_MODULE_PATH = %s (Not such file)...", path);
strcpy(path, DRIVER_MODULE_PATH);
}
Then,
is called insmod (insert module),
to load the driver file in 'memory' (a new module into the kernel, i suppose):
if (insmod(path, DRIVER_MODULE_ARG) < 0) {
ALOGD("%s: driver load failed", __FUNCTION__);
wifi_unload_driver();
if(retry_count-- > 0) goto retry_load_driver;
return -1;
}
Looking the logcat above,
the flow in my case stops here, with : wifi_load_driver: driver load failed
so something happened in insmod:it is not able to load the file /system/lib/modules/rkwifi.ko in memory or initialize it
(the file is found, else the process should stop before, when checking access to the file)
The insmod function does this:
allocates memory for the structure name (type utsname) :
memset(&name, 0, sizeof(name));
and load the file on this area:
module = load_file(filename_release, &size);
Then is checked if the file has been loaded
if (!module)
return -1;
and finally
the module is 'initialized':
ret = init_module(module, size, args);
One of this two events went wrong, because insmod returned -1
My investigation stops here... i am not able to proceed more...
but i am open to all suggestions and hints
Thank you!!
Click to expand...
Click to collapse
Interesting... Yesterday i was trying to solve this problem caused by a cwm recovery flashing during about 8 hours with my mk809ii. I let my pc downloading about 10 different roms from other similar devices, and this morning i stay to try one by one. Finally i found "mk808B bob finless 2.1 room (jb4.2.2) with wifi APxxxx" (APxxxx is my wifi chip, i can't remember the xxxx just now) fix both wifi and bluetooth.
You did a good research, i will save your post on case i get the error again, but i think the best thing to do is to search for a compatible rom and try, with same both cpu and wifi chipset. Also now after read your post i am going to save a backup of system /lib and system /etc directories, maybe changing the wifi library files fix the error without needing of flash and reflash...
Thanks, i liked your post!
Enviado desde mi GT-P7510 usando Tapatalk 2
hi
i build a rom and it doesn't boot
i get a logcat and show these errors
E/NetlinkEvent( 152): NetlinkEvent::FindParam(): Parameter 'SWITCH_NAME' not found
E/Trace ( 1056): error opening trace file: No such file or directory (2)
E/HTC Acoustic( 1056): Fail to open /system/etc/AudioPara_HTC-GCC.csv -1.
E/BandwidthController( 1057): runIptablesCmd(): failed /system/bin/iptables -t raw -N bw_raw_PREROUTING res=256
E/AudioHardwareMSM76XXA( 1056): AudioStreamOutMSM72xx: Setting up correct values
E/dalvikvm( 1196): ERROR: couldn't find native method
E/dalvikvm( 1196): Requested: Ljava/lang/Daemons;.isShippingRom)Z
E/JNIHelp ( 1196): RegisterNatives failed for 'java/lang/Daemons', aborting
Click to expand...
Click to collapse
ok
These are my questions:
1.wich error is must intresting? and wich can be The main cause?
2.is these errors goes from kernel? how can i fix these?
devs please help me
tnx:crying:
Hello,
I had a first look at the Logcat of my Asus Fonepad (Atom SOC with Android 4.4.2) and found that there are numerous (once a second) warnings in the form:
W/Sensors ( 730) Cannot open file: /data/ACCEL.conf -1
W/Sensors ( 730) Cannot open file: /data/COMPS.conf -1
W/Sensors ( 730) Cannot open file: /data/GYRO.conf -1
I would like to stop these warnings.
I fount at least ACCEL.conf and COMPS.conf in the /data/sensors subdir, the content look to be Chinese.
I tried to copy ACCEL.conf and COMPS.conf to the /data dir, but now I get the following error:
E/Sensors ( 730) Cannot initialize inotify!
Is W/Sensors an Android system routine or a problem with an app?
What's the purpose of these .conf files and what is the usual content?
Any help or explanation is very appreciated, thanks!
Regards
Juergen
Hello everybody, after installing the new version of the app I can't use it anymore.
This is what appear:
Build version: release-v2.0.1
Build date: 1979-11-30 00:00:00
Current date: 2017-03-09 12:51:37
Device: OnePlus A0001
Stack trace:
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.kapp.youtube.final/com.marverenic.music.activity.MainActivity}: android.view.InflateException: Binary XML file line #49: Binary XML file line #94: Binary XML file line #94: Error inflating class fragment
at android.app.ActivityThread.performLaunchActivity(A ctivityThread.java:2450)
at android.app.ActivityThread.handleLaunchActivity(Ac tivityThread.java:2510)
at android.app.ActivityThread.-wrap11(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(Activit yThread.java:1363)
at android.os.Handler.dispatchMessage(Handler.java:10 2)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.jav a:5461)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCa ller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit .java:616)
Caused by: android.view.InflateException: Binary XML file line #49: Binary XML file line #94: Binary XML file line #94: Error inflating class fragment
at android.view.LayoutInflater.inflate(LayoutInflater .java:539)
at android.view.LayoutInflater.inflate(LayoutInflater .java:423)
at android.view.LayoutInflater.inflate(LayoutInflater .java:374)
at android.support.v7.app.k.b(AppCompatDelegateImplV9 .java:288)
at android.support.v7.app.c.setContentView(AppCompatA ctivity.java:140)
at com.marverenic.music.activity.b.setContentView(Bas eActivity.java:120)
at android.databinding.e.a(DataBindingUtil.java:276)
at android.databinding.e.a(DataBindingUtil.java:261)
at com.marverenic.music.activity.j.onCreate(BaseLibra ryActivity.java:26)
at com.marverenic.music.activity.MainActivity.onCreat e(MainActivity.java:81)
at android.app.Activity.performCreate(Activity.java:6 251)
at android.app.Instrumentation.callActivityOnCreate(I nstrumentation.java:1108)
at android.app.ActivityThread.performLaunchActivity(A ctivityThread.java:2403)
... 9 more
Caused by: android.view.InflateException: Binary XML file line #94: Binary XML file line #94: Error inflating class fragment
at android.view.LayoutInflater.inflate(LayoutInflater .java:539)
at android.view.LayoutInflater.inflate(LayoutInflater .java:423)
at android.databinding.e.a(DataBindingUtil.java:116)
at android.databinding.e.a(DataBindingUtil.java:88)
at com.marverenic.music.fragments.NowPlayingFragment. onCreateView(NowPlayingFragment.java:91)
at android.support.v4.b.p.performCreateView(Fragment. java:2189)
at android.support.v4.b.v.a(FragmentManager.java:1255 )
at android.support.v4.b.v.b(FragmentManager.java:1472 )
at android.support.v4.b.v.a(FragmentManager.java:1691 )
at android.support.v4.b.v.a(FragmentManager.java:3413 )
at android.support.v4.b.s.a(FragmentController.java:1 20)
at android.support.v4.b.q.a(FragmentActivity.java:378 )
at android.support.v4.b.j.onCreateView(BaseFragmentAc tivityHoneycomb.java:33)
at android.support.v4.b.q.onCreateView(FragmentActivi ty.java:79)
at android.view.LayoutInflater.createViewFromTag(Layo utInflater.java:754)
at android.view.LayoutInflater.createViewFromTag(Layo utInflater.java:704)
at android.view.LayoutInflater.rInflate(LayoutInflate r.java:835)
at android.view.LayoutInflater.rInflateChildren(Layou tInflater.java:798)
at android.view.LayoutInflater.rInflate(LayoutInflate r.java:838)
at android.view.LayoutInflater.rInflateChildren(Layou tInflater.java:798)
at android.view.LayoutInflater.rInflate(LayoutInflate r.java:838)
at android.view.LayoutInflater.rInflateChildren(Layou tInflater.java:798)
at android.view.LayoutInflater.inflate(LayoutInflater .java:515)
... 21 more
Caused by: android.view.InflateException: Binary XML file line #94: Error inflating class fragment
at android.view.LayoutInflater.createViewFromTag(Layo utInflater.java:782)
at android.view.LayoutInflater.createViewFromTag(Layo utInflater.java:704)
at android.view.LayoutInflater.rInflate(LayoutInflate r.java:835)
at android.view.LayoutInflater.rInflateChildren(Layou tInflater.java:798)
at android.view.LayoutInflater.rInflate(LayoutInflate r.java:838)
at android.view.LayoutInflater.rInflateChildren(Layou tInflater.java:798)
at android.view.LayoutInflater.inflate(LayoutInflater .java:515)
... 43 more
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.drawable.Drawable.setColorFilter( int, android.graphics.PorterDuff$Mode)' on a null object reference
at com.marverenic.music.fragments.PlayerControllerFra gment.onCreateView(PlayerControllerFragment.java:3 4)
at android.support.v4.b.p.performCreateView(Fragment. java:2189)
at android.support.v4.b.v.a(FragmentManager.java:1255 )
at android.support.v4.b.v.b(FragmentManager.java:1472 )
at android.support.v4.b.v.a(FragmentManager.java:1691 )
at android.support.v4.b.v.a(FragmentManager.java:3413 )
at android.support.v4.view.m$a.onCreateView(LayoutInf laterCompatHC.java:47)
at android.view.LayoutInflater$FactoryMerger.onCreate View(LayoutInflater.java:186)
at android.view.LayoutInflater.createViewFromTag(Layo utInflater.java:746)
... 49 more
What I can do to solve this?
I tried to uninstall e install again the app but it was useless. I also tried to cancel data and cache