yashsingh1/xdaforums huggingface dataset:
[Android Software Development] fedevd:
No, you gotta reboot into recovery, unmount every partition, then do:

$ cd patchrom
$ . build/envsetup.sh
$ mkdir yourdevice
$ cd yourdevice
$ ../tools/releasetools/ota_target_from_phone -r

Let it finish and then the rest:

$ make workspace
$ make firstpatch

Fix rejects and then build it:

$ make fullota

Already told you, read the README on PatchROM git:

https://github.com/MiCode/patchrom/blob/kitkat/README

We will help you in everything we can but if you can't read a simple short text then do not wait for us to help you, most of this depends on how much research you make and how much you read about it.. Everything I told you in this post are the instructions of that README, so, again, please read and do researchs, nobody needs a hughe content of knowledge to build with PatchROM but at least you gotta understand what are you doing.. Seriouslly
[Android Software Development] Slimegod:
Ok I got you. Before I even started posting on here about patchrom I would speak to other developers about it, not just Zdune. One had mentioned about creating the stockrom.zip saying I don't need to connect it and run a command because it'll create the zip anyway. Failing to mention about the metadata file so like chill man I have no problem reading on stuff. May overlook things but have no problem reading up on it.
[Android Software Development] fedevd:
It was ZduneX25 who said that and Notorious too.. You can just put your CM/AOSP/PA rom on your device folder and rename it to stockrom.zip, then create the metadata folder using another one and adding your info but that ia more sensitive 'cus you gotta set the mount points, check the sign values of each app, in other worss, for more experienced user, and it will take you more time, that's why you better use that '../tools/releasetools..' script that just simply pull your system folder and your kernel and create your mount points from your device..
[Android Software Development] dams161:
Hello there

sorry for my noob question

but I do not understand your explanation I can not find .nativeSetDirtyRect

and I followed the tutorial several times but without result

thank you
[Android Software Development] Slimegod:
If they did say it maybe I overlooked it or didn't see the post, it happens man. Doesn't mean I'm not reading or doing my own thing though. Just don't assume someone isn't reading cause things aren't going a certain way that's all trust me I've been reading, googling things, the errors I get, etc. Same thing I told Zdune so.....
[Android Software Development] Slimegod:
Getting a "couldn't find ro.build. fingerprint in build.prop." was reading I can change -r to -n so it'll skip the boot.img but I would have to install it manually. I'm still getting that error though.
[Android Software Development] Notorious:
Post terminal error
[Android Software Development] Slimegod:
This is the error.

Edit: just checked the build.prop of the stockrom I'm using. There is no ro.build.finger.print so how do i bypass that?
[Android Software Development] Slimegod:
Getting a "name, uid, mode = column [:4]

ValuesERROR: need more than 2 values to unpack". It's speaking about this in the picture uploaded. What values need to be added?
[Android Software Development] Notorious:
Never got that error
[Android Software Development] Slimegod:
Fixed the ro.build.prop error but getting a new one when building my fullota. Getting a error saying "raise ValueERROR (failed to parse line from apkcerts.txt:\n" + line). Then it gives me the name of a apk I installed in metadata (to long to type). How do I fix it.
[Android Software Development] Zehlek:
Will this work in porting Miui 6?
[Android Software Development] datagutt:
EDIT: deleted
[Android Software Development] fedevd:
What did you replaced about webview on MIUI?
[Android Software Development] datagutt:
Tried using libwebviewchromium* from MIUI, this gave me an libskia error. If i don't use libwebviewchromium* from MIUI, the webpage will render, but crash on click (because of missing/changed method). Looks like i have to patch some smali in order to bypass the chromium modifications they did.
[Android Software Development] fedevd:
libwebviewchromium_plat_support.so? As far as I saw, to port tablet build some users used to overwritte that file with the MIUI one.. Could it be?
[Android Software Development] datagutt:
Yeah, i replaced that one as well. But i can't use the webview libraries from MIUI without also replacing libskia...
[Android Software Development] fedevd:
Hmm, what a pain in the butt.. I am not at home to take a look, maybe tomorrow I will take a look about MIUI v6
[Android Software Development] Slimegod:
What is this error from? When I type "./zipalign" it's being recognized but patchrom signing my apks I get a error. That's these errors are I'm assuming.
[Android Software Development] iZLeeP:
Need help guys.

