yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Lens_flare:
theROMinator

the most common scenario:

AOSP/CM9 from your device and miui from nexus S. Then use guide above.
[Android Software Development] CosmicDan:
Yeah sorry forgot about that, I never tried using the Nexus S MIUI ROM so try that based on CM9.
[Android Software Development] theROMinator:
Wouldn't the UI not function since the resolutions are different?
[Android Software Development] ThEuNdYiNg1:
it is somewhat similar to what you wrote. but what your wrote just said go change the constants after "mlidopen" and change the negative one which was not suppose to be changed. see what you wrote did

not

work. What i found gives more specific detail that people will understand.
[Android Software Development] CosmicDan:
I usually never defend people on the internet, but seriously that's just rude... if you couldn't gather the gist of what he was explaining and then extrapolate it to your own situation, I don't think you're experienced enough to work with smali editing. He advised to swap the mlidopen variables if orientation is wrong, which is what you ended up doing. His only mistake IMO was over-explaining it with examples based on java code that's obviously been changed/revised since writing the guide, or since (bak)smali has changed/optimized it's decompilation.

All in all, if people couldn't understand that part of the guide already then I don't think they have the "skill" required.
[Android Software Development] ThEuNdYiNg1:
im being rude? really? think about, i was just trying to help and say this might help other people because this tells then where exactly to look. I know it was similar to his but there is also a difference, remember that. I was just trying to help this FAQ post and he was the rude one saying "really, isn't it what I wrote?". your right i don't have as much experience in smali editing then him and he did advice to change mlidopen variables but there are multiple mlidopen varibles and some are suppose to stay untouched. Like i said before i only posted it trying to be helpful.
[Android Software Development] Lens_flare:
It's fully resizeable from tiny xperia x10 mini to transforer prime :D
[Android Software Development] CosmicDan:
Fair enough then. I guess you were contributing in a round-about way, I shouldn't have snapped. I imagine these things vary greatly between MIUI versions and the different devices it runs on, its not feasible for Lens' to stay on top of every small change. But hey, you did get it in the end.

Maybe I'm just cranky, sorry. I'm used to XDA just being a complete noob fest these days with very little development talk actually going on.
[Android Software Development] Lens_flare:
Alright, let's think about reasonable guide for this problem. I couldn't explain much as I don't have hw-keyboarded device.
[Android Software Development] Lens_flare:
it might actually mean you don't have some graphics smalis, or, it could be EGL driver fault.

E/AndroidRuntime( 3601): java.lang.RuntimeException: Unable to create service com.android.providers.media.MtpService: java.lang.IllegalArgumentException

what the hell you need from mtpservice? Mass storage fix not assuming MTP smalis changing, even media smalis..
[Android Software Development] CosmicDan:
I don't even think MIUI has a toggle for MTP/UMS mode lol... I had to force UMS in build.prop (rather, kernel default.prop) to get it off MTP since the Xperia Play defaults to MTP mode.
[Android Software Development] theROMinator:
I'm deep in the ramdisk now lol. Looking for mounts and getting lost :p
[Android Software Development] CosmicDan:
No no, that won't fix the crash. The prop code "persist.sys.usb.config=mass_storage,adb" only makes it so MIUI forces mass storage prompt instead of MTP mode if your phone defaults to MTP on USB connection. Maybe you need to remove the mtpservice, wherever that is. I don't know, this is why attaching full logcats are said very often... that one-line error tells us nothing :) But from what I remember, MIUI4 currently has MTP support broken....?

EDIT: Or try replacing base ICS libs with these ones from MIUI:

libdrmframework_jni.so
libmedia_jni.so
libmtp.so

I only had to do that though to fix MediaScanner, I didn't get any crashes related to "MTP service". I have a feeling you have some left-over APK's still in the MIUI build that shouldn't be there. Remove any APK to do with media and test, then try adding one at a time and rebooting to find the culprit. Will need to see full logcat from boot to suggest anything else. Are you using 100% original lib\hw\* from CM9?

