yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Slimegod:
Yeah that's what I've been told. When I ported I brought over the kernel from my base. Made all the edits that were needed. Don't know where I messed up at.
[Android Software Development] ---UFO---:
Hi there.

I am just trying to port latest miui 4.6.13 on android 4.2.2 and I am getting this error:

06-14 20:02:05.676: E/AndroidRuntime(2041): FATAL EXCEPTION: main
06-14 20:02:05.676: E/AndroidRuntime(2041): java.lang.NoSuchMethodError: miui.util.NotificationFilterHelper.getInstance
06-14 20:02:05.676: E/AndroidRuntime(2041):	at com.android.systemui.statusbar.phone.PhoneStatusBar.filterNotification(PhoneStatusBar.java:1188)
06-14 20:02:05.676: E/AndroidRuntime(2041):	at com.android.systemui.statusbar.phone.PhoneStatusBar.addNotification(PhoneStatusBar.java:1210)
06-14 20:02:05.676: E/AndroidRuntime(2041):	at com.android.systemui.statusbar.StatusBar.registerStatusBarAndAddNotifications(StatusBar.java:41)
06-14 20:02:05.676: E/AndroidRuntime(2041):	at com.android.systemui.statusbar.BaseStatusBar.start(BaseStatusBar.java:217)
06-14 20:02:05.676: E/AndroidRuntime(2041):	at com.android.systemui.statusbar.phone.PhoneStatusBar.bindViews(PhoneStatusBar.java:591)
06-14 20:02:05.676: E/AndroidRuntime(2041):	at com.android.systemui.statusbar.phone.PhoneStatusBar.start(PhoneStatusBar.java:567)
06-14 20:02:05.676: E/AndroidRuntime(2041):	at com.android.systemui.SystemUIService.onCreate(SystemUIService.java:60)
06-14 20:02:05.676: E/AndroidRuntime(2041):	at android.app.ActivityThread.handleCreateService(ActivityThread.java:2657)
06-14 20:02:05.676: E/AndroidRuntime(2041):	at android.app.ActivityThread.access$1600(ActivityThread.java:153)
06-14 20:02:05.676: E/AndroidRuntime(2041):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1329)
06-14 20:02:05.676: E/AndroidRuntime(2041):	at android.os.Handler.dispatchMessage(Handler.java:99)
06-14 20:02:05.676: E/AndroidRuntime(2041):	at android.os.Looper.loop(Looper.java:137)
06-14 20:02:05.676: E/AndroidRuntime(2041):	at android.app.ActivityThread.main(ActivityThread.java:5227)
06-14 20:02:05.676: E/AndroidRuntime(2041):	at java.lang.reflect.Method.invokeNative(Native Method)
06-14 20:02:05.676: E/AndroidRuntime(2041):	at java.lang.reflect.Method.invoke(Method.java:511)
06-14 20:02:05.676: E/AndroidRuntime(2041):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)
06-14 20:02:05.676: E/AndroidRuntime(2041):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562)
06-14 20:02:05.676: E/AndroidRuntime(2041):	at dalvik.system.NativeStart.main(Native Method)

Have anyone encoutered this issue?

Thanks.
[Android Software Development] Notorious:
post full log
[Android Software Development] ---UFO---:
Here you go.
[Android Software Development] Notorious:
06-14 21:05:42.022: I/dalvikvm(2377): Could not find method miui.util.NotificationFilterHelper.getInstance, referenced from method com.android.systemui.statusbar.NotificationData.update

^ that's the issue
[Android Software Development] agushack:
hey, i succesfully port miui 466 from huawei g525 for k touch lotus 2 and my phone is dualsim (gsm/gsm),, but rom is only show 1 signal bar,, and the proximity and light sensor is not work.. any solution? here is logcat

http://pastebin.com/2PNmFSXF
[Android Software Development] Slimegod:
Did a port and I can't get past the home screen without a "NFC service has stopped" error. What do I need to change?
[Android Software Development] youngchaos:
Guys i've ported a rom but i don't see USB Storage Option and Charge Only , are they missing on MIUI or just from the Rom i ported? It's possible to enable those fuctions? :confused:
[Android Software Development] ZduneX25:
Ok I went far porting miui based on kitkat however Phone is throwing:
[Android Software Development] datagutt:
I never saw that error while doing my 4.4 S3 port. Are you using patchrom?
[Android Software Development] Slimegod:
How exactly do you use patchrom? Also I'm trying to get MIUI OTA updates instead of flashing a whole ROM weekly. How do I go about doing that?.
[Android Software Development] datagutt:
Don't ask me when it comes to patchrom, i use my own porting script :)

