[GUIDE]How to make a custom rom - Samsung Galaxy Mini

Hey guys
i made this guide for new users that want to learn something about android development and make their own custom rom
*NOTE:this guide is made for new users, and here u will only learn how to mod custom rom not how to build it from source​
Things u need are:
[*]"7zip" or "winrar" or "winzip"
[*]base rom
[*]patience
[*]notepad
[*]and signer (get it here)
Things u see when extract rom:
1.META-INF
2.system
3.boot.img
U wont need to touch "META-INF" and "boot.img" so open "system" folder.
There u see many folders (and build.prop) but since this is guide for new users we gonna rely only on this folders:
app
fonts
framework
media
some other folders if u want to use scripts ˙(gonna teach u how just continue reading xD)
Now go to "app" folder
there u see many applications and maybe .odex files
here choose what u want to delete (*NOTE- if u delete application u should delete .odex file)
here is list which apps u can delete
*NOTE-make sure that if u deleted launcher that u replace it with your desired launcher
If u want to change fonts, framework and theme system ui then go to uot kitchen .U will just have to copy and replace files
build.prop
this is where u can change your roms name and add some tweaks
to change roms name u have to change this line
ro.modversion="here write your roms name"
*NOTE-without "" xD
here are some tweaks for build.prop tweaks
just copy<paste them
# Signal Tweaks
ro.ril.hsxpa=2
ro.ril.gprsclass=10
ro.ril.hep=1
ro.ril.enable.dtm=1
ro.ril.hsdpa.category=10
ro.ril.enable.a53=1
ro.ril.enable.3g.prefix=1
ro.ril.htcmaskw1.bitmask=4294967295
ro.ril.htcmaskw1=14449
ro.ril.hsupa.category=5
# NetSpeed Tweaks
net.tcp.buffersize.default=4096,87380,256960,4096,16384,256960
net.tcp.buffersize.wifi=4096,87380,256960,4096,16384,256960
net.tcp.buffersize.umts=4096,87380,256960,4096,16384,256960
net.tcp.buffersize.gprs=4096,87380,256960,4096,16384,256960
net.tcp.buffersize.edge=4096,87380,256960,4096,16384,256960
# Google DNS Tweak
net.rmnet0.dns1=8.8.8.8
net.rmnet0.dns2=8.8.4.4
net.dns1=8.8.8.8
net.dns2=8.8.4.4
# Photo And Video Quality
ro.media.dec.jpeg.memcap=8000000
ro.media.enc.hprof.vid.bps=8000000
ro.media.enc.jpeg.quality=100
# Touch Responsiveness
debug.performance.tuning=1
video.accelerate.hw=1
# Scrolling Responsiveness
windowsmgr.max_events_per_sec=500
# Call Tweaks
ro.telephony.call_ring.delay=0
ro.lge.proximity.delay=25
mot.proximity.delay=25
# Power Save Tweaks
ro.ril.disable.power.collapse=1
pm.sleep_mode=1
# Performance Tweaks
ro.kernel.android.checkjni=0
ro.config.nocheckin=1
# Disables Debug Icon On Status Bar
persist.adb.notify=0
Click to expand...
Click to collapse
Scripts
to use scripts like Adrenaline™ Engine | 3.0 | or SlaidyBoost-V2.3
u just have to copy files from folders to the same folder
example for slaidy boost:
when u extract it u will see:
META-INF *folder
system *folder
navigate to "system"
and copy files from "etc" to "etc" rom
*NOTE- copy just files u see in folder not whole folder
and then copy files from "xbin" to xbin in your rom

1.Download base rom
-its best to take stock cyanogenmod that isnt already modded or some stock based
2.Extract rom with 7zip or winzip
3.Go to /./"rom"/system/app and delete apps u will replace or just delete
-its best to make rom as light as it can get (list of apps u can delete is given above)
4.Replacing bootanimation
-download bootanimation u want to use and rename it to "bootanimation"
-delete animation u find in /./"rom"/system/media and then paste bootanimation u downloaded
5.Adding scripts
-everything is explained in above post
6.Giving your rom name
-to change roms name u have to change this line in build.prop
ro.modversion="here write your roms name"
*NOTE-without "" xD
7.Adding build.prop tweaks
-explained in above post
8.Compress it in .zip
9.Sign it with signer given above

Plz also post tut for making kernel and rom from source in future

vishal007 said:
Plz also post tut for making kernel and rom from source in future
Click to expand...
Click to collapse
I dont know to build from source
but there are some guides i think

Thank you mv_style. Good source for beginners.

