[ADDON][ARC/ARC S] BootSounds for CyanogenMod/MiUI ROMS [v01] - Xperia Arc Android Development

[ info ]
so guys here is a small update.zip to flash on ur CM or MIUI ROM to enable bootsounds!
the sounds will be played during bootanimation!
i have tested this to work on latest CM7 [ARC] and it should work on other devices as well...
Users of my kernel (DooMKernel for CM7/MIUI [ARC/PLAY]) need not bother with this as my kernel already has this inbuilt
[ how to install bootsounds ]
just flash the provided update.zip via CWM5 recovery and reboot device to hear "DROIDDD"!!!
[ how to change bootsounds ]
u can surely have ur own music/file played during boot
for this just replace the file /data/local/android_audio.mp3 with ur own file
[ how to disable bootsounds ]
remount /system as RW
open RootExplorer and modify /system/build.prop
at the end of the file will be
Code:
ro.config.play.bootsound=1
just replace the 1 with 0 to disable the bootsounds!
save file and reboot
[ download link ]
DooMLoRD-BootSounds-CM7-v01-ENABLER.zip
[ additional info ]
this should work on any Andorid device which has CM/MIUI
just replace the update-binary and correct the updater-script syntax for ur device
[ references/sources ]
This is based on the files/info posted at:
How to add a bootsound to CyanogenMod

nice one! thanks man.

Always good stuff from Mr Doom... Thanks so much

Thanks for this.

Related

Modify init.rc to add a2sd partition

Hello,
I'm looking for explanation of how to auto-mount the a2sd (ext3) partition.
My rom is a simple rooted stock rom and so the init.rc is not already modified, so anyone could help ?
Best regards,
rXp>!<
As it happens, I've done just that recently:
http://forum.xda-developers.com/showthread.php?t=934777
I should have tried different words in my search ^^
Thank you for the link. Little follow-up question... can I extract the init.rc and put it in my phone without installing all over again ?
Short answer: no
Besides, you don't have to re-install your setup to use it, just flash the boot image, followed by DTA2SD and you're away.
Edit: Assuming your ROM is FRG83G anyway, I don't know if it'll work with other versions.
Rusty! said:
Short answer: no
Besides, you don't have to re-install your setup to use it, just flash the boot image, followed by DTA2SD and you're away.
Edit: Assuming your ROM is FRG83G anyway, I don't know if it'll work with other versions.
Click to expand...
Click to collapse
I have the FRG83(D) Stock.
Hmmm.
Well, given it's only stock rooted, I would use the OTA file to get on FRG83G then re-root with SoC... least then I know it will work, since that's what I based it on.
I use the http://forum.xda-developers.com/showthread.php?t=714184 rom.
So I tried to search but I didn't find how to update my rom already rooted ^^ because he hasn't upload the update.
Yeah you wont be able to update that one with the OTA file.
However, there is a changelog at the bottom that says it's already got the A2SD stuff there. Just install DT-A2SD and you're away.
Didn't see the changelog... but A2SD is on my phone already ! But I can't see the partition from the phone (root explorer).
A2SD doesn't create the partition, that's down to you. You can do it from recovery (after backing up your SD card), or you can do it on the fly using GParted Live CD.
I wanted to say that A2SD is up and ready. Partition is good and all the applications are on it and it works. But the partition is not auto-mount.
If it's not auto-mounting it kinda wont work?
It's mount point is /system/sd
But I still can't see it :/
Sent from my Nexus One using Tapatalk
If you run a2sd check it should say what it thinks the mount point is and if all is well
There is the check:
sh-3.2$ su
sh-3.2# a2sd check
[ ] Apps2SD is launching...
__ _____
| \ |
| | |
|__/ | Darktremor Apps2SD 2.7.5.2 (2010-09-30)
[ ] GetProp Command = /system/bin/toolbox getprop
[ ] SetProp Command = /system/bin/toolbox setprop
[ ] Mount Point = /system/sd
[ ] Creating /cache/dc
[ ] Symlinking /cache/dalvik-cache to /data/dalvik-cache
[ ] Starting Apps2SD Check Program.
[ ] Checking for ext partition
Darktremor 2.7.5.2 Apps2SD Status Report
===================================================================================
Legend: [*]=Setting is correct
[!]=Setting is correct, but not optimal.
[X]=Setting is incorrect and needs to be fixed or option is not available.
===================================================================================
Block Device - [*] Found
- [*] /dev/block/mmcblk0p2
EXT Partition - [*] Mounted
Mount Point - [ ] /system/sd
Partition Type - [*] EXT3
Support EXT2? - [*] Yes
Support EXT3? - [*] Yes
Support EXT4? - [X] No
Apps - [ ] Linked to SD Card.
[ ] No Apps2SD Flag File not found.
[*] Programs run from SD card
To run from internal storage, type a2sd remove
Private Apps - [ ] Linked to SD Card.
[ ] No Apps2SD Flag File not found.
[*] Private Programs run from SD card
To run from internal storage, type a2sd remove
Dalvik Cache - [ ] Symbolically Linked.
[ ] Dalvik to SD flag file found.
[*] Dalvik runs from SD card
To run from internal storage, type a2sd nocache
To run from /cache partition, type a2sd cachepart
Swap - [ ] Partition not present or no swap support.
[*] Swap does not start.
ZipAlign - [*] Not running at boot.
To activate it, type a2sd zipalign
Dalvik Heap(MB) - [*] 32m
Low Memory
Killer Settings - [*] 1536,2048,4096,4096,5120,15360
Note: Values are in pages.
1 page = 4KB memory.
Values represent the following:
1st number = Foreground App
2nd number = Visible App
3rd number = Secondary Server
4th number = Hidden App
5th number = Content Provider
6th number = Empty App
[] For a list of commands that you can use with Apps2SD
Type: a2sd help
sh-3.2#
Click to expand...
Click to collapse

