[solved] kernel path for A500FU - Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot

Hi!
Trying to cook ROM for A500FU model from stock ROM and dunno where the kernel lies in /dev/block.
Can some one point the right mmcblk for me please?
thanks!

julian_fin said:
Hi!
Trying to cook ROM for A500FU model from stock ROM and dunno where the kernel lies in /dev/block.
Can some one point the right mmcblk for me please?
thanks!
Click to expand...
Click to collapse
EDIT
Found it already, its located in boot image at /dev/block/mmcblk0p16

On most updater scripts, I think the location for boot.img is /dev/block/bootdevice/by-name/boot

jnvdh06 said:
On most updater scripts, I think the location for boot.img is /dev/block/bootdevice/by-name/boot
Click to expand...
Click to collapse
Yeah. But the problem was, i was cooking ROM and needed to tell to updater-script where the kernel was

Related

(Q) what does this mean when i compile?

hey can anybody help me ? i was trying to add 14 statusbar icon following kill3d tut but when i compile my systemui.apk i get this
Exception in thread "main" java.lang.NullPointerException
at org.jf.util.PathUtil.getRelativeFile(PathUtil.java:44)
at org.jf.smali.smaliFlexLexer.getSourceName(smaliFlexLexer.java:2569)
at org.jf.smali.smaliFlexLexer.getErrorHeader(smaliFlexLexer.java:2661)
at org.jf.smali.smaliFlexLexer.nextToken(smaliFlexLexer.java:2530)
at org.antlr.runtime.CommonTokenStream.fillBuffer(CommonTokenStream.java:119)
at org.antlr.runtime.CommonTokenStream.LT(CommonTokenStream.java:238)
at org.jf.smali.smaliP****r.smali_file(smaliP****r.java:430)
at brut.androlib.mod.SmaliMod.assembleSmaliFile(SmaliMod.java:71)
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:43)
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:33)
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:64)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:48)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:35)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:222)
at brut.androlib.Androlib.buildSources(Androlib.java:179)
at brut.androlib.Androlib.build(Androlib.java:170)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:174)
at brut.apktool.Main.main(Main.java:59)
then it stops there and apk is not compiled... im confused on what to do right now
U edited smali wrong.
Sent from my GT-S5360 using XDA
hell_lock said:
U edited smali wrong.
Sent from my GT-S5360 using XDA
Click to expand...
Click to collapse
thanks sir... im trying to create my 1st custom rom and somehow just made a deodexed stock rom in the end LOL,,, uhm just a question how do you flash a kernel along with the rom, i use dsixda and i just put bmunlock and boot,img in my working folder but when i flash my rom i get an error. i think it was raw write error boot.img installation aborted or something like that
thirdzcee said:
thanks sir... im trying to create my 1st custom rom and somehow just made a deodexed stock rom in the end LOL,,, uhm just a question how do you flash a kernel along with the rom, i use dsixda and i just put bmunlock and boot,img in my working folder but when i flash my rom i get an error. i think it was raw write error boot.img installation aborted or something like that
Click to expand...
Click to collapse
There was a solution by kurotsugi in hell_lock's tut....i don't remember it....
Edit - here it is http://forum.xda-developers.com/showthread.php?p=25251384
-----------------------------------------
Sent from my nandroid
thirdzcee said:
thanks sir... im trying to create my 1st custom rom and somehow just made a deodexed stock rom in the end LOL,,, uhm just a question how do you flash a kernel along with the rom, i use dsixda and i just put bmunlock and boot,img in my working folder but when i flash my rom i get an error. i think it was raw write error boot.img installation aborted or something like that
Click to expand...
Click to collapse
I can flash kernels without bmunlock... U jus need to replace the update binary in meta inf folder.
Sent from my GT-S5360 using XDA
anasdcool71 said:
There was a solution by kurotsugi in hell_lock's tut....i don't remember it....
Edit - here it is http://forum.xda-developers.com/showthread.php?p=25251384
-----------------------------------------
Sent from my nandroid
Click to expand...
Click to collapse
hell_lock said:
I can flash kernels without bmunlock... U jus need to replace the update binary in meta inf folder.
Sent from my GT-S5360 using XDA
Click to expand...
Click to collapse
thanks for your help guys... and i thought this rom cooking thing was gonna be a piece of cake... looks like i was wrong

