Extract boot.img - Galaxy S Advance I9070 Q&A, Help & Troubleshooting

Hello to all.
Can someone say to me how to extract a kernel to modify it? I'm on windows and I've tried all the method I've found on the web..but nothin to do..
I have tried to extract cm 10.2 boot.img and i've always had ANDROID MAGIC NOT FOUND..please help me..i really wanna to learn something :angel:

hastalafiesta said:
Hello to all.
Can someone say to me how to extract a kernel to modify it? I'm on windows and I've tried all the method I've found on the web..but nothin to do..
I have tried to extract cm 10.2 boot.img and i've always had ANDROID MAGIC NOT FOUND..please help me..i really wanna to learn something :angel:
Click to expand...
Click to collapse
Use sources from Team Janice (ask them first), and learn how to use GIT HUB.

hastalafiesta said:
Hello to all.
Can someone say to me how to extract a kernel to modify it? I'm on windows and I've tried all the method I've found on the web..but nothin to do..
I have tried to extract cm 10.2 boot.img and i've always had ANDROID MAGIC NOT FOUND..please help me..i really wanna to learn something :angel:
Click to expand...
Click to collapse
Those methods only work when the compression used is gzip (boot.img should be at least 7mb) and not lzma (about 5mb)
Sent from my GT-S5367 using xda app-developers app

frapeti said:
Those methods only work when the compression used is gzip (boot.img should be at least 7mb) and not lzma (about 5mb)
Sent from my GT-S5367 using xda app-developers app
Click to expand...
Click to collapse
If it's possible, how to compress with gzip instead of lzma when compiling kernel from sources? It's just a curiosity

Tesla-MADAL93 said:
If it's possible, how to compress with gzip instead of lzma when compiling kernel from sources? It's just a curiosity
Click to expand...
Click to collapse
Search for gzip in the defconfig you arr using and put # before the string. Then copy the line of gzip and replace gzip with lzma obviously without #
Inviato dal mio GT-I9070 utilizzando Tapatalk

Related

[Q] Need proprietary files to compile CM7 for P990