I ported MIUI v4 (Lenovo A789) from this thread to a similar device - Cloudfone Thrill 430d (e.g., same chipset [MT6577], resolution, internal memory, ram, capacitive buttons, etc.) running stock ICS 4.0.4. Ported MIUI rom boots and runs just fine until some apps FC. Also, newly installed apps FC the moment you open/run them after installing.

Attached is the logcat. Just remove the .zip extension from the attachment.

Thanks.
[Android Software Development] Toni5830:
My phone is not detected by adb while in bootloop.. I built an "eng" kernel from sources and wrote eng in ro.build.type in build.prop but still not working.. Any help?

Sent from Italy using Tapatalk
[Android Software Development] Slimegod:
Can someone look at this log for me:

pastebin.com/hsrbNbKn
[Android Software Development] Notorious:
E/dalvikvm( 7561): ERROR: couldn't find native method

E/dalvikvm( 7561): Requested: Landroid/graphics/Bitmap;.nativeSetAlphaAndPremultiplied:(IZZ)V

E/dalvikvm( 7561): JNI posting fatal error: RegisterNatives failed for 'android/graphics/Bitmap'; aborting...

I/dalvikvm( 7561): "main" prio=5 tid=1 NATIVE

Missing a method^
[Android Software Development] Slimegod:
Is that the only definitive error that will make the ROM be stuck on the boot animation and not make it boot? That's the issue I'm having.
[Android Software Development] ZduneX25:
Did you patch your kernel finally?
[Android Software Development] Notorious:
Only error coming up right now that's stopping it from booting. Impossible to say since if you fix that error you might have another error from something else after that
[Android Software Development] Slimegod:
Yeah I know, just curious.

---------- Post added at 05:38 PM ---------- Previous post was at 05:36 PM ----------

Yeah. Been patched it. The initial ROM I was using, Omni 4.4.2 was giving off a crazy log and bootlooping. 4.4.4, the one I patched now is just hung on the boot animation. Just posted that log. So I mean I noticed the difference in the errors in the log with the ROMs so.
[Android Software Development] Slimegod:
Can anyone figure this out. Trying to run a apktool script but I'm getting this error. Already changed my username. Here's the script:

HIDE]#!/bin/bash

# Install apktool

cd ~/Desktop

wget https://android-apktool.googlecode.com/files/apktool1.5.2.tar.bz2

wget https://android-apktool.googlecode.com/files/apktool-install-linux-r05-ibot.tar.bz2

tar jxf apktool1.5.2.tar.bz2

tar jxf apktool-install-linux-r05-ibot.tar.bz2

cd apktool1.5.2

mv apktool.jar ../

cd ../

cd apktool-install-linux-r05-ibot

mv aapt apktool ../

sudo chown -R USERNAME:USERNAME /home/USERNAME/Desktop/aapt

sudo chown -R USERNAME:USERNAME /home/USERNAME/Desktop/apktool

sudo chown -R USERNAME:USERNAME /home/USERNAME/Desktop/apktool.jar

sudo chmod +x /home/USERNAME/Desktop/aapt

sudo chmod +x /home/USERNAME/Desktop/apktool

sudo chmod +x /home/USERNAME/Desktop/apktool.jar

sudo mv /home/USERNAME/Desktop/aapt /usr/local/bin/

sudo mv /home/USERNAME/Desktop/apktool /usr/local/bin/

sudo mv /home/USERNAME/Desktop/apktool.jar /usr/local/bin/

rm -rf /home/USERNAME/Desktop/apktool1.5.2

