yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Hamodi:
i have this error !!

C:\apktools>java -jar apktool.jar b frameresMiui NEWframework.jar

I: Checking whether sources has changed...

I: Smaling...

W: Unknown file type, ignoring: frameresMiui\smali\android\content\res\AssetMana

ger.smali.bak

W: Unknown file type, ignoring: frameresMiui\smali\android\media\AudioFormat.sma

li.bak

W: Unknown file type, ignoring: frameresMiui\smali\android\os\SystemProperties.s

mali.bak

Exception in thread "main" java.lang.NullPointerException

at org.jf.util.PathUtil.getRelativeFile(PathUtil.java:44)

at org.jf.smali.smaliFlexLexer.getSourceName(smaliFlexLexer.java:2878)

at org.antlr.runtime.CommonTokenStream.getSourceName(CommonTokenStream.j

ava:345)

at org.antlr.runtime.Parser.getSourceName(Parser.java:88)

at org.jf.smali.smaliParser.getErrorHeader(smaliParser.java:343)

at org.antlr.runtime.BaseRecognizer.displayRecognitionError(BaseRecogniz

er.java:192)

at org.antlr.runtime.BaseRecognizer.reportError(BaseRecognizer.java:186)

at org.antlr.runtime.BaseRecognizer.recoverFromMismatchedToken(BaseRecog

nizer.java:606)

at org.antlr.runtime.BaseRecognizer.match(BaseRecognizer.java:115)

at org.jf.smali.smaliParser.method(smaliParser.java:1599)

at org.jf.smali.smaliParser.smali_file(smaliParser.java:580)

at brut.androlib.mod.SmaliMod.assembleSmaliFile(SmaliMod.java:71)

at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:43)

at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:33)

at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:64)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:48)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:35)

at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:243)

at brut.androlib.Androlib.buildSources(Androlib.java:200)

at brut.androlib.Androlib.build(Androlib.java:191)

at brut.androlib.Androlib.build(Androlib.java:174)

at brut.apktool.Main.cmdBuild(Main.java:188)

at brut.apktool.Main.main(Main.java:70)
[Android Software Development] a1exander:
Why do you have smali.bak files? Remove those or remove ".bak"!
[Android Software Development] thetrisatria:
apktool will ignores them anyway, not included to the compiled file. nothing to do with the "bak" files.
[Android Software Development] iBotPeaches:
Thats an Apktool bug. Which won't be fixed till v1.5.1 comes out, which comes out when AOSP gets 4.2 which should be around Nov 20
[Android Software Development] Hamodi:
But how other port jb?? Any way I will wait untel 20 nov
[Android Software Development] Hamodi:
any body had seen this vedio before ??

http://www.youtube.com/watch?v=-YvCDRHzmtM

It shows how to make meld diff viewer works on Windows :D cool

---------- Post added at 01:30 PM ---------- Previous post was at 12:55 PM ----------

guys

.line 136

new-instance v8, Lcom/android/internal/telephony/LGEQualcommRIL;

this line on miui show like this

.line 136

new-instance v8, Lcom/android/internal/telephony/SemecQualcommRIL;

__

On CM its not there at all !!

but on the telephony folder its SamsungQualcommUiccRIL

so what i shud do here ??!!!
[Android Software Development] vijendrahs:
Language packs are available for each and every release in the miui forum itself where you download for porting..
[Android Software Development] janeindiran:
Settings apk

I wanna make changes to settings.apk file. It needs proper framework-res.apk file. No matter what version of miui jb rom i use it ask me to add the right framework-res.apk file. I am sure many have this issue. Can anyone post these files that support decompliling.
[Android Software Development] AdhvanIt:
The OP states to merge in your specific RIL files. So RIL*.smali and SamsungQualcommUiccRIL*.smali

