yashsingh1/xdaforums huggingface dataset:
[Android Software Development] AdhvanIt:
Could one of you guys take a look at this radio log and tell me what you see as the issue?

All I can see is where it shows device needs provisioning.... Also some CDMA/GSM confusion from what I can see...

http://pastebin.com/LBHQmJtM

Any help is appreciated.
[Android Software Development] AdhvanIt:
I'll check that out. What's odd is that I was able to implement Wimax and get it working just fine. Just that's the only data that works now. :-/

Sent from another Galaxy [S2]

Edit: where would you recommend looking for this?
[Android Software Development] Lens_flare:
telephony and telephony/CDMA folder :p

RIL*.smali, CDMAServiceStateTracker*.smali, CDMADataConnectionTracker*.smali, CM source code for your device at last..
[Android Software Development] _polimorph_:
Saddly that's the only output of logcat. I would so baddly want to have a normal log! What the heck it's going so bad?
[Android Software Development] AdhvanIt:
The only smali I replaced/modified in there were the RIL smali.. I guess maybe that's the problem..

Sent from another Galaxy [S2]
[Android Software Development] AdhvanIt:
Okay. Just an update.. Got 3G working, now I have two other errors. 1x not supported and whatever that other one is. Lol

Any thoughts?

D/CDMA ( 2232): [CdmaSST] pollStateDone: oldSS=[0 home Sprint US 310120 1xRTT CSS not supported 1 4126 RoamInd=1 DefRoamInd=0 EmergOnly=false] newSS=[0 home null US 310120 1xRTT CSS not supported 1 4126 RoamInd=1 DefRoamInd=0 EmergOnly=false]
D/CDMA ( 2232): [CdmaSST] shouldFixTimeZoneNow: retVal=false iccCard=com.android.internal.telephony.IccCard@42621818 iccCard.state=READY iccCardExist=true operatorNumeric=310120 mcc=310 prevOperatorNumeric=310120 prevMcc=310 needToFixTimeZone=false ltod=10-09 22:07:26.343
D/CDMA ( 2232): [CdmaDCT] CdmaDCT handleMessage msg={ what=270368 when=0 arg1=1 }
D/RILB ( 2232): getLteOnCdmaMode=0 curVal=-1 product_type='' lteOnCdmaProductType=''
D/RILB ( 2232): getLteOnCdmaMode=0 curVal=-1 product_type='' lteOnCdmaProductType=''
D/CDMA ( 2232): [CdmaSST] getOtasp: state=3
D/RILB ( 2232): getLteOnCdmaMode=0 curVal=-1 product_type='' lteOnCdmaProductType=''
D/RILB ( 2232): getLteOnCdmaMode=0 curVal=-1 product_type='' lteOnCdmaProductType=''
D/PHONE ( 2232): VM: PhoneSubInfo.getVoiceMailNUmber:
E/RILC ( 1794): responseSimStatus: A RilCardStatus_v6 or _v5 expected
D/RILC ( 1794): [0007]< GET_SIM_STATUS fails by E_GENERIC_FAILURE
D/RILJ ( 2232): Serial: 7
D/RILJ ( 2232): Error: -1
D/RILJ ( 2232): [0007]< GET_SIM_STATUS error: com.android.internal.telephony.CommandException: INVALID_RESPONSE
E/CDMA ( 2232): Error getting ICC status. RIL_REQUEST_GET_ICC_STATUS should never return an error
E/CDMA ( 2232): com.android.internal.telephony.CommandException: INVALID_RESPONSE
E/CDMA ( 2232):	at com.android.internal.telephony.RILRequest.onError(RIL.java:179)
E/CDMA ( 2232):	at com.android.internal.telephony.SamsungCDMAv6RIL.processSolicited(SamsungCDMAv6RIL.java:287)
E/CDMA ( 2232):	at com.android.internal.telephony.RIL.processResponse(RIL.java:2171)
E/CDMA ( 2232):	at com.android.internal.telephony.RIL$RILReceiver.run(RIL.java:573)
E/CDMA ( 2232):	at java.lang.Thread.run(Thread.java:856)
[Android Software Development] Lens_flare:
oh..

you mentioned about 2 files which windows merges. Grab a live cd of ubuntu to see whether your port will success or no.