rm -rf /home/USERNAME/Desktop/apktool1.5.2.tar.bz2

rm -rf /home/USERNAME/Desktop/apktool-install-linux-r05-ibot

rm -rf /home/USERNAME/Desktop/apktool-install-linux-r05-ibot.tar.bz2[/HIDE]
[Android Software Development] Slimegod:
Where is this missing method error located? What jar file?
[Android Software Development] Notorious:
I'm gonna guess and say framework.jar
[Android Software Development] Slimegod:
That's what I was figuring but where :what: can't find nothing on Google about it :banghead:
[Android Software Development] Slimegod:
pastebin.com/TrVcsRYr

Anyone know what these errors are from?
[Android Software Development] Notorious:
E/dalvikvm( 1276): ERROR: couldn't find native method

E/dalvikvm( 1276): Requested: Landroid/graphics/Bitmap;.nativeSetAlphaAndPremultiplied:(IZZ)V

E/dalvikvm( 1276): JNI posting fatal error: RegisterNatives failed for 'android/graphics/Bitmap'; aborting..
[Android Software Development] Slimegod:
Don't know where to look dude. Checked out all the frameworks and smali's and I don't see that line.
[Android Software Development] Tqr:
Explain how you fixed ro.build.prop please? You're obviously using a multi-base device with Patch and nobody has really talked about this error before.

E/dalvikvm( 1276): JNI posting fatal error: RegisterNatives failed for 'android/graphics/Bitmap'; aborting..

Framework2.jar
[Android Software Development] Slimegod:
Pretty much didn't fix anything in particular. Was getting errors during my ../tools/releasetools command. The errors I would get were "no ro.build device name not found" so I had to manually plug that in. Other than that that was it. Do you know what smali in framework2.jar its located?

Edit: I have to think back on how I fixed that error. Will get back to you once I remember. Think I was just referring to a new error I was getting not related to the one in the build.prop. so the was I fixed it was what I had just mentioned.
[Android Software Development] Tqr:
E/dalvikvm( 1276): JNI posting fatal error: RegisterNatives failed for 'android/graphics/Bitmap'; aborting..

Navigate to the 'Graphics' folder inside of framework OR framework2.jar and find the file Bitmap.smali.

Landroid/graphics/Bitmap;.nativeSetAlphaAndPremultiplied

=

Bitmap.smali is missing this method, you must insert it from your stock rom or from whatever donor rom you may be using.
[Android Software Development] Slimegod:
OK thanks. :thumbup:

---------- Post added at 04:05 AM ---------- Previous post was at 03:13 AM ----------

Care to take a look at this log for me. Phone is stuck on the boot animation. Just pulled it, Not really to knowledgeable with reading logs. Gonna take a look at it as well and Google what I dont know.

http://pastebin.com/nMZjDcxS
[Android Software Development] Tyrany:
[MENTION=3531145]fedevd[/MENTION] did you solve the permission error you got ?
[Android Software Development] fedevd:
Sorry guys, a guy broke my Nexus 4 glass and digitizer so I am out of Android related stuffs.. [MENTION=4264999]Tyrany[/MENTION], which perms error you mean?
[Android Software Development] Tyrany:
some time ago you had this error too http://xdaforums.com/showpost.php?p=55118739&postcount=2561

i got this ugly error bah Can someone help me please?

E/AndroidRuntime( 3312): FATAL EXCEPTION: main

E/AndroidRuntime( 3312): Process: com.android.systemui, PID: 3312

E/AndroidRuntime( 3312): java.lang.ExceptionInInitializerError

E/AndroidRuntime( 3312):	at com.android.systemui.statusbar.phone.PhoneStatusBar.start(PhoneStatusBar.java:553)

E/AndroidRuntime( 3312):	at com.android.systemui.SystemUIService.onCreate(SystemUIService.java:60)

E/AndroidRuntime( 3312):	at android.app.ActivityThread.handleCreateService(ActivityThread.java)