Look at the patchrom repo though, it has a guide for using patchrom.

https://github.com/micode/patchrom/tree/kitkat
[Android Software Development] ZduneX25:
[MENTION=3355080]datagutt[/MENTION] yeah i do, everything except gsm is working just fine, even still it seems weird that patchrom borke gsm when it does not even touch ril/gsm smali
[Android Software Development] datagutt:
It is weird that i didn't experience this myself when doing a manual port. I do port in a different way though (use as much as MIUI as possible, instead of injecting into the stock rom)

Anyways, i don't trust patchrom simply because of cases like this. When something breaks, fixing the problem might be tricky.
[Android Software Development] ZduneX25:
I faced many null pointer exception in the past and I could fix all of them by adjusting resources ids in broken smali, but this time all ids are correct..

It's good that you are still deving for s3 I am selling mine this week, not much time to work on this fc.
[Android Software Development] datagutt:
I'm not really using my S3, but as long as it can run MIUI, i try to develop for it.

Nexus 5 is a really boring phone when it comes to porting/development. Everything has already been done... :)

I might work on a guide on porting kitkat MIUI, but i am kind of waiting for V6 for phones.
[Android Software Development] Notorious:
pls make a guide makes it easier for me then sitting there logcatting and fixing 1 thing at a time. My USB cable broke a week ago so can't work on roms :(. Will be borrowing one from a friend tomorrow
[Android Software Development] Slimegod:
Wanted to ask you. I'm trying to find the SamsungQualcomm.Ril so I can make the necessary changes for a port. Looked in com/android/internal/telephony but can't find it dude. What's the name of the smali for that file?
[Android Software Development] ZduneX25:
[MENTION=3794018]shakim24[/MENTION] telephony-common.jar.out\smali\com\android\internal\telephony\

[MENTION=3355080]datagutt[/MENTION] have you done any spectacular changes in telephony-common.jar porting your way?
[Android Software Development] Slimegod:
So in the guide it's the wrong jar file then?
[Android Software Development] Notorious:
This guide is for MIUI V4 and for 4.1
[Android Software Development] Slimegod:
No wonder. To late to update it because they are working on v6 but still someone should make a note certain files aren't where they are in this guide. I know I'm not the only one trying to port MIUI ROMs.
[Android Software Development] Slimegod:
How do I know what dependencies I need? It's in the OP just don't know how to go about asking the source code as it said.
[Android Software Development] datagutt:
Copied these from Omni:

telephony-common.jar.out/smali/com/android/internal/telephony/BaseCommands.smali
telephony-common.jar.out/smali/com/android/internal/telephony/PhoneFactory.smali
telephony-common.jar.out/smali/com/android/internal/telephony/RIL*.smali
telephony-common.jar.out/smali/com/android/internal/telephony/Samsung*.smali

framework.jar.out/smali/android/telephony/CellSignalStrength*.smali
framework.jar.out/smali/android/telephony/SignalStrength*.smal

Then merged getLTE* and toggleMobileNetwork from Omni in framework.jar.out/smali/android/telephony/TelephonyManager.smali.

That is all the telephony related changes i did i think.
[Android Software Development] Slimegod:
Was this in regards to my last post, my bad idk if that's for me or not.
[Android Software Development] Notorious:
No
[Android Software Development] Slimegod:
Those edits that you did what exactly were they for? Have to ask, if I don't adk I won't know I'm a noob at this.
[Android Software Development] Slimegod:
http://www.androidfilehost.com/?fid=23501681358552881

Need somebody to take a look at this log for me. Phone is stuck on boot animation.
[Android Software Development] Notorious:
No changes were done to framework
[Android Software Development] Slimegod:
Yeah I did edits to telephony-common.jar and the frameworks.jar through winmerge. Followed the guide in the OP!!!!!
[Android Software Development] ZduneX25:
Do not skip android.policy.jar and services.jar.
[Android Software Development] Slimegod:
What am i editing in android-policy.jar? Don't see it in the OP? Also the Systemproperties.smali he's talking about where is that?

Edit:

After doing my research, android. policy.jar is a single class.dex. I'm assuming I need to change that. But I've read I need to deodex it, do I really have to do that?
[Android Software Development] Notorious:
D/dalvikvm(11070): Note: class Landroid/app/ActivityManagerNative; has 179 unimplemented (abstract) methods