[GUIDE] How to port ROMS

I know that there are actually LOTS of "How to port ROMS" in this forum now.. but I would like to share a certain source I found that is actually fool proof
Here it goes!
find a ROM that is designed for the same CPU type and the same phone manufacturer. Any stock Gingerbread, ICS, or CyanogenMod 7/9 ROM should work, but you’ll have to make sure your phone can handle the ROM – no ICS for an HTC Hero, for example. Also, your Port ROM's original Phone should have the same RESOLUTION with that of your phone's.
You will need:
**Notepad++
**a compression program (WinZip or 7zip and etc)
**the ROM you want to port to your phone (let’s call it the "Port ROM")
**a ROM designed for your phone (let’s call it"Base ROM")
Click to expand...
Click to collapse
This guide may mention some files or directories that aren’t present in your particular ROM; don’t worry, just carry on.
On your PC, extract the .ZIP files containing the two ROMs, and navigate to /system/app in your extracted Port ROM and copy stk.apk, vpnservices.apk, camera.apk, and bluetooth.apk into a temporary directory somewhere else on your PC.
Click to expand...
Click to collapse
Now, delete the following folders from your Port ROM and replace them with the ones from your Base ROM: /data, /system/app, /system/framework, /system/fonts and /system/media.
Click to expand...
Click to collapse
From your Base ROM, copy /system/lib/libandroid_runtime.so to the system/lib/ directory of your Port ROM, overwriting the file.
Click to expand...
Click to collapse
Next up, move the .APKs you copied earlier back into the /system/app directory of your Port ROM.
Click to expand...
Click to collapse
Open up /system/lib in your Port ROM and copy all the files and folders. Paste them into the Base’s /system/lib directory, replacing all. Then go back to the Port ROM and delete the /system/lib folder, and replace it with the /system/lib folder from the Base ROM.
Click to expand...
Click to collapse
Next, navigate to the /system/etc/init.d folder in the Port ROM and do the same copy-from-Port, paste-to-Base, delete-from-Port, copy-from-Base, paste-to-Port shuffle as before.
Click to expand...
Click to collapse
Navigate to /system/etc/permissions and do that same copy-paste dance one more time.
Click to expand...
Click to collapse
open system/build.prop from both the port and the base ROM in Notepad++. Update the Base build.prop to match the values for “ro.build.description=” and “ro.build.fingerprint=” from your Port. Now save the Base build.prop, exit Notepad++, and copy the Base build.prop into the Port ROM, overwriting the Port build.prop.
Click to expand...
Click to collapse
In Notepad++, open \META-INF\com\google\android\updater-script from both your base and port ROMs. Edit the Port’s script to be like the Base’s updater-script: specifically, change, edit, or add the sections for permissions, ui_prints, asserts, run_programs, and installing the kernel. Don’t change any of the symlinks. In the Port script, make sure that the ‘format’ values are appropriate for your device (compare them to the Base script).
Click to expand...
Click to collapse
Finally, make sure that your kernel is specifically for your device.
Click to expand...
Click to collapse
Now, if you desire, you can update any apps you require, or add any tools like BusyBox or SuperSU.
And that’s it! Your base ROM is now ready to be zipped and installed on your device via Clockwork Mod!
SOURCE: http://apcmag.com/port-roms-to-your-android-device.htm
ADDITIONAL INFORMATION:
CUSTOM ROM FOLDERS EXPLAINED
List of Resolution for Smartphones
How to change Kernel of ROM Before installation in its zip file.
[GUIDE][How to Make CWM Recovery Flashable Zip file without Computer]
copy - paste, easy made. nice guide, thanks
30adi said:
copy - paste, easy made. nice guide, thanks
Click to expand...
Click to collapse
Yes but i found the source highly confusing i just "cleaned it up"
Sent from my GT-I9300 using xda premium
Very good job, thank you.
ADDED:
[GUIDE][How to Make CWM Recovery Flashable Zip file without Computer]
I port a ROM but I am getting unknown baseband no imei please tell me how to fix
khan_frd2002 said:
I port a ROM but I am getting unknown baseband no imei please tell me how to fix
Click to expand...
Click to collapse
go to build.prop in /system and edit rild.libpath=
rild.libargs=
to match your device and that should fix it
your guide was just copied by a person from One V forums without giving proper credits.
see here: here
1ceb0x said:
your guide was just copied by a person from One V forums without giving proper credits.
see here: here
Click to expand...
Click to collapse
I see.. he should've given proper credits to the website
Sent from my GT-I9300 using xda premium
changing lib path in buildprob
not work
erm hello, can you put the other guides in your OP? some are in your other posts and it would not be easy for others to see..
nice guide and gonna try this when i got time
:good:
kemaro30 said:
erm hello, can you put the other guides in your OP? some are in your other posts and it would not be easy for others to see..
nice guide and gonna try this when i got time
:good:
Click to expand...
Click to collapse
What "other" guides do you mean?
Sent from my GT-I9300 using xda premium
Hello I Wanted to port Cm7 On a New cpu named as - MediaTek 6573 ! it is an armv6 one ... any suggestions from where to start ....etc ?
I will definitely give this a try.
Great guide. Subscribed!!
ChummyDays said:
Okay, question: what is the point of porting a ROM made for a device with the same CPU and same manufacturer?? there is VERY few phones that are made by the same company and the same cpu!
Click to expand...
Click to collapse
Well that is to ensure "safety" when porting a ROM.. the guide i posted was a beginner's guide on how to port.. as you can see, almost 80% of the procedure is just basically copy&paste..
however, if you have a good background now in codes and porting things, i believe you may not follow step-by-step the procedures i stated above.
Sent from my GT-I9300 using xda premium
mandeep1 said:
Hello I Wanted to port Cm7 On a New cpu named as - MediaTek 6573 ! it is an armv6 one ... any suggestions from where to start ....etc ?
Click to expand...
Click to collapse
Search for other phones with similar cpu
Sent from my GT-I9300 using xda premium
What about dual Sim ph?
Does anyone have any idea what would cause a "Modem Crashed Forced Upload Mode" on a port for SGS3?
I can't seem to pinpoint what causes that (I think it's a kernel panic but I could be wrong)
Looks like this would work on International Note 2 and Tmobile Note 2. They have the exact same hardware and everything. I was wondering about the last statement about kernel. Can't I just copy the boot.img from tmobile note 2 to international note 2 ? would that work ? I am not familiar with kernels and stuff. Need advice.
Thanks

