yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Cobmaster:
Finally I managed to get logcat. I need a bit of help for knowing where are the issues. Here is the full logcat:
[Android Software Development] Lens_flare:
E/AndroidRuntime( 2017): java.lang.RuntimeException: Unable to create service com.android.mms.transaction.TransactionService: java.lang.IllegalArgumentException: Unknown URI content://mms/inbox
E/AndroidRuntime( 2017):	at android.app.ActivityThread.handleCreateService(ActivityThread.java:2274)
E/AndroidRuntime( 2017):	at android.app.ActivityThread.access$1600(ActivityThread.java:126)
E/AndroidRuntime( 2017):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1204)
E/AndroidRuntime( 2017):	at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 2017):	at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 2017):	at android.app.ActivityThread.main(ActivityThread.java:4437)
E/AndroidRuntime( 2017):	at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 2017):	at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 2017):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
E/AndroidRuntime( 2017):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
E/AndroidRuntime( 2017):	at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 2017): Caused by: java.lang.IllegalArgumentException: Unknown URI content://mms/inbox
E/AndroidRuntime( 2017):	at android.content.ContentResolver.update(ContentResolver.java:852)
E/AndroidRuntime( 2017):	at android.database.sqlite.SqliteWrapper.update(SqliteWrapper.java:79)
E/AndroidRuntime( 2017):	at com.android.mms.transaction.TransactionService.resetDownloadState(TransactionService.java:296)
E/AndroidRuntime( 2017):	at com.android.mms.transaction.TransactionService.onCreate(TransactionService.java:290)
E/AndroidRuntime( 2017):	at android.app.ActivityThread.handleCreateService(ActivityThread.java:2264)
E/AndroidRuntime( 2017):	... 10 more

looks like you changed/deleted mms.apk. At last system couldn't access its services.
[Android Software Development] Alex93917:
I've a problem. In my latest MIUI JB release, i've a black line below status bar, as here : http://xdaforums.com/showpost.php?p=32291120&postcount=54

I've already tried this method : http://xdaforums.com/showpost.php?p=30072409&postcount=203

But, no change ... Can you help me ? Thank you !
[Android Software Development] v1r0x:
I f*ckin hate miui.us ...

A/SystemServer(316): java.lang.NoClassDefFoundError: us.miui.Toolbox$SnapOn_yes_this_class_has_been_protected_from_being_decompiled_and_the_code_contained_in_this_class_is_needed_in_order_for_the_toolbox_to_function_correctly_so_if_you_would_like_to_include_toolbox_in_your_rom_please_contact_0xD34D_over_at_MIUIus_and_if_you_are_nice_he_may_just_hook_you_up_with_the_goods

Does anybody else has a problem with GoogleEars or Button-Backlight?

If I enable auto-brightness, I still have a slider and nothing happens :/
[Android Software Development] Cobmaster:
Do you think ir's only a problem with the mms.apk?