log I showed was my attempt to pass through android_runtime error ;D

it seems like you have wrong libril.so.

RIL sends a request with data that formed in it previously to libril, libril sends it to vendor ril and vendor ril to baseband.

as we see, chain was corrupted in libril..

uhm just a minute, what if you change icccardstatus*.smali?
[Android Software Development] chiragkrishna:
i was stuck at the same place,... and finally gave up,... installed ubuntu,... need to check my luck with that,.... ;)
[Android Software Development] a1exander:
When you guys are logcatting and fixing smali errors, do you flash the entire rom again with fixed file, or do you adb push just framework.jar etc?
[Android Software Development] v1r0x:
Just push the edited files
[Android Software Development] _polimorph_:
There are as much as 23 duplicates in that folder that windows can't treat them as different files! Hmm...

Good ideea, I think I will end up using linux after all, altough atm I'm such a noob with it.

I'll keep you posted. Thanks!

Because I might need to share afterwards my BugFixes my personal option is to paste the *.jar file (or other, maybe *.apk) into a flashable zip and just flash it in recovery with cache and dalvik wipe. I test the fix an if it works as expected I can share it right away.
[Android Software Development] a1exander:
@ v1r0x and _polimorph_: Thanks! :)

Hm I have this error:

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

E/dalvikvm( 2428): Requested: Lcom/android/server/PowerManagerService;.nativeCpuBoost:(I)V

E/JNIHelp ( 2428): RegisterNatives failed for 'com/android/server/PowerManagerService', aborting

I have tried replacing PowerManagerService.smali from CM10, diffing it, just adding the

"nativeCpuBoost:(I)V"

line. Cant get past this bootloop error. :s Help?

EDIT: I fixed it, nvm!
[Android Software Development] _polimorph_:
Care to share how you did it?
[Android Software Development] sorullo_xgrx:
I can't find Ril_class on build.prop I dint think there is one
[Android Software Development] Lens_flare:
ok, just replace RIL*.smali
[Android Software Development] Master_T:
Hi guys, and Lens_Flare in particular (spectacular guide man!!)

I have been trying to use this guide to port MIUI to the Acer Liquid A1/E, since a nice CM9 rom has recently been released for the phone (I think Lens might know something about this device :D).

After a bit of framework/services modding I managed to reach the lockscreen, but now I have a big problem: every app FCs immediately on launch. I've looked at logcat, and every time an app tries to start and crashes it tells me this:

E/AndroidRuntime( 7071): FATAL EXCEPTION: main
E/AndroidRuntime( 7071): java.lang.NoClassDefFoundError: [generic]
E/AndroidRuntime( 7071): at dalvik.system.NativeStart.main(Native Method)

So basically, it's not finding a class, and by the looks of it it is a native class (am I wrong? I've found almost nothing on this error on google). The problem is that I have no idea about WHAT class it is, so I have no clue on how to debug this.

Here is a bit more code around the error, for context:

I/ActivityManager( 272): START {act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10000000 cmp=com.android.settings/.CryptKeeper} from pid 0
I/ActivityManager( 272): Start proc com.android.settings for activity com.android.settings/.CryptKeeper: pid=6973 uid=1000 gids={1015, 3002, 3001, 3003, 3006, 3007}
I/ActivityThread( 6973): Pub miui_settings: com.android.settings.provider.MiuiSettingsProvider
D/AndroidRuntime( 6973): Shutting down VM
W/dalvikvm( 6973): threadid=1: thread exiting with uncaught exception (group=0x40a3e338)
E/AndroidRuntime( 6973): FATAL EXCEPTION: main
E/AndroidRuntime( 6973): java.lang.NoClassDefFoundError: [generic]
E/AndroidRuntime( 6973): at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager( 272): Force finishing activity com.android.settings/.CryptKeeper
I/Process ( 6973): Sending signal. PID: 6973 SIG: 9
I/ActivityManager( 272): Process com.android.settings (pid 6973) has died.

Does anyone have an idea?

Any help will be greatly appreciated!

Here is full logcat, in case it's needed:

http://pastebin.com/E2mEUfA1

Hope someone can shed some light on this!

Master_T
[Android Software Development] _polimorph_:
Solutions

Solved.

Problem: The filepath of that png was not declared correctly.

