• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [GUIDE] [General] [Rom Porting] CM Based Roms

Which rom you attempting to port hash?
MIUI7 . ive got up to the splash miui7 boot screen. i want to run the logcat from boot, so running it as bootanimation like @scary alien suggested will be the ticket. but i guess im not understanding how to incorporate it in. how do i use the script to redirect to logcat? my brain is fried from pouring over the miui and 4 other roms , trying to decipher this boot issue.
 
miui v7 and i think v6 as well require that the boot img be modified in order to port the rom. whether you are doing it our way or via an alternate method to port the rom by what essentially is building it and not really a port.
 
MIUI7 . ive got up to the splash miui7 boot screen. i want to run the logcat from boot, so running it as bootanimation like @scary alien suggested will be the ticket. but i guess im not understanding how to incorporate it in. how do i use the script to redirect to logcat? my brain is fried from pouring over the miui and 4 other roms , trying to decipher this boot issue.
I got boot loop too... :(
 
Got crDroid port on the way. Need to map hardware keys but everything else working minus NFC. No support for it in port device I'm using.


For those having system ui crashes,during your port process enter lib folder and copy/paste all libs over to base ROM lib...now you don't want to actually overwrite any thing already in lib folder of base....so hit no on each individual copy over...all other files that aren't in base that are in port will get copied over. Ran into this issue system ui crash porting crDroud. It had an odd SystemUI.so lib and a few others. Resolved system ui crash. Once I get hard keys working I'll post ROM.
 
Ok got crDroid from the Moto E fully debugged as far as I can tell. Now this device was built with no hardware keys. This means all roms compiled had no support in them for hardware keys even if you add everything needed they still wont work. But the roms are built with of onscreen nav bar. crDroid will be posted and I dont think it detracts from use of the rom at all. You can even specify nav bar dimensions to make them minimal in height,dynamic backgrounds in navbar and status bar...a lot going on in rom. There are some issues with performance settings causing phone to crash so dont use performance in cpu settings. Caused crashing on me. Otherwise its solid. Will post later.
 
MIUI7 . ive got up to the splash miui7 boot screen. i want to run the logcat from boot, so running it as bootanimation like @scary alien suggested will be the ticket. but i guess im not understanding how to incorporate it in. how do i use the script to redirect to logcat? my brain is fried from pouring over the miui and 4 other roms , trying to decipher this boot issue.

Don't want to hijack w/too much about the bootanimation debugging method, but if you replace the current /system/bin/bootanimation file (rename or save a backup first, of course) with it's contents having this:

#!/system/bin/sh
/system/bin/logcat >> /cache/logcat.txt
cat /proc/kmsg >> /cache/kernelmsg.txt

and then make sure the permissions and ownership are properly set:

c:\> adb shell
$ su
# mount -o remount,rw /system
# chmod 755 /system/bin/bootanimation
# chown root:shell /system/bin/bootanimation
# quit
$ quit
c:\>

EDIT: note, this isn't working for me at the moment, but I think I know what the issue is (proper SELinux context!! I forgot to account for this--gah!; will post back when I've figured this out)

then that should start recording the system log and kernel log messages to those respective files in the /cache partition.

See this post for some background re. this:


You obviously don't want to keep this installed for your boot animation for longer than it takes to debug your issue since this will (or should) keep recording to the /cache partition.

I'm typing this here at work without the benefit of being able to re-test and confirm this on another device--I can do that tonight if you want/need.

Hit me up on PM or start a new thread if this is too off-topic.

Cheers and thanks!
 
Last edited:
Back
Top Bottom