Sent from my LG-E400 using Xparent Blue Tapatalk 2
[Android Software Development] Lens_flare:
whaahaha, damn you miui.us ;[

me.. I gave up as those buttons are only annoying ;/

the only I could see..
[Android Software Development] v1r0x:
have you ever tried to write a message with the hw-keyboard without any lamp? :D

I don't know why there is a slider after enabling auto-brightness.
[Android Software Development] Cobmaster:
Now works almost everything, but I don't know why the APNs are not displayed, even if I put them manually, how to make them work?
[Android Software Development] Lens_flare:
chiragkrishna

replied here http://xdaforums.com/showpost.php?p=29838399&postcount=1128. Please don't multiply posts.
[Android Software Development] DJBhardwaj:
@lens: I now took Nexus S miui 2.8.3 as base. And made the system replacements according to your post.

(I haven't modded framework.jar or services.jar up till now)

Now when I try to flash this zip, it gives me a certain error within the recovery

Could you please help me with this?
[Android Software Development] Lens_flare:
updater script is wrong at line 122, possibly unsupported command.
[Android Software Development] DJBhardwaj:
Is it something related to nfc.apk?

A command over nfc? Cause my device doesn't support it. And I have already deleted the apk from /system/app
[Android Software Development] Lens_flare:
nop. Updater-script is located at META-INF/com/google/android. Check it for errors.
[Android Software Development] DJBhardwaj:
Checked. Its a huge line with "retouch binaries" and all the libs and there path.

I think porting from ace will b much easy. Acr just gives smali errors that i can fix but this script error is huge and is making me mad. Any advices?
[Android Software Development] Lens_flare:
change updater-script to one you are using in CM then edit it according to guide.
[Android Software Development] DJBhardwaj:
I have done the same. This is what that gives error.
[Android Software Development] Lens_flare:
damn.. I hate that "retouch binary" which killed most of my works with script ports..

You may use MIUI.us updater script as it works ;)

but you should also use update-binary from miui.us.
[Android Software Development] DJBhardwaj:
Since I am porting Nexus S's miui then I would surely need to resize many files as my device is MDPI. What do you say?
[Android Software Development] Lens_flare:
nomore. MIUIv4 is multiDPI.
[Android Software Development] DJBhardwaj:
Great then. Could you please handle me updater-script of nexus s from miui.us?

Or I can use ace's updater-script?
[Android Software Development] Lens_flare:
that's what I suggested as it anyway works and almost not device specific.
[Android Software Development] DJBhardwaj:
I wish. Lets see what comes up :/
[Android Software Development] DJBhardwaj:
@lens:

Okay, I took the updater-script from old miui v4 from optimus one. And now it works but bootloops on the animation.

Next I get this error, I know how to solve.

But my question is, do I need to replace every missing code block in MIUI framework from base CM9 framework?

If yes, then I shall observe and patch the whole smali once instead of flashing, logcat, and again decompiling and compiling and flashing again!
[Android Software Development] Lens_flare:
add, do not replace anything. And yes, every block.

yeap, trial and fail way.. but I have listed almost all necessary smalis, so you might try to add them before booting :p
[Android Software Development] CosmicDan:
Filesystems (updater-script parameters) and update-binary can vary a lot across different brands and even model-series however.
[Android Software Development] Lens_flare:
that's why I said "almost" :P

coz busybox/toolbox, system, bin, etc and sh scripts permissions and links are near the same from device to device that using CM. That's it ;)
[Android Software Development] chiragkrishna:
is there any easy way to detect which smali should be added??

each time i correct 1 smali and flash the rom,... again there will will be a error with one more smali,...

can it be done on pc instead of flashing it every time on phone and checking??
[Android Software Development] Lens_flare:
you should also redefine RIL in phonefactory.smali to your RIL class (see build.prop), smali with the same name should be also there.
[Android Software Development] Cobmaster:
Thanks for the qick reply. I forgot about it. :p

EDIT: It didn't work. :(
[Android Software Development] AdhvanIt:
Then why are you using it as your base? The jar will still compile properly, you just won't have the toolbox. Which you clearly don't want anyway if you dislike the people that made it.

FYI. You'll probably have issues with SystemUI FCing. You need to use a base without the modified sysui, launcher, etc.

Replace InputManager smali tree in framework. That should get your buttons working correctly. As for the volume slider, that's part of MIUI.us modified sysui.

Sent from another Galaxy [S2]

---------- Post added at 10:51 AM ---------- Previous post was at 10:45 AM ----------

Yeah, I replaced the ICC smali tree, but it broke data entirely. So I just replaced iccCardStatus and the other classes it referenced but no luck. It didn't break data, but it didn't fix anything either..

Sent from another Galaxy [S2]
[Android Software Development] Lens_flare:
replaced it as needed by android_runtime, no button highlight. What I'm doing wrong? ;]

can I see a radio log?
[Android Software Development] AdhvanIt:
Well I'm out of guesses then. Lol.

I take it your device has a hardware KB? isn't there some mention of it in framework-res? Sorry, no hw KB here, so I've never had to try and mess with it. I know input manager tree fixed my rotation and soft key backlights... that's why I mentioned it. :)

Sent from another Galaxy [S2]

---------- Post added at 10:57 AM ---------- Previous post was at 10:56 AM ----------

When I get home tonight I'll pull one for you.

Sent from another Galaxy [S2]
[Android Software Development] v1r0x:
I'm using miuiandroid nexus s as base.

I just don't like how they act. And I think the Toolbox is a good app which should be available for every user/dev. I don't know why so many fan sites are "at war with others". They should share the mods and know-how, cause we're all one community.

If lens_flare would decide to keep his guide close and don't share it with all of us, he would have many enemies and not that much fans ;)

It's not useful when fan site X creates a tool and don't share it and fan site Y has some nice mods but don't share them either.

Same miui for everyone ;)