Hey, I want to try compile CM but I atm it's not installed on my phone and I really need those files... So any of you upload it, that would be appreciated! Thanks in advance!
ironman159 said:
Hey, I want to try compile CM but I atm it's not installed on my phone and I really need those files... So any of you upload it, that would be appreciated! Thanks in advance!
Click to expand...
Click to collapse
Hmm, sorry for stating the obvious but did you try the CM nightly builds?
Actually I dont want to apply them because i dont have any issues with stock rom and the perfomance is really nice also. All in all I dont want to leave the stock. So thats why i need those files.
Sent from my LG-P990 using XDA App
ironman159 said:
Actually I dont want to apply them because i dont have any issues with stock rom and the perfomance is really nice also. All in all I dont want to leave the stock. So thats why i need those files.
Sent from my LG-P990 using XDA App
Click to expand...
Click to collapse
If you don't want to leave stock, why do you want those files?
I want the whole tree if cm7 is going to be ready i will sync my tree and i will be able to make my own rom. If it works i would customize it maybe.
Sent from my LG-P990 using XDA App
ironman159 said:
I want the whole tree if cm7 is going to be ready i will sync my tree and i will be able to make my own rom. If it works i would customize it maybe.
Sent from my LG-P990 using XDA App
Click to expand...
Click to collapse
Why don't you just extract them from your stock rom?
Are they compatible with it? because the wiki said i need a phone that runs on cyanogen mod and i am on 2.2.2 isnt this a problem?
Sent from my LG-P990 using XDA App
1. make a nandroid backup
2. install cm
3. get ur files
4. make nandroid restore
if you know what files u exactly need u can extract them from the last nightly
I know but afraid that nandroid fails. Thanks by the way!
Sent from my LG-P990 using XDA App
ironman159 said:
I know but afraid that nandroid fails. Thanks by the way!
Sent from my LG-P990 using XDA App
Click to expand...
Click to collapse
u could make a copy of /data with adb pull or make a copy to ur sdcard
ironman159 said:
Hey, I want to try compile CM but I atm it's not installed on my phone and I really need those files... So any of you upload it, that would be appreciated! Thanks in advance!
Click to expand...
Click to collapse
Here what you looking for:http://goo.gl/2D4Y8
P.S.
I used those files in my build and telephone (the all dialpad, cronology, contacts and favorites) is missing, can you confirm that?
Thank you so much! i will downoad it later and then ill see!
Sent from my LG-P990 using XDA App
http://kepfeltoltes.hu/view/110513/Screenshot_www.kepfeltoltes.hu_.png
I am getting this error all the time. Any help?
ironman159 said:
http://kepfeltoltes.hu/view/110513/Screenshot_www.kepfeltoltes.hu_.png
I am getting this error all the time. Any help?
Click to expand...
Click to collapse
I am getting same error, and also miss below files in Proprietary,
can you extract it for me from your stock, and upload here?
Need few files as below
adb pull /system/bin/btld /your/desired/location
adb pull /system/bin/immvibed /your/desired/location
adb pull /system/bin/lgospd /your/desired/location
adb pull /system/bin/lgospd_hid /your/desired/location
If you read the cyanogenmod wiki about building cm7 for your device specifically there's a script called extract_files.sh that will get the files you need.
robertosandros said:
If you read the cyanogenmod wiki about building cm7 for your device specifically there's a script called extract_files.sh that will get the files you need.
Click to expand...
Click to collapse
i do know about it, but i m getting error in these few files when try to extract, and then checked its not there in CM7 nightliy 17, so as you running stock, i think it would be in yours, but its ok, got it from proprietary link
I have a problem in connection with setting udev. I dont know how to do it. A few line instruction would be useful. All I know is that I have to customize udev.d to lge code right? But I dont find the that file.
Edit: I logged in as root and made 51-android.rules in etc/udec/rules chmoded but it doesn't work. cannot adb pull
Could you upload your proprietary files? That would be really nice.
Sent from my LG-P990 using XDA App
ironman159 said:
Could you upload your proprietary files? That would be really nice.
Sent from my LG-P990 using XDA App
Click to expand...
Click to collapse
Sorry for my late reply, I was sleeping, as i was compiling my rom at already 4 am germany. Just woke up, and here is link to koush's files, thank him.
https://github.com/koush/proprietary_vendor_lge
just use download button, and download as zip and then extract in your folder, but if your rules have problem it would be first thing to fix it.
Sure but I downloaded the same and got the error that I had posted. BTW have you succeeded in compiling the rom?

Unpack and repack boot.img how to?

I follow the Internet use split_bootimg.pl and mkbootimg to my CM 7.2.0 RC5.7's boot.img. No error and no warning but my SGM hold on the "SAMSUNG" screen .....I get the base is 13600000.....I really need change sth in boot.img ~………can someone tell me how ro?
来自我的GT-S5570 使用XDA 高级版 发送
maybe this one can help you,,,
_http://android-dls.com/wiki/index.php?title=HOWTO:_Unpack%2C_Edit%2C_and_Re-Pack_Boot_Images
springhack said:
...use split_bootimg.pl and mkbootimg to my CM 7.2.0 RC5.7's boot.img.
...I get the base is 13600000...
Click to expand...
Click to collapse
You should typecast base value as hex number; that is
--base 0x13600000
and also check for pagesize
--pagesize 4096
Hint: once splitted, an image simply repacked must match exactly the original one...
The console command
diff boot.img repacked_boot.img
should not output nothing, otherwise, probably, the new image will never work...
P.S. In my foot signature there is a link to an old post where I explain how I do it for my S5570... Hope to be helpful!
Inviato dal mio GT-S5570 usando Tapatalk
http://android-dls.com/wiki/index.php?title=HOWTO:_Unpack,_Edit,_and_Re-Pack_Boot_Images
have a look on above page it may help
Try using ketut tools..
Sent from my GT-S5570 using xda premium