Solution: It should be instead of res/drawable-xhdpi/ instead of res/drawable-en-xhdpi/.

Solved.

Problem: Wrong version of apktool and aapt used.

Solution: Used apktool 1.5.0. and last aapt from iBotPeaches.

This was harder to solve and I want to thank you guys and I want also to thank the man that provided the final solution: a9402169

Solution: besides the already known specific MIUI libs I also used the following libs from MIUI:

libandroid.so, libandroid_runtime.so, libandroid_servers.so, libsystem_server.so.

EDIT: it seems that using those libs from MIUI is no longer apropriate. Instead one can use exact the same libs from an older than oct '12 CM10 build to pass that Netd bootloop.
[Android Software Development] CosmicDan:
Wow you're lucky... doesn't work on my device :(

So does that mean you can also use MIUI's libwebcore.so? You're so lucky!
[Android Software Development] ak0r:
I am facing Headset issues. Headsets are just not getting recognized. I searched this thread and got something related to replacing smali code in services.jar. I tried but both the smali (WiredAccessoryObserver.smali) contains same lines of code about "h2w"

What to do now? Anybody fixed this problem?
[Android Software Development] Lens_flare:
oO Master_T,glad to see you again :P

What's MIUI base you used to port from? All MIUI ICS bases are just reskinned stock roms, I think it's near impossible to port from them(which is more strange you got a lockscreen).

Nexus S is on jellybean which seems even not an alpha for longliver liquid.

Something unusual here. Even port was samsung(gnex/ns)-samsung(gs3) it's impossible that file structure just matches from CM to MIUI.. Will definitely try all those libs.

Also interesting, is browser working? It shouldn't work until you replace libwebcore.so .

now it's nothing to do with h2w headset path, that one is default, framework now could obtain such info from userspace.

Do you have any apk/module in framework which fixes HS on base? Check smalis you listed to see any difference.

EDIT:

Came across that thing: http://i.imgur.com/sEHFr.png

does anybody knows what's the 1x and how to get rid of it? I heared MIUI.us done that, but... you know miui.us rules right? :D
[Android Software Development] AdhvanIt:
Weird. That's actually a CDMA specific thing. Not just MIUI.us. It's displaying your voice and 3G signal strength.

The funny thing is that I've been trying like hell to get the dual signal display to work properly. Mine shows both, but the 3G display is always at 0 bars.

If you figure out how to get rid of it, please point me to it. I'd like them both working...

Sent from another Galaxy [S2]
[Android Software Development] Master_T:
I used N1 base, I didn't really know which one to pick honestly, the N1 seemed the nearest to the liquid. Do you recommend re-basing? Which base do you recommend?
[Android Software Development] Lens_flare:
alright, it's great base (don't actually know on what base THAT one based[no official miui for n1 as you know])

ok I searched log you provided, alright I found something interesting:

D/dalvikvm( 209): DexOpt: unable to opt direct call 0x1cf1 at 0x13 in Lcom/android/server/wm/InputManager;.registerKeyLayoutSettingObserver

seems Inputmanager*.smali from services.jar/com/android/server/wm are wrong, change to one in your CM.

F/SystemServer( 209): android.content.res.Resources$NotFoundException: String array resource ID #0x1070036
F/SystemServer( 209): at android.content.res.Resources.getStringArray(Resources.java:472)
F/SystemServer( 209): at com.android.server.usb.UsbDeviceManager.readOemUsbOverrideConfig(UsbDeviceManager.java:704)
F/SystemServer( 209): at com.android.server.usb.UsbDeviceManager.<init>(UsbDeviceManager.java:156)
F/SystemServer( 209): at com.android.server.usb.UsbService.<init>(UsbService.java:55)
F/SystemServer( 209): at com.android.server.ServerThread.run(SystemServer.java:497)

re-port USB, you have native MTP, so just replace USB folder in services.jar/com/android/server.
[Android Software Development] Lens_flare:
I don't have that issue personally (as GSM user), just came across that screenshot which might be an interesting issue :P

