Boot.img - Folio 100 General

Can someone post good guide for editing files in boot.img. I know how to unpackk, repack and compile, but don't know how to edit. In guides that I find they say "edit all you want" or something like that, but don't say HOW.
Sent from my Folio 100 using Tapatalk

?
Just open the files of the unpacked ramdisk (for example init.rc) with the editor you prefer and edit it...
Or replace the kernel file and repack it..

You don't understand me. How to make or edit files inside kernel?

You have to recompile it...
There is no other way i know...
Get the source from here
https://github.com/tsh/folio100
Install a cross-compiler (for example CodeSourcery)
start your folio with a kernel you like and get a working config (/proc/config.gz) and copy int into the kernel directory
gunzip it and then
make CROSS_COMPILE=arm-none-linux-eabi- ARCH=arm -j20
I dont know the name of the cross-compiler files.. Maybe they are a little bit different.
-j20 defines how many parallel compiling threads you like to have...
After that you'll have your compiled kernel @ /arch/arm/boot/zImage
And before compiling you are able to make some changes on the kernel..
But not on an compiled kernel..

Thank's!!!
Sent from my GT-I5700 using Tapatalk

Jon2555 said:
Can someone post good guide for editing files in boot.img. I know how to unpackk, repack and compile, but don't know how to edit. In guides that I find they say "edit all you want" or something like that, but don't say HOW.
Sent from my Folio 100 using Tapatalk
Click to expand...
Click to collapse
Here is my small Howto - unpack, edit, repack boot.img under Ubuntu with all scripts and compiled tools needed
http://forum.xda-developers.com/showthread.php?t=915808

Related

how to compile tattoo kernel for android emulator

hi I'm a beginner.
I want to compile a kernel HTC Tattoo for Android emulator(is part SDK).I got config.gz of working emulator, then renamed it .config and placed in the root of the kernel source. Then run make and received a message "RESTART CONFIG"
make was to reconfigure the kernel....
what I did wrong?
and the kernel compiled with-config tattoo does not start an emulator. Why?
PS. sorry for my bad english
azt59 said:
I got config.gz of working emulator, then renamed it .config and placed in the root of the kernel source.
Click to expand...
Click to collapse
Can you open that .config you got with a simple text editor and view it as plain text?
yes .config is a text document, I first unpacked the archive
lacks some parameters for compile
azt59 said:
yes .config is a text document, I first unpacked the archive
lacks some parameters for compile
Click to expand...
Click to collapse
Oh, you just wrote that you've renamed config.gz into .config
consider Chef Central for questions like this, that's one of it's purposes
ok thanks, if I decide the problem, I'll write here
admins plese move thread to Chef Central forum
Mod. edit: moved on OP request

[Tool] [ 5th May]Linux Tools for neo

Hi guys other devices have a thread like this so thought I'd get it going.
Here I share a folder, has a working unyaffs, built on ubuntu 12.04 64 bit known to extract all current neo img files.
a nice 51-udev rules that contains many popular phone models
and a recovery bundle too install cwm from linux, please feel free to add your own contributions and share
http://minus.com/mDZsF8gEU/
Two new additions today.
Motorola's modified fastboot, allows flashing larger images.
Android utility - nice little script will set up and update kitchen and help with porting.
Sent from my MT15i using Tapatalk
i wish i know what to do with these...
where to strt?
mpiekp said:
Hi guys other devices have a thread like this so thought I'd get it going.
Here I share a folder, has a working unyaffs, built on ubuntu 12.04 known to extract all current neo img files.
a nice 51-udev rules that contains many popular phone models
and a recovery bundle too install cwm from linux, please feel free to add your own contributions and share
http://minus.com/mDZsF8gEU/
Click to expand...
Click to collapse
thanks for sharing but unyaffs didn't work on my ubuntu 12.04 32 bit or other 32 distros i don't have any 64 distros so can't tested on those
error is Cannot execute binary file
may I ask did you build unyaffs for 64-bit
Yes sorry, built on 64 bit, just build it frm svn and it will work fine
added 64bit to first post now thanks
mpiekp said:
Yes sorry, built on 64 bit, just build it frm svn and it will work fine
Click to expand...
Click to collapse
already I did it but tool can't extract ics rom anyway
....... Don't get that is it a converted IMG or a nandroid
Sent from my MT11i using Tapatalk
unyaffs
mkfs.yaffs2
for 32bit systems
I hope you know how to install them...
mpiekp said:
....... Don't get that is it a converted IMG or a nandroid
Click to expand...
Click to collapse
converted
leajian said:
unyaffs
for 32bit systems
I hope you know how to install them...
Click to expand...
Click to collapse
also doesn't work with ICS system.img(ftf, not nandroid)
Has anyone tried flashing one of these converted imgs, with fast boot? Does it work
Sin2img strips certain bytes from the sin to create the IMG, could be Sony altered the byte order meaning the IMG are corrupt, especially considering what we had with flashtool final verification failure.
Sent from my MT11i using Tapatalk
added neo&vboottools.
contaions perl scripts to unpack and repack boot.img, edited to use default sony method, so that kernels boot after use. third perl script to extract commandline from existing boot.img, so that if extra options are needed you can add t repack script, just open in any text editor the script is straight forward.
binaries for mkbootimage and to565 included to create logo.rle for boot logs (e.g sony not bootsplash)
hi mpiekp , first of all thank you for your awesome work , secondly i would like to get to the notice of developers the new thread naming rules as mentioned in this fourm
http://forum.xda-developers.com/showthread.php?t=1636154
you can change the title as per the instructions in the above thread, sorry for the trouble , thank you