winkan said:
Thank you mv_style. Good source for beginners.
Click to expand...
Click to collapse
np
after u master this
things will go by them self

How to unpack boot.img
Hello.
This guide is awsome, but. How to unpack boot.img? I can't do that...
I have a backup of my Rom. Inthis backup is boot.img and recovery.img. I want to extract boot.img, because here is all folders to Rom... I did it once in DSIXDA Kitchen, but now i dont remember how do i did it
Help me plz

Filipm95 said:
Hello.
This guide is awsome, but. How to unpack boot.img? I can't do that...
I have a backup of my Rom. Inthis backup is boot.img and recovery.img. I want to extract boot.img, because here is all folders to Rom... I did it once in DSIXDA Kitchen, but now i dont remember how do i did it
Help me plz
Click to expand...
Click to collapse
dont know what u need it for
but here it is
http://forum.xda-developers.com/showthread.php?t=1494036

Filipm95 said:
Hello.
This guide is awsome, but. How to unpack boot.img? I can't do that...
I have a backup of my Rom. Inthis backup is boot.img and recovery.img. I want to extract boot.img, because here is all folders to Rom... I did it once in DSIXDA Kitchen, but now i dont remember how do i did it
Help me plz
Click to expand...
Click to collapse
Extract system.rfs !!
No need to xtract boot.img
Sent From my lovely FIT..... !! lOvE u Fit

What about Dsixda's android kitchen? Ain't that easier way to customise existing roms? And btw: Brace yourself! ****ty roms are comming!

daxdax89 said:
Brate
1. rename your unsigned zip file to "update.zip"
2. execute "sign.bat", wait for completion
3. "update-signed.zip" is your signed rom file
Koji unsigned file ?
Click to expand...
Click to collapse
taj zip od roma kaj si napravio
renameas ga u "update"
stavis u taj folder i pokrenes sign.bat

How can I add s2e and screenshot shortcut in power menu?
Another question: if I have titanium backup FCs, how can I fix that?

Man, i deleted adwlauncher.apk and i putted Sony ericsson launcher, but i renamed sony ericsson launcher.apk to adwlauncher.apk but my phone crashes on bootanimation. And i putted sladyboost and adrenaline. I used official cm 7.2
please help me!
thankz!

zarpel said:
Man, i deleted adwlauncher.apk and i putted Sony ericsson launcher, but i renamed sony ericsson launcher.apk to adwlauncher.apk but my phone crashes on bootanimation. And i putted sladyboost and adrenaline. I used official cm 7.2
please help me!
thankz!
Click to expand...
Click to collapse
what else did u do?
and try to build rom again
just follow steps

zarpel said:
Man, i deleted adwlauncher.apk and i putted Sony ericsson launcher, but i renamed sony ericsson launcher.apk to adwlauncher.apk but my phone crashes on bootanimation. And i putted sladyboost and adrenaline. I used official cm 7.2
please help me!
thankz!
Click to expand...
Click to collapse
Slaidyboost and adrenalin are not compatible with each other.
Sent from my GT-S5570 using XDA

huzzahpenguin said:
Slaidyboost and adrenalin are not compatible with each other.
Sent from my GT-S5570 using XDA
Click to expand...
Click to collapse
uhhh didnt notice that he wrote that

zarpel said:
Man, i deleted adwlauncher.apk and i putted Sony ericsson launcher, but i renamed sony ericsson launcher.apk to adwlauncher.apk but my phone crashes on bootanimation. And i putted sladyboost and adrenaline. I used official cm 7.2
please help me!
thankz!
Click to expand...
Click to collapse
You actually don't have to rename launcher, because adw settings are embedded in cm7 and it might be the problem. It's safe to remove adw and put different launcher in tho...

I've tried using cm 7.2 rc5.7 and it works perfectly!
But on CM 7.2 Official, I've tried using the same, but doesn't work.
Do i must remove sladyboost and adrenaline ?
And I can't see the .odex files.

zarpel said:
I've tried using cm 7.2 rc5.7 and it works perfectly!
But on CM 7.2 Official, I've tried using the same, but doesn't work.
Do i must remove sladyboost and adrenaline ?
And I can't see the .odex files.
Click to expand...
Click to collapse
all versions dont have .odex files
and u can only use 1 of scripts

Mr. MV, thanks for tutorial...
In my case...i just want change / substitute boot.img emanon6 with andro-id331..rom can boot and work normally but without bootanimation.. What can i do for display boot animation????
Sorrry my bad english n thx..
Lumantar Galaxy Mini Gadahan Piyambak.