I'm using miuiandroid nexus s systemui after FCs

I'll give it a try. Thanks.

But I have miuiandroid systemui, but the slider is still there :confused:
[Android Software Development] Ibhi:
MIUI 2.9.14 Jelly Bean for Spice MI410/IDEOS X6 Issue

Guys,

I am porting the Desire HD MIUI 2.9.14 Jellybeam to my Spice MI410/Ideos X6 device with Unofficial CM10 for my device as a base. The ROM I ported booted up sucessfully and went to the lock screen. But after I unlock, the com.android.provision force closes. I have attached the link to my full logcat. Can you please help me?

http://pastebin.com/88rXy1ZM
[Android Software Development] v1r0x:
E/AndroidRuntime( 639): java.lang.RuntimeException: Unable to create application com.android.phone.MiuiPhoneApp: java.lang.RuntimeException: java.lang.ClassNotFoundException: com.android.internal.telephony.LGEQualcommRIL

maybe this is your problem?

@all:

Is it just me or is the facebook/webkit-bug fixed?

@AdhvanIt:

replacing InputManager (framework.jar/android/hardware/input/InputManager*.smali) didn't help :(
[Android Software Development] Ibhi:
Sorry, I posted the wrong logcat earlier. I already fixed the LGEQualcomm issue.

Here is the correct one.

http://pastebin.com/QSLcLc2e
[Android Software Development] Anon9mouz:
Thank u also do u know if apk manager does jars too

__________________________________________________
[Android Software Development] v1r0x:
I have a problem with root explorer/LBESEC.

If I set root permission of root explorer in lbesec to "allow" I have no error and can mount R/W, but I can not save files. I hit "Save & Exit" but the file hasn't changed.

If I set root permission to "Ask" I get the following error

Don't know what's wrong. I have nothing changed in the LBESEC app.