[Q] What is VRTHEME??

I saw lots of theme which has this in their title. but I can't find any guide or tutorial about this. So, what is this? how could I use it? has it any benefit over usual "decompile/theme/recompile/replace"ing an apk?Is there any script to implement it like apktool?
Its the universal theme flasher created by Villain ROM.
As for all your other questions I'm not sure.
Sent from my GT-I9100 using XDA
thanks,
correct me if I'm worng pls.
Universal theme flasher, is kind of template. and I should extract compiled PNGs and xmls from apk file and paste theme into that. and for editing theme, I need to paste and replace those files into the apk file and then decompile that apk.
then what should I do if I changed something in "values" folder? cause it just appears in decompiled apps and It can't be seen in a compiled app.
sam5154 said:
thanks,
correct me if I'm worng pls.
Universal theme flasher, is kind of template. and I should extract compiled PNGs and xmls from apk file and paste theme into that. and for editing theme, I need to paste and replace those files into the apk file and then decompile that apk.
then what should I do if I changed something in "values" folder? cause it just appears in decompiled apps and It can't be seen in a compiled app.
Click to expand...
Click to collapse
I think after compiling the apk, you should copy the "classes" and the other file *-) I can remember its name, and add them there.
Am not sure *-) I had this question too but I thought abt trying it first and if it doesnt work I wld ask. I have no time to try I have exams
Ba7rani123 said:
I think after compiling the apk, you should copy the "classes" and the other file *-) I can remember its name, and add them there.
Am not sure *-) I had this question too but I thought abt trying it first and if it doesnt work I wld ask. I have no time to try I have exams
Click to expand...
Click to collapse
classes.dex is for the smali that has been edited if there was any.
I assume that if the xmls were edited and they point to new PNG images/objects then the resources has been changed. I would say that in this case you would need to have an updated resources file for these adjustments? This could be pulled from your newly compiled .apk that you want to base your flashable theme off?
I am unsure if resources needs to be updated though for certain? I have flashed in the past new xmls and they worked fine, however these were not referencing any new sources or images...so my thoughts are that these mods I made didn't require this additional file?? I could be wrong. I really should read the thread about it here on XDA. I did a long time ago, but have come a long way since then.
I diverse. Try using it without new resources file and see what happens?
You may also like to looking into Morphing as well (very similar concept).
James
i would also like a explanation to what vrtheme is, all i know is that when i flash it IT NEVER WORKS!
xdarkmario said:
i would also like a explanation to what vrtheme is, all i know is that when i flash it IT NEVER WORKS!
Click to expand...
Click to collapse
is your ROM deodexede? It only works on deodexed Rom?
Sent from my GT-N7100 using Tapatalk 2
sam5154 said:
is your ROM deodexede? It only works on deodexed Rom?
Sent from my GT-N7100 using Tapatalk 2
Click to expand...
Click to collapse
yep, both my phones i tried them on are deodexed.