MIUI.us has a tool named MIUIToolbox.apk (for example it could be found on Sprint Galaxy Nexus [aka toro]), It could be installed on any device (especially on miui.us-supported), it seems has a setting to hide 1x.
[Android Software Development] Master_T:
I will try this evening, thx for the quick reply! Will report back as soon as I'm able to test.
[Android Software Development] Cobmaster:
Hi, thanks for the guide. I'm working on a port for lg e 400. I'm using the cm9 as base and a ported version for a Samsung ( honestly I don't remember which one it is!) It booted, but the "com.android.phone" process crash continuously. How can I fix this error?

Sent from my LG-E400 using Xparent Blue Tapatalk 2
[Android Software Development] Lens_flare:
have you replaced RIL*.smali, redefined RIL to your ril_class and pasted that ril_class?

hello from TTK user :D
[Android Software Development] Cobmaster:
No, I'll try it later. Thanks!

Inviato dal mio LG-E400 con Tapatalk 2
[Android Software Development] Master_T:
Well, I fixed the InputManager* stuff and replaced usb.

I must say it goes "further", meaning logcat shows a lot more stuff running in the background, but I still can't get past lockscreen, every app still FCs with the same error as before.

However, a new error that may be causing problems is this:

E/PhonePolicy - Could not preload class for phone policy: com.android.internal.policy.impl.PhoneWindow$ContextMenuCallback

The class seems to be in android.policy.jar. I tried replacing it with the CM9 one, but no luck unfortunately, it still keeps saying it.
[Android Software Development] CosmicDan:
Official ports have that error. Its only a preload error, just ignore it.

Sent from Xperia Play (R800a) with Tapatalk
[Android Software Development] Lens_flare:
ok, do a new logcat, we'll see.
[Android Software Development] Master_T:
http://pastebin.com/L20AmRFk

line 4619/4621 is one of the errors I was talking about.

Hope it helps...

EDIT: updated logcat, previous one had weird errors.
[Android Software Development] Lens_flare:
E/dalvikvm( 1561): ERROR: couldn't find native method
E/dalvikvm( 1561): Requsted: Landroid/media/MediaRecorder;.native_start:()V
E/JNIHelp ( 1561): RegisterNatives failed for 'android/media/MediaRecorder', aborting

replace android/media/MediaRecorder.smali.
[Android Software Development] Master_T:
Sorry, I really must have messed up the jars, I should've cleaned up everything now.

Here's new logcat, doesn't have any E/dalvikvm register natives failures.

http://pastebin.com/4cdDZQ6b
[Android Software Development] Lens_flare:
F/SystemServer( 209): BOOT FAILURE starting UsbService
F/SystemServer( 209): android.content.res.Resources$NotFoundException: String array resource ID #0x1070036
F/SystemServer( 209): at android.content.res.Resources.getStringArray(Resources.java:472)
F/SystemServer( 209): at com.android.server.usb.UsbDeviceManager.readOemUsbOverrideConfig(UsbDeviceManager.java:704)
F/SystemServer( 209): at com.android.server.usb.UsbDeviceManager.<init>(UsbDeviceManager.java:156)
F/SystemServer( 209): at com.android.server.usb.UsbService.<init>(UsbService.java:55)
F/SystemServer( 209): at com.android.server.ServerThread.run(SystemServer.java:497)

again that usbservice error.. huh?

Process us.miui.toolbox (pid 892) has died.

miui toolbox.. smells like you have MIUI.us as base.. you know, it's impossible to port.
[Android Software Development] Master_T:
Damn... didn't know. Any suggestion on which base to use then?? I tried DesireS as you suggest in first post, but it has a very different structure... has two frameworks.jar and a lot of other different stuff, seems a nightmare to port...
[Android Software Development] Master_T:
Well, I rebased all on the last availeble crespo Nexus miui for ICS. It starts well, but I then get the dreaded:

W/ResourceType( 412): No known package when getting value for resource number 0x06060008
W/dalvikvm( 412): threadid=24: thread exiting with uncaught exception (group=0x40a3e338)
E/AndroidRuntime( 412): *** FATAL EXCEPTION IN SYSTEM PROCESS: WindowManagerPolicy
E/AndroidRuntime( 412): android.content.res.Resources$NotFoundException: Resource ID #0x6060008
E/AndroidRuntime( 412):	at android.content.res.Resources.getValue(Resources.java:1022)
E/AndroidRuntime( 412):	at android.content.res.MiuiResources.getValue(MiuiResources.java:62)
E/AndroidRuntime( 412):	at miui.util.ResourceMapper.resolveReference(ResourceMapper.java:9)
E/AndroidRuntime( 412):	at miui.util.HapticFeedbackUtil.updateSettings(HapticFeedbackUtil.java:109)
E/AndroidRuntime( 412):	at miui.util.HapticFeedbackUtil$SettingsObserver.observe(HapticFeedbackUtil.java:92)
E/AndroidRuntime( 412):	at miui.util.HapticFeedbackUtil.<init>(HapticFeedbackUtil.java:75)
E/AndroidRuntime( 412):	at com.android.internal.policy.impl.MiuiPhoneWindowManager.init(MiuiPhoneWindowManager.java:129)
E/AndroidRuntime( 412):	at com.android.server.wm.WindowManagerService$PolicyThread.run(WindowManagerService.java:733)
I/Process ( 412): Sending signal. PID: 412 SIG: 9
I/OMXCodec( 386): Attempting to allocate OMX node 'OMX.google.vorbis.decoder'
I/Zygote ( 384): Exit zygote because system server (412) has terminated

Which you say in your guide is because of "wrong base". Is there ANY way around this, or should I just give up?

Full logcat here:

http://pastebin.com/SStkEiFD
[Android Software Development] Lens_flare:
Master_T

it shouldn't even bother you if all have been done right.

have you modified framework-res?
[Android Software Development] Master_T:
Nope, just used the guide and followed to the letter.

Only thing: I also had to use AssetsManager from my CM9, because the one in MIUI gave me a missing method error. May that be the cause? The name "AssetManager" makes me think of resources...

Should I maybe just try to diff instead of replacing it?
[Android Software Development] Lens_flare:
it is defined as an essential example of diff process and you just replaced it.. uh.. don't tell me you are not lucky..
[Android Software Development] Master_T:
Damn, I'm an idiot :D I will diff it now. Btw, do you think that might be the issue? Well, I'll try anyway...

EDIT: woa, I reached desktop!! Unfortunately I can't do anything because the NFC service keeps FCing and popping up with the "The nfc service has crashed". This I should say is quite normal since the A1 doesn't have NFC. Should I just remove the nfc apk or should somethind "deeper" be removed/disabled/fixed? I'll try to tinker a bit now, while waiting for a response (lol, I'm so giddy :D)