Related

auto dim not working on my port

im port cm9.1 latest stable,,,its very good ,,,fast,,smooth too,,,but auto dim isnt not working,,,how to get it working???
great man.
auto brightness not working may be sensor files are missing, I noticed same issue in cm10 by rcset.
elol we need you for solving this
ryan just upload your ROM please
not worried much about auto brightness
reversegear said:
great man.
auto brightness not working may be sensor files are missing, I noticed same issue in cm10 by rcset.
elol we need you for solving this
ryan just upload your ROM please
not worried much about auto brightness
Click to expand...
Click to collapse
my connection is very slow for upload bro,,,but u can try this alone,,its easy,,,,just go to cynanogen site,,,download latest cm 9.1 for xperia arc(anzu) or latest nightly,,,,,next follow my tutorial above,,,take file from cm9 rc2 by rcset
META-INF - delete and replace all folder
edit build.prop or replace
replace boot.img
system/bin - replace and add dif files
applypatch
btwlancoex
geomagneticd
hci_qcomm_init
hlr_auc_gw
hostapd
hostapd_cli
lightd
nt_password_hash
orientationd
port-bridge
proximityd
recovery
rild
rmt_storage
vold
wpa_supplicant
system/etc
firmware - delete and replace all folder
permissions - delete and replace all folder
- add or replace
init.qcom.bt.sh
init.qcom.fm.sh
init.qcom.sdio.sh
init.qcom.wifi.sh
loc_parameter.ini
vold.fstab
system/framework
framework-res.apk - mod vibrate
services.jar - fix headset
system/lib - add or replace
libandroid_runtime.so
libcamera.so
libcamera_client.so
libcm.so
libgps.so
libhardware_legacy.so
libmmjpeg.so
liboemcamera.so
libril.so
libril-qc-1.so
- and add all dif files from base work
system/lib/hw - add
camera.fb0.so
gps.fb0.so
lights.fb0.so
sensors.fb0.so
system/lib/modules - delete and replace all folder
system/usr - replace all folder
idc
keychars
keylayout
its tutorial from rcset,,,if you follow this,,im guarantee you will be sucsess...keep spirit
From what device ROM you have ported??I use crespo device,but failed,stuck on splash.img
Sent from my Spice Mi-410 using Tapatalk 2
Arya_3RDNumber said:
From what device ROM you have ported??I use crespo device,but failed,stuck on splash.img
Sent from my Spice Mi-410 using Tapatalk 2
Click to expand...
Click to collapse
try change libhardware_legacy.so cm9 mtdev latest or take from my ported IceColdSandwicth V8.7....use rom htc Sensation ''pryamid'' base rom to need porting rom cm9,it will easy you..
---------- Post added at 03:18 PM ---------- Previous post was at 03:17 PM ----------
ryanroxx said:
my connection is very slow for upload bro,,,but u can try this alone,,its easy,,,,just go to cynanogen site,,,download latest cm 9.1 for xperia arc(anzu) or latest nightly,,,,,next follow my tutorial above,,,take file from cm9 rc2 by rcset
META-INF - delete and replace all folder
edit build.prop or replace
replace boot.img
system/bin - replace and add dif files
applypatch
btwlancoex
geomagneticd
hci_qcomm_init
hlr_auc_gw
hostapd
hostapd_cli
lightd
nt_password_hash
orientationd
port-bridge
proximityd
recovery
rild
rmt_storage
vold
wpa_supplicant
system/etc
firmware - delete and replace all folder
permissions - delete and replace all folder
- add or replace
init.qcom.bt.sh
init.qcom.fm.sh
init.qcom.sdio.sh
init.qcom.wifi.sh
loc_parameter.ini
vold.fstab
system/framework
framework-res.apk - mod vibrate
services.jar - fix headset
system/lib - add or replace
libandroid_runtime.so
libcamera.so
libcamera_client.so
libcm.so
libgps.so
libhardware_legacy.so
libmmjpeg.so
liboemcamera.so
libril.so
libril-qc-1.so
- and add all dif files from base work
system/lib/hw - add
camera.fb0.so
gps.fb0.so
lights.fb0.so
sensors.fb0.so
system/lib/modules - delete and replace all folder
system/usr - replace all folder
idc
keychars
keylayout
its tutorial from rcset,,,if you follow this,,im guarantee you will be sucsess...keep spirit
Click to expand...
Click to collapse
if you use base ''anzu'' you will not get unmount and mount usb working..
Arya_3RDNumber said:
From what device ROM you have ported??I use crespo device,but failed,stuck on splash.img
Sent from my Spice Mi-410 using Tapatalk 2
Click to expand...
Click to collapse
im take base from xperia arc,,i think ist better because have same gpu
elol said:
try change libhardware_legacy.so cm9 mtdev latest or take from my ported IceColdSandwicth V8.7....use rom htc Sensation ''pryamid'' base rom to need porting rom cm9,it will easy you..
---------- Post added at 03:18 PM ---------- Previous post was at 03:17 PM ----------
if you use base ''anzu'' you will not get unmount and mount usb working..
Click to expand...
Click to collapse
do you mean mount usb on cwm????i dont test it,,but usb storage its working good,,,
buy hey elol,,very nice to see u in fb0 thread,,:good:
elol can u teach me,,how to get auto dim working??
you need complie framework-res.apk then open array.xml compare framework fb0 ics with framework what do you want to porting
oh ...
Sent from my SH8188U using xda premium