Decompile Settings.apk

Hey community, im looking to decompile Settings.apk in order to add my own features in. Basically in the same way AOKP does with its Rom Control settings. I have decompiled the apk using apktool but the xml files were not included so i could not put it into eclipse to add settings and such. can someoen tell me how to go about this?
Bump
Sent from my Galaxy Nexus using Tapatalk 2
This is a feature found in multiple roms on all devcies yet nobody can help me out ?
Sent from my Galaxy Nexus using Tapatalk 2
Doesnt eclipse need java source code?
You should use Virtuous Ten Studio to decompile the apk and make sure "Generate Java Source" is checked
for adding your own features in settings....decompile with dependencies define new header in strings.xml and give corresponding image files and create the neccesary smali files.... i don know much of programming refer this thread for basic mods............
.http://forum.xda-developers.com/showthread.php?t=1576565
Jonny said:
Doesnt eclipse need java source code?
You should use Virtuous Ten Studio to decompile the apk and make sure "Generate Java Source" is checked
Click to expand...
Click to collapse
Ok i did this. great program by the way, but its java source is just generated as .class files and no .java files. Everything else was perfect but i need the .java files to actually edit and write new methods.
ajay8055 said:
for adding your own features in settings....decompile with dependencies define new header in strings.xml and give corresponding image files and create the neccesary smali files.... i don know much of programming refer this thread for basic mods............
.http://forum.xda-developers.com/showthread.php?t=1576565
Click to expand...
Click to collapse
This explains hwo to edit the xml files in detail so thank yo for this. but it doesn thelp with adding any settings
?????
Sent from my Galaxy Nexus using Tapatalk 2

Android kernel build error

I get this error when I run make command while compiling Android kernel. Please help me.
kurtulus145 said:
I get this error when I run make command while compiling Android kernel. Please help me.
Click to expand...
Click to collapse
Send a text file containing the entire log right from command execution or .sh file execution. Also which phone and processor are u developing on?
KingRaheel said:
Send a text file containing the entire log right from command execution or .sh file execution. Also which phone and processor are u developing on?
Click to expand...
Click to collapse
I upload on attachments.
Device: Asus Memopad 7 ME176CX
Processor: Intel Atom Z3745
kurtulus145 said:
I upload on attachments.
Device: Asus Memopad 7 ME176CX
Processor: Intel Atom Z3745
Click to expand...
Click to collapse
Did u try compiling again using a fresh copy of source? What exact changes did u make? Did u use menuconfig command? Is your source code on github? You should tell all this when u need help else we may not be able to help u out efficiently.
KingRaheel said:
Did u try compiling again using a fresh copy of source? What exact changes did u make? Did u use menuconfig command? Is your source code on github? You should tell all this when u need help else we may not be able to help u out efficiently.
Click to expand...
Click to collapse
No other source file is available. I have not made any changes to the source code. I have edited some things with menuconfig command. No source code in Github. I downloaded it from Asus's site.
kurtulus145 said:
No other source file is available. I have not made any changes to the source code. I have edited some things with menuconfig command. No source code in Github. I downloaded it from Asus's site.
Click to expand...
Click to collapse
What i meant by fresh copy is the downloaded kernel files from asus website which has no alterations done by youto it. Try compiling it without doing any changes using menuconfig or any other command and see if u get the zImage. If u do then use menuconfig and apply one change at a time,compile and see if it causes issues. From your log its clear that some change has caused instability to most of the kernel modules. Kernel building is not easy.
If u want attention of other developers then upload your source code on github and post link here. Can't assure attention but it may help:good:
KingRaheel said:
What i meant by fresh copy is the downloaded kernel files from asus website which has no alterations done by youto it. Try compiling it without doing any changes using menuconfig or any other command and see if u get the zImage. If u do then use menuconfig and apply one change at a time,compile and see if it causes issues. From your log its clear that some change has caused instability to most of the kernel modules. Kernel building is not easy.
If u want attention of other developers then upload your source code on github and post link here. Can't assure attention but it may help:good:
Click to expand...
Click to collapse
I tried the make command without making any changes with the menuconfig command. I got the same error again. I upload source code on GitHub.
I uploaded github.
Link:https://github.com/kurtulus145/k013_kernel
Help!!!

Categories

Resources