EDIT 2: Just had to delete nfc.apk. Now the keyboard is crashing :D I'll just install a 3rd party one.

EDIT 3: It works! It's slow and some apps close for no apparent reason, but it works!
[Android Software Development] AdhvanIt:
Anyone want to take a stab at this?

D/RILJ ( 2414): [0026]< VOICE_REGISTRATION_STATE {1, null, null, 6, 3090, 619864, 7155049, 0, 4126, 1, 1, 1, 0, 0}
D/CDMA ( 2414): [CdmaSST] Set CDMA Roaming Indicator to: 1. mCdmaRoaming = false, isPrlLoaded = true. namMatch = false , mIsInPrl = true, mRoamingIndicator = 1, mDefaultRoamingIndicator= 0
D/CDMA ( 2414): [CdmaSST] pollStateDone: oldSS=[0 home Sprint US 310120 1xRTT CSS not supported 1 4126 RoamInd=1 DefRoamInd=0 EmergOnly=false] newSS=[0 home null US 310120 1xRTT CSS not supported 1 4126 RoamInd=1 DefRoamInd=0 EmergOnly=false]
D/CDMA ( 2414): [CdmaSST] shouldFixTimeZoneNow: retVal=false iccCard=com.android.internal.telephony.IccCard@42605a60 iccCard.state=READY iccCardExist=true operatorNumeric=310120 mcc=310 prevOperatorNumeric=310120 prevMcc=310 needToFixTimeZone=false ltod=10-14 00:38:00.770
E/RILC ( 1784): responseSimStatus: A RilCardStatus_v6 or _v5 expected
D/RILC ( 1784): [0007]< GET_SIM_STATUS fails by E_GENERIC_FAILURE
D/RILJ ( 2414): Serial: 7
D/RILJ ( 2414): Error: -1
D/RILJ ( 2414): [0007]< GET_SIM_STATUS error: com.android.internal.telephony.CommandException: INVALID_RESPONSE
E/CDMA ( 2414): Error getting ICC status. RIL_REQUEST_GET_ICC_STATUS should never return an error
E/CDMA ( 2414): com.android.internal.telephony.CommandException: INVALID_RESPONSE
E/CDMA ( 2414):	at com.android.internal.telephony.RILRequest.onError(RIL.java:179)
E/CDMA ( 2414):	at com.android.internal.telephony.SamsungCDMAv6RIL.processSolicited(SamsungCDMAv6RIL.java:287)
E/CDMA ( 2414):	at com.android.internal.telephony.RIL.processResponse(RIL.java:2171)
E/CDMA ( 2414):	at com.android.internal.telephony.RIL$RILReceiver.run(RIL.java:573)
E/CDMA ( 2414):	at java.lang.Thread.run(Thread.java:856)