E/AndroidRuntime( 3312):	at android.app.ActivityThread.access$1800(ActivityThread.java)

E/AndroidRuntime( 3312):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java)

E/AndroidRuntime( 3312):	at android.os.Handler.dispatchMessage(Handler.java)

E/AndroidRuntime( 3312):	at android.os.Looper.loop(Looper.java)

E/AndroidRuntime( 3312):	at android.app.ActivityThread.main(ActivityThread.java)

E/AndroidRuntime( 3312):	at java.lang.reflect.Method.invokeNative(Native Method)

E/AndroidRuntime( 3312):	at java.lang.reflect.Method.invoke(Method.java:515)

E/AndroidRuntime( 3312):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)

E/AndroidRuntime( 3312):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)

E/AndroidRuntime( 3312):	at dalvik.system.NativeStart.main(Native Method)

E/AndroidRuntime( 3312): Caused by: android.content.res.Resources$NotFoundException: Resource ID #0xa090003 type #0x1 is not valid

E/AndroidRuntime( 3312):	at android.content.res.Resources.getInteger(Resources.java)

E/AndroidRuntime( 3312):	at miui.app.ToggleManager.<clinit>(ToggleManager.java:865)

E/AndroidRuntime( 3312):	... 13 more
[Android Software Development] jrc2:
Weird error when I run make fullota in patchrom

End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
[Android Software Development] ZduneX25:
Guys, who has very first miui v6 alpha i need old version w/o all these frameworks ASAP?
[Android Software Development] fedevd:
Post a full log please
[Android Software Development] Slimegod:
pastebin.com/i5wzDd6t getting a AssetManager error but don't know where in the AssetManager.smali it goes.
[Android Software Development] Notorious:
E/dalvikvm( 4226): ERROR: couldn't find native method

E/dalvikvm( 4226): Requested: Landroid/content/res/AssetManager;.addOverlayPath:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I

E/dalvikvm( 4226): JNI posting fatal error: RegisterNatives failed for 'android/content/res/AssetManager'; aborting...

Diff it with your base and add the missing native
[Android Software Development] Sonic1SVK:
Here

View attachment 2014-11-20_235930_logcat.zip
[Android Software Development] fedevd:
1. Please, use Pastebin for logs!!

2. Do this, connect the device, open CMD (or Shell, whatever OS you have) and execute this:

adb logcat -c

This will flush the log service, then do:

adb logcat >1.txt

reproduce the FC on phone like 3 or 4 times and stop the log on CMD pressing 'Ctrl+C' on the keyboard. Then just upload that log to Pastebin
[Android Software Development] Sonic1SVK:
Sorry. Uploaded.

http://pastebin.com/QfRdWSxj

This bug has more ROMs based on ported MIUI from Elephone. If you can help me, more people make you happry :)

Thank You.
[Android Software Development] Slimegod:
Rom is stuck on boot animation. Think I see where the error is in this log but I'm not sure if it's related to why it's not booting up. http://pastebin.com/NPyvCE6D
[Android Software Development] fedevd:
E/dalvikvm( 1136): ERROR: couldn't find native method

E/dalvikvm( 1136): Requested: Landroid/content/res/AssetManager;.getBasePackageCount: ()I

E/dalvikvm( 1136): JNI posting fatal error: RegisterNatives failed for 'android/content/res/AssetManager'; aborting...

Missing 'getBasePackageCount: ()I' method/block on 'AssetManager.smali'
[Android Software Development] usbar:
MIUI PORT for Samsung Galaxy Tab S 10.5

Could someone can make a port of MIUI for this awesome tablet, the Galaxy Tab S 10.5? I dont know how to program, i got basic knowledge for mod and flash, but i can help in whatever for this come true.

