yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Lens_flare:
E/AndroidRuntime( 917): *** FATAL EXCEPTION IN SYSTEM PROCESS: android.server.ServerThread
E/AndroidRuntime( 917): java.lang.UnsatisfiedLinkError: native_at_startActivity
E/AndroidRuntime( 917): at com.android.internal.app.ActivityTrigger.native_at_startActivity(Native Method)

that one actually a error. seems xiaomi predicted ports and obfuscated files like MIUI.us but in more specific manner. So it's not a base you should use ;[

I heared huawei is mostly opensource ones.

obviously it's your busybox issue - it just don't have zcat tool. 2 threats: fix busybox, or, fix updater-script to delete this zcat from big

symlink(busybox, [..])

what about su? :D
[Android Software Development] Ozadroid:
i dint understood. are u saying to take huawei as base?? if yes i hv tried porting 2.8.17 wid huawei but was getting some atupid error :-s
[Android Software Development] Lens_flare:
show us :p

I'm not excluding it might be easily resolved..
[Android Software Development] CosmicDan:
Oh yeah obviously su lol.

I cant help any more with CM9 though, I really have no idea what that error means. Driver or kernel issue or something.

Sent from Xperia Play (R800a) with Tapatalk
[Android Software Development] Ozadroid:
i showed u guys earlier :-s

here it is wid huawei!! Post no. 318