Tried replacing/diffing the Icc*.smali tree, but each time I touch those, I get a phone FC...
[Android Software Development] Lens_flare:
I still doubt it might be libril/modem fault

phone FC could be tracked by the same radio/mere log look into it - you'll see a way to go..
[Android Software Development] AdhvanIt:
Wait.. Thinking it's an issue with libril? The AOSP build I'm using as a base has no radio issues like this...

With the phone FC, the radio log freezes there, but I'll take a look at logcat too. Just trying to get these damn signal bars working properly. It's driving me nuts....
[Android Software Development] Anon9mouz:
Here's the problem I'm having here's a log if anyone has some free time lmk thank uhttp://logcat.miui.us/1264001

__________________________________________________
[Android Software Development] CosmicDan:
Does anybody have an issue with the smileys being completely blank on their SMS app?
[Android Software Development] Lens_flare:
in fact first fail we see in libril code. There is a handler of sim status there, in libril, it receives data structure, first of all that one checked, and if size is not equal or in multiply of "6" or "5", check fails, which results in message you got.

That's visual part.

In reality, it might be wrong request to ril, done by framework, as you claim you changed RIL*.smali, and [yourRILclass]*.smali, the only module which could affect the process - iccCardStatus, which might be incomplete and so - throw wrong status to RIL class, which is also throwing wrong status subsequently to RIL.

Hope makes sense :P

on linux it would be better to work. For framework and apk I suggest Connor apktool 1.5.0 (or even higher?) and his AAPT binary, that toolchain should work effectively on such roms.

that one:

E/JNIHelp ( 2480): Native registration unable to find class 'android/media/videoeditor/VideoEditorProfile', aborting
6682:

I guess it is in framework.jar.

oO how'? They are just font figures.. maybe you have wrong font?
[Android Software Development] CosmicDan:
According to another MIUIAustralia dev they are fully-coloured graphics, I don't think that's supported in TTF fonts? Even so, I use 100% MIUI fonts. I'm thinking I have a missing lib or apk or something but logcat shows nothing, they are simply "blank".
[Android Software Development] Lens_flare:
Let's clarify:

on official miui v4 (which I'm using for now) to access smileys I should do that sequence:

-open messaging app

-compose new message

-tap attachment key near text field

-choose smiley

if that's what you mean, I see only font figures and also some specific signs (which are part of font), nothing coloured oO
[Android Software Development] CosmicDan:
Hmm OK. He's using a Mi-One, perhaps on the "official" Xiaomi device they are blessed with graphics.

Well regardless, they are still blank. Not sure why. I'll rebuild the ROM and place all missing libs and etc/* in there and see what happens. Cheers.
[Android Software Development] thetrisatria:
@CosmicDan

i think what you meant is emoji emoticon?

this feature is not supported in xperia device. that's why Xiaomi remove this feature in the Official MIUI for Arc S (stock based)

edit: d*mn, you're right. my smiley is gone too :P

didnt notice before

edit2: they moved the emoticon button to the 4th column, we used to have the emoticon in 1st / left column

now the 1st column filled with emonji smilley button, which is not supported in xperia device. cmiiw
[Android Software Development] CosmicDan:
What the? I only have the first two options :( are you also on latest Arc S?

Sent from Xperia Play (R800a) with Tapatalk
[Android Software Development] thetrisatria:
Nope.

I have Nexus S + FXP137-CM10
[Android Software Development] Lens_flare:
I only have last 2 tabs..