:( i get this when trying to port datagutts rom from the i9300. Guess i might have to do it the hard way and do it from the N5
[Android Software Development] Toni5830:
If inside android.policy.jar you find a file named classes.dex then it's absolutely normal and thi means irìt is already deodexed

that error won't prevent a rom from booting.. the problem must be a different one
[Android Software Development] Slimegod:
But it's a whole bunch of smali files though. I decompiled it. Your probably talking about just straight opening it up with winrar.
[Android Software Development] Notorious:
ill post a full log

https://www.dropbox.com/s/ans62zr2cxhb9ad/jewel.txt
[Android Software Development] ZduneX25:
Ok I fixed GSM issue and now I can use mobile data/phone calls/text messages, but there is a problem with dialer, cannot open it:

java.lang.RuntimeException: An error occured while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:300)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
Caused by: android.database.sqlite.SQLiteException: no such function: GET_PHONEBOOK_INDEX (code 1): , while compiling: SELECT SUBSTR(sort_key,1,1) AS letter, GET_PHONEBOOK_INDEX(SUBSTR(sort_key,1,1),'en_US') AS title, COUNT(*) AS count FROM view_contacts LEFT OUTER JOIN agg_presence ON (_id = agg_presence.presence_contact_id) LEFT OUTER JOIN status_updates contacts_status_updates ON (status_update_id=contacts_status_updates.status_update_data_id) WHERE ((starred==0)) GROUP BY letter COLLATE PHONEBOOK ORDER BY letter COLLATE PHONEBOOK
at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:889)
at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:500)
at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:588)
at android.database.sqlite.SQLiteQueryBuilder.validateQuerySql(SQLiteQueryBuilder.java:412)
at android.database.sqlite.SQLiteQueryBuilder.query(SQLiteQueryBuilder.java:389)
at com.android.providers.contacts.ContactsProvider2.getFastScrollingIndexExtras(ContactsProvider2.java:7381)
at com.android.providers.contacts.ContactsProvider2.bundleFastScrollingIndexExtras(ContactsProvider2.java:7289)
at com.android.providers.contacts.ContactsProvider2.queryLocal(ContactsProvider2.java:6954)
at com.android.providers.contacts.ContactsProvider2.query(ContactsProvider2.java:5493)
at android.content.ContentProvider$Transport.query(ContentProvider.java:200)
at android.content.ContentResolver.query(ContentResolver.java:461)
at android.content.CursorLoader.loadInBackground(CursorLoader.java:65)
at com.android.contacts.list.ProfileAndContactsLoader.loadInBackground(ProfileAndContactsLoader.java:71)
at com.android.contacts.list.ProfileAndContactsLoader.loadInBackground(ProfileAndContactsLoader.java:38)
at android.content.AsyncTaskLoader.onLoadInBackground(AsyncTaskLoader.java:312)
at android.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:69)
at android.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:57)
at android.os.AsyncTask$2.call(AsyncTask.java:288)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
... 3 more

EDIT: nevermind got it fixed too
[Android Software Development] Gerrett:
Would be nice to now ho you fix this (specialy if you use patchrom)
[Android Software Development] Slimegod:
Some people like to keep secrets between developer. they don't want nobody else to learn how things get fixed except for them. Sad but true.
[Android Software Development] ZduneX25:
ContactsProvider.apk taken from mi3 solved my problem.
[Android Software Development] SpaceCaker:
Hello.

i have ported MIUI V4 4.1.2 jellybean to my acer

only bug i currently have is that when i am playing music and plug in headset it still sends audio to speaker but nothing to headset

i noticed in log this

JACK-DETECT: In NativeInputManager-Before calling windowmanager service for HEADPHONE_INSERT

An exception was thrown by callback 'notifyJackSwitchChanged'.

java.lang.AbstractMethodError: abstract method not implemented

at com.android.server.wm.InputMonitor.notifyJackSwitchChanged(InputMonitor.java)

at com.android.server.input.InputManagerService.notifyJackSwitchChanged(InputManagerService.java:1248)

at dalvik.system.NativeStart.run(Native Method)

_> http://pastebin.com/5Xye5udN

so it detects it but i have not much idea what to do with it :/

i have tried a ton of stuff already but failed much with this.

its only bug i have left for the rom :p

anyone got idea whats causing this ?
[Android Software Development] Slimegod:
http://pastebin.com/YPbf8Tw8

Can someone take a look at this log for me and let me know what the issues are. ROM isn't booting.
[Android Software Development] Slimegod:
Edit:

Going to post another log, that isn't a full log.
[Android Software Development] Slimegod:
This is the log I was talking about guys. Hopefully I can get some insight on it.

pastebin.com/sUhpbp56
[Android Software Development] youngchaos:
Anyone knows wich files are involved into Micloud?
[Android Software Development] Ozadroid:
Need Help.