EDIT: Final edit now, honest :)
[Android Software Development] Lens_flare:
then it's not a error we should be worried about.. show a log from picking custom ringtone process, it might discard ringtone here..

just codecs.

uhm, I'm not excluding that fact..
[Android Software Development] Ozadroid:
okay! i did all the stuff just wanted to b sure abt GsmDataConnectionTracker*.smali ... trying now!
[Android Software Development] pratikmore:
I am trying to port miui for Jb with nexus s as miui,but stuck at bootanimation.any help?i dont know adb and ddms,so no logcat.
[Android Software Development] santajin:
ok, it is the log,obviously it is related to the

FileSourceHelper::ValidateAACFile failed
[Android Software Development] v1r0x:
Without logcat it's hard to fix it ;)

Do you have the android sdk?

If yes, open a command shell, change dir to android-sdk/platform-tools and type the following:

adb devices
adb logcat > log.txt

Then wait a while and hit "ctrl+c".

Post the log.txt

or use your file explorer and change dir to android-sdk/tools and double click the ddms(.bat) (if you use linux you only have have the file ddms without .bat, on windows it is ddms.bat).

Click in the list on the left on your device and select from the dropdown (it should say "verbose") "error" instead of "verbose".

Wait a while, select all lines and post them here

If you don't have the android sdk download it from http://developer.android.com/sdk

@santajin:

Do you have any problems with the settings of miui music?

After closing and reopen the music app the settings are set to default instead of my changed settings
[Android Software Development] Ozadroid:
dude if u dnt know adb u shud not port. learn about adb first den port!
[Android Software Development] pratikmore:
How to change the directory?
[Android Software Development] Ozadroid:
LOL? :eek:

bro u seriously shud stop porting! :-/

and how did u do these ??

my work:Paranoidandroid rom,Mokee os,Joy os and Lewa os for G3
[Android Software Development] pratikmore:
Just see the galaxy 3 development forum,you will get your ans.sorry to say,with the help of alogcat app,i took the logcat,now i quit...thanks for your help.
[Android Software Development] janeindiran:
Guys i get issue with mountservice*.smali. Changing those files from base doesn't solve the issue. Because of this i get FileExplorer FC and music player and gallery doesn't read any existing files. Device DEFY. Any idea why its happening?? One morething other fileexplorer from market just works fine.
[Android Software Development] santajin:
@v1r0x

For me, the settings of MIUI music is ok, even I rebooted my phone, the settings didn't changed.

Have you tried to select a ringtone from sdcard?
[Android Software Development] v1r0x:
No, haven't tried it yet. I'll try it tomorrow.

Can you tell me what you exactly did to port?

I had the miui music issue two builds ago. Then everything worked fine and now I have this problem again. Maybe I'm missing something. :confused:
[Android Software Development] Lens_flare:
don't be so rude, our goal is not shame noobs but help them ;]

lucky strike and bit help from me ;]

Obviously? what about that one?

W/WVMExtractor(123): Failed to open libwvm.so

or you have to add new lib or get rid of some nexus s ones..

mountservice is a vold framework wrapper, you shouldn't ever change it.
[Android Software Development] :
That libwvm error isn't as simple as it sounds. Its a proprietary lib usually and just adding it didn't fix it for me. I still need to fix it
[Android Software Development] santajin:
@Lens_flare

when i put the ringtones into system/media/audio, it works, in sdcard, it doesn't work...

---------- Post added at 04:27 AM ---------- Previous post was at 04:10 AM ----------

i started from a ds 4.1 build, then add the newest miui into it. I'm sorry i don't know what happened to miui music;

also today i tried to backup my phone, wiped then recover, but some system settings can't be recovered, may be the similar problem.

edit: I saw in MIUI forum, you can wipe MIUI data to fix it.
[Android Software Development] CosmicDan:
Libwvm error can be ignored, I always had the error and never noticed anything related.