Thanks in advance.
[Android Software Development] Slimegod:
Can someone read this log for me http://pastebin.com/hzG90Xz4
[Android Software Development] jrc2:
It says paste has been removed.
[Android Software Development] Slimegod:
Yeah I removed it sorry. Did the patchrom from scratch.
[Android Software Development] Slimegod:
Getting this signing error and a python error Before this I've did like 4 patchroms with no problem. SDK is updated WTF!!!!!!!!

Edit: disregard
[Android Software Development] noidz:
Hi!

I have on porting on my DesireHD.

I have CM11 as base and miui V5 (kitkat).

Miui booting but FC on theme , updater , backup and reboot.

This is my logcat : http://pastebin.com/pnhmEAt5

Can you help me?

Thx
[Android Software Development] ZduneX25:
I see BadZipFile [MENTION=3794018]shakim24[/MENTION] seems like lack of ram, so it cannot finish packing target into zip file, patchrom needs 4gb ram by default: https://github.com/MiCode/patchrom_tools/blob/kitkat/releasetools/common.py#L359 playing with this file might end up with such error.
[Android Software Development] fedevd:
Do this:

$ adb logcat -c
$ adb logcat >log.txt

Reproduce the errors and then press Ctrl+C on keyboard. Upload the log, please
[Android Software Development] Slimegod:
So like what's the max I can raise Xmx? I'm at 8192 as my max and 4096 as my minimum and still getting the errors. I changed the eclipse.ini to the figures mentioned.
[Android Software Development] noidz:
thx for your help.
[Android Software Development] noidz:
Help!!

please!!
[Android Software Development] leeweijie99:
Thememanger, backup and updater fc

I am trying to port MIUI with cm11 as base. The rom is booting, but themes, backup and updater forces close. Home launcher works though. Attached is the logcat, can someone help me with this bug? Thank you:)
[Android Software Development] manojkumar8552:
can some buddy help me !!

trying to port miui for galaxy grand quattro from huwai c8815 which have same chipset and processor !!

here is my logcat
[Android Software Development] noidz:
View attachment log.txt

No help for me?
[Android Software Development] Slimegod:
Anyone have the old ADT bundle for Linux they can shoot over my way? Not really a fan of android studio
[Android Software Development] Toni5830:
These are the problems:

1)

E/mediaserver( 169): Error Loading libmpqstobinder
E/mediaserver( 169): Error: Cannot load library: load_library[1093]: Library 'libmpqstobinder.so' not found

but more important

2)

E/dalvikvm( 167): ERROR: couldn't find native method
E/dalvikvm( 167): Requested: Landroid/graphics/Canvas;.freeTextLayoutCachesJNI:()V
E/JNIHelp ( 167): RegisterNatives failed for 'android/graphics/Canvas', aborting
[Android Software Development] manojkumar8552:
can u help how to solve ?
[Android Software Development] Toni5830:
to solve first error copy libmpqstobinder from port rom to your rom,

for second error read "couldn't find native method" paragraph in post #3 in this thread
[Android Software Development] manojkumar8552:
tx buddy buddy but seriously dont get idea for native method
[Android Software Development] Slimegod:
http://pastebin.com/tCCZuPZa. Changed my getBase method from base to port but still getting the error.
[Android Software Development] TMinh:
After porting, when I go to Security Centre > Monitor > Traffic Stats > Manager Connection > modify some setting, it said "Failed to apply firewall, please try again (Error applying iptables rules. Exit code 4)"

Here is the logcat: http://pastebin.com/cXBCuuk8

Please help me :D
[Android Software Development] Ozadroid:
illegal :eek:

is it written somewhere ?? :-s
[Android Software Development] TMinh:
What do u mean?
[Android Software Development] CosmicDan:
Did you try copying the iptables binary from MIUI?

In the HTC license agreement. Sense is patented and copyrighted technology that is not open source. Neither are the Google Apps, which is why they are not included in Cyanogenmod.

It doesn't matter anyway, it's off topic. Sense =\= MIUI. This is about MIUI, not Sense framework. Ask somewhere else.
[Android Software Development] Lens_flare:
:D

retry, you'll see..