Help abut android kitchen

Hello everyone
i want to know that if we make a rom through
dsixda's android kitchen
will it work on galaxy y
because the main page says something about a yaffs file system
abhishekr700 said:
Hello everyone
i want to know that if we make a rom through
dsixda's android kitchen
will it work on galaxy y
because the main page says something about a yaffs file system
Click to expand...
Click to collapse
yes it will
all you need to do is change the update binary and updater script with one from our phone in the final rom zip kitchen generates after building
marcussmith2626 said:
yes it will
all you need to do is change the update binary and updater script with one from our phone in the final rom zip kitchen generates after building
Click to expand...
Click to collapse
But I used a stock rom of my device
Not sure if it had update script or updater script
Do I still need another updater script
abhishekr700 said:
But I used a stock rom of my device
Not sure if it had update script or updater script
Do I still need another updater script
Click to expand...
Click to collapse
heres mine unzip attachment for stock based roms - you just need to edit the wording and use the symlinks from the one kitchen generates
there are guides to using kitchen if you need further help
marcussmith2626 said:
heres mine unzip attachment for stock based roms - you just need to edit the wording and use the symlinks from the one kitchen generates
there are guides to using kitchen if you need further help
Click to expand...
Click to collapse
can u pplease give me detailed instructions
and tell me why i cant use the kitchen's update script
marcussmith2626 said:
heres mine unzip attachment for stock based roms - you just need to edit the wording and use the symlinks from the one kitchen generates
there are guides to using kitchen if you need further help
Click to expand...
Click to collapse
can u pplease give me detailed instructions
and tell me why i cant use the kitchen's update script
abhishekr700 said:
can u pplease give me detailed instructions
and tell me why i cant use the kitchen's update script
Click to expand...
Click to collapse
because you will most likely get status 0 error when you flash it in cwm or error 6 or 7
please search for any guides you require
read this for starters
http://forum.xda-developers.com/showthread.php?t=1801690
marcussmith2626 said:
because you will most likely get status 0 error when you flash it in cwm or error 6 or 7
please search for any guides you require
read this for starters
http://forum.xda-developers.com/showthread.php?t=1801690
Click to expand...
Click to collapse
no detail instruction about symlinks
abhishekr700 said:
no detail instruction about symlinks
Click to expand...
Click to collapse
no
detailed instructions about symlinks
abhishekr700 said:
no
detailed instructions about symlinks
Click to expand...
Click to collapse
kitchen creates the symlinks for you
you only have to edit the mount points that are above the symlinks
compare with other updater scripts for this phone
flash it and you will see if it needs to be changed