10-17 01:16:34.058: E/AndroidRuntime(3253): FATAL EXCEPTION: main
10-17 01:16:34.058: E/AndroidRuntime(3253): java.util.IllegalFormatConversionException: %d can't format java.lang.String arguments
10-17 01:16:34.058: E/AndroidRuntime(3253):	at java.util.Formatter.badArgumentType(Formatter.java:1487)
10-17 01:16:34.058: E/AndroidRuntime(3253):	at java.util.Formatter.transformFromInteger(Formatter.java:1687)
10-17 01:16:34.058: E/AndroidRuntime(3253):	at java.util.Formatter.transform(Formatter.java:1459)
10-17 01:16:34.058: E/AndroidRuntime(3253):	at java.util.Formatter.doFormat(Formatter.java:1079)
10-17 01:16:34.058: E/AndroidRuntime(3253):	at java.util.Formatter.format(Formatter.java:1040)
10-17 01:16:34.058: E/AndroidRuntime(3253):	at java.util.Formatter.format(Formatter.java:1009)
10-17 01:16:34.058: E/AndroidRuntime(3253):	at java.lang.String.format(String.java:1998)
10-17 01:16:34.058: E/AndroidRuntime(3253):	at android.content.res.Resources.getString(Resources.java:346)
10-17 01:16:34.058: E/AndroidRuntime(3253):	at android.content.Context.getString(Context.java:305)
10-17 01:16:34.058: E/AndroidRuntime(3253):	at com.lbe.security.service.privacy.r.b(Unknown Source)
10-17 01:16:34.058: E/AndroidRuntime(3253):	at com.lbe.security.service.privacy.s.handleMessage(Unknown Source)
10-17 01:16:34.058: E/AndroidRuntime(3253):	at android.os.Handler.dispatchMessage(Handler.java:99)
10-17 01:16:34.058: E/AndroidRuntime(3253):	at android.os.Looper.loop(Looper.java:137)
10-17 01:16:34.058: E/AndroidRuntime(3253):	at android.app.ActivityThread.main(ActivityThread.java:4758)
10-17 01:16:34.058: E/AndroidRuntime(3253):	at java.lang.reflect.Method.invokeNative(Native Method)
10-17 01:16:34.058: E/AndroidRuntime(3253):	at java.lang.reflect.Method.invoke(Method.java:511)
10-17 01:16:34.058: E/AndroidRuntime(3253):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
10-17 01:16:34.058: E/AndroidRuntime(3253):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
10-17 01:16:34.058: E/AndroidRuntime(3253):	at dalvik.system.NativeStart.main(Native Method)
[Android Software Development] CosmicDan:
You're using multilanguage LBESEC or an out-dated one. Use latest English LBESEC APK. It's a bug in strings.xml, it has %d somewhere but it should be %s.

Root Explorer not saving is probably unrelated, maybe Root Explorer is incompatible. Try ES File Explorer, not only is it free but it's the best IMO. Was recently updated for MIUI LBE Guard compatibility, I confirm it working on latest 2.10.12. There are still some apps out there that use root in a strange way that doesn't work on LBE Guard, LCD Density Modder is an example (changing LCD Density doesnt work, just freezes and never does it - but Market Fixes do).
[Android Software Development] v1r0x:
Ok, thanks. But I'm using the LBESEC from 2.10.12 miuiandroid, so it should be correct? Or a miuiandroid-bug?

I'll try miui.us or something else
[Android Software Development] CosmicDan:
Decompile LBESEC_MIUI.apk and compare values\strings.xml to values-en\strings.xml. Find the difference where there is a %d that should be a %s. It sould only apply if you're using a non-English language though.
[Android Software Development] v1r0x:
I found the line, but now I'm using miui.us LBESEC, thanks again.

Now my last problem is that I can't use MiTalk, cause after type in my username&password the content (it's the 'search for mitalk-users in your contactlist' activity) is too high for the screen and I can't scroll. So, I can't get to the next page :(
[Android Software Development] Lens_flare:
log please

android/hardware? oO

Maybe you meant com/android/server?

For sure just API won't help.

E/AndroidRuntime( 1495): java.lang.NullPointerException
E/AndroidRuntime( 1495): at android.view.inputmethod.InputMethodManager.startInputInner(InputMethodManager.java:1096)
E/AndroidRuntime( 1495): at android.view.inputmethod.InputMethodManager.onWindowFocus(InputMethodManager.java:1294)
E/AndroidRuntime( 1495): at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:2916)
E/AndroidRuntime( 1495): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 1495): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 1495): at android.app.ActivityThread.main(ActivityThread.java:4758)
E/AndroidRuntime( 1495): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 1495): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 1495): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
E/AndroidRuntime( 1495): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
E/AndroidRuntime( 1495): at dalvik.system.NativeStart.main(Native Method)

whaat? InputMethodManager?

Mixed up and changed it too? ;/

I don't think so.

MiTalk is abandoned, so that nobody optimized it to open up correctly on JB.
[Android Software Development] CosmicDan:
Yeah APKTool does jars fine, but its overkill and the smali/baksmali inside apktool might be older than official one.