Have you tried adding framework-miui-res.apk to your installed framework?
[Android Software Development] janeindiran:
we need both framework-res and setting.apk files, to decompile settings.apk file. I tried it on the latest MIUI JB rom and it still asks me to insert the right framework-res.apk file.

---------- Post added at 10:33 PM ---------- Previous post was at 10:22 PM ----------

Have you tried decompiling settings.apk?? I have been trying for a long time.
[Android Software Development] AdhvanIt:
I haven't had any issues decompiling it...
[Android Software Development] janeindiran:
can you upload the tool that you used to decompile.
[Android Software Development] AdhvanIt:
http://connortumbleson.com/apktool-v1-4-5-a-tool-for-reverse-engineering-apk-files/

Use that apktool and aapt.

Open a terminal and do this:

$ apktool if framework-res.apk
$ apktool if framework-miui-res.apk
$ apktool d Settings.apk out

Your outputs should look exactly like the ones in my screenshot attached here. I'm thinking the issue you're having is the one I suggested earlier. You need to install framework-miui-res.apk. Not just framework-res.apk. And there's no need to install Settings.apk.
[Android Software Development] janeindiran:
thanks man it works

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

is there anyway we can set airplane mode as default when phone is turned on
[Android Software Development] TheEdgeOfRage:
Help with stage 2

Im porting a JB MIUI v2.11.9 from nexus s to my xperia mini and using base ROM cm10 fxp146.

Im currently at the very end of stage 2 and cant find that cpuBoost file or whatever. does anyone know if its maybe named differently or its not in services.jar

Im still new to porting ROMs so please consider that.

Sorry for bad english
[Android Software Development] AdhvanIt:
cpuBoost is not a smali. It's a method inside PowerManagerService.smali.
[Android Software Development] TheEdgeOfRage:
Thanks man
[Android Software Development] MasterZen88:
If I use miuiandroid build, would the rom be in English?

Thank you for your help!
[Android Software Development] v1r0x:
miuiandroid build is chinese/english and every saturday/sunday they release a multi lang package
[Android Software Development] MasterZen88:
Thank You!
[Android Software Development] chiragkrishna:
thank you now there are lots of errors showing up,..

http://pastie.org/4405316

does that log mean there is problems in the resolution preventing it from boot?
[Android Software Development] v1r0x:
do you have this file?:

E/SEC_COMP_REGS( 7711): Path & libName : /system/lib/omx/libOMX.SEC.AVC.Decoder.so
[Android Software Development] chiragkrishna:
yes i have that file,... shoul i replace libOMX.SEC.AVC.Decoder.so???
[Android Software Development] v1r0x:
I think the rom wants the file in /system/lib/omx

In my rom the file is located in /system/lib

Maybe that's the problem?

But I really don't know, just an idea.
[Android Software Development] chiragkrishna:
but those files are located in /system/lib/omx in my rom :(
[Android Software Development] MasterZen88:
Well found the problem. Had to smali out that rouge code. Now it seems I have one problem problem to figure out. The Android keyboard is not working. Under Settings>Language & input Android Keyboard is grayed out...

Any thoughts???

---------- Post added at 10:13 AM ---------- Previous post was at 09:19 AM ----------

NVM.. Just figured it out. I was missing a setting within build.prop
[Android Software Development] DJBhardwaj:
You are taking Galaxy ace miui.us as base? right?

P.S: I found a solution to themes, no need to create any folders now. :good:
[Android Software Development] Ozadroid:
yep its the same miui base!! u know how 2 fix ?? or what the error is xactly ! ?? :-s
[Android Software Development] DJBhardwaj:
Miui.us has a lot of framework problems. But still, I guess it has something to do with firewall app.

And the single app is the reason of every other app fc'ing.

In my case, it was nfc.apk
[Android Software Development] Ozadroid:
i have removed that firewall app and jinshan security app.. i think it was AntiSpam.apk and GuardProvider.apk or vice-versa.

and accept my reqst on FB i have sent u.
[Android Software Development] DJBhardwaj:
May be. Miui.us is a huge problem.

Btw I got a proposal from Miui.us , I will redirect the person to you. I am gonna stick with miuiandroid.

P.S: I don't use fb anymore.

Use whatsapp or gtalk
[Android Software Development] Lens_flare:
sorry guys, I'm now have some "bandwith" troubles, so I couldn't reply to all those pages immediately ;]

