[Q] Kernel source question - Android Q&A, Help & Troubleshooting

I own a Xolo q1000/cherry mobile OHD
Specs :-
1.2 ghz quadcore mt6589
powervr gpu
4gb internal( rest not worth metioning here )
There is another device called BQ AQUARIS 5 HD
It has the same specs as the above device
even the same gpu and all the placement of the hard keys is the same as my device ( BUILD AND SPECS ARE TOTALLY SAME, EVEN THE SCREEN )
But it has 16gb internal ( only one difference )
Xolo :
{
"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"
}
Aquaris 5 HD :
Hope you can see the similarity
Now my problem here is that the source of aquaris 5 HD is available and my friend has used it to make a custom kernel for my xolo, but it doesnt boot up..
Can someone pls help me with this ??
I want to change the files corresponding to the internal memory..
Help will be appreciated

Make sure you're getting the mount points right,if the only difference between the phones were storage then, ADB would start when kernel initialises if you added it in the ramdisk. Get a dmesg or a logcat to understand the problem.
An easier do to check if the kernel works is, build a recovery with the kernel and check if it works.

Well I have been been trying to make the kernel... I got an idea.. Will changing the recovery.fstab in the source be helpful ?? And also can I copy some files in the source parts of which are having similar specs?? Like touch etc...??

protox 109 said:
Well I have been been trying to make the kernel... I got an idea.. Will changing the recovery.fstab in the source be helpful ?? And also can I copy some files in the source parts of which are having similar specs?? Like touch etc...??
Click to expand...
Click to collapse
However similar your device maybe, the calibrations may vary
"some calibrations settings are on the device itself.
Search with an root explorer under /sys/devices/platform and check under the MT-IC's (eg MT-i2C.0)
Under those IC's you'll find most of the devices (sensors,, etc), that are being used.
Example
/sys/devices/platform
MT-I2C.0
0-0039 - s3202 ---> s3202 is the TouchPanel
MT-I2C.1
1-0018 - FM50AF ---> Camera Lens
MT-I2C.2
2-0018- BMA222 ---> Accelerometer
etc, etc.
Some sensors special configs, can be found on those IC's, others are under /proc."

whenever i use the MAKE command this happens.. how to fix it ?
Code:
Command 'make' is available in '/usr/bin/make'
The command could not be located because '/usr/bin' is not included in the PATH environment variable.
make: command not found

protox 109 said:
whenever i use the MAKE command this happens.. how to fix it ?
Code:
Command 'make' is available in '/usr/bin/make'
The command could not be located because '/usr/bin' is not included in the PATH environment variable.
make: command not found
Click to expand...
Click to collapse
If you exported your path dynamically via terminal for that instance, you need to do
export PATH = path_to_dir:$PATH
this will include the existing environment paths also.

New problem at hand
Getting these errors when i am following your thread about making mediatek kernels
Code:
[email protected]:/q1100/aquaris-5HD-aquaris-5HD/kernel# cp mediatek/config/lcsh_we_jb2/autoconfig/kconfig/platform .config
cp: cannot stat `mediatek/config/lcsh_we_jb2/autoconfig/kconfig/platform': No such file or directory

protox 109 said:
New problem at hand
Getting these errors when i am following your thread about making mediatek kernels
Code:
[email protected]:/q1100/aquaris-5HD-aquaris-5HD/kernel# cp mediatek/config/lcsh_we_jb2/autoconfig/kconfig/platform .config
cp: cannot stat `mediatek/config/lcsh_we_jb2/autoconfig/kconfig/platform': No such file or directory
Click to expand...
Click to collapse
Instead of doing that try "make mediatek-configs"