[Q] Integrate SU in rom

Hy people, i need someone help with superuser.
I want to integrate last version in my next rom but i fail to do that.
I know that kitchen is what i need to use, but i need help with that, i tryed and after i finish, rom failed to flash.
Dont use kitchen.
Which rom are you using and which kernel?
Take super user.apk and put it in /system/app
Then,take su bin file
Set perms for them in updater script..
Just refer the root package..
I am a potato, problem?
tj_droid said:
Dont use kitchen.
Which rom are you using and which kernel?
Click to expand...
Click to collapse
Vo-1 cm7 based rom.
It has outdated su app and binary.
Link to rom -> http://forum.xda-developers.com/showthread.php?t=1837056
Kernel it will be 22.07 firekernel, because it's the best in battery life (people want that, and me to)
I will try what Prawesome sayd, then will see.
Why do you need update su binary?
New su binaries are buggy.
Instead try Supersu. Download package from chainfire's original post. And place the files as mentioned by prawesome.
well as explained above u need to place superuser.apk in /system/app & su in /system/xbin and need to set permissions in updater-script as:
set_perm(0, 0, 04755, "/system/app/Superuser.apk");
set_perm(0, 0, 04755, "/system/xbin/su");
BUT
if older superuser.apk & its su binary is present in a kernel and it replaces it on /system at each boot, ramdisk in boot.img needs to be modified and newer files needed to be replaced !
psndna88 said:
well as explained above u need to place superuser.apk in /system/app & su in /system/xbin and need to set permissions in updater-script as:
set_perm(0, 0, 04755, "/system/app/Superuser.apk");
set_perm(0, 0, 04755, "/system/xbin/su");
BUT
if older superuser.apk & its su binary is present in a kernel and it replaces it on /system at each boot, ramdisk in boot.img needs to be modified and newer files needed to be replaced !
Click to expand...
Click to collapse
I will try that.
First i will try the simple one, with updater-script, if doesn't work, i will ask for help in ramdisk replacement !
Big thanx folks !
Try goo.im for the APK.
Sent from my GT-S5830 using Tapatalk 2
Prawesome said:
Take super user.apk and put it in /system/app
Then,take su bin file
Set perms for them in updater script..
Just refer the root package..
I am a potato, problem?
Click to expand...
Click to collapse
The kernel will flash another version at installation ... Só it has to be changed on the kernel mate
Sent from my GT-S5830 using xda premium
Yes, i need help in that ...
Kernel is prerooted (firekernel 22.07)
Can someone please help me with integration ?
Cryss said:
Yes, i need help in that ...
Kernel is prerooted (firekernel 22.07)
Can someone please help me with integration ?
Click to expand...
Click to collapse
Download ketut's tools
Decompile kernel
Decompile ramdisk also if needed
Replace binaries and apk
Controversies,controversies everywhere :what:
Cryss said:
Yes, i need help in that ...
Kernel is prerooted (firekernel 22.07)
Can someone please help me with integration ?
Click to expand...
Click to collapse
I can do that.. v simple .. just attach boot.img
Sent from my GT-S5830 using xda premium
psndna88 said:
I can do that.. v simple .. just attach boot.img
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
Here is it, big thanx man
Cryss said:
Here is it, big thanx man
Click to expand...
Click to collapse
there is no superuser.apk & su in ramdisk of boot.img.........
it might be in fire kernel aroma package somewhere... but definately not there in attached boot.img
psndna88 said:
there is no superuser.apk & su in ramdisk of boot.img.........
it might be in fire kernel aroma package somewhere... but definately not there in attached boot.img
Click to expand...
Click to collapse
Is not in the aroma package ...
What should i do ?
Cryss said:
Is not in the aroma package ...
What should i do ?
Click to expand...
Click to collapse
well it must be in initramfs file (kernel ramdisk )
Sent from my GT-S5830 using xda premium
psndna88 said:
well it must be in initramfs file (kernel ramdisk )
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
Can u help me with that ?
Cryss said:
Can u help me with that ?
Click to expand...
Click to collapse
well just an hr back I was looking into its aroma installer and yes I have some ideas... looking into it
Sent from my GT-S5830 using xda premium
psndna88 said:
well just an hr back I was looking into its aroma installer and yes I have some ideas... looking into it
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
I allready move kernel + files into rom and su hold me to release it ... that's nasty.
But i'll wait for you, no rush
i hope its solved..