and I said it's now community thread, not mine, so I don't have to reply each.

nope and don't want to, damned method that works only on chinese hands..

mass storage fix is presented on guide, it is compatible with your device.

for themes, it might be missing files, like content-type.properties.

hope others has been replied.
[Android Software Development] DJBhardwaj:
Thanks a lot for replying ;)
[Android Software Development] Ozadroid:
ok, i have found the problem. its the Deskclock.apk

removed it now everything is fine!

but still if any1 can tell how to fix it wid the clock. coz its necessary! :-s
[Android Software Development] CosmicDan:
Uhhh mega long quotes.....

Use miuiandroid.com ROM.

Sent from Xperia Play (R800a) with Tapatalk
[Android Software Development] Ozadroid:
bro i like challenges. n i have made it work! its not that miui.us wont work ever. so if u can help in the error its fine. else what u told is not a solution to me :)
[Android Software Development] eminent1410:
I port MIUI to LG p970, but I has some problem with camera. I try both legacycamera and Google gallery (4.1 and 4.2) but when I take a pic, the camera freezes and I have to double click to switch camera or restart camera apps to continue taking pic. It doesnt happen with other camera apps non-based on those camera. How can I fix it. Thanks a lot
[Android Software Development] AdhvanIt:
Logcat.
[Android Software Development] irberserk:
Hi guys :o I have a very little problem. My porting works very fine but the phone information show incorrect values. The ram reported is 512 mb but the true ram is 384 and some problem with the internal memory That is 256mb not 4gb xD. Any help is appreciated :) thanks all :good:
[Android Software Development] eminent1410:
Its here.
[Android Software Development] chiragkrishna:
bored of porting miui manually

feel free to use CK Auto MIUI Porter
[Android Software Development] TheEdgeOfRage:
Try looking up for those values in your build.prop and change them to the real ones.

ICS or JB? What base what MIUI and for what device?

Sorry for bad english
[Android Software Development] AdhvanIt:
Looks like it's an issue with your base. Is camera working in that?
[Android Software Development] irberserk:
Miui.us for LG p500, my phone is LG e400 my base cyanogen mod 9 :)

Inviato dal mio GT-P5110 con Tapatalk 2
[Android Software Development] eminent1410:
Thanks for feedback. I port based CM10 stable, and camera works well in CM10
[Android Software Development] AdhvanIt:
Well afaik, the 4.2 camera requires certain libs as well. Might be that those libs are conflicting with the stock camera if you're using both.

Have you tried using just the camera from cm10 without the 4.2 camera and libs?
[Android Software Development] (HEROo):
delete
[Android Software Development] (HEROo):
I don't understand the instructions for RIL

In my build.prop write:

ro.telephony.ril.v3=signalstrength,datacallapn (ro.telephony.ril_class= - no)

rild.libpath=/system/lib/libhtc_ril.so

What should I do next? Skip the action with RIL...? Or should I change?

Explain me.

Logcat(skip RIL)

Search didn't find anything, if repeated, sorry.

Thanks
[Android Software Development] sk8erboy:
How to solve this problem, a black line under the statusbar? I delete the function in drawables.xml .but nothing changed~so..plz help~
[Android Software Development] eminent1410:
Thx I will try port new MIUI version and try your guide. I will resend logcat for you. Thx for your support.
[Android Software Development] sk8erboy:
if u build.prop not have this,you only need replace RIL*.smali and test it works or not.
[Android Software Development] (HEROo):
Not working. I send logcat... http://xdaforums.com/showpost.php?p=34231507&postcount=1592
[Android Software Development] tathanhlam66:
you can do the steps as my