Below is my logcat. my device is moto G and base is Nexus 5.

http://pastebin.com/f1Y3wxwR
[Android Software Development] Notorious:
Are you using PAC Man ROM as your base? I see it cannot find Framework-PAC.jar so I'm guessing that is your base? You need to edit the bootclasspath in the boot.img to remove that if so
[Android Software Development] Ozadroid:
No i am using cm11. That pac.jar is there bcz i am using a custom kernel which works for PAC also. Bcz the cm kernel dont even boot after i repack it after editing.

Anyother clue?
[Android Software Development] Notorious:
The boot.img is looking for the Framework-PAC.jar in system framework and it does not exist unless you added it to system/framework /which can also cause it to not boot
[Android Software Development] Ozadroid:
No i have not added thats why it shows error for that class. Anyways i have removed itfrom bootclasspath will try to boot again after some time.

Another problem i have. My fone doesnt get detected for about 3min after booting up. And theb suddenly it shows. Any clue abt this?
[Android Software Development] Ozadroid:
Ok, I have solved the previous problem by replacing libjavacore.so

Now another problem.

http://pastebin.com/ZXJcGMCp

I tried changing libwebviewchromium.so but it makes things much more worse.

Anybody any clue?:confused:
[Android Software Development] Toni5830:
E/dalvikvm( 1072): ERROR: couldn't find native method
*
E/dalvikvm( 1072): Requested: Lcom/android/org/chromium/content/app/LibraryLoader;.nativeRecordContentAndroidLinkerHistogram:(ZZ)V

Main error is this one: you have to add native method from your device to ported one.. Smali to patch should be in framework.jar/android/org/chromium/content/app/LibraryLoader.smali

You can just replace the smali with one from a rom for your device if you prefer.. Or you can copy nativeRecordContentAndroidLinkerHistogram method from one to the other
[Android Software Development] Ozadroid:
No this smali is not in framework.jar bcoz the path starts with 'com' not 'android'. It is also not in services.jar neither in framework2.jar

Its somewhere else.
[Android Software Development] Toni5830:
Hmm.. webviewchromium.jar then
[Android Software Development] Ozadroid:
Yes its in webviewchromium.jar. but when i put that method then libwebviewchromium.so starts giving error. I tried changing libs nd it worsen the thing.
[Android Software Development] DaeNiarzk:
btw can you help me to port miui to lg su880 device..

2nd line .. :(

my base rom is ics 4.0.4
[Android Software Development] Dron_GTR:
Hi guys! At MIUI 4.4KK for Nexus 4 we have issue with work of haptic vibration. Haptic vibro don't work for navbar, hard buttons, dialer buttons etc. But it working for icon movement at desktop, work in keyboard and in some another places. For you i've got a logcat, see attachment. If you can help me, pls help )) Thx!
[Android Software Development] ZduneX25:
Just add missing method man.
[Android Software Development] Tyrany:
Can someone help with this error? http://xdaforums.com/attachment.php?attachmentid=2903953&stc=1&d=1408471714
[Android Software Development] Slimegod:
Where are they? The link brings you to all the forums.
[Android Software Development] Notorious:
Missing a method

E/dalvikvm( 3756): ERROR: couldn't find native method E/dalvikvm( 3756): Requested: Landroid/graphics/Typeface;.nativeFreeCaches:()V E/dalvikvm( 3756): JNI posting fatal error: RegisterNatives failed for 'android/graphics/Typeface'; aborting...
[Android Software Development] Tyrany:
[MENTION=4229751]Notorious[/MENTION] how can i fix it?

Thanks for the pacience
[Android Software Development] Notorious:
Add the native method from your base framework.jar to the framework.jar of your port
[Android Software Development] Tyrany:
Maybe im doing this wrong do you think is better to use a aosp base or CM? Because of CAF stuff?
[Android Software Development] Notorious:
Depends on what device you're porting from and to
[Android Software Development] Tyrany:
i want to port latest miui 6 to nexus 5
[Android Software Development] Notorious:
In this case I recommend you use AOSP base instead of cm
[Android Software Development] ZduneX25:
Miui v6 has 4 frameworks.
[Android Software Development] Tyrany:
copied framework folder from miui all the frameworks should be there

edit: on folder i have framework.jar; framework2.jar, framework.res.apk and framework-ext-res.apk

im i missing some file?
[Android Software Development] ZduneX25:
There are two more in system app.
[Android Software Development] Slimegod:
Getting a "label switch_f has multiple definitions" error in compiling framework.jar. in patchrom. Don't know where it is to edit it though.