[TOOLS] dsixda Kitchen edify file for Nexus 4 (mako) and JB 4.2

Here is the dsixda kitchen edify file I have been using for Nexus 4 (mako).
If using cygwin copy mako file to your cygwin\home\username\tools\edify_defs folder.
Thanks to mskip for mount points
UPDATE:
As promised download the dsixda_JB42.zip and copy the files to the appropriate folder. This will help with Deodexing and by help I mean it will allow all files to be deodexed.
Hi goldfingerfif, first of all thanks a lot for the file, then I would like to use this to build a rom with latest dsixda kitchen release (0.214) but when I’m trying to deodex core.odex I’m getting an error, only with this file, the others works fine. Did you have the same problem? How do you solve it? I tried to do it with api level 16 and 15 but I have the same error. Maybe you did it manually? Or using the kitchen?
Thanks in advance
I'll upload the other changes...I forgot I changed api to 17 and updated smali and baksmali and the version to use file.
Sent from my Nexus 4 using xda app-developers app
Was about to say about updating the smali/baksmali files - I did all that but it was this file I was missing so thanks a lot!
EddyOS said:
Was about to say about updating the smali/baksmali files - I did all that but it was this file I was missing so thanks a lot!
Click to expand...
Click to collapse
Updated OP
goldfingerfif said:
Updated OP
Click to expand...
Click to collapse
Thanks so much!!
Edit: I'm Having troubles with wifi like you with my dsixda's rom, can you tell me how you solved it please?
nitsuajd said:
Thanks so much!!
Edit: I'm Having troubles with wifi like you with my dsixda's rom, can you tell me how you solved it please?
Click to expand...
Click to collapse
I haven't found the script file to add some things that it misses. You can compare the updater-script against mine or I'll post the lines you have to add.
Sent from my Nexus 4 using xda app-developers app
goldfingerfif said:
I haven't found the script file to add some things that it misses. You can compare the updater-script against mine or I'll post the lines you have to add.
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
Thanks dude, you're right!
Exactly these two lines:
Code:
symlink("/data/misc/wifi/WCNSS_qcom_cfg.ini", "/system/vendor/firmware/wlan/prima/WCNSS_qcom_cfg.ini");
symlink("/data/misc/wifi/WCNSS_qcom_wlan_nv.bin", "/system/vendor/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin");
nitsuajd said:
Thanks dude, you're right!
Exactly these two lines:
Code:
symlink("/data/misc/wifi/WCNSS_qcom_cfg.ini", "/system/vendor/firmware/wlan/prima/WCNSS_qcom_cfg.ini");
symlink("/data/misc/wifi/WCNSS_qcom_wlan_nv.bin", "/system/vendor/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin");
Click to expand...
Click to collapse
Were you guys using Cygwin when you saw this issue? I know that Cygwin sometimes messes up the symlinks that are not under /system/bin; whereas Linux / OS X are sometimes nicer. In other words, I try not to recommend Cygwin due to these kinds of issues.
@goldfingerfif - thanks for the edify_defs file. I've updated the kitchen to add Nexus 4 support in version 0.216.
I've just added this to the Nexus 4 Complete Index
Sent from my GT-I9100 using xda premium
dsixda said:
Were you guys using Cygwin when you saw this issue? I know that Cygwin sometimes messes up the symlinks that are not under /system/bin; whereas Linux / OS X are sometimes nicer. In other words, I try not to recommend Cygwin due to these kinds of issues.
Click to expand...
Click to collapse
I was using Cygwin
goldfingerfif said:
I was using Cygwin
Click to expand...
Click to collapse
The Windows application that is used to extract the files from the rom has an issue because it removes the symlinks. You will not see this happen in Linux or OS X. However, I have fixed your problem for those specific files in Cygwin.
dsixda said:
The Windows application that is used to extract the files from the rom has an issue because it removes the symlinks. You will not see this happen in Linux or OS X. However, I have fixed your problem for those specific files in Cygwin.
Click to expand...
Click to collapse
Yes I just picked up a 120gb ssd and going to dual boot with Linux as it will make life with android so much easier.
Sent from my Nexus 4 using xda app-developers app