navi \ com \ android \ internal \ telephony

replace

RIL *. smali
PhoneFactory.smali
BaseCommands.smali

add

SemcRIL*.smali

next step

[res/values/bools.xml] :

Code:

<bool name="skip_restoring_network_selection">true</bool>

just change it to "false":

Code:

<bool name="skip_restoring_network_selection">false</bool>

and network will come up.

p/s: my port, headphone not work, who can help me
[Android Software Development] (HEROo):
Not work. Logcat unchanged.

Help me with step - >>Common Remark about patching smalis

Open WinMerge - open two files (cm - miui port) SystemProperties.smali - all right(copy/replace in miui)?
[Android Software Development] stelios97:
I ported miui jb to x10 mini using this guide and it boots first time but then it reboots and never boot again only stack at boot animation!

this happen only when the sim card is on the phone! if i remove sim card i don't have such problem!

here is the error from logcat:

11-17 21:02:46.182: E/AndroidRuntime(1738): *** FATAL EXCEPTION IN SYSTEM PROCESS: NetworkPolicy
11-17 21:02:46.182: E/AndroidRuntime(1738): java.lang.IllegalStateException: Bandwidth module disabled
11-17 21:02:46.182: E/AndroidRuntime(1738):	at com.android.server.net.NetworkStatsService.assertBandwidthControlEnabled(NetworkStatsService.java:1172)
11-17 21:02:46.182: E/AndroidRuntime(1738):	at com.android.server.net.NetworkStatsService.advisePersistThreshold(NetworkStatsService.java:658)
11-17 21:02:46.182: E/AndroidRuntime(1738):	at com.android.server.net.NetworkPolicyManagerService$11.handleMessage(NetworkPolicyManagerService.java:1939)
11-17 21:02:46.182: E/AndroidRuntime(1738):	at android.os.Handler.dispatchMessage(Handler.java:95)
11-17 21:02:46.182: E/AndroidRuntime(1738):	at android.os.Looper.loop(Looper.java:137)
11-17 21:02:46.182: E/AndroidRuntime(1738):	at android.os.HandlerThread.run(HandlerThread.java:60)
11-17 21:03:21.812: A/NetworkManagementService(2763): problem enabling bandwidth controls
11-17 21:03:21.812: A/NetworkManagementService(2763): com.android.server.NativeDaemonConnector$NativeDaemonFailureException: command '6 bandwidth enable' failed with '400 6 Bandwidth command failed'
11-17 21:03:21.812: A/NetworkManagementService(2763):	at com.android.server.NativeDaemonConnector.execute(NativeDaemonConnector.java:345)
11-17 21:03:21.812: A/NetworkManagementService(2763):	at com.android.server.NativeDaemonConnector.executeForList(NativeDaemonConnector.java:282)
11-17 21:03:21.812: A/NetworkManagementService(2763):	at com.android.server.NativeDaemonConnector.execute(NativeDaemonConnector.java:248)
11-17 21:03:21.812: A/NetworkManagementService(2763):	at com.android.server.NetworkManagementService.prepareNativeDaemon(NetworkManagementService.java:292)
11-17 21:03:21.812: A/NetworkManagementService(2763):	at com.android.server.NetworkManagementService.systemReady(NetworkManagementService.java:188)
11-17 21:03:21.812: A/NetworkManagementService(2763):	at com.android.server.ServerThread$1.run(SystemServer.java:787)
11-17 21:03:21.812: A/NetworkManagementService(2763):	at com.android.server.am.ActivityManagerService.systemReady(ActivityManagerService.java:7677)
11-17 21:03:21.812: A/NetworkManagementService(2763):	at com.android.server.ServerThread.run(SystemServer.java:776)

can anyone help?
[Android Software Development] xnan:
I can't understand this

I/DEBUG ( 1376): bedaf9e4 4001f377 /system/lib/libc.so