[Q] noob questions

i have a few questions which after a lot of browsing also i cannot understand..
1) you know, all that stuff like v6 supercharger adrenaline,activo speeder and so on, what is the difference b/w all of these? which ones should i flash? and suppose it is already there in my rom how do i know about it? many people give different answers but im using blackdroid rom so along with that if anyone knows anything?
2) I recently found a rom whose font i really liked. if i wish to add that font in my current rom how do i do that? please keep it simple because i couldnt understand anything in other threads.
(PS to use font changer root do i need to extract the font from the rom?if so how?)
THANKS!!
v6 is available for just a few ROMs and setting it up isn't easy for novice users. If you have adrenaline engine, you can't flash anything else, because it gives bootloop. Activo is friendly to other scripts, so it's a choice for anybody who has no idea what should give bootloop.
For the font: wait for someone else, because I never change fonts
to change fonts all I do is use root explorer then goto system/fonts then replace DroidSans.ttf (this is the main font used by android) with the font you want to use and make sure you rename it to DroidSans.ttf and set permissions. you can also change all the fonts this way but just make sure you rename them and set permissions.. . do a nandroid backup just incase then reboot.
pryerlee said:
to change fonts all I do is use root explorer then goto system/fonts then replace DroidSans.ttf (this is the main font used by android) with the font you want to use and make sure you rename it to DroidSans.ttf and set permissions. you can also change all the fonts this way but just make sure you rename them and set permissions.. . do a nandroid backup just incase then reboot.
Click to expand...
Click to collapse
well i understood that, but what are he permissions to set?
Thanks this helped me a lot!
TheStormBreaker said:
well i understood that, but what are he permissions to set?
Thanks this helped me a lot!
Click to expand...
Click to collapse
(X)(x)()
(X)()()
(X)()()
X means put a thick there, () means don't.
Sent from my GT-S5570 using xda premium
If you want to know if there are scripts in Rom write to developer
In v1 of BL Rom I didn't add any scripts like this, but in v2 (you can find changelog on my thread) I added some useful
---------
You can also check it by looking in to system > etc > init.d folder
Sent from my GT-S5570 using xda app-developers app
BlackLie said:
If you want to know if there are scripts in Rom write to developer
In v1 of BL Rom I didn't add any scripts like this, but in v2 (you can find changelog on my thread) I added some useful
---------
You can also check it by looking in to system > etc > init.d folder
Sent from my GT-S5570 using xda app-developers app
Click to expand...
Click to collapse
Thanks! i didnt contact you because i thought you wouldnt like such questions...eek
anyway i was planning on using your rom but the launcher isnt working...but im sure you'll figure that out

[how to]stock radio,check box in all apps

after i install some apps like Andriod tweaker,pimp my rom and ... i notice that radio button and check box are stock andriod version so today i want change them to sony stock one like below screenshot sry for bad English:silly:
you need apk tool for decompile and recompiling
Lets do it:
decopmile framework-res.apk from framwork folder in system and go to:res/drawableand find all of XML that begin with semc_ like semc_bg_new.xml and copy them to other folder in you PC(not in framework-res.apk) so delete semc_ from all xml's(Except:semc_scrubber_x_x_x.xml )and replace them to drawable folder. After recopiling flash them to your phone(XV.XTX.XT)
befor flashing backup your files
press thanks
Behnamrend said:
after i install some apps like Andriod tweaker,pimp my rom and ... i notice that radio button and check box are stock andriod version so today i want change them to sony stock one like below screenshot sry for bad English:silly:
you need apk tool for decompile and recompiling
Lets do it:
decopmile framework-res.apk from framwork folder in system and go to:res/drawableand find all of XML that begin with semc_ like semc_bg_new.xml and copy them to other folder in you PC(not in framework-res.apk) so delete semc_ from all xml's(Except:semc_scrubber_x_x_x.xml )and replace them to drawable folder. before recopiling flash them to your phone(XV.XTX.XT)
After flashing backup your files
press thanks
Click to expand...
Click to collapse
Ok, thanks mate.
If you notice remarkable improvements using these tweaks, perharps could you create a new thread to share your experience.
nreuge said:
Ok, thanks mate.
If you notice remarkable improvements using these tweaks, perharps could you create a new thread to share your experience.
Click to expand...
Click to collapse
yep.but not this time.LOL