Sent from Xperia Play (R800a) with Tapatalk
[Android Software Development] Megalith27:
Hi,

Thanks for the great guide. I have a problem though. I have ported a rom but it does go beyond looping rom bootanimation. I tried to logcat (both on Windows and Ubuntu (but without udev rules)) but I can only get logcat when the phone boots up and is running. So I cant diagnose the problem on bootloop.

Can you, please, advice, what can cause this?
[Android Software Development] Lens_flare:
is following line present on your build.prop?

persist.sys.usb.config= mass_storage,adb
[Android Software Development] Megalith27:
Nope, only this

persist.service.adb.enable=1

where should I add that line? if i have to
[Android Software Development] Lens_flare:
at the end.

new usb subsytem supports only that switch, adb.enable was actual only in gingerbread or earlier, strange it is still there.
[Android Software Development] Megalith27:
Thanks, i've added that line and tried to test on my current working rom while phone was rebooting but i'm afraid nothing happened...again :crying:

Edit: adb devices ....gives device as offline....when phone is powered and attached
[Android Software Development] ak0r:
Is it possible to port Jelly Bean MIUI in same way as ICS port?
[Android Software Development] Lens_flare:
it means you have to port usb first (see stage 4), as your device seems have outstandingly old usb subsystem.

yes and even easier ;]

Principle is the same, smali content is slightly different, and there are more smali to patch (webkit).
[Android Software Development] v1r0x:
He said InputManager in framework.jar

That's the only InputManager* files I found in framework.jar

So, I should replace it in services.jar?
[Android Software Development] Lens_flare:
I guess he meant services.jar, yeah.
[Android Software Development] ak0r:
Thanks. I'll try. Are you working around any guide for this as well?
[Android Software Development] Lens_flare:
when time allows :P
[Android Software Development] v1r0x:
I've already replaced InputManager(Manager) in services.jar/com/android/server/input but still no backlight
[Android Software Development] eminent1410:
I port MIUI JB (2.10.12) based CM10 to OB but I cant see camera app through I has MIUI Gallery and Gallery work well..

Can I help me?
[Android Software Development] Lens_flare:
MIUI uses AOSP camera app(btw, legacy one), so you might try to change it.
[Android Software Development] CosmicDan:
Yep, so you may as well use the Camera app (and libs, if needed) from your CM10 ROM.
[Android Software Development] nom051205:
Sorry noob question, in smali there are so much different line number, can we replace those line number or don't touch the line number only change other than that? Thanks
[Android Software Development] CosmicDan:
What? Just copy Camera.apk and libcamera*.lib from CM10 to your MIUI ROM. No smali.
[Android Software Development] nom051205:
Oh...sorry, not camera, I have issue in Bluetooth and WiFi driver failed to load.

I 'm port MIUI v4 from HTC supersonic to Dell streak 5.
[Android Software Development] CosmicDan:
Well you were quoting my camera post. I dunno about your BT and Wifi issue.
[Android Software Development] Megalith27:
Finally logcat

Ok...I was finally able to produce logcat...now I need help understanding and fixing things. File is around 770 KB...I let it to bootloop for about 5 minutes...

Edit:

I think it's this one...but, please, help

[ 10-18 05:36:26.145 2192: 2192 E/dalvikvm ]

ERROR: couldn't find native method

[ 10-18 05:36:26.145 2192: 2192 E/dalvikvm ]