Ive made a Rom but won't install

Hi guys so I've made a Rom but when I try and install it says ZIP corrupted any ideas why it says that
AndroidTutorials said:
Hi guys so I've made a Rom but when I try and install it says ZIP corrupted any ideas why it says that
Click to expand...
Click to collapse
try to unchek the md5 verification or repack the rom(use 7zip).
vaserbanix said:
try to unchek the md5 verification or repack the rom(use 7zip).
Click to expand...
Click to collapse
Ok how to uncheck md5 ?
AndroidTutorials said:
Ok how to uncheck md5 ?
Click to expand...
Click to collapse
when you install the rom with TWRP have option to check/uncheck md5 verification
before SWIPE the install. uncheck it if it is checked
or repack your rom with 7zip next settings:
Archive---------------------- zip
Compression level-------Normal
Compression method---Deflate
Dictionary sise--- --------32kb
Word size-------------------32
and press OK
vaserbanix said:
when you install the rom with TWRP have option to check/uncheck md5 verification
before SWIPE the install. uncheck it if it is checked
or repack your rom with 7zip next settings:
Archive---------------------- zip
Compression level-------Normal
Compression method---Deflate
Dictionary sise--- --------32kb
Word size-------------------32
and press OK
Click to expand...
Click to collapse
Ok and thank you I will try this ?
AndroidTutorials said:
Ok and thank you I will try this 😀
Click to expand...
Click to collapse
when you pack the ron in zip
dont select the folder of your rom,
opend it and select the files:
Meta-Inf
system
boot.img
etc. ....
and add that in zip
Color OS Galaxy J5
vaserbanix said:
when you pack the ron in zip
dont select the folder of your rom,
opend it and select the files:
Meta-Inf
system
boot.img
etc. ....
and add that in zip
Color OS Galaxy J5
Click to expand...
Click to collapse
Ok so I will select files inside the folder but how to install 7z I have Linux Ubuntu
AndroidTutorials said:
Ok so I will select files inside the folder but how to install 7z I have Linux Ubuntu
Click to expand...
Click to collapse
use your archiver mannager and select the same files
Color OS Galaxy J5
vaserbanix said:
use your archiver mannager and select the same files
Color OS Galaxy J5
Click to expand...
Click to collapse
Ok wI'll do thank you for helping me ? I appreciate it
vaserbanix said:
use your archiver mannager and select the same files
Color OS Galaxy J5
Click to expand...
Click to collapse
The zip worked but now I need to fix it's the wrong Rom it's for another j5 phone lol
AndroidTutorials said:
The zip worked but now I need to fix it's the wrong Rom it's for another j5 phone lol
Click to expand...
Click to collapse
that should be easy!
Color OS Galaxy J5
vaserbanix said:
that should be easy!
Color OS Galaxy J5
Click to expand...
Click to collapse
Yes and thank you once again for helping me I really do appreciate it can I ask u one thing
Does Android android kitchen work with the galaxy j500fn ? And how can I change from j5lte to
AndroidTutorials said:
Yes and thank you once again for helping me I really do appreciate it can I ask u one thing
Does Android android kitchen work with the galaxy j500fn ?
Click to expand...
Click to collapse
i use superrkitchen in linux now!
i tested few time ago(about an year) but i wasnt satisfied by it and i start to port manualy.
Android kitchen was good for me on porting 4.2.2 roms, i did about 30 roms with it
Color OS Galaxy J5
vaserbanix said:
i use superrkitchen in linux now!
i tested few time ago(about an year) but i wasnt satisfied by it and i start to port manualy.
Android kitchen was good for me on porting 4.2.2 roms, i did about 30 roms with it
Color OS Galaxy J5
Click to expand...
Click to collapse
So would superkitchen work with j500fn? I need to somehow Change from j500jnlte to j500lte but I don't know how to I will say you helped me with it because you have been a big help to me ?
AndroidTutorials said:
So would superkitchen work with j500fn?
Click to expand...
Click to collapse
yes it work!
you can use it for 5.1.1, 6.0.1, 7.0, 7.1 rom's
it's a good tool but the porting process must be done manualy on pc or phone
test it and i think you will be satisfied for the option you can get in it
for the porting process are the tutorials!
vaserbanix said:
yes it work!
you can use it for 5.1.1, 6.0.1, 7.0, 7.1 rom's
it's a good tool but the porting process must be done manualy on pc or phone
test it and i think you will be satisfied for the option you can get in it
for the porting process are the tutorials!
Click to expand...
Click to collapse
Thank you my friend you are awesome I did not know about superrkitchen untill just thank you!!! That could be the reason the Rom had this error because I used android kitchen lol and when I post the Rom what's a the (kernel source link)
vaserbanix said:
yes it work!
you can use it for 5.1.1, 6.0.1, 7.0, 7.1 rom's
it's a good tool but the porting process must be done manualy on pc or phone
test it and i think you will be satisfied for the option you can get in it
for the porting process are the tutorials!
Click to expand...
Click to collapse
Hi m8 I've made the Rom it installs but reboots the phone into recovery
AndroidTutorials said:
Hi m8 I've made the Rom it installs but reboots the phone into recovery
Click to expand...
Click to collapse
did you get the bootanimation when you tryed to start the phone?
Color OS Galaxy J5
vaserbanix said:
did you get the bootanimation when you tryed to start the phone?
Color OS Galaxy J5
Click to expand...
Click to collapse
No :/ no animation
AndroidTutorials said:
No :/ no animation
Click to expand...
Click to collapse
that mean your system wasnt writed.
so! install it again, before flash it do an advanced wipe: data, cache, dalvick-cache, system and then flash the rom.
if the rom boot and get bootanimation that mean the system was writed.
if not, reboot it in recovery and try to do a backup, here you will see if the system has some size(xxxMb).
if system is 0 or a very small size that mean it wasn't mounted on instaling process and do the next:
-restore your working rom
- do a wipe data factory reset(not advanced)
reinstall the rom and it should work.
if not again, then you should make a reviev of "updater-script" in Meta-inf folder and correct the mistakes
Color OS Galaxy J5

help guys plz !!

im using norma v11 note7 port and there is an issue with root explorer i cant delete system folder i faced this problem on dr.ketan rom but he provided a solution inside the rom so if u can give that solution to make it on Norma v11 its a great rom and thnx
anyone plz im waiting
TornadoMiMo said:
im using norma v11 note7 port and there is an issue with root explorer i cant delete system folder i faced this problem on dr.ketan rom but he provided a solution inside the rom so if u can give that solution to make it on Norma v11 its a great rom and thnx
Click to expand...
Click to collapse
You can do it from TWRP. Just mount the system before then go to TWRP file explorer.
using 910G / Govtuner 3.8
Chimbat said:
You can do it from TWRP. Just mount the system before then go to TWRP file explorer.
using 910G / Govtuner 3.8
Click to expand...
Click to collapse
thnx i know that but its more difficult and take time is there any fix i can do
Ps : dr.ketan make a fix for this problem but he include it inside the rom
sorry for my english

Categories

Resources