Tones on SDCard is an MIUI issue! They need to be ogg or aac and go in /sdcard/miui/ringtones or something, I cant remember. Download something in the MIUI theme app and it will put a tone there, you will see.
[Android Software Development] santajin:
thx, but when i use miui4.0, it ok to use the same mp3 fle in sdcard.
[Android Software Development] Ozadroid:
i m not getting rude. but people dont even search google that makes me piss off :-s

how 2 change dir. seriously! :-s
[Android Software Development] CosmicDan:
Use MIUI4.0 then? I think you need to determine if it's an issue with JB for your device or with MIUI4.1. Find out if official devices work fine with MP3's. It works fine for me though with using ES File Explorer, as Ogg or MP3 or M4A or WMA even. So it's probably an issue with your device/base.
[Android Software Development] _polimorph_:
Great news, are you kind to share with us how you made it? Thanks!
[Android Software Development] janeindiran:
I have an issue, file explorer, gallery and music player doesn't read the stuff in my sd card but when use some other file browser it works fine. Has anyone faced this issue??? I am really struggling with this.
[Android Software Development] _polimorph_:
I have this issue also. When I figure out a solution I'll post it, hoping you'll do the same ;)
[Android Software Development] CosmicDan:
Use libmedia, libmedia_jni and libdrm1 from MIUI.

Sent from Xperia Play (R800a) with Tapatalk
[Android Software Development] Lens_flare:
E/AndroidRuntime(18239): FATAL EXCEPTION: main
09-11 23:04:39.432: E/AndroidRuntime(18239): java.lang.NoClassDefFoundError: [generic]
09-11 23:04:39.432: E/AndroidRuntime(18239):	at dalvik.system.NativeStart.main(Native Method)

lib failed to load, need a specific version(ics/jb), if you found it in RUU (which is stock rom I guess), maybe it would be a deal to find something near in desire s ics rom?

jni replacing generates TONNS of exceptions (mostly), are you sure?
[Android Software Development] CosmicDan:
Was only going off memory then sorry, but yes. I had media scanner not working in previous ICS MIUI builds, ever since I have used these libs from MIUI and never had any issues:

libdrmframework_jni.so
libmedia_jni.so
libmtp.so
[Android Software Development] CosmicDan:
Youre going to have a lot of trouble getting MIUI camera working from non-Nexus base, because they are designed from source for that device. You are better off using CM9 camera.

Sent from Xperia Play (R800a) with Tapatalk
[Android Software Development] v1r0x:
I don't use MIUI cam. The only working camera is base (andromadus) camera. So I have to use this one. My other camera apps working good with this one, except the Translate app :(
[Android Software Development] CosmicDan:
Why are you posting camera errors if camera already works?

Sent from Xperia Play (R800a) with Tapatalk
[Android Software Development] v1r0x:
Because I have a camera error with the google translate app.
[Android Software Development] CosmicDan:
Well that lib is to do with the camera. If you need the lib file from some other 3rd rom, you must have bad smali somewhere in the port.

Why are you not using CM9?

Sent from Xperia Play (R800a) with Tapatalk
[Android Software Development] v1r0x:
Yes, but I want to fix it ;)

Why CM9? I'm porting JB, so I need CM10.
[Android Software Development] janeindiran:
I tried replacing files from CM10 but no use. I guess its far more complicated. If i find i will post the solution for sure.
[Android Software Development] santajin:
I checked my rom, the same problem as you in google translate app.

Looking into it...

EDit: I used libposteffect.so from Andromadus, google translate seems ok, but the effect is very bad!
[Android Software Development] Lens_flare:
xperia arc S, ics miui official - gtranslate works :P

I could try to capture some logs maybe there is something related.. will back with answer asap.