http://xdaforums.com/showthread.php?t=1777999&page=32
[Android Software Development] Lens_flare:
ah ok, first error I see is paint.smali, it might cause all of those ;]
[Android Software Development] Ozadroid:
but i replaced paint.smali :(
[Android Software Development] Lens_flare:
what if you don't do so? Just make an initial port, without smali porting and see logs, bugs you got on that state may be not so difficult to fix..
[Android Software Development] CosmicDan:
I didn't. I'm on CM10, but yeah.... I didn't need to for new MIUI.

As Lens said, do a fresh port with no mods. Then check logcats for missing methods/class failures, and do your own changes one by one. If you can't figure it out, post the logcat and we will try to quote the error that tells us what you need - so you and everyone can learn how to read logcat! :)
[Android Software Development] Ozadroid:
u mean i shud not replace any smali at first and only mod the smalis for missing methods which shows?
[Android Software Development] Lens_flare:
yap, it would be the best you could do with it.
[Android Software Development] Ozadroid:
oki. downloading huawei!! first i'll have to strip it so that it fits into our /system :rolleyes:

---------- Post added at 09:06 PM ---------- Previous post was at 09:04 PM ----------

Quick Ques!

does any of these smali have something to do with proximity sensor?

android/view/Gles20*.smali (not only canvas but all with gles20 at the beginning)
android/os/Power.smali
android/hardware/Camera*.smali
android/server/BluetoothA2dpService*.smali
org/codeaurora/Performance.smali
android/media/MediaRecorder*.smali
android/graphics/Paint.smali
android/os/Environment.smali
android/view/HardwareCanvas.smali
android/net/wifi/WifiNative.smali
android/content/res/PackageRedirectionMap*.smali
com/android/internal/telephony/RIL*.smali
[Android Software Development] Lens_flare:
nope, and you have ideal proximity though.
[Android Software Development] :
Merging the native methods only from CM10 -> MIUI I still end up with

W/dalvikvm( 270): VFY: can only initialize the uninitialized

W/dalvikvm( 270): VFY: rejecting opcode 0x70 at 0x0004

W/dalvikvm( 270): VFY: rejected Landroid/content/res/AssetManager;.<init> ()V

W/dalvikvm( 270): Verifier rejected class Landroid/content/res/AssetManager;

E/JNIHelp ( 270): Native registration unable to find class 'android/content/res/AssetManager', aborting

F/libc ( 270): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 270 (zygote)

.

logcat: http://pastebin.com/GErtK8LS
[Android Software Development] Lens_flare:
sorry, but have you ever tried to not even modify this file?
[Android Software Development] :
and just boot with the default assetmanager.smali in the framework.jar from cm10? yes i have and it gave me the first logcat that i posted in this thread
[Android Software Development] Lens_flare:
sorry, I missed that fact :P

Alright, it seems verification error is not letting the file work, could you try add miui missing line to cm one, then replace mix you got with miui?
[Android Software Development] :
what missing line though. i'm sorta confused by this statement
[Android Software Development] Lens_flare:
so the same you have done with that file but in versatile way: miui ->cm10.
[Android Software Development] :
so take the native methods from miui and add them to cm10? and then use the cm10 one instead of the miui one?
[Android Software Development] Lens_flare:
yap, and not only natives, but fields, etc, so lines that are not present in cm10 file. You might also need a .line replacements.
[Android Software Development] :
ok, and was that correct that i was only supposed to try to port the native methods from cm10 to miui?
[Android Software Development] Lens_flare:
dunno, I couldn't lookup your mind for that :P
[Android Software Development] :
haha

different errors now!

E/dalvikvm( 233): Requested: Landroid/view/GLES20Canvas;.nStartTileRendering:(IIIII)V

E/JNIHelp ( 233): RegisterNatives failed for 'android/view/GLES20Canvas', aborting

F/libc ( 233): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 233 (zygote)

logcat : http://pastebin.com/fzGMsyjR
[Android Software Development] DJBhardwaj:
Take care of .line, it shouldn't change. You patched wrong.
[Android Software Development] :
that error isn't popping up now. im in the process of diffing the failed native over from the canvas smali
[Android Software Development] Lens_flare:
replace those smalis - GLES20*.smali (android/view)
[Android Software Development] :
progress. didn't have to replace all the smali's. just diffed the main one.

now error is

E/dalvikvm( 271): ERROR: couldn't find native method

E/dalvikvm( 271): Requested: Landroid/hardware/Camera;.native_setHistogramMode:(Z)V

E/JNIHelp ( 271): RegisterNatives failed for 'android/hardware/Camera', aborting

pastebin : http://pastebin.com/8Hcrp4jc
[Android Software Development] Lens_flare:
yap, camera.smali, android/hardware. Use 3rd stage to fix those smali errors not consulting with each to this thread :p
[Android Software Development] :
that's all fine but now I have no smali errors. no fatal tags in my logcats. could you look at this?

pastebin : http://pastebin.com/c2MDXsv6

edit: nvm
[Android Software Development] CosmicDan:
E/AudioTrack-JNI( 2979): Can't find android/media/AudioFormat.ENCODING_AMRNB

Copy whole file from CM to MIUI - framework.jar/smali/android/media/AudioFormat.smali

I encountered this too with latest CM10 release.

Also, if your MIUI Web Browser doesn't work, use the libwebcore.so from MIUI (don't use CM10 one).
[Android Software Development] :
thanks for the info. im hoping im close to a boot
[Android Software Development] Lens_flare:
I think the problem is just as follows:

media_profiles.xml doesn't have amr codec(see nexus s one and port lines from it), it is used at media recorder and some other tasks, so it wouldn't be ideal solution to just get rid of it.
[Android Software Development] :
im past that error. working on bluetoothad2p now
[Android Software Development] CosmicDan:
I suppose that would work too, but since we are using Cyanogenmod base, wouldn't it make more sense to have MIUI use Cyanogenmod codecs? :)

EDIT: media_profiles.xml probably won't work actually, because CM's libandroid_runtime has ENCODING_AMRNB function but MIUI framework doesn't handle it.
[Android Software Development] :
welp, now im stuck again. i looked at the network smalis and changed the one line that was different between all three of them. and nothing changed. any ideas?

pastebin : http://pastebin.com/5wnykRzg
[Android Software Development] Lens_flare:
xiaomi like apple: likes to stand stupid rules :P or you put up with them, or leave alone..

D/dalvikvm( 1794): DexOpt: couldn't find field Landroid/server/BluetoothA2dpService;.mPosition