Requested: Landroid/content/res/AssetManager;.splitThemePackage:(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I

[ 10-18 05:36:26.145 2192: 2192 E/JNIHelp ]

RegisterNatives failed for 'android/content/res/AssetManager', aborting

[ 10-18 05:36:26.145 2192: 2192 F/libc ]

Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 2192 (zygote)
[Android Software Development] nom051205:
Sorry wrong quote, could you tell me how edit or replace smali, should I touch that diff line number or not. Thanks in advance.
[Android Software Development] CosmicDan:
Requested: Landroid/content/res/AssetManager;.splitThemePackage:(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I

You need to patch smali from CM10, just like post #2 say.

It's all in post #2. .line should not be merged or changed.
[Android Software Development] Megalith27:
Thanks for the reply, one more question. Do I need to change .line # in AssetManager.smali? Or just add the lines that are only in CM10?

Edit: Please, ignore just read the above quote
[Android Software Development] Megalith27:
Need Help

After a bit more struggle...on my next logcat I see this error

[ 10-18 09:06:48.106 2548: 2548 E/dalvikvm ]

ERROR: couldn't find native method

[ 10-18 09:06:48.106 2548: 2548 E/dalvikvm ]

Requested: Landroid/server/BluetoothA2dpService;.sendMetaDataNative:(Ljava/lang/String;)Z

[ 10-18 09:06:48.106 2548: 2548 E/JNIHelp ]

RegisterNatives failed for 'android/server/BluetoothA2dpService', aborting

And I am having trouble "diffing"/"merging" these two files...as I get lost and in the fear of screwing up something

Can anyone, please, help?
[Android Software Development] Megalith27:
I've merged most of it...but the part i'm having problem with is the top block...when I look at them with WinMerge....as that is waaaay over my head
[Android Software Development] CosmicDan:
Dude, READ THE SECOND POST. Copy it.

Sent from Xperia Play (R800a) with Tapatalk
[Android Software Development] swapnilraj:
Can somebody help me I am trying to port to Xperia T from Galaxy Nexus the build is stuck with kernel logo.Here is the logcat http://pastebin.com/PVbxXuKX
[Android Software Development] Lens_flare:
describe what have you done..
[Android Software Development] swapnilraj:
I followed every step given in the first post.
[Android Software Development] CosmicDan:
You have used wrong libs. You must use original CM10 (or CM9) libs. Go to adb shell and run this command:

system_server

Tell us the error.

BTW, if you want ICS MIUI, use Arc S MIUI base and an ICS stock ROM for the Xperia T. It should work nearly straight away.
[Android Software Development] swapnilraj:
This is what I got.

~ # system_server

link_image[1916]: 588 could not load needed library 'libsystem_server.so' for 'system_server' (link_image[1916]: 588 could not load needed library 'libandroid_runtime.so' for 'libsystem_server.so' (reloc_library[1331]: 588 cannot locate '_ZN7android12AssetManager12addAssetPathERKNS_7Str ing8EPPv'...

))CANNOT LINK EXECUTABLE
[Android Software Development] Megalith27:
I'm sorry I didn't quite get from the 3rd post

How do I fix this error?

[ 10-18 16:47:16.684 2552: 2552 E/dalvikvm ]
VM aborting

[ 10-18 16:47:16.684 2552: 2552 F/libc ]
Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1), thread 2552 (zygote)

Logcat attached..in case if I am missing something...
[Android Software Development] Alex93917:
UP !
[Android Software Development] ak0r:
Bootloop.... can you please help me?

E/HTC Acoustic( 106): set mbadrc filter error.

W/AudioFlinger( 106): Thread AudioOut_2 cannot connect to the power manager service

E/Trace ( 103): error opening trace file: No such file or directory (2)

E/BandwidthController( 100): runIptablesCmd(): failed /system/bin/iptables -t raw -N bw_raw_PREROUTING res=768

E/AudioTrack-JNI( 104): Can't find android/media/AudioFormat.ENCODING_AMRNB

full log is here http://pastebin.com/LicyHtmH
[Android Software Development] v1r0x:
diff AudioFormat.smali in framework.jar/media
[Android Software Development] CosmicDan:
Use CM libs, as i said. Specifically, you need those two libs mentioned from same ROM - don't mix them.

Sent from Xperia Play (R800a) with Tapatalk
[Android Software Development] Megalith27:
Help, plz

Sent from my A953