MasterAwesome said:
Instead of doing that try "make mediatek-configs"
Click to expand...
Click to collapse
giving me this error .. D:
Code:
[email protected]:/q1100/aquaris-5HD-aquaris-5HD/kernel# make mediatek-configs
/q1100/aquaris-5HD-aquaris-5HD/kernel/arch/arm/Makefile:237: /q1100/aquaris-5HD-aquaris-5HD/kernel/mediatek/Makefile: No such file or directory
make: arm-linux-androideabi-gcc: Command not found
make: *** No rule to make target `/q1100/aquaris-5HD-aquaris-5HD/kernel/mediatek/Makefile'. Stop.

gcc compiler
Do you have the GCC toolchain?
If you do, try typing:
export CROSS_COMPILE=~/dir/where/gcc/is/installed/bin/arm-eabi-
if you downloaded the entire google source it will look sth like:
export CROSS_COMPILE=~/google/source/dir//prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-
protox 109 said:
giving me this error .. D:
Code:
[email protected]:/q1100/aquaris-5HD-aquaris-5HD/kernel# make mediatek-configs
/q1100/aquaris-5HD-aquaris-5HD/kernel/arch/arm/Makefile:237: /q1100/aquaris-5HD-aquaris-5HD/kernel/mediatek/Makefile: No such file or directory
make: arm-linux-androideabi-gcc: Command not found
make: *** No rule to make target `/q1100/aquaris-5HD-aquaris-5HD/kernel/mediatek/Makefile'. Stop.
Click to expand...
Click to collapse

jin03002 said:
Do you have the GCC toolchain?
If you do, try typing:
export CROSS_COMPILE=~/dir/where/gcc/is/installed/bin/arm-eabi-
if you downloaded the entire google source it will look sth like:
export CROSS_COMPILE=~/google/source/dir//prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-
Click to expand...
Click to collapse
Thanks, it works
But now i have got the zImage and modules.. How to to append mediatek headers to it and how to flash it to my device ???
Thanks

Related

aZuZu Small Tools 4 SE - All In One Place - Direct SIN / YAFFS UnPacker Added

apk manager (backup, install, delete apks on phone )--- link: soon
custom boot image toolkit
{
"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"
}
azuzu kitchen --- link: soon
nandroid2pc ( xrecovery backup copier / unpacker to pc) --- link: soon
aZuZu amend syntax update-script to edify syntax updater-script converter
RamDisk Packer for Windows
Small Library Dependency Scanner - Alpha
Direct SIN & YAFFS UnPacker
http://azuzu.spice.net.au/tools/aKSTK/aKSTK.zip
very nice!!!
on project, your tool look good... i'm wating the result.. the first release...
thank to try to make our cooking easyer ...
This is very appreciated!
When will links be up?
Thanks for the tools
*solved* ...
a1exander said:
Can someone please tell me on how do open/edit .so files like gralloc or copybit?
Click to expand...
Click to collapse
.so files are linux libraries.... something like .dll in windows...
afaik (though i could be wrong) they cannot be edited... they need to be recompiled from sources to make any changes...
*solved* ...
a1exander said:
Can you please give me a quick little guide on how to do that?
Im kind of new to "developing".
Click to expand...
Click to collapse
i am also new to compiling stuff from sources so cant really help u there...
but if u want to look at CM7 sources u can always keep checking https://github.com/freexperia/FreeXperia
*solved* ...
a1exander said:
I see the gralloc there, but how do I compile it?
I really appreciating you people helping!
Click to expand...
Click to collapse
check out the make file:
https://github.com/freexperia/FreeXperia/blob/master/android-cm7/device/se/x10/libgralloc/Android.mk
Wow, that didnt take long. Please stay on topic guys.
Sent from my X10i using XDA Premium App
a1exander said:
Sry, but how do I get the libgralloc from FreeXperia github into gralloc.so file?
EDIT: Android NDK right?
Click to expand...
Click to collapse
If you're on Windows: http://www.cygwin.com/ , cd to directory where the sources are, and run the make command.
On Linux, cd to the sources directory and run the make command.
*solved* ...
a1exander said:
(Im on Linux Ubuntu)
Hm..
First I forked the FreeXperia directory, cloned it to my home directory. Then I cd it in my terminal by running this code:
cd /home/alexander/FreeXperia/android-cm7/device/se/x10/libgralloc
Then I write "make" and press enter. (I have installed make via Synaptic package manager)
Then I get this error message:
make: *** No targets specified and no makefile found. Stop.
..
Please help, what have I done wrong?
Click to expand...
Click to collapse
yes thats expected as there is no native make file..
may be try renaming that android.mk to 'make' or 'makefile' i dont remember which one works
*solved* ...
a1exander said:
Iv'e already tried that, same error though. This drives me insane..
Click to expand...
Click to collapse
well better insane than impotent that i allways say...
sorry for slow upload but some things are private tools w/o any help or error handlers etc so i have to adjust them little bit.
plus custom kernel toolkit still in w.i.p becouse split boot image / join boot image is being ported to c#
thought i should bump this up...
Chumby_666 has posted:
update-script to edify script converter
for converting amend syntax update-script to edify syntax updater-script (required for xRecovery v1.0.0)
check 1st post
Thank you Chumby_666 for ur work!!!
DooMLoRD said:
thought i should bump this up...
Chumby_666 has posted:
update-script to edify script converter
for converting amend syntax update-script to edify syntax updater-script (required for xRecovery v1.0.0)
check 1st post
Thank you Chumby_666 for ur work!!!
Click to expand...
Click to collapse
Can you explain how this tool works? I couldnt get it to work.
frost866 said:
Can you explain how this tool works? I couldnt get it to work.
Click to expand...
Click to collapse
gui version added i don't think it is that hard now...