[DEV][WIP] Port T110 Firmware (CANCELED)

CANCELED
Hello xda,
today the T110 firmwares popped up at sammobile but the links are very hard to find now so here a mirror:
T110XXUANA7_T110OXXANA4_SEE.zip
https://mega.co.nz/#!egIkmQBK!XzHeb0OfsZ_XkkE8frvPPi-wuh4-RDQ1nODh8Xed2qc
Unpacked system.img (T110)
https://mega.co.nz/#!qk4XHB7C!LcrhHHe5fdm4VhJIPbw6Q1OJbvEVD2Cyx8qzKCyiC8I
Boot.img Unpacked (T110)
https://mega.co.nz/#!iow1yC4I!evjSkCXxWHTgY5y1lWCcuCGV-yhCoOFOtG_rx_mhtHM
Boot.img (T110)
https://www.mediafire.com/?wk9s1mhn3rs8xop
Recovery.img (T110)
https://www.mediafire.com/?wk9s1mhn3rs8xop
Any help with porting is much appreciated
@gr8nole
Unpacked system.img
https://mega.co.nz/#!qk4XHB7C!LcrhHHe5fdm4VhJIPbw6Q1OJbvEVD2Cyx8qzKCyiC8I
is it 4.2.2 ? i'm no good in porting but i was just curious ^__^
super-user2.3 said:
is it 4.2.2 ? i'm no good in porting but i was just curious ^__^
Click to expand...
Click to collapse
4.2.2 yes!
Sent from my GT-I9105P using xda app-developers app
Maybe a naive question, but did anyone try the android kitchen porting tool already? I mean the ROMs dont differ too much, are both still JB and even for the "same" device. I am currently short of time, because of my bachelor stuff, but if we get it going this way, we could at least see, where we need to start and could start debugging/using tgis new stuff
Sent from my LG-P760 using xda app-developers app
Guyz I know a very talented DEV but he doesn't have the device his xda name is @szezso If you contact him he'll be very helpful especially in kernel stuff He's also extremely friendly
Sent from my SM-T210 using XDA Premium 4 mobile app
Canceled we will wait for Garnet Red 4.2.2 or official 4.2.2!
safariking said:
Canceled we will wait for Garnet Red 4.2.2 or official 4.2.2!
Click to expand...
Click to collapse
Yes, was worth trying, but too many differences.
safariking said:
@gr8nole
Unpacked system.img
https://mega.co.nz/#!qk4XHB7C!LcrhHHe5fdm4VhJIPbw6Q1OJbvEVD2Cyx8qzKCyiC8I
Click to expand...
Click to collapse
How were you able to unpacked the system.img? I just downloaded T110XXUANC1 odin tar, extracted the system.img & I'm unable to view the contents thru several of my tools.
gu1dry said:
How were you able to unpacked the system.img? I just downloaded T110XXUANC1 odin tar, extracted the system.img & I'm unable to view the contents thru several of my tools.
Click to expand...
Click to collapse
Convert the Android sparse image to an EXT4 image and mount it.

Categories

Resources