[WIP][TeamCanjica][GUIDE] Porting MIUI v5 to our device [JB]

This is device specific but you can use this to port to another device, just use the proper stuffs. This is a help for the new users who wants to collaborate and learn a bit, I can't promise you that doing this ypur rom will boot easy, I didn't ported v5 yet but the process is closer to v4 porting so reading, researching and using the head, maybe, you will make a bootable port.. Just give it a shot and try. More people involved on the same project will make more easy everything so work together and respect each other, don't be a noob/kanger/idiot..
This will cover from kernel built to framework patch. So you will:
• Build CM kernel for MIUI
• Port MIUI diffing and patching the 'framework' and copying the propper files to make it bootable
• Learn a bit about how Android works
• Learn how to debug and make/use reverse enginnearing
• Spend more time porting than being with a girl and friends? C'mon, get a life..
O.S.:
• Windows 7 - You will use it for almost everything
• Ubuntu 13.04 (x64 bit) (Yes, use this one just because I say it) - You will use it for kernel building
Software (Windows only):
• Notepad++ - For 'build.prop'
• WinMerge - For smalis diff., I don't care if Notepad++ have 'compare' plugin, WinMerge is the best for methods blocks compare
• Smali/Baksmali tool - The best in this case to decompile the framework
• WinRAR or 7zip - Seriously? C'mon, I don't need to tell you why you will use this..
• Android SDK - For 'adb' tool
Done!! You're ready to start with this, so buy a Coke or a beer or whatever you want, buy cigarrs and time, you will need a looot of time, this is not hard but takes to much time testing, fixing, pushing, testing again, fixing again, reading and paying attention..
This is a 'Work In Progress' guide 'cus I am at work rite nao, so I can't make all the guide now but I will continue this as soon as possible.. I will do the guide first and then I will add some pic's and examples to make it more easy to understand the whole proccess so stay tuned..
Credits:
@frapeti, @diego-ch and Team Canjica for supporting me, staying with me, teaching me, for everything I learned whit them. This were nothing without them, for real!!
@Lens_flare for the 'How to port..' bible he made of MIUI, this were nothing without him too, you guys should thanks him!!
@xboxfanj for teaching me a lot too in a lot of MIUI related stuff and other things too
And for everyone who was in my way of MIUI porting 'school', teaching me, helping me, guideing me, for everything!! Sorry if I forgott some one, tell me and I will be glad to add it here.
ⓣⓐⓟⓐⓣⓐⓛⓚ
Building the kernel:
MIUI can boot with CM or AOSP kernel but you will need to change/add a few lines in it for MIUI. You have 2 ways to do those changes, unpacking the kernel or build it. Just because I am so nice and want you guys to take the most harder way because is the best way to learn and understand moaar all this I will tell you how to build the kernel from source, beside that is better this than unpacking and repacking the kernel. Let's start initializing the environment:
• Install the Android SDK and set it up (the instructions are on his own web page so I will not explain this)
• Open a 'Shell' (is the same as 'Terminal Emulator' on Android) and copy/pasta this:
Code:
$ sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
$ sudo apt-get update
$ sudo apt-get install sun-java6-jdk
This step will install the Java JDK. After that, you will have to install a couple packages, so, again, copy/pasta this:
Code:
$ sudo apt-get install git gnupg flex bison gperf build-essential \
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
libgl1-mesa-dev g++-multilib mingw32 tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev:i386
$ sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
After the required packages were installed, will be time to install 'repo', so copy/pasta this:
Code:
$ mkdir -p ~/bin
$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
'CCACHE' (this will speed a lot the build proccess!!)
-TO BE ADDED-
Reboot your PC and boot again in Ubuntu. Now is time to sync the source, so open a 'Shell' again and copy/pasta this:
Code:
$ mkdir -p ~/android/system/
$ cd ~/android/system/
$ repo init https://github.com/TeamCanjica/android.git -b cm-10.1
$ repo sync -j4
$ ./vendor/cm/get-prebuilts
$ . build/envsetup.sh
$ cd frameworks/av
$ git fetch http://review.cyanogenmod.org/CyanogenMod/android_frameworks_av refs/changes/21/46421/3
$ git cherry-pick FETCH_HEAD
$ cd ../..
$ cd system/core
$ git fetch http://review.cyanogenmod.org/CyanogenMod/android_system_core refs/changes/32/45032/3
$ git cherry-pick FETCH_HEAD
$ cd ../..
At this point you will be able to build just the kernel or a fully CM10.1 rom. Maybe, when syncing and cherry picking ends, you wanna do again:
Code:
$ repo sync
Just to be sure that the entire source is fine.. Now, let's make some changes in the kernel. We will need to add the 'shelld' service, add 'framework_ext.jar' and make adb insecure:
* 'shelld' service and 'framework_ext.jar'
We will need to add this service (without this, Theme manager will not work or the launcher will FC, in example..) into the 'init.rc'. Watch the source https://github.com/TeamCanjica/android_system_core/blob/cm-10.1/rootdir/init.rc, that is the 'init.rc', now pay attention to the path of that file "android_system_core/rootdir/init.rc", that shows you where the file is, so in your PC will be on "android/system/core/rootdir/init.rc", that's the file we will use to add this service so open it scroll down to the bottom and add this at the end:
Code:
service shelld /system/xbin/shelld
class main
Now we will add 'framework_ext.jar' so press on the keyboard 'Ctrl+F' (search tool) and find 'export BOOTCLASSPATH', you will find something like this:
Code:
export BOOTCLASSPATH /system/framework/core.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/telephony-common.jar:/system/framework/mms-common.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar
Done? Fine, now to you have to add
Code:
:/system/framework/framework_ext.jar
between ':/system/framework/framework.jar' and ':/system/framework/telephony-common.jar', so the entire line should be:
Code:
export BOOTCLASSPATH /system/framework/core.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar[B]:/system/framework/framework_ext.jar[/B]:/system/framework/telephony-common.jar:/system/framework/mms-common.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar
Got it? Nice, that's all in the 'init.rc', now we can make it insecure or just build the kernel as 'eng' flag (Why 'eng' and not 'userdebug'? 'cus 'eng' will always be insecure), but if you wanna make it insecure just do this:
-TO BE ADDED-
Whitout this step, you will never be able to do logcats so you will never know why keeps bootlooping.. Interesting rigth? Jejeje
Now, fiiinaallyyy, let's build the kernel. Open a Shell and more copy/pasta:
Code:
$ cd ~/system/android/
$ . build/envsetup.sh
$ lunch cm_janice-eng
$ mka bootimage
Done, leave it building.. Could take 10~30 min. or even more.. You can pick the product on '/out' folder, the Shell will tell you where the file is anyway. Pick the kernel and copy to Windows partition through explorer (Why? You will need it and will not be able to pick it from Windows due to unsupported 'extx' partition from Windows).
Done with Ubuntu, time to get hands on Windows, so boot it up. The next step is the base of this 'cruzade' (LOL).
Our device, Advance or Janice or GT-I9070 (whatever), have a HDPI density so we will need to work with HDPI roms. First of all, we will use 2 roms:
* CM as base for port(called 'base' from now)
* MIUI as rom to port, obviouslly xD (called 'port' from now)
Download both of those roms, most newer CM build and MIUI. For MIUI, download most newer rom of any HDPI device based on 4.2.2 (yes, 4.2.2, so no place here for any CM10 build, CM10.1 only allowed). In MIUI v4 port I used 'crespo' (or better known as 'Nexus S') MIUI rom 'cus that device and the Advance have the same screen and density but the main issue is that I found just one MIUI rom for Nexus S based on 4.2 and I was unable to make it boot (I didn't worked hard anyway, just focused on the kernel only and minnor changes) so I can't be sure if that MIUI will be bootable, anyway if you find any other MIUI rom or wanna try with another rom is fine, but I recommend same screen and density. If you choose, in example, a XHDPI rom to port be prepared to face some oversized UI, but if you can deal with that then is fine for me, just be sure that is 4.2.2 based, no 4.1.2. I found this MIUI, maybe is the best shot:
http://en.miui.com/download-4.html
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
'Developer' version (not in the image case, that dev. version are v4, the third are v5.. Nevermind, the image is just illustrative) will be better 'cus MIUI came with his native root admin but in the 'stable' version they sometimes deactivate that, in 'developers' no, so you will not face any root headache.. =P
Let's see what we already did:
* Installed all the tools for Windows
* Installed Android SDK
* Installed Java
* Installed all the needed packages
* Synced the CM source for the kernel
* Modded and built the kernel
* Downloaded latest stable CM10.1 for base and MIUI for port
* Donated a beer to me and my awesome Canjica crew
* Sent me your credit card number
Nah, just kidding in the latest 2 points. I'm trying to make you laugh, this make this heavy work more funny instead of boring. Did you realized all the stuffs you did? Be proud that you already made too much and hope you learn a bit more about all this Android world, not about coding, just about necessary tools, how to set it up, the proccess, etc..
Now that we already have the kernel ready and we have the base rom and the port rom we will start with the most simple proccess, copy/pasta the necessary files. As @Lens_flare shared to everyone in his excellent guide (trust me, you will use more that guide than this one, here you have a more detailed proccess for one specific device, there you have a more detailed fixes of almost every 'framework' issue, so he really deserves a hugh thanks guys). Take the CM zip file and unpack it on a new folder (I always make a new folder on desktop called 'MIUI v'x' - 'device', in example: 'MIUI v5 - Advance', got it? Great!). We will basically drag and drop some files from port zip file into base project folder (the 'project folder' will be the folder you made and where you unpacked the base rom to work with it). Now you will have 2 folders, 'META-INF' and 'system', and 1 kernel, 'boot.img'.
Let's talk about it:
* 'META-INF' folder have the necessary files to make it flashable through CWM/TWRP recovery, the most important is the 'updater-script' because it have the 'instructions' and 'how will install' the rom
* 'system' folder, hmm, well, this have the system, should I have to explain something about this folder? =P
* 'boot.img' file is the kernel so no need to explain anything about it too
Now that you have those 3 folders/file, let's continue with the copy/pasta of neccessary files:
* Delete 'boot.img'
* Open 'system' folder and delete 'apps', 'fonts', 'framework' and 'media' folders
We will need those folders but the MIUI ones, so take those folders from port rom zip file and paste in 'system' of the project folder. Do not overwrite those folders, just remove the CM ones and add the MIUI ones.
Now, in the port rom zip file, go to '/system/etc' and copy this files:
* telocation.idf
* yellowpage.db
* secomxregistry
* pinyinindex.idf
* unicode_py_index.td
* permission_config.json
* spn-config.xml
And paste it on '/system/etc' folder in the project folder. Now you can overwrite those files and if you can't find any of the listed files in the port rom, just ignore it.
Now, '/system/etc/permissions' of port rom zip file. Some users, me too for v4, took this files:
* com.nxp.mifare.xml
* com.google.android.media.effects.xml
* com.google.widevine.software.drm.xml
* com.google.android.maps.xml
And placed in '/system/etc/permissions' of the project folder. The main issue is that I never saw those files in MIUI v5, that's why some users directly copy all the files from that folder, so let's try this, copy all files from '/system/etc/permissions' in port rom zip file except:
* handheld_core_hardware.xml
* platform.xml
Do the same with the '/system/lib' folder, copy this files:
* content-types.properties
* libFreqFilter.so
* libaudiofp.so
* libffmpeg_xm.so
* libffplayer_jni.so
* libimageutilites_jni.so
* libjni_resource_drm.so
* liblbesec.so
* liblocSDK_2.5OEM.so
* liblocSDK_2_5OEM.so
* libmp3lame.so
* libpatcher_jni.so
* libphotocli.so
* libshell*.so
And paste in '/system/lib' folder. Again, if you have to overwrite any of those files, do it and if you can't find any oh those files in the port rom zip file then just ignore it.
Now, in the port rom zip file go to '/system/xbin' and take this two files:
* shelld
* su
Like before, drag and drop in '/system/xbin' on the project folder and overwrite it. Done? Excellent, now we are going to work with the 'build.prop' located in '/system' on the project folder. Open it with 'Notepad++' and search this lines:
* ro.build.id​
* ro.build.display.id​
* ro.build.version.incremental
* ro.config.ringtone​
* ro.config.notification_sound​
* ro.config.alarm_alert
We need to set these lines with proper values:
Code:
​
ro.build.id=MIUI​
ro.build.display.id=MIUI​
ro.build.version.incremental=x.x.x​
ro.config.ringtone=MI.ogg​
ro.config.notification_sound=FadeIn.ogg​
ro.config.alarm_alert=GoodMorning.ogg
'x.x.x': this value can be setted with your birthday if you want it but will be better if we set the proper value to remember what MIUI build was used to port. To be more clear, watch the image I posted a couple lines up near of the red 'PORTED ROM', below the author you will see this: 'Version 3.12.6 ( V5 )'. The '3.12.6' is the incremental number and means this:
* '3' -> 2013
* '12' -> December
* '6' -> Day 6 of the current month
Got it? Great. Now you know how to set that value, the rest leave it like I posted.
Now, pick the 'boot.img' already compiled on Ubuntu and place it on the project folder. Done? Great, now you can select 'META-INF', 'system' and 'boot.img' files and compress it in a '.zip' file with WinRAR. Remember to select it as a zip file and Normal compression. Name that zip file as you want it, I always named as "MIUI vx - Test 1".
Finally you have the zip file, of course will booloop 'cus the framework were not diffed and patched, here is when 'adb' is crucial, from now we will work with 'smali'backsmali' and 'adb' tools.
To fix it step by step, you have 2 methods, one of them is flash the rom and make logs looking the error that cause the bootloop or patch the commons smali's first and then look the errors that cause the bootloop. Those smali's are inside of 'framework.jar' and 'services,jar' located on '/system/framework'. So, create 2 folders, the first one called 'CM' and the second one called 'MIUI'. Now open the original CM zip file and extract 'framework.jar' and 'services.jar' on CM folder. Do the same with the original MIUI zip file, pick those 2 files and extract it but on MIUI folder. Now we need to put a copy of 'smali' and 'baksmali' tools files on both folders. Done? Ok, now let's decompile the 'framework.jar' first opening the CM folder and a cmd window (just press 'Mayus' on keyboard and left click on any clean space on CM folder and select 'Open a command prompt here...' or go to 'Start' and write 'cmd' on search toolbox, open it and use 'cd' command to go to the CM folder). Now on the 'cmd' run this command:
Code:
java -jar baksmali.jar -b framework.jar -o framework.jar.out
Leave it finish and you will have a new folder called 'framework.jar.out', open it and you will find all the smalis in those folders. Do the same with the MIUI framework, open the folder, open a cmd and run that command. Ok, now it's time to overwritte the common smali files from CM folder to MIUI. Those common smali's files are this:
* android/content/res/PackageRedirectionMap*.smali
* android/hardware/Camera*.smali
* android/media/AudioFormat.smali
* android/net/wifi/wifichannel.smali
* android/net/wifi/wifinative.smali
* android/os/SystemProperties.smali
* android/view/Gles20*.smali
* android/view/inputmethod/inputmethodinfo*.smali
* android/webkit/html5*.smali
* android/webkit/selectactionmodecallback.smali
* com/android/internal/app/ActivityTrigger.smali​
You can just take those smali's and overwritte it. The next step will be add/patch missing 'methods' (the 'methods' are blocks of code), you only need to add the missing methods, not modify anything, I mean, if 'x' are not present in the MIUI smali, you will have to add it, here is where Winmerge gets in. The smalis you will have to patch are:
* android/content/res/AssetManager.smali
* android/media/AudioFormat.smali
* android/webkit/WebSettingsClassic.smali
So compare those files with the CM ones and add from CM smalis to MIUI smalis always. That's all with 'framework.jar', now we will patch 'services.jar', so again, overwrite from CM smali files to MIUI files this files:
* com/android/server/input/InputManagerService*.smali​
After that you will have to patch 'PowerManagerService.smali' located at 'com/android/server/power'. Search the block '.method private static native nativeCpuBoost(I)V​' and add it from CM to MIUI one. Done? Nice, now compile 'framework.jar' and 'services.jar' doing this from a Shell (or cmd or whatever you call it):
Code:
java -jar smali.jar framework.jar.out
and
Code:
java -jar smali.jar services.jar.out
Running those commands you will compile both files again and you will have as result a file called 'out.dex', that file will have to replace the 'classes.dex' inside of both '.jar' files (framework and services). So, to make it easyer, compile 'framework.jar', rename 'out.dex' result to 'classes.dex', open 'framework.jar' and drag and drop 'classes.dex' from folder to 'framework.jar' zip file overwritting the one inside, then do the same with 'services.jar'. Done? Great, now pick 'framework.jar' and 'services.jar' and paste in the rom in 'framework' folder. Excellent, now is time to flash the rom and start making logs. This is the most heavy step 'cus you will have to test, find the error (for sure will be a smali framework error), patch it and then flash it, agaain, test, search the error in logs, patch it too, and flash it, that's why is heavy, is a repetitive proccess. You will have to do that one, two, three, four, five times until properlly boot.
ⓣⓐⓟⓐⓣⓐⓛⓚ
And this too (=
ⓣⓐⓟⓐⓣⓐⓛⓚ
so...
sinan5858 said:
so...
Click to expand...
Click to collapse
Do you have any idea what you just said??
Be respectful and thankful to him for creating that thread to help the noobs to develope MIUI..:good::good:
Fed , im waiting
I know you guys are waiting this but I was out the past weekend and this week I will be really busy, in fact, my job is killing me, tomorrow gotta go sooner than always because I have to do a lot of stuffs but I promise I will finish this this week.. Sorry guys for making you wait too much but, please, understand me!! =(
Enviado desde mi C6602 mediante Tapatalk
fedevd said:
I know you guys are waiting this but I was out the past weekend and this week I will be really busy, in fact, my job is killing me, tomorrow gotta go sooner than always because I have to do a lot of stuffs but I promise I will finish this this week.. Sorry guys for making you wait too much but, please, understand me!! =(
Enviado desde mi C6602 mediante Tapatalk
Click to expand...
Click to collapse
Ahha , No problem dude
Take Ur Time <3
Updated 2nd post and still adding some stuffs, gimme a break to take a shower and rest in my bed now xD
EDIT: A bit more info added..
EDIT2: More info added..
Enviado desde mi C6602 mediante Tapatalk
Ehm... to download / test it?? Sorry for the question
Cyanogenmod 10.2
giec said:
Ehm... to download / test it?? Sorry for the question
Cyanogenmod 10.2
Click to expand...
Click to collapse
Download/test it what????
giec said:
Ehm... to download / test it?? Sorry for the question
Cyanogenmod 10.2
Click to expand...
Click to collapse
Do you even read? This is a GUIDE how to port MIUI.
I have will to do it, but do not have enought time to do it like it should. I work rom 12 - 8 monday-friday by PC, and after that I do not have such concentration to continue with development. So Fedevd decided to make guide on our forum, that we could work together.
shut_down said:
Do you even read? This is a GUIDE how to port MIUI.
I have will to do it, but do not have enought time to do it like it should. I work rom 12 - 8 monday-friday by PC, and after that I do not have such concentration to continue with development. So Fedevd decided to make guide on our forum, that we could work together.
Click to expand...
Click to collapse
Kids, moar kids everywhere!! =P
Added more info on 2nd post, still incomplete anyway, still toooooo much info to add =/
Hope you guys work togheter if you want MIUI v5, like I did with my great Team Canjica, 5 heads are better than 1, so...
I have some experience (little, but better than nothing ) in compiling and I already have cm10.1 sources in my pc :good: so I could try, maybe next weekor before christmas
Sent from my iPad using Tapatalk
Thst will be good.. I am doing this for anyone who wanna port it, knowing or not knowing about it.. (=
Enviado desde mi C6603 mediante Tapatalk
Thx -.-
Cyanogenmod 10.2
Finished the basics steps to port MIUI, still have to add some images, make more clear some steps, add minnor stuffs, explain a bit more some minnor stuffs and correct some symbols but with this you can now start porting. If someone do not understand something or some step are difficult, just leave comments here and I will try to help you. 3rd post is reserved for common logs errors to make it more easier later for other new users. So, let's start porting this great ROM and I wish lucky for all of you with this heavy and lazy work =P
I failed :/
phone had been connected to abd for 20 minutes and all i got is this
--------- beginning of /dev/log/system
[ 12-24 08:37:30.830 1802: 1802 I/Vold ]
Vold 2.1 (the revenge) firing up
[ 12-24 08:37:30.830 1802: 1802 D/Vold ]
Volume sdcard0 state changing -1 (Initializing) -> 0 (No-Media)
[ 12-24 08:37:30.830 1802: 1802 D/Vold ]
Volume sdcard1 state changing -1 (Initializing) -> 0 (No-Media)
[ 12-24 08:37:30.830 1802: 1802 D/Vold ]
Volume usbdisk0 state changing -1 (Initializing) -> 0 (No-Media)
[ 12-24 08:37:30.860 1802: 1827 D/Vold ]
Volume sdcard0 state changing 0 (No-Media) -> 2 (Pending)
[ 12-24 08:37:30.860 1802: 1827 D/DirectVolume ]
DirectVolume::handlePartitionAdded -> MAJOR 179, MINOR 1, PARTN 1
[ 12-24 08:37:30.860 1802: 1827 D/DirectVolume ]
DirectVolume::handlePartitionAdded -> MAJOR 179, MINOR 2, PARTN 2
[ 12-24 08:37:30.870 1802: 1827 D/DirectVolume ]
DirectVolume::handlePartitionAdded -> MAJOR 179, MINOR 3, PARTN 3
[ 12-24 08:37:30.870 1802: 1827 D/DirectVolume ]
DirectVolume::handlePartitionAdded -> MAJOR 179, MINOR 4, PARTN 4
[ 12-24 08:37:30.870 1802: 1827 D/DirectVolume ]
DirectVolume::handlePartitionAdded -> MAJOR 179, MINOR 5, PARTN 5
[ 12-24 08:37:30.870 1802: 1827 D/DirectVolume ]
DirectVolume::handlePartitionAdded -> MAJOR 179, MINOR 6, PARTN 6
[ 12-24 08:37:30.870 1802: 1827 D/DirectVolume ]
DirectVolume::handlePartitionAdded -> MAJOR 179, MINOR 7, PARTN 7
[ 12-24 08:37:30.870 1802: 1827 D/Vold ]
Volume sdcard0 state changing 2 (Pending) -> 1 (Idle-Unmounted)
[ 12-24 08:37:30.870 1802: 1827 D/DirectVolume ]
DirectVolume::handlePartitionAdded -> MAJOR 179, MINOR 8, PARTN 8
[ 12-24 08:37:30.870 1802: 1827 W/Vold ]
Duplicate state (1)
[ 12-24 08:37:30.880 1802: 1827 D/DirectVolume ]
DirectVolume::handlePartitionAdded -> MAJOR 179, MINOR 9, PARTN 9
[ 12-24 08:37:30.880 1802: 1827 W/Vold ]
Duplicate state (1)
[ 12-24 08:37:30.880 1802: 1827 D/DirectVolume ]
DirectVolume::handlePartitionAdded -> MAJOR 179, MINOR 10, PARTN 10
[ 12-24 08:37:30.880 1802: 1827 W/Vold ]
Duplicate state (1)
[ 12-24 08:37:30.880 1802: 1827 D/DirectVolume ]
DirectVolume::handlePartitionAdded -> MAJOR 179, MINOR 11, PARTN 11
[ 12-24 08:37:30.880 1802: 1827 W/Vold ]
Duplicate state (1)
[ 12-24 08:37:30.880 1802: 1827 D/DirectVolume ]
DirectVolume::handlePartitionAdded -> MAJOR 179, MINOR 12, PARTN 12
[ 12-24 08:37:30.880 1802: 1827 W/Vold ]
Duplicate state (1)
[ 12-24 08:37:30.880 1802: 1827 D/DirectVolume ]
DirectVolume::handlePartitionAdded -> MAJOR 179, MINOR 13, PARTN 13
[ 12-24 08:37:30.880 1802: 1827 E/DirectVolume ]
Invalid 'PARTN' value
[ 12-24 08:37:30.880 1802: 1827 D/DirectVolume ]
DirectVolume::handlePartitionAdded -> MAJOR 179, MINOR 14, PARTN 14
[ 12-24 08:37:30.880 1802: 1827 E/DirectVolume ]
Invalid 'PARTN' value
[ 12-24 08:37:30.880 1802: 1827 D/DirectVolume ]
DirectVolume::handlePartitionAdded -> MAJOR 179, MINOR 15, PARTN 15
[ 12-24 08:37:30.880 1802: 1827 E/DirectVolume ]
Invalid 'PARTN' value
[ 12-24 08:37:30.880 1802: 1827 D/DirectVolume ]
DirectVolume::handlePartitionAdded -> MAJOR 179, MINOR 16, PARTN 16
[ 12-24 08:37:30.880 1802: 1827 E/DirectVolume ]
Invalid 'PARTN' value
[ 12-24 08:37:30.880 1802: 1827 D/DirectVolume ]
DirectVolume::handlePartitionAdded -> MAJOR 179, MINOR 17, PARTN 17
[ 12-24 08:37:30.880 1802: 1827 E/DirectVolume ]
Invalid 'PARTN' value
[ 12-24 08:37:30.880 1802: 1827 W/Vold ]
Duplicate state (1)
[ 12-24 08:37:30.880 1802: 1827 W/Vold ]
Duplicate state (1)
[ 12-24 08:37:30.880 1802: 1827 W/Vold ]
Duplicate state (1)
[ 12-24 08:37:30.880 1802: 1827 W/Vold ]
Duplicate state (1)
[ 12-24 08:37:30.880 1802: 1827 D/Vold ]
Volume sdcard1 state changing 0 (No-Media) -> 2 (Pending)
[ 12-24 08:37:30.880 1802: 1827 D/DirectVolume ]
DirectVolume::handlePartitionAdded -> MAJOR 179, MINOR 97, PARTN 1
Try this, run:
Code:
adb logcat -c
and then
Code:
adb logcat >nameoflog.txt
and see if now the log works better..
Enviado desde mi C6603 mediante Tapatalk
Can anybody help me please?
I want to Copy this in Terminal emulator in windows but it doesn't work
$ sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"

Try to port Ubuntu Touch for Moto G 2014

Hi , i'm trying to port Ubuntu Touch for Moto G 2014
can any one help me to resolve this error
make: *** No rule to make target '/home/walid/phablet/out/host/linux-x86/framework/signapk.jar', needed by '/home/walid/phablet/out/target/product/titan/obj/APPS/TimeService_intermediates/TimeService.apk'. Stop.
Edit :
I'm in the end step of booting
[ 7.433841,1] initrd: mounting /dev/disk/by-partlabel/boot as /root/android//boot
[ 7.454993,3] initrd: checking mount label recovery
[ 7.457615,0] initrd: mounting /dev/disk/by-partlabel/recovery as /root/android//recovery
[ 7.497315,3] initrd: checking mount label mmc_host*
[ 7.517051,2] initrd: checking mount label usb1
[ 7.554915,0] initrd: checking mount label zram0
[ 7.558913,1] initrd: mounting /dev/zram0 as /root/android/none
[ 7.563701,1] initrd: mounting /root/var/lib/lxc/android/system.img as /root/android/system
[ 7.631982,1] systemd-udevd[181]: Validate module index
At this point the system try to mount system.img
But after that the system crash
[ 7.998344,1] Crash partition in use!
[ 8.998513,1] wcnss crash shutdown 0
[ 8.998592,1] Rebooting in 5 seconds..
[ 13.998672,1] Going down for restart now
[ 13.999581,1] failed to disable wdog debug: -4
[ 13.999672,1] Calling SCM to disable SPMI PMIC arbiter
PREV
Linux version 3.4.42-g832c593-dirty ([email protected]) (gcc version 4.8 (GCC) ) #5 SMP PREEMPT Thu Feb 2 21:02:43 UTC 2017
full log her,
https://drive.google.com/file/d/0B-F-xs4jYP12dWdsWGFXYlpIeEU/view?usp=sharing
Can any one help me please
Edit again:
Ubuntu Touch now work in my phone , yes work , but no RIL, no Camera and no Wifi.
I will start fix this bugs as soon as possible
https://drive.google.com/file/d/0B-F-xs4jYP12ellZQ25FR05SWVk/view?usp=sharing
walidham said:
Hi , i'm trying to port Ubuntu Touch for Moto G 2014
can any one help me to resolve this error
make: *** No rule to make target '/home/walid/phablet/out/host/linux-x86/framework/signapk.jar', needed by '/home/walid/phablet/out/target/product/titan/obj/APPS/TimeService_intermediates/TimeService.apk'. Stop.
Click to expand...
Click to collapse
ask to dev by PM nobody responde here
marianoasis said:
ask to dev by PM nobody responde here
Click to expand...
Click to collapse
thanks, i resolved the error by adding signapk.jar in out/host/linux-x86/framework.
The problem now, in deodexed apk file(TimeService.apk...) , i will try disabled it in build.
walidham said:
thanks, i resolved the error by adding signapk.jar in out/host/linux-x86/framework.
The problem now, in deodexed apk file(TimeService.apk...) , i will try disabled it in build.
Click to expand...
Click to collapse
good luck with that. and happy new year dude!
marianoasis said:
good luck with that. and happy new year dude!
Click to expand...
Click to collapse
Thanks,
I have compiled and generated boot.img, system.img and recovery.img
But after installation, phone can't boot.
Now come the real work, i will fix boot first (i must see ubuntu touch start).
Happy new year
marianoasis said:
good luck with that. and happy new year dude!
Click to expand...
Click to collapse
Hi
I compiled Source code based on ubport ub5.1 using CM12.1 device tree
recovery.img work fine, i can boot in recovery mod (Ubports Recovery)
But boot.img is big i got this error
error: /home/walidham/ub5/out/target/product/titan/boot.img too large (10729472 > [10771200 - 270336])
Can any one help me how i can reduce boot.img size ?
walidham said:
Hi
I compiled Source code based on ubport ub5.1 using CM12.1 device tree
recovery.img work fine, i can boot in recovery mod (Ubports Recovery)
But boot.img is big i got this error
error: /home/walidham/ub5/out/target/product/titan/boot.img too large (10729472 > [10771200 - 270336])
Can any one help me how i can reduce boot.img size ?
Click to expand...
Click to collapse
Did you resolved the error(making boot.IMG smaller).... After compiling what did you get zimage or boot.img directly.....????
radelpha said:
After compiling what did you get zimage or boot.img directly.....????
Click to expand...
Click to collapse
when i change max size in BoardConfig.mk, after compilation i have 3 files : system.img, recovery.img and boot.img and others files like ramdisk_android.img, ramdisk_ubuntu.img, dt.img....
But still can't flash boot.img (failled due to the size is big).
I'm now trying to delete unneeded drivers and files in device tree and hope will work
walidham said:
when i change max size in BoardConfig.mk, after compilation i have 3 files : system.img, recovery.img and boot.img and others files like ramdisk_android.img, ramdisk_ubuntu.img, dt.img....
But still can't flash boot.img (failled due to the size is big).
I'm now trying to delete unneeded drivers and files in device tree and hope will work
Click to expand...
Click to collapse
Hmmm... Give it a try... Try unpacking the boot.IMG(Ubuntu) and unpack stock titans boot.IMG then replace its zimage(stock) with ubuntu's zimage then repack it.... Hope this works.....
radelpha said:
Hmmm... Give it a try... Try unpacking the boot.IMG(Ubuntu) and unpack stock titans boot.IMG then replace its zimage(stock) with ubuntu's zimage then repack it.... Hope this works.....
Click to expand...
Click to collapse
When i just unpack and repack the boot.img generated, the size is reduced (10.8mb to 9.5mb), i don't know why?, i got 5 files :
boot.img-base,
boot.img-cmdline,
boot.img-pagessize,
boot.img-ramdisk.gz and
boot.img-zimage
I will try your idea
walidham said:
When i just unpack and repack the boot.img generated, the size is reduced (10.8mb to 9.5mb), i don't know why?, i got 5 files :
boot.img-base,
boot.img-cmdline,
boot.img-pagessize,
boot.img-ramdisk.gz and
boot.img-zimage
I will try your idea
Click to expand...
Click to collapse
Yes.... Flash this boot.IMG with only fastboot or else it won't work.....
Now i have the three files : recovery.img, boot.img and systme.img based on cm-12.1
recovery work , but after flashing boot and system , phone stop in moto logo,
Her some logs :
<3>[ 2.643604,2] init: failed to open '/sys/class/graphics/fb1/msm_fb_type'
<3>[ 2.643745,2] init: failed to open '/sys/class/graphics/fb2/msm_fb_type'
<3>[ 2.644593,2] init: Unable to open persistent property directory /data/property errno: 2
<6>[ 2.763154,0] cpr_scale: Down: cpr status = 0x000025dd (error_steps=7)
<3>[ 0.947143,0] mdss_mdp_parse_dt_prop_len: Error from prop qcom,mdss-ad-off : spec error in device tree
<4>[ 1.077626,1] mmi_factory: probe of factory_support.71 failed with error -16
Can any one help me
I'm in the end step of booting
[ 7.433841,1] initrd: mounting /dev/disk/by-partlabel/boot as /root/android//boot
[ 7.454993,3] initrd: checking mount label recovery
[ 7.457615,0] initrd: mounting /dev/disk/by-partlabel/recovery as /root/android//recovery
[ 7.497315,3] initrd: checking mount label mmc_host*
[ 7.517051,2] initrd: checking mount label usb1
[ 7.554915,0] initrd: checking mount label zram0
[ 7.558913,1] initrd: mounting /dev/zram0 as /root/android/none
[ 7.563701,1] initrd: mounting /root/var/lib/lxc/android/system.img as /root/android/system
[ 7.631982,1] systemd-udevd[181]: Validate module index
At this point the system try to mount system.img
But after that the system crash
[ 7.998344,1] Crash partition in use!
[ 8.998513,1] wcnss crash shutdown 0
[ 8.998592,1] Rebooting in 5 seconds..
[ 13.998672,1] Going down for restart now
[ 13.999581,1] failed to disable wdog debug: -4
[ 13.999672,1] Calling SCM to disable SPMI PMIC arbiter
PREV
Linux version 3.4.42-g832c593-dirty ([email protected]) (gcc version 4.8 (GCC) ) #5 SMP PREEMPT Thu Feb 2 21:02:43 UTC 2017
full log her,
https://drive.google.com/file/d/0B-F...ew?usp=sharing
Stuck in boot animation
https://drive.google.com/file/d/0B-F-xs4jYP12dWFlSUVqTmV3RDQ/view?usp=sharing
Ubuntu Touch now work in my phone , yes work , but no RIL, no Camera and no Wifi.
I will start fix this bugs as soon as possible
@walidham i try to port using cm 13.1 what you defconfig ? thanks, and good work, waiting for fix ...
horuxan said:
@walidham i try to port using cm 13.1 what you defconfig ? thanks, and good work, waiting for fix ...
Click to expand...
Click to collapse
Sorry, you want port Ubuntu Touch using cm-13.0 ?
If yes, you must change titan_defconfig using this script
https://github.com/janimo/phablet-porting-scripts
But you must disable some flags like CONFIG_DEBUG_RODATA
Congo for your first boot... and please contact @h2o64 as he ported ubuntu touch to moto g 2013.... Hope he will help you
walidham said:
Sorry, you want port Ubuntu Touch using cm-13.0 ?
If yes, you must change titan_defconfig using this script
https://github.com/janimo/phablet-porting-scripts
But you must disable some flags like CONFIG_DEBUG_RODATA
Click to expand...
Click to collapse
thanks @walidham )))) :fingers-crossed:
---------- Post added at 05:33 PM ---------- Previous post was at 05:32 PM ----------
walidham said:
Sorry, you want port Ubuntu Touch using cm-13.0 ?
If yes, you must change titan_defconfig using this script
https://github.com/janimo/phablet-porting-scripts
But you must disable some flags like CONFIG_DEBUG_RODATA
Click to expand...
Click to collapse
thanks @walidham )))) :fingers-crossed:

Copy only modified files in s folder?

I have a folder and I want to only copy the files in it to a different folder, there are other folders in it that I do not want to copy. The files have various extensions and some have none. I can copy the whole folder but that will also sub the other folders in it, I am not sure how to do this.
Use a list files action to create a variable with everything (files and directories) in the directory you want to copy files from:
Code:
A1: List Files [
Dir: Download
Match:
Include Hidden Files: Off
Use Root: Off
Sort Select: Alphabetic
Variable: %testfiles
]
Then open FOR loop so you can act on each item in the variable created above:
Code:
A2: For [
Variable: %testfile
Items: %testfiles()
]
Now test to see if you're dealing with a file or not:
Code:
A3: Test File [
Type:Type
Data: %testfile
Store Result In: %test
Use Root: Off
]
If the entry tests as a file, copy it to the new location:
Code:
A4: Copy File [
From: %testfile
To: test/
Use Root: Off
] If [ %test ~ file ]
End the FOR loop:
Code:
A5: End For
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers

miMIX3 5G [ andromeda ] firmware details request

can you please point US to a " best thread or post " we can read and finally fully understand those differences we should consider, while evaluating most appropriate and suitable software/firmware ?
- OFFICIAL STOCK firmware: [ miIUI china - CN ] [ miUI EEA rom ] [ miUI global rom ]
- CUSTOM FIRMWARE/ROM: [ miUI EU rom ] [ xiaomi.EU rom ]
take care,
marc
EDIT : those pages with hypertext and web application [ MiFirm ] won't highlight differences from one firmware version to another and among those five [ 5 ] different aforementioned firmware versions and yet available for same mi-device model, we want to understand whether any isn't requiring boot loader unlocking and to then switch to a firmware version in the list above.
[ reason for asking: we tested some official and stock firmware features also found in ' settings >> about phone >> system update >> ... >> download latest update ' , we gathered a zip file is placed in a folder [ downloaded\rom ] and firmware is then updated on subsequent restart. stock and original firmware built-in feature and a official firmware switch process won't require boot loader unlocking. ]
where to read about differences between [ mi-device unlocking ] ; [ mi unlocking ] ; [ unlocking boot loader ] and yet [ OEM unlocking ] also found in DEV settings ?

Categories

Resources