Framework-res.apk for touchwiz revolutionised cm9 with navigation bar size 24dip

Got big navigation bar[height] in Touchwiz Revolutionised 5 Rom...
here i bring suitable Navibar Framework app...
Instructions:
Download apk..
load it to sdcard..
copy apk to System folder[use any file manager which can do this]..
now change the permissions to rw-r--r--[as that of other apks]..
move apk to framework folder..
reboot..
now enable navigation bar by adding " qemu.hw.mainkeys=0 "[without quotations] in build.prop file..
Reboot again..
done:good:
for version4.4,check post number #3..
Credits:
arpitkh96[For awesome rom]
Venkatesh[for guiding me]
Myself
Press "Thanks" if you like my work...
the above framework is for v4..
here is the framework apk with 20dip navigation bar for v4.4 rom..
follow same instructions mentioned in #1 post..
press thanks if you like my work...
Will it work on any ICS?
Will this mod work on any ICS ROM Like This ROM? Also where exactly in the system folder we have to put this file in I guess its should go inside /system/framework. Correct me if I'm wrong
intelprakash said:
Will this mod work on any ICS ROM Like This ROM? Also where exactly in the system folder we have to put this file in I guess its should go inside /system/framework. Correct me if I'm wrong
Click to expand...
Click to collapse
I think it wont work for the rom which you specified..[i am not sure]..
yea directly if you paste it in framework folder...previous framework of rom will be replaced which makes phone not to boot[reason:as permissions are not set correctly]..
so first paste it in System folder,change permissions and then move apk to framework folder.. reboot enjoy..
Press Thanks if i helped you..
intelprakash said:
Will this mod work on any ICS ROM Like This ROM? Also where exactly in the system folder we have to put this file in I guess its should go inside /system/framework. Correct me if I'm wrong
Click to expand...
Click to collapse
naresh babu said:
I think it wont work for the rom which you specified..[i am not sure]..
yea directly if you paste it in framework folder...previous framework of rom will be replaced which makes phone not to boot[reason:as permissions are not set correctly]..
so first paste it in System folder,change permissions and then move apk to framework folder.. reboot enjoy..
Press Thanks if i helped you..
Click to expand...
Click to collapse
It'll work..but it'll contain tw files in it...it is a bad idea to paste directly....create a flashable package, nd flash it via recovery. naresh why don't you create flashable zip for it? Btw i am using 18dip...it is good too.
Venkatesh said:
It'll work..but it'll contain tw files in it...it is a bad idea to paste directly....create a flashable package, nd flash it via recovery. naresh why don't you create flashable zip for it? Btw i am using 18dip...it is good too.
Click to expand...
Click to collapse
Yea 18dip looks better for mini.. okay i will try to release flashable zip..thanks for the suggestions..:good:
Looks like you are compressing it more.it may effect the performance and battery
Sent from my GT-S5570 using XDA Premium 4 mobile app
arpitkh96 said:
Looks like you are compressing it more.it may effect the performance and battery
Sent from my GT-S5570 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
I dont know after decompiling and compiling it again ,apk got compressed..
Performance is not bad it is running better in my phone..
and its Awesome rom from you..

[RESOURCES]Samsung Galaxy S5 Framework

Hello
Hello guys iam going to share framework-res.apk
Resources for rom devs
To easly cherry pic them
Ihave resized them to mdpi-ldpi
And also included Non resized In Each drawble folder
Also there is some xmls included in drawbles to get some clues
Good usage of that will give u retty rom
Download
How to flash itt.....???
Sent from my GT-S5830i
Just change the format from zip to apk
And then place it in system/framework
Press thank if I helped you.
Conan Edogawa said:
Just change the format from zip to apk
And then place it in system/framework
Press thank if I helped you.
Click to expand...
Click to collapse
Oh no its just res u can never do tht

Categories

Resources