ohh yes, allmighty L_F knows all this stuff :[

you know, libandroid_runtime just don't have a clue about all those fields. who said you should even disassemble framework.jar?

:D

even custom roms are illegal..
[Android Software Development] CosmicDan:
Cyanogenmod isnt :) MIUI is though lol.

Regardless, off topic.

Sent from Xperia Play (R800a) with Tapatalk
[Android Software Development] Ozadroid:
may b!!

It was just a try. Dont worry it didn't hurt ;)
[Android Software Development] v1r0x:
yes,

you are the miui-god :D
[Android Software Development] Alex93917:
I search to fix mass storage usb for external_sd which is working on CM9, but not in my port of MIUI based on CM9.

How can i do to fix it ? :)

Thanks !
[Android Software Development] TMinh:
yes, i did. I replace ip, ip6tables and iptables but they didnt help :|
[Android Software Development] Lens_flare:
usb m0d didn't worked?

there possibly should be some framework module to correctly handle which one you want to mount. Another time, it's a question to your cm dev tree.

you know, it might be not implemented correctly in kernel, it's common.
[Android Software Development] CosmicDan:
Could be a kernel issue, though Firewall works 100% on CM9 kernel/base here.

Sent from Xperia Play (R800a) with Tapatalk
[Android Software Development] Alex93917:
What is "usb m0d" ?

I've already contacted my CM9's dev, and he doesn't know how do it. I tried to modify "MountService.smali" and "MountService$4.smali" in services.jar, but i've FC of System.UI at the first boot. Yet, this work for a man who port MIUI 4 to Galaxy S ...

I don't know why it's not working !
[Android Software Development] Lens_flare:
stage 4: tweaks.

damn it.. cm knows but something "not cm" is out of mind.. hell

no, mountservice is just an api, real work is done on vold. See if there are any pre/post installscripts and apply them.
[Android Software Development] Alex93917:
Yes, i already done Stage 4. USB works for Internal storage only ... :'(

Yet, External_sd is visible and recognized by MIUI apps and system (In settings/storage for example)
[Android Software Development] CosmicDan:
You could do a bind-mount to a folder in internal SD. Thats how MIUI GB did it. I.e. there was a folder calles "external_sd" on internal that linked. Dont ask me how though, I just remember that when I installed MIUI on a friends i9000.

Sent from Xperia Play (R800a) with Tapatalk
[Android Software Development] split52:
some help about this error??

D/AndroidRuntime( 560): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<<

D/AndroidRuntime( 560): CheckJNI is OFF

D/AndroidRuntime( 560): language=-Duser.language=es region=-Duser.region=ES

I/NativeCrypto-jni( 560): register_org_apache_harmony_xnet_provider_jsse_NativeCrypto

F/libc ( 560): Fatal signal 11 (SIGSEGV) at 0x0000002c (code=1)

I/SurfaceFlinger( 96): [SurfaceFlinger] frames:47, duration:1.005000, fps:46.731030

thanks
[Android Software Development] Lens_flare:
full log please.
[Android Software Development] split52:
ok, this is a big:confused:, but is attached, thanks
[Android Software Development] Hikari:
Hey! Ive been trying to port ParanoidAndroid(ARMv7 -> ARMv6) I hope you can help me with this too...

There are issue with ServerThread.smali as far as I understood from the log.. Anyways whatever I tried to fix the issues I couldnt make the rom fully boot.. once It booted to 'optimizing apps screen' then when it sad "starting apps" it rebooted and started to bootloop

This is the log from the clean port(I didnt touch anything in framework nor services)

Thanks!
[Android Software Development] Notorious:
You didn't transfer it correctly if you're getting the same error. What are you using to diff the smali files

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

E/dalvikvm( 1308): Requested: Landroid/content/res/AssetManager;.getBasePackageCount:()I
[Android Software Development] Slimegod:
Well I would decompile the framework.jar and just scroll the smali file in my base and port and add the method to my ported ROM.