on my MT I remember there was a log line about that lib but I didn't have cam working..
[Android Software Development] CosmicDan:
I assumed you were using CM9. I use CM10 and Nexus S base, Camera, Media Scanner and Google Translate all work fine for me.

EDIT: I use FXP CM10 though which is a fork for Xperia devices.

Sent from Xperia Play (R800a) with Tapatalk
[Android Software Development] v1r0x:
Ok, thank you.

But I think the lib is some htc stuff, because there is none in the arc s rom.

Also I found this in the debug log:

09-12 15:18:53.895: I/dalvikvm(1263): Could not find method android.hardware.Camera$CameraMetaDataCallback.onCameraMetaData, referenced from method android.hardware.Camera$EventHandler.handleMessage
09-12 15:18:53.895: W/dalvikvm(1263): VFY: unable to resolve interface method 13546: Landroid/hardware/Camera$CameraMetaDataCallback;.onCameraMetaData ([ILandroid/hardware/Camera;)V

and also so references to some libs called

libchromatix_*.so

The libchromatix libs are in the saga/desire s rom, but there is no Camera$CameraMetaDataCallback in the saga framework.jar
[Android Software Development] Lens_flare:
acer liquid MT is not htc device but do have such dependency in camera..

about arc, it seems don't have such dependency in stock (which actually miui is) , according to log gtranslate fails at CAMERA_EXTENDED permission which is SE-specific and I think do the same as your libposteffect.so, soo I think that error is not we are looking for..

what are you waiting for? replace android/hardware/camera*.smali from cm10 and that seems is it.
[Android Software Development] v1r0x:
Ok.

But there is no Camera$CameraMetaDataCallback.smali :confused:
[Android Software Development] Lens_flare:
then see if android/hardware/Camera$EventHandler.smali have onCameraMetaData in method handleMessage and try to get rid of it.

maybe it's a camera app method..
[Android Software Development] v1r0x:
Ok, there is a

invoke-interface {v4, v3, v5}, Landroid/hardware/Camera$CameraMetaDataCallback;->onCameraMetaData([ILandroid/hardware/Camera;)V

Just delete this line or do I need more?
[Android Software Development] Lens_flare:
I remember from programming courses that callback is a function located somewhere else not in package and only system knows where it is..

Now I see in camera.java that CameraMetaDataCallback reference and it is bound to facedetectionservice (wow, google uses face detection to detect text at the picture? :D). Soo I think it is in camera app and have different name or that class simply don't have such method.

Let's try delete a line first (it is anyway under "if" statement), if it causes more errors, we should look into camera and add that method to CameraMetaDataCallback.
[Android Software Development] Lens_flare:
Checked arc cm10.

I do have $CameraMetaDataCallback.smali at framework.jar, why you don't? oO

It is defined as interface in camera.java and function which missing is also declared here (as a reference to underlying one, maybe library function).
[Android Software Development] v1r0x:
Ok, so what's your suggestion?

Delete the line and hope for the best?
[Android Software Development] Lens_flare:
let's try this first.
[Android Software Development] v1r0x:
I had to delete two more lines which referred to CameraMetaDataCallback.

Line 267: invoke-interface {v4, v3, v5}, Landroid/hardware/Camera$CameraMetaDataCallback;->onCameraMetaData([ILandroid/hardware/Camera;)V

Line 244: #getter for: Landroid/hardware/Camera;->mCameraMetaDataCallback:Landroid/hardware/Camera$CameraMetaDataCallback;
invoke-static {v3}, Landroid/hardware/Camera;->access$700(Landroid/hardware/Camera;)Landroid/hardware/Camera$CameraMetaDataCallback;

Line 251: #getter for: Landroid/hardware/Camera;->mCameraMetaDataCallback:Landroid/hardware/Camera$CameraMetaDataCallback;
invoke-static {v3}, Landroid/hardware/Camera;->access$700(Landroid/hardware/Camera;)Landroid/hardware/Camera$CameraMetaDataCallback;

Now the app says "Kamera kann nicht geöffnet werden" or in english something like "Can't open camera"
[Android Software Development] v1r0x:
the one, flinny posted today on last page? (md5: 0787256ffa4a070cb1c748094952483f)

:o:o:o:o

doing this and replace the libposteffect.so with the one from andromadus fixed it :D

...more or less

Thanks again, lens :)

edit:

I have another question :P

I miss the old crt screen on/off animation (this one).

Afaik it's built in CM10. Is it possible to include/activate in miui?
[Android Software Development] CosmicDan:
Maybe thats why it works for me, i removed face detection.

I will share my full build script soon.

Sent from Xperia Play (R800a) with Tapatalk
[Android Software Development] Ozadroid:
what does "nativeSurfaceFlinger(On/Off)Animation" do ?? :p

isnt it meant for that ?? :eek:

this method isnt dere in miui nor in cm10 :-s
[Android Software Development] Ozadroid:
what is this error about?? :-s

09-13 11:10:27.359: E/AndroidRuntime(636): FATAL EXCEPTION: main
09-13 11:10:27.359: E/AndroidRuntime(636): java.lang.StringIndexOutOfBoundsException: length=0; regionStart=0; regionLength=3
09-13 11:10:27.359: E/AndroidRuntime(636):	at java.lang.String.startEndAndLength(String.java:593)
09-13 11:10:27.359: E/AndroidRuntime(636):	at java.lang.String.substring(String.java:1474)
09-13 11:10:27.359: E/AndroidRuntime(636):	at com.android.internal.telephony.gsm.GsmServiceStateTracker.pollStateDone(GsmServiceStateTracker.java:882)
09-13 11:10:27.359: E/AndroidRuntime(636):	at com.android.internal.telephony.gsm.GsmServiceStateTracker.handlePollStateResult(GsmServiceStateTracker.java:696)
09-13 11:10:27.359: E/AndroidRuntime(636):	at com.android.internal.telephony.gsm.GsmServiceStateTracker.handleMessage(GsmServiceStateTracker.java:371)
09-13 11:10:27.359: E/AndroidRuntime(636):	at android.os.Handler.dispatchMessage(Handler.java:99)
09-13 11:10:27.359: E/AndroidRuntime(636):	at android.os.Looper.loop(Looper.java:137)
09-13 11:10:27.359: E/AndroidRuntime(636):	at android.app.ActivityThread.main(ActivityThread.java:4758)
09-13 11:10:27.359: E/AndroidRuntime(636):	at java.lang.reflect.Method.invokeNative(Native Method)
09-13 11:10:27.359: E/AndroidRuntime(636):	at java.lang.reflect.Method.invoke(Method.java:511)
09-13 11:10:27.359: E/AndroidRuntime(636):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
09-13 11:10:27.359: E/AndroidRuntime(636):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
09-13 11:10:27.359: E/AndroidRuntime(636):	at dalvik.system.NativeStart.main(Native Method)

seems to b abt GSM.. but my GSM works Fine!
[Android Software Development] Lens_flare:
possibly one of the ril responses works incorrectly, see radio log to catch what it actually is.
[Android Software Development] Lens_flare:
Curious.. initial port CM10-MIUI jb not producing any logcat..

But CM 10 produces :P

Never met such silly situation at ubuntu ;/
[Android Software Development] v1r0x:
you have connected usb? :P

missing files in usb folder?
[Android Software Development] Lens_flare:
for sure :p

that's my the only doubt - it shouldn't ever ask me for those..
[Android Software Development] Ozadroid:
lol :D Miui God asking for help :P

connect the phone via usb to a diff usb port of pc in which phone drivers are not installed n see if it installs the drivers.. if it doesnt usb isnt working.. but if it does.. adb isnt working!
[Android Software Development] Lens_flare:
we are community, all might have a question :D

blah blah blah.. you didn't ever read my request.. in CM10 logcat feature worked right before I installed MIUI.. and that's most strange.

yes yes I have ALL drivers windows and linux no matter.. netbook, PC - no matter.. just damn "waiting for device"..

adb version seem doesn't matter too (works with jellybean, ics, gingerbread(!) ones in CM10 - not in miui ;/).

curious, CosmicDan, according to his script not even touched usb smalis(I'm reminding that all 2011 xperias are pretty same), ah, but his device doesn't have native ICS.. ok, let's try some usb smalis patching..
[Android Software Development] rohanchrome:
Thank you!

I get this logcat in my port from lww and it does not boot... I had to port Inputmanager.smali and windowmanager.smali to get this far... but I have No idea what going wrong now.. However i managed to port from HTC Wildfire S...
[Android Software Development] Ozadroid:
Tried ddms?? I think I also had this kinda issue.. it showed me sumthing related to 'sh'
[Android Software Development] Lens_flare:
something related to sh means that rom brokes an access to logcat. But I just have "waiting for devices" (ah I seems turned into damn noob in 1 month..).

ddms is a no go also.
[Android Software Development] CosmicDan:
If by no native ICS you mean stock/official, correct. Apart from a beta. But previous MIUI port based on ICS (CM9) needed no smali changes for USB either.

It's strange, seems Xperia phones have the least trouble. I think the Xperia phones are also regarded as the most "open" mainstream line too, apart from the Nexus lines of course.
[Android Software Development] AdhvanIt:
Deleted.

10char
[Android Software Development] ChaosChris:
Hmm i followed the guide and after some timis of smaling i get this error and dont know how to fix it :/ IT bootloops AT the bootanimation

ive tried to port from galaxy s to galaxy s wifi 4.0

here is my logcat
[Android Software Development] AdhvanIt:
So I'm stuck on some dalvik VM issues that I feel should be fairly easy to fix. I've already diffed the files the best I could to fix this issue, but still coming up with the same thing. Anyone want to take a look at these for me?

ERROR:

E/dalvikvm( 1812): ERROR: couldn't find native method
E/dalvikvm( 1812): Requested: Landroid/webkit/WebSettingsClassic;.nativeIsWebGLAvailable:()Z
E/JNIHelp ( 1812): RegisterNatives failed for 'android/webkit/WebSettingsClassic', aborting

WebSettingsClassicCM.smali

WebSettingsClassicMIUI.smali

You'll notice this at line 438 in the CM version:

.line 130
iput-boolean v2, p0, Landroid/webkit/WebSettingsClassic;->mWebGLEnabled:Z

The line is 179 on the MIUI version. I'm thinking where my issue lies is that I added .line 179 because I wasn't sure what else to title it as there is already a .line 130 in the MIUI version. Does that make sense?

Am I right in that this is my issue?

How would I go about resolving it?

Edit: Evidently I need to learn how to read. I figured it out. I was still looking for my first issue which was mWebGLEnabled.. lol
[Android Software Development] Lens_flare:
nothing to do, total crap.. nexus s versions are as follows: 2.8.10-ics, 2.9.14-jellybean. choose yours.

what if you just replace that smali?
[Android Software Development] Lens_flare:
CosmicDan

want some laugh?

I booted arc miui jb using your port :D

and guess what? it seems fully working(even camera preview which isn't in original FXP 137 Oo).. but NO LOGCAT EITHER -__-

about logcat, I have mentioned that lsusb shows my device as plugged in.

ohhhh, I lost in doubts what could it be..
[Android Software Development] AdhvanIt:
Yeah, I got past that. I'm like eight more errors in. Seems almost never ending, and I definitely have a new found respect for devs after the hours I've spent on this.

Sent from another Galaxy [S2]
[Android Software Development] ChaosChris:
Hmm i used galaxy s miui 2.8.10 as Base ... do you mean i must use nexus s as Base?

Gesendet von meinem Nexus S mit Tapatalk 2