I/DEBUG ( 1376): bedaf9e8 4019be09 /system/lib/libandroid_runtime.so

I/DEBUG ( 1376): bedaf9ec 4001e0dd /system/lib/libc.so
[Android Software Development] tathanhlam66:
Hj, xnan

see here

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

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

E/JNIHelp ( 1379): RegisterNatives failed for 'android/content/res/AssetManager', aborting

if you don't how to path smali, you can replace my smali
[Android Software Development] tathanhlam66:
Help

emoticon and smileys not present from messaging

Theme manager fc :(

I port miui v4 jb 2.11.16
[Android Software Development] pongnamu:
Can it be done for arm6 devices? Thanks
[Android Software Development] tathanhlam66:
yes, miui v4 is multi devices, you can port to any device
[Android Software Development] stelios97:
I fixed all other bugs! Only one remaining: theme manager fc!
[Android Software Development] sandy7:
its miui bug.....i solved mine by replacing the apk from older version.
[Android Software Development] stelios97:
i did the same! now not force close, just need resizing! but when i try to change walpaper or ringtone it says that that app is missing!
[Android Software Development] sandy7:
well wallpaper can be changed by going to themes>mix>wallpapers...

and ringtone i select by using tone picker app....but it cant set notifications.
[Android Software Development] stelios97:
you cant change them from settings?
[Android Software Development] sandy7:
nope...settings will stop if i try to do it.
[Android Software Development] stelios97:
same thing here!
[Android Software Development] sandy7:
hating the recent updates so buggy.

edit: did u experience any stopped error in miuihome?
[Android Software Development] stelios97:
only on first boot!
[Android Software Development] sandy7:
try while deleting or installing a app...u might it again.
[Android Software Development] iBotPeaches:
I would hold off porting any MIUI for awhile. There is some serious bashing going at Xiaomi right now.

Even enough that someone made http://openmiui.com and things are escalating quite quickly. Apparently we are getting some official news/statement possibly on Monday.
[Android Software Development] stelios97:
yes i got one! root works for you?
[Android Software Development] sandy7:
yes it does work...

---------- Post added at 11:30 PM ---------- Previous post was at 11:29 PM ----------

yes even i heard about..from recent updates..becoming worst.
[Android Software Development] pongnamu:
Wow Stelios97 !!! Are you going to release miui jb for our X10minl? That is cool!!!!!!!!
[Android Software Development] yure:
Hey guys,

Correct me if I'm wrong but there has been a significant change since 2.11.16. In /system/xbin/ you'll find a new daemon called shelld. This daemon doesn't start on boot using the (CM10) base's installd. I tried patching the installd but it's ending in a boot loop, no matter what I try. I thought starting it from init.d would suffice but it doesn't, the bastard won't start...

Without a started shelld the thememanager is broken, the launcher crashes frequently etc etc. Manually starting shelld fixes those issues but who wants that?! ;)

I ended up adding the shelld as a service in the init scripts, that works ok but I would prefer a solution that doesn't touch the boot image. Is there anyone here who's come up with a better solution?
[Android Software Development] _polimorph_:
Any news, iBotPeaches?
[Android Software Development] iBotPeaches:
Not sure I'm on break for thanksgiving and out of the loop.
[Android Software Development] vijendrahs:
If you don't want to change boot.img then you need to create a new service that extend Broadcasting service, that will initialize while booting.. You need to have source to build for that and also need to search how to do it. Else I can provide you the link.

Recommended: Send me your boot.img I will patch and send it back to you.. It will work like a charm..
[Android Software Development] eminent1410:
I try your way, but it isnt fixed. Now I send you the logcat. I only use legacy camera app with its lib and delete lib of gallery2.apk from CM10 (and try only gallery2.apk included camera). But I cant still take continously photo, I can only continue taking by double click to switch camera or restart camera app. Please help me !!!!! Thanks again.
[Android Software Development] hnkumar:
DHD porting