[Q][SOLVED]How to fix this compiling error?

Now i fixed all things in about 3 hours.
Thanks guy!
Maybe this will help somehow? http://www.mathworks.com/support/solutions/en/data/1-D2Q3LW/index.html?product=ML&solution=1-D2Q3LW
xuanduc987 said:
Maybe this will help somehow? http://www.mathworks.com/support/solutions/en/data/1-D2Q3LW/index.html?product=ML&solution=1-D2Q3LW
Click to expand...
Click to collapse
i read it! But sorry that i don't understand it , my English is bad , so xuanduc , can you tell what are the meaning of those? In Vietnamese
Remove -werror from the file where u r getting error
aspee
thachtunganh said:
Hi all members and developers! I'm compiling my own kernel , it's based on Paolo 's Kernel Version 6 source code, and i compiled it many times with arm-eabi-gcc-4.4.3 toolchain from Cyanogenmod, but now i want to change the toolchain , so i downloaded and changed toolchain to arm-none-eabi-4.6.1 and now i have this error:
{
"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"
}
i have this problem long time ago , when i swith to another toolchain that different from the arm-eabi-gcc-4.4.3 (LIke the Linaro android toolchain) , i have this error . I don't know how to fix it, can anybody help me to fix it?
Thanks!
Click to expand...
Click to collapse
What is line 224 in dma-mapping.c?
aspee said:
Remove -werror from the file where u r getting error
aspee
Click to expand...
Click to collapse
tdmcode said:
What is line 224 in dma-mapping.c?
Click to expand...
Click to collapse
@All: https://github.com/thachtunganh/tunganh-kernel
See my github
@Aspee and tdmcode: https://github.com/thachtunganh/tunganh-kernel/blob/master/arch/arm/mm/dma-mapping.c
Here is the error file
EDIT: I Checked my github , and i saw this:https://github.com/thachtunganh/tun...e57d298b0e92bda7514261e969be1d52f4abe2#diff-9
Is this the problem? should i revert it?
Remove -werror from line 109
https://github.com/thachtunganh/tunganh-kernel/blob/master/arch/arm/mm/Makefile
aspee
Help meeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee please!
thachtunganh said:
Help meeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee please!
Click to expand...
Click to collapse
What u want?
aspee
aspee said:
What u want?
aspee
Click to expand...
Click to collapse
Sorry , now i fixed all things and pushed to my github
Now i know some fix for kernel compiling error, i will turn this theard to a how to theard later (about 2 more days)
don't know much about github
on my github all things are right but on my local machine I do some mess and got some error now I want to go back and make it as same as my github respository
which command should I used?
I didn't do anything listed above but I want to know in such condition what to do?
aspee said:
don't know much about github
on my github all things are right but on my local machine I do some mess and got some error now I want to go back and make it as same as my github respository
which command should I used?
I didn't do anything listed above but I want to know in such condition what to do?
Click to expand...
Click to collapse
Click on the 'ZIP' icon next to your git link on the left side... it will download your full kernel source... place it in your work folder and ur done...
anyway,now this is the error
*** Error during update of the kernel configuration.
make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop.
aspee said:
don't know much about github
on my github all things are right but on my local machine I do some mess and got some error now I want to go back and make it as same as my github respository
which command should I used?
I didn't do anything listed above but I want to know in such condition what to do?
Click to expand...
Click to collapse
RockR172 said:
Click on the 'ZIP' icon next to your git link on the left side... it will download your full kernel source... place it in your work folder and ur done...
Click to expand...
Click to collapse
Don't need to download the zip file! just clone into your git with this command
cd ~
git clone [email protected]:aspee/lge-kernel-msm7x27.git
Wait for it, the time to clone a git depend on your internet connection
if you can download a file with 400KB/s, it will take you about 30 minutes or more
. When it done you will see the folder named "lge-kernel-msm7x27" in your home (home/aspee/ ), just keep doing or revert what you have mess
aspee said:
anyway,now this is the error
*** Error during update of the kernel configuration.
make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop.
Click to expand...
Click to collapse