Edit: answered my own question.
[Android Software Development] Tyrany:
ditch patchrom, its outdated, and it will search for stuff non existant, start by hand with this guide, gives more work but its the best way to ensure a better work
[Android Software Development] Notorious:
I wouldn't call it outdated if I had the knowledge and patchrom skills like [MENTION=3141383]ZduneX25[/MENTION] and Jing I would do patchrom over manual porting. Sure manual porting gave me a better understanding of android and figuring out how to fix issues but patchrom ensures that everything will work perfectly compared to a manual port that would be missing certain things in the smali or framework specific to a device
[Android Software Development] Tyrany:
[MENTION=4229751]Notorious[/MENTION] I said outdated since it was made for miui 4, if you see in this miui 4 port guide there are things that dont exist in miui 6, im no pro and still learning and i really apreciate your help, i dont want to disrespect no one ;)

But since you are online can you take a look on my last logcat? I got a serie of errors, i think because of the framework missing something but, if i pasted APP, priv-app, framework and media stuff from miui all the mencionated files should be there
[Android Software Development] Slimegod:
Why haven't you tried learning patchrom? I don't know nothing about it but I'm learning as I go, ask Z he'll tell you. Thanks for the help Z by the way :beer:
[Android Software Development] Notorious:
Busy trying to get a job so I can get a good PC/laptop and about to put my s3 for sale. So don't have time to try and learn anything
[Android Software Development] fedevd:
[MENTION=4229751]Notorious[/MENTION] Are you working with MIUI v6 for Nexus 5? I am giving a try to the Nexus 4.. Can I talk with you over Hangouts?
[Android Software Development] Notorious:
Nope I'm not working on anything. I haven't worked on anything in months. [MENTION=3355080]datagutt[/MENTION] is working on MIUI V6 for Nexus 5 if you want to speak to him
[Android Software Development] fedevd:
Aahh, oki doki ;)
[Android Software Development] Notorious:
Yea your log is crazy saying certain MIUI methods are not present. Is this with the pure aosp base? If so I think it might be better to go back with the cm base you were using since that log didn't look as chaotic as this
[Android Software Development] fedevd:
Yeah, MIUI framework calls missing MIUI classes/methods that sre present on PatchROM 'source'.. Keep missing even if you add those smalis so it's a mess.. I am using Omni as base so I will give a try to another AOSP like PA.. I made a dirty port so I have the same log that [MENTION=4264999]Tyrany[/MENTION] with the same issues.. I will work in it later more carefully
[Android Software Development] Notorious:
You porting from Mi3?
[Android Software Development] fedevd:
Yep.. MI3 to Nexus 4
[Android Software Development] Notorious:
Porting from a Mi device is pretty difficult and only a few have managed to do it best of luck. I think I've only seen [MENTION=1844875]CosmicDan[/MENTION] do it. But it is possible
[Android Software Development] fedevd:
Yep, I know, already gave a try and it was a pain in the ass.. But for now we only have MI3 build so while I wait for another device build I play a while with MI3 build..
[Android Software Development] Slimegod:
Yeah that's gonna be hard. Plus trying to get that Nexus to boot as well :banghead: fill us in if you get it running.
[Android Software Development] Tyrany:
"W/dalvikvm( 7547): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lmiui/security/SecurityManager;"

[MENTION=4229751]Notorious[/MENTION], i've changed my base, we have ironed some stuff and now i tripped on this error, and it had appear before but i diddnt find what line of code they removed =S

[MENTION=3531145]fedevd[/MENTION] on this side paranoid android gives me the better looking logcat, from the rom bases i've used
[Android Software Development] datagutt:
The current error i am stuck on is libqc-opt.so not loading. I have added it and the required stuff to load it (i think), but it just won't load yet.

This is the only thing missing from a booting build. I can actually see a dialog box for a split second before reboot.
[Android Software Development] Notorious:
Did you replace the libsechook.so lib with MIUIs and add the MIUI security libs ? Also some camera errors did you add your camera smali to the hardware folder(should fix but idk since I have never looked at v6 framework or anything)
[Android Software Development] fedevd:
[MENTION=4264999]Tyrany[/MENTION] Yep, i'm using PA now.. 'AssetManager.smali' issues with some 'init ()V' lines and the 'framework2.jar' missing classes/method calls.. I can't find which value breaks my AssetManager and why can't be loaded some 'framework2.jar' files..
[Android Software Development] ZduneX25:
[MENTION=3531145]fedevd[/MENTION] if we still talking about v6 then like i said there is more frameworks now and most of framework2.jar methods were taken from it and placed in MiuiFramework.apk