I've done porting to DHD but headset is not working. No matter whatever I tried to do. I'm using CM10 Jelly bean (by Randomblame) & MIUI Crespo (base). I even copied WiredAccessory*.smali but still it is not working. Can anybody guide me how to enable headset?
[Android Software Development] tathanhlam66:
replace all WiredAccessoryObserver*.smali from to your base (is located at classouts\com\android\server\ of services.jar):D
[Android Software Development] hnkumar:
Did it but still it is not working :). Any other solutions?
[Android Software Development] sandy7:
provide a logcat
[Android Software Development] hnkumar:
http://pastebin.com/ZpNHwvyW - Logcat
[Android Software Development] dekkyy:
Did you copy the libs for shelld?

EDIT: Check this site what changes has been made on latest release and you will know what to add/replace: https://github.com/MiCode/patchrom_miui

EDIT2: @Lens_flare

It would be nice if you add that link to OP, so users will know what changes has been made to the latest release.
[Android Software Development] _polimorph_:
Did you copied HeadsetBase*.smali from CM to port?

Thanks for the link. Can you tell us a bit more about how to use it?
[Android Software Development] dekkyy:
The link is just for info.

When you press on let's say lib folder, than it shows you what libs do you need to add to your port. So, the git is updated every Thursday and you can check what libs and other files are needed to be added from miui rom to your port.

EDIT: I edited the link in my previous post (coppied wrong one).
[Android Software Development] hnkumar:
Yes, I copied but still I've same issue.
[Android Software Development] hnkumar:
Please find the latest log for audio service events. Looks like it is detecting but it is not redirecting to headphones. Please let me know where I need to look into.

Log - http://pastebin.com/Gi6J5c6h
[Android Software Development] sk8erboy:
fix shelld problem.

if any1 has shelld problem,and all things are fc. you can try this. extra it in /system/etc/init.dView attachment 25shelld.zip:laugh:
[Android Software Development] gls9:
In the first post is stated: "I don't know if it is possible to use stock rom for porting and wouldn't recommend it"

I'am getting a Neo N02-M MTK6577 ICS 4.0.4. As far as I know no other rom then the stock rom is available. I want to try porting miui to it, but don't know if it is possible because of the above statement.

So is it possible to use the stock rom as a base rom ?

Which ICS Miui rom can I use to do the port ?

What is the difference with doing the port according to the guide or using patchrom ?
[Android Software Development] AdhvanIt:
The guide assumes you're using an AOSP base. PatchROM is designed for use with stock ROMs, and that's what you'll need to use.
[Android Software Development] imanesaurus:
hi guys.

i need help.

i've ported 2 miui version (2.8.10) and (2.11.9) to my devices

but the lockscreen still lags when i want to unlock it in both version.

and then when i play a music, the music stopped when i lock the screen, and music control in lockscreen is extremely lag.

anyone can help me?

here is the logcat when i unlock the screen http://logcat.miui.us/1584001

thanks in advance :)
[Android Software Development] janeindiran:
Reboot after boot is completed

I have been experiencing reboots once the boot is complete. In order to avoid it i have to put my phone in offline and use it for few minutes and then it works fine. I am not able to fix it for a long time. I have attached the logcat. Forgot to mention, ported for DEFY. Can anyone help??
[Android Software Development] gls9:
What will be the difference for miui rom between using Patchrom or using port from AOSP base ?
[Android Software Development] hnkumar:
look like there is a problem with below line.

E/PhonePolicy( 2739): Could not preload class for phone policy: com.android.internal.policy.impl.PhoneWindow$ContextMenuCallback
[Android Software Development] _polimorph_:
When adding it the phone is stuck at boot screen, it doesn't make it to boot logo.

That's very common in CM builds and doesn't throw any FC, in fact is harmless.
[Android Software Development] janeindiran:
any solution for this problem??