just replace those smali, no need to diff them.
[Android Software Development] :
stuck yet again. are you surprised? At least I made it through about 10 different smali errors without asking here :P

Here is the pastebin : http://pastebin.com/s7Sb7x9q

all your help has been unbelievably helpful so far guys. I'm sorry to keep pestering.
[Android Software Development] Lens_flare:
nope, I even thought you will ignore my point for third stage :p

I/dalvikvm( 270): java.lang.VerifyError: android/webkit/WebViewCore

wrong port.

if you are using libwebcore.so from miui, it just doesn't contain native methods cm usually looking for. So my only guess is revert that back.
[Android Software Development] :
same error from both libwebcore.so's . it's in the webviewcore when i tried diff'ing this

E/dalvikvm( 271): Requested: Landroid/webkit/WebViewCore;.nativeSelectText:(IIIII)V

E/dalvikvm( 271): Candidate: Landroid/webkit/WebViewCore;.nativeSelectText:(IIIIII)[Ljava/lang/String;
[Android Software Development] redhatx:
hi.. i want to try port MIUI for my galaxy wonder, but not sure which miui rom to use??..... :D
[Android Software Development] Ozadroid:
i tried changing the libsqlite.so and libsqlite_jni.so and got this !! :/

http://logcat.miui.us/989004
[Android Software Development] DJBhardwaj:
I guess, you changed the dependecies for some apps. may be some lib or xml code?
[Android Software Development] Ozadroid:
This was just a try n i wrote that i have changed sqlite libs.. real bug is in the post above :-p
[Android Software Development] :
new error. not sure what to do. this is a bootloop error now.

tinypaste (sorry for the new host. this is a big logcat)

http://tny.cz/4e3a4279
[Android Software Development] DJBhardwaj:
Did you modify framework-res.apk?

Or miuisystemui.apk?

Cause there is some misplacement of several app uids.
[Android Software Development] :
i haven't touched them at all.
[Android Software Development] :
SO I have it booting. But then more errors show up obviously. So who has had data issues? There are no APN's in the apn list, the quick toggle for data is completely greyed out, the regular toggle doesn't do anything as far as i can tell and I can't receive calls/make them/send mms/browse the internet on mobile data.

anybody have any pointers on where to start on this issue?
[Android Software Development] Ozadroid:
did u change these smalis??

com/android/internal/telephony/RIL*.smali

if not do it.. if yes produce a logcat.
[Android Software Development] :
ported over what i thought may be needed. getting force closes on the phone app

logcat : http://tny.cz/3e640547

this doesn't make any sense and is really starting to become irritating. I am 100% sure the SamsungQualcommD2RIL.smali is in the com/android/internal/telephony folder. i've triple checked it. and yet it still gives me an error for that stupid class

2nd pastebin: http://pastebin.com/d07eWB8d
[Android Software Development] CosmicDan:
Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: com.android.internal.telephony.SamsungQualcommD2RIL

You need SamsungQualcommD2RIL.smali file and all other RIL files (if any) for Samsung.

EDIT: Make sure you have all other RIL files and also try factory reset. You might also need PhoneFactory.smali and BaseCommands.smali.

EDIT2: If you use CM's PhoneFactory and BaseCommands, make sure you have "ro.telephony.ril_class=whatever" in your build.prop (get it from CM)
[Android Software Development] :
EDIT: IM AN IDIOT

got it working.
[Android Software Development] Ozadroid:
help guys!! i did what u told. now still the same error! :(
[Android Software Development] CosmicDan:
The com.android.internal.policy.impl.PhoneWindow$ContextMenuCallback can be ignored, I get that but it doesn't break anything.

Resolve this:

Package com.android.bluetooth requires unavailable shared library com.broadcom.bt; failing!

This looks bad:

E/PackageManager( 290): Package com.google.android.backup has no signatures that match those in shared user android.uid.system; ignoring!
W/PackageManager( 290): Signature mismatch for shared user : SharedUserSetting{411b55a0 android.uid.system/1000}

and this looks bad too:

I/dalvikvm( 290): Zip is good, but no classes.dex inside, and no .odex file in the same directory
W/PackageManager( 290): Exception reading jar: /system/framework/framework-res-hwext.apk

Also this looks bad but might not be fatal:

I/dalvikvm( 193): DexOpt: illegal method access (call Landroid/text/util/Linkify;.applyLink (Ljava/lang/String;IILandroid/text/Spannable;)V from Lmiui/text/util/Linkify;)

More possibly non-fatal bad stuff:

D/dalvikvm( 186): DexOpt: couldn't find field Lcom/android/internal/telephony/IccCard;.mPhone
D/dalvikvm( 186): DexOpt: couldn't find static field Lcom/android/internal/telephony/CommandsInterface$RadioState;.SIM_NOT_READY

As for fixing them, I don't know.

I think porting the latest MIUI versions with CM9 is going to cause a lot of troubles for people. Try yet another base, stay with old pre-JB MIUI, or move to CM10.
[Android Software Development] Ozadroid:
yes this can b ignored i searched for it!

will look for this!

this is happening becoz i hv /framework/framework-res-hwext.apk . i was thinking do i need a huawei framework-res for my device?? :-s

yes i will move to JB once we have a proper CM10. cam is now working in our CM10 but still dere are few graphics related glitches for i m waiting to get fixed! till then will try my luck with ICS only :(
[Android Software Development] janeindiran:
Defy jb porting

I have been porting JB for DEFY but the latest MIUI JB 2.8.24 don't boot can anyone help me identify the issue.
[Android Software Development] Lens_flare:
E/dalvikvm( 3760): ERROR: couldn't find native method
E/dalvikvm( 3760): Requested: Landroid/content/res/AssetManager;.splitThemePackage:

refer 2nd post.
[Android Software Development] janeindiran:
Is that the only bug???
[Android Software Development] Lens_flare:
Don't worry, you'll see them all after booting :p
[Android Software Development] Ozadroid:
dis is just the starting :D
[Android Software Development] CosmicDan:
It would save all of us time if you read the full guide and also the past few pages... we always try to quote the error so people can learn.

Not being rude, but it would be easier than waiting for a reply. Also you will feel proud for learning :p

Sent from Xperia Play (R800a) with Tapatalk
[Android Software Development] janeindiran:
Now got this
[Android Software Development] Lens_flare:
ehehe, our world will never change.....

E/dalvikvm( 3599): ERROR: couldn't find native method
E/dalvikvm( 3599): Requested: Landroid/webkit/WebViewCore;.nativeSelectText:(IIIII)V
E/dalvikvm( 3599): Candidate: Landroid/webkit/WebViewCore;.nativeSelectText:(IIIIII)[Ljava/lang/String;

replace android/webkit/WebView*.smali, framework.jar
[Android Software Development] Lens_flare:
not ported. Still the same

E/dalvikvm( 3079): ERROR: couldn't find native method
E/dalvikvm( 3079): Requested: Landroid/content/res/AssetManager;.splitThemePackageLjava/lang/String;Ljava/lang/String;[Ljava/lang/StringI
E/JNIHelp ( 3079): RegisterNatives failed for 'android/content/res/AssetManager', aborting
[Android Software Development] CosmicDan:
What PowerManager error? Its BluetoothA2dpService.smali.

Again, read the whole guide.

Sent from Xperia Play (R800a) with Tapatalk
[Android Software Development] janeindiran:
I know i am causing a lot of trouble but whats causing this error??
[Android Software Development] Lens_flare:
re-capture that please
[Android Software Development] janeindiran:
E/dalvikvm( 2765): ERROR: couldn't find native method

E/dalvikvm( 2765): Requested: Lcom/android/server/input/InputManagerService;.nativeSetStylusIconEnabled:(IZ)V

E/JNIHelp ( 2765): RegisterNatives failed for 'com/android/server/input/InputManagerService', aborting

F/libc ( 2765): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 2765 (system_server)

I/DEBUG ( 2202): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

I/DEBUG ( 2202): Build fingerprint: 'MOTO/MB526_O2DE/umts_jordan:2.3.6/4.5.1-134_DFP-132/1317968148:user/release-keys'

I/DEBUG ( 2202): pid: 2765, tid: 2765, name: UNKNOWN >>> system_server <<<

I/DEBUG ( 2202): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadbaad

but there is no such file
[Android Software Development] Lens_flare:
guess why? It is in services.jar..
[Android Software Development] janeindiran:
should i replace everything in inputmanager or inputmanager*??
[Android Software Development] Lens_flare:
only inputmanager*.smali
[Android Software Development] Lens_flare:
W/ResourceType( 3120): No known package when getting value for resource number 0x060c01bc
W/Resources( 3120): Converting to string: TypedValue{t=0x1/d=0x60c01bc a=-1 r=0x60c01bc}
D/PackageManager( 3120): generateServicesMap(android.accounts.AccountAuthen ticator): 5 services unchanged
I/SystemServer( 3120): Content Manager
W/ResourceType( 3120): No known package when getting value for resource number 0x060c01bc
W/Resources( 3120): Converting to string: TypedValue{t=0x1/d=0x60c01bc a=-1 r=0x60c01bc}
W/ResourceType( 3120): No known package when getting value for resource number 0x060c01bc
W/Resources( 3120): Converting to string: TypedValue{t=0x1/d=0x60c01bc a=-1 r=0x60c01bc}
W/ResourceType( 3120): No known package when getting value for resource number 0x060c01bc
W/Resources( 3120): Converting to string: TypedValue{t=0x1/d=0x60c01bc a=-1 r=0x60c01bc}

or this one, or deeper...

resourcenotfoundexception though - error nobody could overcome..
[Android Software Development] janeindiran:
are you saying this cannot be solved??
[Android Software Development] :
You may want to report from a different miui
[Android Software Development] dekkyy:
My soft button light is not working corectly on my port 4.1.1.

When on autobrightness and the brightnes is low, the soft button light turns off. It is doing opposite as it should.

Anyone has any solution for this??
[Android Software Development] Lens_flare:
see autobrightness arrays (last ones are exactly for keys), arrays.xml, framework-res.apk
[Android Software Development] dekkyy:
It looks like that:

<integer-array name="config_autoBrightnessButtonBacklightValues">
<item>60</item>
<item>60</item>
<item>60</item>
<item>60</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
</integer-array>
[Android Software Development] janeindiran:
Can anyone say which is the right MIUI rom for porting with DEFY(Nexus S gives resources not found error)
[Android Software Development] Lens_flare:
what if you try something like that:

<integer-array name="config_autoBrightnessButtonBacklightValues">
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>60</item>
<item>60</item>
<item>60</item>
<item>60</item>
<item>60</item>
</integer-array>

nexus S forever. You might just screwed some files up.
[Android Software Development] dekkyy:
I tryed that too, but it just activate button lights on even higher brightness.
[Android Software Development] Lens_flare:
what about all zeros and all 60-s?
[Android Software Development] dekkyy:
If i set all to 0, then button lights never light up.

If i set all to 60, than they are allways up.
[Android Software Development] Lens_flare:
aha, sure -_-

at last it reacts fine..

so, what's your minimal brightness according to that config and what should be? maybe it goes to dim but first value is much differ from dim..
[Android Software Development] Hikari:
Sometimes when I try to assemble a jar after diffing a smali. I get some apktool errors while smaling... Any idea? Thanks!
[Android Software Development] dekkyy:
These are autobrightness values:

<integer-array name="config_autoBrightnessLevels">
<item>11</item>
<item>41</item>
<item>91</item>
<item>161</item>
<item>226</item>
<item>321</item>
<item>641</item>
<item>1281</item>
<item>2601</item>
</integer-array>
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>1</item>
<item>11</item>
<item>23</item>
<item>35</item>
<item>48</item>
<item>55</item>
<item>80</item>
<item>150</item>
<item>200</item>
<item>255</item>
</integer-array>
<integer-array name="config_autoBrightnessButtonBacklightValues">
<item>60</item>
<item>60</item>
<item>60</item>
<item>60</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
</integer-array>
<integer-array name="config_autoBrightnessKeyboardBacklightValues">
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
</integer-array>
[Android Software Development] Lens_flare:
right diff - no errors. wrong diff - 1000 errors ;]

wow, is "1" works for your device?

try to fill in those and also extend to 10 (now 6)
[Android Software Development] dekkyy:
No, still don't work.

Here is one more thing. When sliding the slider for autobrightness, the button lights are blinking like you would adjusting light for them.
[Android Software Development] Ozadroid:
might it be that i dont hv space in /system ?? or i just hv ****ed it ?? :-s

I/SystemServer( 216): System Content Providers

E/ActivityThread( 216): Failed to find provider info for settings

E/System ( 216): ******************************************

E/System ( 216): ************ Failure starting core service

E/System ( 216): java.lang.NullPointerException

E/System ( 216):	at android.provider.Settings$NameValueCache.getString(Settings.java:711)

E/System ( 216):	at android.provider.Settings$Secure.getString(Settings.java:2308)

E/System ( 216):	at android.provider.Settings$Secure.getInt(Settings.java:2376)

E/System ( 216):	at com.android.server.am.CoreSettingsObserver.populateCoreSettings(CoreSettingsObserver.java:93)

E/System ( 216):	at com.android.server.am.CoreSettingsObserver.sendCoreSettings(CoreSettingsObserver.java:70)

E/System ( 216):	at com.android.server.am.CoreSettingsObserver.<init>(CoreSettingsObserver.java:55)

E/System ( 216):	at com.android.server.am.ActivityManagerService.installSystemProviders(ActivityManagerService.java:6290)

E/System ( 216):	at com.android.server.ServerThread.run(SystemServer.java:213)

I/SystemServer( 216): Input Method Service

E/ActivityThread( 216): Failed to find provider info for settings

F/SystemServer( 216): BOOT FAILURE starting Input Manager Service

F/SystemServer( 216): java.lang.NullPointerException

F/SystemServer( 216):	at android.provider.Settings$NameValueCache.getString(Settings.java:711)

F/SystemServer( 216):	at android.provider.Settings$Secure.getString(Settings.java:2308)

F/SystemServer( 216):	at com.android.server.InputMethodManagerService.buildInputMethodListLocked(InputMethodManagerService.java:2002)

F/SystemServer( 216):	at com.android.server.InputMethodManagerService.<init>(InputMethodManagerService.java:569)

F/SystemServer( 216):	at com.android.server.ServerThread.run(SystemServer.java:319)

W/SystemServer( 216): ***********************************************

I/SystemServer( 216): Accessibility Manager

F/SystemServer( 216): BOOT FAILURE making display ready

F/SystemServer( 216): java.lang.NullPointerException

F/SystemServer( 216):	at com.android.server.ServerThread.run(SystemServer.java:335)

W/dalvikvm( 216): threadid=11: thread exiting with uncaught exception (group=0x40a4a1f8)

I/Process ( 216): Sending signal. PID: 216 SIG: 9

W/SystemServer( 216): ***********************************************

E/AndroidRuntime( 216): *** FATAL EXCEPTION IN SYSTEM PROCESS: android.server.ServerThread

E/AndroidRuntime( 216): java.lang.NullPointerException

E/AndroidRuntime( 216):	at com.android.server.am.ActivityManagerService.showBootMessage(ActivityManagerService.java:4040)

E/AndroidRuntime( 216):	at com.android.server.ServerThread.run(SystemServer.java:347)

I/ServiceManager( 100): service 'package' died

I/ServiceManager( 100): service 'activity' died
[Android Software Development] janeindiran:
Lens Flare do you know what MIUI ROM can be used port to DEFY?? Nexus S doesn't work. Waiting for your answer.
[Android Software Development] dekkyy:
Allways use Nexus S. It is the cleanest rom to port.

Maybe you are doing something wrong.