[FIX] USB Vendor ID's - Make your Android devices co-exist in a single machine

Hello, i decided to post this after i had a bit of conflict with my smartphones getting recognized by my desktop computer so i looked into it basically in the adb_usb.ini that is created/modified when you first install Nook Drivers.
0. Unplug your Android devices if any
1. Go to C:\Users\<username>\.android folder
2. Right click> edit in the adb_usb.ini file
3. Look at the USB Vendor ID for your Android device:
{
"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"
}
Source: http://developer.android.com/guide/developing/device.html
4. Add the Vendor ID in the adb_usb.ini file using this format:
Code:
0xvendorID
ex. 0x18d1 (Google's vendor ID)
NOTE: Apart of your specific Android device USB vendor ID, add Google's Vendor ID too.
As an example i have a Nook tablet, LG GT540 and SGS2X smartphones, so in the end mine looks like this:
Code:
0x2080
0x1004
0x04e8
0x18d1
5. Save the file
6. Reboot your computer and Android device that has conflict.
7. Plug your Android device back in, it should now appear the USB mass storage and/or USB debugging connected options.
Enjoy!
~ Veronica
Thanks. This is really helpful!
css771 said:
Thanks. This is really helpful!
Click to expand...
Click to collapse
You're welcomed hope it helps, it worked with my modest LG GT540 and my Hercules so it should work for others.
~ Veronica
To clarify for this dunce.
In adb_usb.ini there would be a line for each device?
Like:
Code:
0x2080
0x18d1
SCClockDr said:
To clarify for this dunce.
In adb_usb.ini there would be a line for each device?
Like:
Code:
0x2080
0x18d1
Click to expand...
Click to collapse
Yes
Sent from XDA premium using my Nook Tablet
Had trouble with a HTC MARVEL ... this trick works great ...
Now HTC Sync works without a problem
daedricgeek said:
Had trouble with a HTC MARVEL ... this trick works great ...
Now HTC Sync works without a problem
Click to expand...
Click to collapse
Glad it worked must work for the rest then
Now that there is more people around general section and not only in the CM7 thread waiting for a release lol im posting to encourage people to try this fix if you have more Android devices.
This thread has been linked to the sticky FAQ >> which everyone should read!
~ Veronica
Alright confirmed is working for more devices, tested myself. So i can say will work for all devices whose Company/Branch has been registered by Google and added to their Vendor's ID list .
~ Veronica
what vendor id i must add for KF
Hi all,
my adb_usb.ini has 0x1949
( i try to add 0x18D1) but when i connect my KF to PC (window xp, 7, linux), it always auto recognize as normal disk driver.
i can not do anything
help me fix this bug.
chalicucu said:
Hi all,
my adb_usb.ini has 0x1949
( i try to add 0x18D1) but when i connect my KF to PC (window xp, 7, linux), it always auto recognize as normal disk driver.
i can not do anything
help me fix this bug.
Click to expand...
Click to collapse
1949 is indeed the vendor ID for kindle fire and if you have access to your files of your internal storage in the kindle then all is ok
~ Veronica
Hi. This worked gr8 fot me. Thnx
Also why don't they just put all the codes on all systems?
Sent from my LG-P690 using xda premium
Panasonic Vendor ID
Thanks,
you can add
Panasonic 04DA
Thanks!
I was searching all over for this information. One big Atta Boy for this!

[Q] Detailed instructions for this program [R]

http://rwiki.sciviews.org/doku.php?id=getting-started:installation:android
This page describes how to install a program on android based devices, but I am not able to understand the (rather short) instructions. I hope that anyone here can further elaborate on the steps required to run this program on a tablet.
I don't know that much about linux/android but I think enough to help you.
First of all, you need to have a rooted Tab and Busybox installed on your Tab. If you don't have that, wel.. You should try to figure that out first.
Then you need some knowledge of ADB or have a Terminal Emulator installed on your Tab.
You can pm me in Dutch if you need help.
Actually, is really simple to install. There's no need to use adb (root is needed to create /data/local/gcc), the only requisite is a terminal emulator and busybox. I'm using Better Terminal Emulator Pro, but a free alternative with "all included" is Terminal IDE.
Following the guide, first get the 3 files, do this from the tab (in my case, sometimes the default browser doesn't work with mediafire, use Opera if this happens to you).
Now open your terminal emulator (for moving the files and create the folder a file manager can be used, but in my opinion that's cumbersome). All the following commands are executed from the terminal.
First, get root:
Code:
su
(A prompt dialog will request root permission)
Now, create the directory:
Code:
mkdir /data/local/gcc
From this point, root isn't required, so you can do it as a normal user. To change from root to user:
Code:
exit
Create the directory:
Code:
mkdir /data/local/gcc
Now move the downloaded files (change the path "/sdcard/Download" according to your case)
Code:
mv /sdcard/Download/android_gcc_r2a.tar.bz2 /data/local/gcc
Code:
mv /sdcard/Download/android_gcc_supplement.tar.bz2 /data/local/gcc
Code:
mv /sdcard/Download/android_R_r1a2.tar.bz2 /data/local/gcc
Move to the directory
Code:
cd /data/local/gcc
Extract the downloaded files
Code:
tar xjf android_gcc_r2a.tar.bz2
Code:
tar xjf android_gcc_supplement.tar.bz2
Code:
tar xjf android_R_r1a2.tar.bz2
Now you need to "tell" to the system where R is installed so it can be recognized by the system.
Code:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/data/local/gcc/lib
Code:
export PATH=$PATH:/data/local/gcc/bin
You can (and you ought to) put this lines in your ~/.bashrc. If you are using Terminal IDE, is very easy, do
Code:
nano ~/.bashrc
and write the two lines.
That's it. In the terminal type
Code:
R
And you can start using it (I can't tell you about how to use R as I don't use it, but I guess you already know how to).
{
"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"
}
First of all great thanks for this post. I have now been able to make progress, although I run aground in the move part, I get a permission denied when I try to create the directory /data/local/gcc on the main system (i.e. my files are in mnt/sdcard/blabla and I want to create the target directory.
Might this be due to not being rooted? - I think I am rooted (Titanium backup runs ok)
SDBoss said:
First of all great thanks for this post. I have now been able to make progress, although I run aground in the move part, I get a permission denied when I try to create the directory /data/local/gcc on the main system (i.e. my files are in mnt/sdcard/blabla and I want to create the target directory.
Might this be due to not being rooted? - I think I am rooted (Titanium backup runs ok)
Click to expand...
Click to collapse
Sorry, my bad. I forgot that very important part. You need root only for that part.
All the other steps are the same, just start with root:
First, get root:
Code:
su
(A prompt dialog will request root permission)
Now, create the directory:
Code:
mkdir /data/local/gcc
From this point, root isn't required, so you can do it as a normal user. To change from root to user:
Code:
exit
Now move the downloaded files (change the path "/sdcard/Download" according to your case)
Code:
mv /sdcard/Download/android_gcc_r2a.tar.bz2 /data/local/gcc
.
.
.
.
All the other steps.
In case you get a "permission denied", keep doing the steps as root.
That was really helpful, thanks again. I can now run the program, that part is clear. Tithe only thing I cannot get done is writing the exports in the bashrc, I see the text but cannot save in this, I guess I need to use the ^X sort of commands but how does that work from a soft keyboard?
SDBoss said:
I guess I need to use the ^X sort of commands but how does that work from a soft keyboard?
Click to expand...
Click to collapse
That's ctrl+x (^ means the key ctrl or control), use another keyboard like this one: https://play.google.com/store/apps/details?id=org.pocketworkstation.pckeyboard
Don't forget to activate it in settings>language & input.

[BOOTLOGO][GUIDE][Param.lfs] Custom bootlogo for Galaxy Ace 2

Standard Disclaimer: Not responsible for bricking your phone, voiding your warranty, or any other pain or suffering you may feel as result of using this guide.
Well, let's cut to the chase. Following method was inspired by this guide.
Credit goes to @tys0n for original guide.
Programs/scripts needed for this method:
param editor
Python interpretator (2.7.x)
Any graphical editor
Choose graphical editor by yourself as editiing picture won't be described here.
1) Create image image_new.jpg with resolution of 480x800 pixels and size not bigger than 64673 bytes.
2) Take image that you want to replace from /mnt/.lfs (logo.jpg for example, which is bootlogo) and rename it to image_orig.jpg .
Although using this method any picture in param.lfs can be replaced (but with not bigger size than original ones), logo.jpg is only was tested by author.
3) Then dd your param.lfs:
Code:
dd if=/dev/block/mmcblk0p1 of=/sdcard/param.lfs bs=512000
4) create any empty folder (on PC), put here param_editor.py, param.lfs, image_orig.jpg and image_new.jpg
5) run param_editor.py. If everything was done successfully, in the same folder param_mod.lfs will appear, otherwise message that describe why it has failed will be shown.
Okay, lets to test param_mod.lfs. Of course, you can flash and reboot once it done, but there's a simple method(without having to wait until bootlogo appears... or doesn't) to check whether param.lfs is correct:
1) unmount /mnt/.lfs:
Code:
umount /mnt/.lfs
2) flash param_mod.lfs
Will be careful with typing following command. DON'T type wrong number of partition, otherwise your phone probably will be bricked. Better if you just copy/paste this line.
Code:
dd if=/sdcard/param_mod.lfs of=/dev/block/mmcblk0p1 bs=512000
3) now mount it again:
Code:
mount -t j4fs /dev/block/mmcblk0p1 /mnt/.lfs
4) if you can see your custom bootlogo instead of stock one then everything is ok. Now can reboot and have fun
5) how to restore original param.lfs? Flash param.lfs, dd'd in step 3 ("3) Then dd your param.lfs:")
ToDo: despite of that I have successfully replaced bootlogo, one thing I wanted to check is how to repair the phone in case if something went wrong. For some reason I was not able to flash neither param.tar.md5 nor param.tar . I had to flash three-file stock 4.1.2 to restore it. I would be glad if anyone will provide flashable param.tar.md5 to avoid flashing stock for those who have failed to change bootlogo.
Okay, lets see what bootlogo can be done(custom param.lfs attached below):
{
"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"
}
Why exactly this bull***t (or whatever you can think)? Answer is that everything that I've done (including this guide) is just for fun, and it's first idea that came to my mind. Have fun
Chrono . I was trying do this tutorial. But recently I had a lot of work . Many Thanks , you spared me the time : D
Does not work here... Don't know what went wrong...
Tested logo_nfc.jpg and also logo.jpg
Files are as instucted in one folder...
There is no log or mod output... I got only this (with CMD and param_editor.py)..
Code:
opened param.lfs
opened ./image_orig.jpg
opened ./image_new.jpg
With normal double klick on *.py the cmd window closes to fast to see anything....
Just for test I tried to use original logo.jpg as image_orig.jpg AND image_new.jpg... But I got the same "output" and no mod file nor log...
I Installed Python 3.4.3 from webseite... Is this correct?
EDIT
Installed now Python 2.7.9 - and now param_mod.lfs was created! - Looks like 3.4.3 does not work...
fluffi444 said:
I Installed Python 3.4.3 from webseite... Is this correct?
EDIT
Installed now Python 2.7.9 - and now param_mod.lfs was created! - Looks like 3.4.3 does not work...
Click to expand...
Click to collapse
It should have been to work... probably I missed something as it should not exit without prompt.
ChronoMonochrome said:
It should have been to work... probably I missed something as it should not exit without prompt.
Click to expand...
Click to collapse
Yeb - it's working also with logo_nfc.jpg.
As I said I needed to used Python 2.7.9...
For those with 8160P - It's just a test with "powered by android" logo..
EDIT
And as the logo_nfc.jpg is a bit bigger (65194 bytes) I had to modify the py-script according to this - But as I said it works.
So its not limited to exactly 64673 bytes - But for sure its the best to stay with the same or below original size!
EDIT2
Added "powered by cyanogenmod"
bro i need helpppppppppp
ask
how to use/apply it ??
mavis2032 said:
how to use/apply it ??
Click to expand...
Click to collapse
Omg, for whom Chrono wrote instruction? Just read them, it's so easy...
Custom boot logo for codina I made probably no one wants
thank for @dugeriss for wallpaper
flash from recovery
someone can help me with a samsung chat.? model GT-B5330L, it have the same problem; logo jpg draw failed
really great guide, transformed my old ace.
how to see image in param.lfs?

Categories

Resources