Finally the script has done!!!!
Unpack and repack of boot.img or recovery.img can be possible without errors!!
put boot.img in bootworkspace and use the scripts!...that's all!
http://www.mediafire.com/?rvnbbxgw0zzn46l
as always...if some1 liked my work and want donate me a beer, there is the link
Credits:
JackTheVendicator
m2te from modaco
Me
great work man
great work!
this script it's only for ideos or i can use it with any boot.img?
thanks!
Thank you
attached there are the tools compiled for windows users.
http://www.multiupload.com/AGJV3KXLDI
Have Fun!
it seems nice... Thanks!
Yet, i have some noob questions about this:
- is this useful to backup / restore entire phone content (kernel, apps, data, config, ...). That is what I am looking for. I tried Rom Manager but it seems that ClockworkMod does not work with the U8150...
- I guess scripts have to be launched from a linux terminal (Ubuntu OK?) after connecting the U8150 with USB? (should I mount it before?)
- User only has to launch Build-bootimg to create a backup?
- and Unpack-bootimg to restore??
- what about Build-ramdisk?
- I guess the tools mkboot* are called by the scripts and do not have to be launched manually, right?
Thanks for your work and help!
Hi, i've croos-compile new kernel with new modules and get new zImage. With this scripts i get new boot.img but when i flash the boot partition (with fastboot) the phone freezes at main screen.HELP!!!
Great post man. I've been looking for this.
Thanks, this is a big help. Compiling the Froyo kernel source from Huawei was easy, but I was pulling my hair out trying to generate a working boot.img. It's pretty confusing that there are so many unpack/extract/split scripts out there...
Thanks to both you and mt2e over at Modaco for doing the hard work on this one.
Thank you
Thanks for Bootbuilder That's too usefull for my project thanks again
bootworkspace
what is bootworkspace ?
Help!
Can anyone please explain me how to use it???
(Sorry for being a Noob)
bootworkspace is in the tarball...
ammarabbasi said:
Can anyone please explain me how to use it???
(Sorry for being a Noob)
Click to expand...
Click to collapse
bootworkspace is inside the tar file, see:
Code:
[[email protected]: ~/Downloads]$ tar ztf BootBuilder-U8150.tar.gz
BootBuilder-U8150/
BootBuilder-U8150/Tools/
BootBuilder-U8150/Scripts/
BootBuilder-U8150/bootworkspace/
...
...
BootBuilder-U8150/Tools/mkboot/sha.o
BootBuilder-U8150/Tools/mkboot/rsa.h
BootBuilder-U8150/Tools/mkboot/bootimg.h
You have to unzip the tarball and then you'll be able to see the folder. Place your boot.img in there and then you can unpack and repack it using the scripts in the Scripts directory.
aorth said:
bootworkspace is inside the tar file, see:
Code:
[[email protected]: ~/Downloads]$ tar ztf BootBuilder-U8150.tar.gz
BootBuilder-U8150/
BootBuilder-U8150/Tools/
BootBuilder-U8150/Scripts/
BootBuilder-U8150/bootworkspace/
...
...
BootBuilder-U8150/Tools/mkboot/sha.o
BootBuilder-U8150/Tools/mkboot/rsa.h
BootBuilder-U8150/Tools/mkboot/bootimg.h
You have to unzip the tarball and then you'll be able to see the folder. Place your boot.img in there and then you can unpack and repack it using the scripts in the Scripts directory.
Click to expand...
Click to collapse
can you post tutorial for windows users, thanks
Related
Android Development How-To: Compiling the Android/Linux kernel for the Epic Touch 4G.
NOW INCLUDES ROOT!!!
Introduction: This guide is meant for people who want to get started with android development and don't know where to start. This thread can also be used as a reference place for android development on the et4g. This guide well first be on compiling the android kernel and flashing it to your phone and, I well update it on a regular basis for more complex mods and such to get you familiar with the android platform. If at anytime anyone would like to add more to this, pm me with what you would like to add or fix. Android is an open-source wonderland and I feel like more people should experience the fun of android development. Just remember I am not responsible if you do something stupid and break your phone!
First, we are going to get familiar with the android kernel by compiling a stock build and flashing it with Odin to your et4g.
What you need to download to compile the kernel:
Samsung open-source kernel and platform files. Available at: Samsung Open Source
Type in: Sph-d710 in the search bar in the link and download latest source.
initramfs files (More on this later) (includes cwm, busy box, and of course root! Thanks to chris41g for his help.) Files available at: Initramfs Files
Tool chain for compiling: Available at: Arm-toolchain
Preferably Ubuntu or another Distro. Of Linux running on a partition or Virtual machine.
Step 1: Were going to unzip the source you got from Samsung and take a short look around.
unzip the source and unzip the file that says, “SPH-D710_GB_Kernel.tar.gz” and, open it up. You are now looking at the kernel source for the Epic touch 4g! Okay I well not go over to much whats is here but, I well add a more in depth look in the kernel soon.
Scroll to the bottom of the source and you should see a document that says, "makefile". We are just going to add a name for your stock compile of the kernel, to make it a little more special. Open it and go to where it says Extra version and add your last name ,just make it all lower case letters or it wont compile correctly. When you flash it to your phone, the about phone panel in setting well say: Kernel version: 2.6 [last name you chose] now.
Step 2: Lets get started!
Open terminal in Linux and change your directory to the kernel. You do this by putting,
“cd” and then typing where your kernel source is then hit enter. My terminal looked like this:
cd /home/shane/Desktop/SPH-D710_GB_Kernel
Click to expand...
Click to collapse
Step 3: Tell terminal where your tool chains you downloaded are located.
The kernel is compiled using a tool chain, and the terminal needs to know where the tool chain is to compile. (The tool chain is the folder called “arm-2009q3” )Start by typing this in the terminal:
export CROSS_COMPILE=
Click to expand...
Click to collapse
Then after that put where your tool chain is located. Also when you are entering where it is at, you need to put a “/bin/arm-none-eabi-” at the end of the directory. This shows the terminal that the compiling tools are under the folder bin and starts with arm-none-eabi- and the android compilation adds the last word for the compiler program it needs. (you can see this if you go into the bin folder under the “arm-2009q3 folder.) For adding the tool chain I entered this:
export CROSS_COMPILE=/home/shane/Desktop/arm-2009q3/bin/arm-none-eabi-
Click to expand...
Click to collapse
Then hit enter.
Step 4: Clean the kernel, enter configuration files and make the modules.
Enter this command:
sudo make clean
Click to expand...
Click to collapse
Then enter password and hit enter.
Then it well say something like:
make: /opt/toolchains/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: Command not found
Click to expand...
Click to collapse
IGNORE THIS! It is just a fragment in a configuration file that says the toolchain is not in the default location. But, we changed the tool chain location in step 3 so it well compile correctly.
This cleans up and organizes the kernel for compilation.
Now enter this command in terminal:
make c1_rev05_na_spr_defconfig
Click to expand...
Click to collapse
This is the configuration files for the epic touch 4g and well compile the kernel based off what is in these files.
Now were going to compile all the modules so wifi,vibration... work.
Enter this in terminal:
make modules
Click to expand...
Click to collapse
Step 5: Moving the newly compiled modules to the initramfs/lib/modules folder.
We are now going to move the modules from the newly compiled modules to the initramfs files. So that wifi and vibration well be working in our kernel.
*Initramfs files are the root filesystem of the kernel and does processes the kernel can't do itself while its booting.
You can do this by terminal or by hand. We are just moving the modules to the initramfs to be used when compiling the kernel.
You can type this into terminal (Where it says “Path to initramfs” you need to replace with your own path to the initramfs folder + /lib/modules) :
cp drivers/samsung/j4fs/j4fs.ko Path to initramfs/lib/modules
cp drivers/scsi/scsi_wait_scan.ko Path to initramfs/lib/modules
cp drivers/bluetooth/bthid/bthid.ko Path to initramfs/lib/modules
cp drivers/net/wireless/bcm4330/dhd.ko Path to initramfs/lib/modules
cp drivers/samsung/vibetonz/vibrator.ko Path to initramfs/lib/modules
cp drivers/staging/westbridge/astoria/switch/cyasswitch.ko Path to initramfs/lib/modules
Click to expand...
Click to collapse
This copies the new modules out of the kernel source and puts them in the initramfs/lib/modules folder to be used later.
Now once you enter that press enter.
Step 7: Compiling the android kernel with initramfs.
Type this in terminal:
make -j5 CONFIG_INITRAMFS_SOURCE=Path to initramfs file
Click to expand...
Click to collapse
*Remember to replace the “path to initramfs file” with the path to the initramfs file.
Okay this well take anywhere from 5-15 mins. to compile depending on your system.
Step 8: Were done compiling, lets make something flashable for Odin!
Just type in terminal:
cd arch/arm/boot/
Click to expand...
Click to collapse
Then type:
tar cvf MyKernel.tar zImage
Click to expand...
Click to collapse
This well zip up the zimage (the kernel) you just compiled to something flashable in odin.
If you open up the kernel source file and go to arch/arm/boot you well see the zimage you compiled and, the Mykernel.tar file for Odin. Double check and right click on the zimage and make sure it is around 5-6 MB before flashing.
Step 9: Flashing to your phone.
Go to a windows computer and download Odin.(if you have rooted your phone using zedomax's method you should have it installed already)
Okay now open it up and place the Mykernel.tar file in the PDA section of Odin. Now download the drivers for your phone if you haven't.(I assume you already have.) Then put your phone in download mode (hold volume down button and power button on start up and push volume up button when the warning pops up) Now plug your phone into the computer and make sure “auto-reboot” is the only box checked in Odin. Hit start and your phone well be flashed with a kernel you compiled yourself! If you did this right your phone should start up. If it is stuck in a boot loop, immediately put back in download mode and flash to stock. Link available here to stock files:
http://forum.xda-developers.com/showthread.php?t=1409634
and, try to figure out what you did wrong while compiling and try again!
Good job you have finished!
Step 10: The future and your new phone!
I would like to include more android kernel mods and stuff in the future but, wanted to get this out there to get people familiar with the android compiling process. I want this guide to be something people reference as they start to develop, by using the methods here along with kernel and U.I mods on the platform being implemented in the future. My ultimate goal is to at least know I helped at least one person get into android development so, if I helped you please leave a reply or say thanks. If anyone has ideas to add to the post, please pm me.
Have fun developing!
I'll take this...
and this...
One more...
Awesome!!!! I have been patiently awaiting this. THANK YOU SOOO MUCH!!!!
Sent from my SPH-D710 using xda premium
Thank you! Definitely will be referring to this during my free time. Can't wait to see what else gets added
Sent from my SPH-D710 using xda premium
Awesome!! tyvm!!
Wow... How awesome is this? I have been looking for something like this for a long time. I will be watching for updates. Thank you very much.
all u need now is a video tutorial
My man!!! Thank you for this!!
Sent from this phone
Awesome guide, I am looking forward to giving this a go soon. Just curious but how difficult is the process to include a custom recovery?
dtm_stretch said:
Awesome guide, I am looking forward to giving this a go soon. Just curious but how difficult is the process to include a custom recovery?
Click to expand...
Click to collapse
It all depends if you wanted to flash a already made custom recovery (cwm) then we would just haved to root the kernel then build and flash the recovery. If you were to make a fully custom recovery with custom functions made by you then it could get a little more tricky but, I am guessing you just mean flashing a custom recovery like cwm. Which is not terribly hard but, not neccesary easy eather depending on how hard it is to obtain root.
I might update the guide in the future. Showing how to do something like this but, I have a few more ideas for the guide before I include this.
You nailed it, I was curious about adding root and CWM(or a variation of it). I am more than content with figuring out what you have posted so far.
Thank you so much. This is absolutely great!
Sent from my SPH-D710 using XDA App
Awesome guide. Thank u so much for this. Hope for many more.
Sent from my Nexus S 4G using xda premium
Very awesome thanks for the share!!
Sent from my SPH-D710 using XDA App
Great Guide!
Very informative and well put, Thank You.
thank you very much for this! Gives me something new to try out. Thanks again!!!
Sent from my SPH-D710 using Tapatalk
Thanks for this effort. Unfortunately I don't have anything to contribute to your work. I consider myself a budding developer and have been diligently teaching myself to program with the use of some great texts over the last 2 weeks. While I have much to learn this guide and hopefully any additions you make will help me dive nose first into Android development like I've been hoping to for the last couple of years.
I hope you continue to add more into this guide and it becomes a great resource for others like me.
Great Job!
obelisk79 said:
Thanks for this effort. Unfortunately I don't have anything to contribute to your work. I consider myself a budding developer and have been diligently teaching myself to program with the use of some great texts over the last 2 weeks. While I have much to learn this guide and hopefully any additions you make will help me dive nose first into Android development like I've been hoping to for the last couple of years.
I hope you continue to add more into this guide and it becomes a great resource for others like me.
Great Job!
Click to expand...
Click to collapse
I hope it helps!
Overview
This is my second GUIDE post. My first GUIDE explains how to compile the kernel from source. Follow that guide first before reading on. You can find it here: http://forum.xda-developers.com/showthread.php?t=1516051
This guide will get you started on how to modify your file-system (ROM). I will go over some examples of changing your phone functionality to show you how things are done. After that it is up to you to change what ever you want.
This first post will contain general information and requirements. The 2nd post will have guides on how to modify the initramfs. The 3rd post will have example modifications of the ROM.
These instructions work for both T989 (T-Mobile) and I727 (AT&T) variants of the Samsung Galaxy S2 phones. I do not take any credit for these instructions. I am just gathering what I learned from other posts and articles. I have listed the references below.
Requirements
The following instructions assumes you are using Ubuntu. I am using version 10.10.
ADB Setup
Android Debug Bridge (ADB) is a command line tool that allows you to command your phone via a USB connection. This requires you to turn on "USB debugging" on your phone. To do this on your phone goto Settings->Applications->Development. Make sure "USB debugging" is checked.
To get ADB and setup the USB driver go here: http://esausilva.com/2010/05/13/setting-up-adbusb-drivers-for-android-devices-in-linux-ubuntu/
Java Setup
In order to change the functionality of your Android system you will sometimes need to edit the jar/apk files. To do this you will need the Java Development Kit (JDK). Install the JDK with this:
Code:
sudo apt-get install sun-java6-jdk
Still Under Construction
How To Modify Initramfs
If you ever flash any of the custom ROM released by the great developers found in this forum you should be familiar with the terms "insecure kernel" and "init.d support." With an "insecure kernel" you can easily root your phone by bypassing the security through using ADB. With "init.d support" you can make automatic scripts to run at bootup. Both of these features require you to modify your initramfs.
In this post I will show you how to modify your initramfs to enable these features and in the future I will add more examples here.
If you do not know what a initramfs is or where to get it then you need to read my first GUIDE here: http://forum.xda-developers.com/showthread.php?t=1516051
Insecure Kernel
An insecure kernel allows ADB as root and commands like "adb remount" to enable write mode for your system. To make an insecure kernel it is a matter of modify the file "default.prop" in your initramfs. Open up this file with a text editor and change the line
Code:
ro.secure=1
to
Code:
ro.secure=0
After you make the change recompile the kernel with the modified initramfs using my kernel building guide. If you search in the forums there are guides on how to use your insecure kernel to root your phone.
Change Boot Image
In the initramfs folder you will find "initlogo.rle" This is the logo that appears during boot. You can replace this with a custom image as long as the format is compatible. When I have time, I will post the programs to convert from "rle->raw->png" and back "png->raw->rle" (search for "from565" and "to565").
Init.d Support
TODO (Sorry I have been really busy lately. I'll post this as soon as I get some free time. Basically you need to modify "init.rc" in your initramfs directory)
Introduction to Modifying ROM
In this post I will explain how to modify your stock ROM to include features like "volume wake-up" and more.
Getting your stock ROM
First we need to get a copy of your ROM. I found the easiest way to get this is to flash ClockworkMod and doing a backup of your phone to an external sd card. Connect your phone to your computer and grab the file called "system.ext4.tar" in your backup folder. This is your filesystem or ROM. Extract it to a working folder.
If you do not have ClockworkMod, please search the forums for instructions. ClockworkMod is a replacement for your default "Recovery" partition.
System folders
Here is a walkthrough of the folder structure of the system:
app\ - folder containing your apps (apk)
bin\ - folder containing binary executables
csc\ - consumer software customization, contains the software packages specific to your carrier
etc\ - system configurations
fonts\ - fonts folder
framework\ - folder containing android core files
lib\ - folder containing libraries (like .dll in windows) and modules (drivers)
media\ - folder containing media files
T9DB\ - looks like it contains keyboard layouts
tts\ - text to speech
usr\ - user settings
vsc\ - ????
xbin\ - alternate folder to hold binary executables???
build.prop - android settings file
CSCFiles.txt - carrier specific configuration file???
CSCVersion.txt - Configuration version???
SW_Configuration.xml - List of version numbers
The folders with question marks I am not sure of. If you know please post them here and I will update the list.
Understanding Odex and Deodex
Before getting your hands dirty, you need to know what odex and deodex means. Here is a good article on the issue: http://www.talkandroid.com/guides/m...n-the-all-inclusive-explanation/#.T1f7BN7Km9V
Remove Apps
All of your stock apps are in the "app" directory. You can remove all the bloat apps from this directory if you like.
Change Android Settings
You can modify "build.prop" in you system directory to change different Android settings. You can read more about the different settings here:
http://www.android-hilfe.de/root-ha...imus-3d/145592-tweaks-scripts-collection.html
Volume Wakeup
This volume wakeup guide was adapted from these two guides: http://www.jordanhotmann.com/2011/08/how-to-change-default-orientation-of.html and http://forum.xda-developers.com/showthread.php?p=18226553
In this guide I will show you how to modify your system files to allow waking up your phone with the volume keys instead of just the power key. This will prolong the life of the power key.
Requirements
This mod requires an edit to a jar file (Java archived file), specifically the file "/system/framework/android.policy.jar." To do this we need some tools that will disassemble the jar or apk file so we can edit the source code. After that we need to assemble it back and overwrite the original file(s).
Download the 4 files located here (smali-1.3.2.jar, baksmali-1.3.2.jar, baksmali, and smali): http://code.google.com/p/smali/downloads/list
Put the 4 files in a folder which is included in your path. For example, I placed the files in my home directory under a folder called bin (~/bin). Then in my ".bashrc" file I have this call at the end of the script:
PATH=~/bin:$PATH
This allows you to make calls to "baksmali" and "smali" in any directory.
Still Under Construction
To Do List
- How to make ClockworkMod flashable ROM. I have no clue how to do this. I always modify my ROM in place using "root explorer" and/or ABD, so I have never needed to flash a new one. It would be great if someone can post a guide on how to do this. Thanks.
*Update - See post #7. Thanks to one5
- How to modify cpu voltage and frequency
- How to change boot animation
My Request
I am still very new to all of this and android in general. I learned everything I posted here from reading other guides and articles on the internet and this forum. Through my searching, I found that the information on this stuff are there but very spread out making it very hard to find. This is why I started these guides to help out noobs like me. A central place where all the T989 (and I727, didn't forget you guys) noobs can come to learn.
I thank anyone for thanking me but my goal is to not get my "thank you" meter up. All I ask is if you learn something in regards to android development, please post up a GUIDE so everyone can benefit.
Also, my last request is if you see any errors or optimization to my steps please leave a note and I will change them.
Thank you.
References
http://esausilva.com/2010/05/13/setting-up-adbusb-drivers-for-android-devices-in-linux-ubuntu/
http://www.jordanhotmann.com/2011/08/how-to-change-default-orientation-of.html
http://www.neopeek.com/viewtopic.php?f=24&t=6801
http://www.talkandroid.com/guides/m...n-the-all-inclusive-explanation/#.T1a_ed7Km9V
http://www.freeyourandroid.com/guide/de-odexing_with_baksmali
Can't wait to read the full guide.
Sent from my SGH-T989 via Satanic Unicorns.
+1 can't wait for full guide.
Maybe i can do my own roms. If i trust myself.. Lol
cheers!!
How to make ClockworkMod flashable ROM
To make a flashable ROM:
Make a folder to dump the files from your phone, for example a folder named ROM on your desktop.
From CMD: adb pull / C:\Users\(yourusername)\Desktop\ROM
Download AutoUpdateCreator
Open CreateUpdateZip.exe and follow the directions.
Your ROM will be added to the generatedZips folder.
one5,
Thanks for the guide on making the ROM flashable.
one5 said:
To make a flashable ROM:
Make a folder to dump the files from your phone, for example a folder named ROM on your desktop.
From CMD: adb pull / C:\Users\(yourusername)\Desktop\ROM
Download AutoUpdateCreator
Open CreateUpdateZip.exe and follow the directions.
Your ROM will be added to the generatedZips folder.
Click to expand...
Click to collapse
thanks for the link. this is way nicer than doing it by hand.
Reserved
Sent from my SGH-T989 using xda premium
how could I easily make my phones kernel inscure... Semms like it should be easy but not sure... Im on ICS so befor I go doing all this just wanted to know if their was a easy way to get adb up and running again. without making a whole kernel I guess is what I want to know
Rushing said:
how could I easily make my phones kernel inscure... Semms like it should be easy but not sure... Im on ICS so befor I go doing all this just wanted to know if their was a easy way to get adb up and running again. without making a whole kernel I guess is what I want to know
Click to expand...
Click to collapse
If your on the stock T-mobile ICS update, just root it with the oden method. If your on one of the roms on here than you probably are already insecure.
---------- Post added at 11:34 AM ---------- Previous post was at 11:07 AM ----------
one5 said:
To make a flashable ROM:
Make a folder to dump the files from your phone, for example a folder named ROM on your desktop.
From CMD: adb pull / C:\Users\(yourusername)\Desktop\ROM
Download AutoUpdateCreator
Open CreateUpdateZip.exe and follow the directions.
Your ROM will be added to the generatedZips folder.
Click to expand...
Click to collapse
Works like a charm!! However, that command will also pull all data off int. & ext. sd storage. I was meaning to back them up any ways lol. Thanks to you and op!
Rushing said:
how could I easily make my phones kernel inscure... Semms like it should be easy but not sure... Im on ICS so befor I go doing all this just wanted to know if their was a easy way to get adb up and running again. without making a whole kernel I guess is what I want to know
Click to expand...
Click to collapse
Here is a guide if your stock. http://forum.xda-developers.com/showthread.php?p=23343879
This ROM AOSP, or TW, o wait, its neither.
It doesn't have to be a rom to be under development, loopy. Guides are very helpful to the community.
No offense loopdog just saying...
Sent from my SGH-T989 using xda premium
Rushing said:
It doesn't have to be a rom to be under development, loopy. Guides are very helpful to the community.
No offense loopdog just saying...
Sent from my SGH-T989 using xda premium
Click to expand...
Click to collapse
Guides are indeed very helpful and this looks like a good one. Correct me if I'm wrong, but I was under the impression that any thread in development had to involve coding. It had to provide something that can be flashed or installed. IMHO, guides and tutorials; in general. Questions, of course Q&A. Apps and themes, pretty self explainetary. Development, all that is done thru coding involving Android and is flashable
Agreed my friend but I've noticed that on many forums guides may go under development and even get stickied in some cases. Just saying the scope is just a bit more wide than flashables and code oriented posts... TheRe should be a section just for guides I think that would make it really easy to find guides anyway... Peace threadjack over .
Sent from my SGH-T989 using xda premium
15 toggles
Any known Guides to implement 15 Toggles to a TW Rom ??? can't find one for our device !!!
Thanks
Tornade69 said:
Any known Guides to implement 15 Toggles to a TW Rom ??? can't find one for our device !!!
Thanks
Click to expand...
Click to collapse
Yes. well what do you mean exactly by implement?
Sent from my SGH-T989 using xda premium
Rushing said:
Yes. well what do you mean exactly by implement?
Sent from my SGH-T989 using xda premium
Click to expand...
Click to collapse
I want to add this mod in my own custom rom but can't find how to do it...
Sent from my SGH-T989 using xda app-developers app
Hi, here is tool for making flashable zip in few commands! No need root! In few commands your rom is ready for sharing or flashing with CMW ! You can dump any rom! NOTE: all your rom changes which is in your phone will be included in rom.zip (for example busybox, su...etc)! Tool will be usefull for dumping next Sony stock rom, but allso all rom is supported! Enjoy!
For no rooted devices:
adb push romgen /data/local/tmp/
adb shell
cd /data/local/tmp
chmod 755 romgen
Code:
./romgen C6903 honami /dev/block/platform/msm_sdcc.1/by-name/system /dev/block/platform/msm_sdcc.1/byname/userdata /dev/block/platform/msm_sdcc.1/by-name/cache [COLOR="Red"]/dev/null[/COLOR] /storage/removable/sdcard1/rom.zip
/dev/null must be used as a boot partition since no rooted devices have no access to these device!
For rooted devices:
adb push romgen /data/local/tmp/
adb shell
su
cd /data/local/tmp
chmod 755 romgen
Code:
./romgen C6903 honami /dev/block/platform/msm_sdcc.1/by-name/system /dev/block/platform/msm_sdcc.1/byname/userdata /dev/block/platform/msm_sdcc.1/by-name/cache [COLOR="Red"]/dev/block/platform/msm_sdcc.1/by-name/boot[/COLOR] /storage/removable/sdcard1/rom.zip
Download tool:
http://forum.xda-developers.com/showthread.php?t=2533585
munjeni said:
Hi, here is tool for making flashable zip
Click to expand...
Click to collapse
is it stable already?
I mean the Meta-INF generated completely?
thanks gonna try this if the tool complete
nelikp said:
is it stable already?
I mean the Meta-INF generated completely?
thanks gonna try this if the tool complete
Click to expand...
Click to collapse
Yesterday I noticed bug There is bug when folder is empty or when symlink is inside folder but there no other files! So when tool generate zip these folder is missing in zip but updater-script have line "set perm to folder" which not exist, so installation aborting because a missing folder Will try to solve them soon! Do not flash generated zip since you will get boot loop (you can only if you add missing folders to zip)! I will make new version soon, hope clean!
New version is out! Hope all bugs solved! Bug is solved by creating empty file .placeholder to all existing folders so zip for sure now have all mised folders, than placeholders is auto removed at finish of the installation
I am hope eerything is right now, but I will test and let you know if generated zip is installable with sucess!
New working version finaly, sorry! Now I tested tool and found another 2 bugs, first one was "zip fail to store file which contain special characters like *()...etc", and seccond one was wrong format of the permssions in updater-scrip. Now all things is solved, I have tested tool, tried to install generated zip, installed zip, and bum. Everything is ok now, enjoy!
Hi mate...nice to see you here
If I'm correct, you have some great work and kernels in your biography
Sent from my C6903 using Tapatalk
funky0308 said:
Hi mate...nice to see you here
If I'm correct, you have some great work and kernels in your biography
Sent from my C6903 using Tapatalk
Click to expand...
Click to collapse
No space left in my signature :laugh: One oftopic question, anyone have info when Sony will anounce 4.4.2 ?
munjeni said:
No space left in my signature :laugh: One oftopic question, anyone have info when Sony will anounce 4.4.2 ?
Click to expand...
Click to collapse
Yeah...I'm using Tapatalk so can't see...but, as I said, I know who you are and we will be very happy if you join Z1 development :thumbup:
It should be out (most likely) in a first few days on april (let just hope it won't be first April and we.won't be April's fools )
Some of Z2 apk files are already out and if that guy who already post few things managed to post Z2 system dump - we could have something even earlier
Sent from my C6903 using Tapatalk
I am allready in development on Z1 Compact but curently I have problem in semc_colorizable (going to start working in MIUI), so first of all I need to solve all things related to the recompiling framework-res and full removal of the semc_generic_uxp... by now have no luck Did you have luck on framework-res on Z1 using apktool ? I have managed to recompile/compile them by now, but boot loop on colorizable things since my modificaions on framework / framework-res is not complete .
munjeni said:
I am allready in development on Z1 Compact but curently I have problem in semc_colorizable (going to start working in MIUI), so first of all I need to solve all things related to the recompiling framework-res and full removal of the semc_generic_uxp... by now have no luck Did you have luck on framework-res on Z1 using apktool ? I have managed to recompile/compile them by now, but boot loop on colorizable things since my modificaions on framework / framework-res is not complete .
Click to expand...
Click to collapse
@munjeni bro, you can try out the Advanced APKtool by @BDFreak bro for the framework-res issues. It's compatible with z1 Compact.
http://forum.xda-developers.com/showthread.php?t=2639400
@munjeni, nice tool, but I need help. I get this error in CWM log every time I try to install my zip; "l:Can't partition non mmcblk device: /devices/msm_sdcc.2/mmc_host
What do I need to do to the updater script? I tried replacing the mount system bit with;
run_program("/sbin/busybox", "mount", "/system");
package_extract_dir("system", "/system");
but I had no luck.
Probably you pased bad command to the romgen since you say /devices/msm_sdcc.2/mmc_host !!! Double check first post before you going to generate zip! Or probably you using an bad cwm which have bad fstab! If no of these 2 simptoms is true than for sure you have modified updater-script by your own way which probably is not ok! Hope this help.
munjeni said:
Probably you pased bad command to the romgen since you say /devices/msm_sdcc.2/mmc_host !!! Double check first post before you going to generate zip! Or probably you using an bad cwm which have bad fstab! If no of these 2 simptoms is true than for sure you have modified updater-script by your own way which probably is not ok! Hope this help.
Click to expand...
Click to collapse
Okay so it's the bad fstab, thanks man
Can anyone make rom for my karbon a39 HD
AUTOSCRIPTS
Hi Everybody!
That's my first work for the Moto X Play so I hope You'll appreciate it.
It's simply an automatic flash script, just in case You won't have to remember all these shi*ty codes.
It's personally created and tested by me, so I'm sure it works, but I don't assume any responsibility for damaged devices.
!!REMEMBER! I DON'T PROVIDE ANY STOCK ROM!!
My script (as you'll see) works both with Ubuntu (and derivates), Fedora (yes, both with dnf and yum installer) and Windows.
If you have any question/suggest feel free to post it here and if I helped you feel free (too) to hit thank and maybe buy me a coca (I don't really like alchoholic drinks).
HOW TO1) Download it from MY GITHUB PAGE.
2) Put on your Home Folder (or anywhere You want).
3) Unzip it (You'll see a file called flash.sh, for linux users, and some files for windows users).
4) Open a terminal and cd the folder where you have saved flash.sh.
5) Copy the code below (for Linux) or simply double-click on flash.bat (for Windows. It doesn't request administrator privilegies).
Code:
$ chmod +x flash.sh
$ ./flash.sh
6) Follow the instructions on screen.
7) Enjoy.
BUGSAll the Scripts is tested personally by me before any upload so I'm sure they'll work. Anyway if you encounter any problems please post it in bug's tab HERE!
VERSIONSAutoScript Linux
Fixed Wipe and NoWipe options.
Added support for ArchLinux (both with pacman and yaourt)
BugFix
NEW:
1) Added sperimental support for Gentoo linux and other OS's with emerge (I haven't Gentoo so I don't assure it works as expected!)
2) One script for rule 'em all!
AutoScript Windows
Added a script for logcat.
Cleaned the codes on flash.bat.
Added ability to exit the script on any question simply press K.
Fix some bugs and clean code.
Added ability to relock the device
BugFix
F.A.Q.1) Why it doesn't work with device XYZ?
It's because my AutoScripts is developed only for Moto X Play.
2) The Scripts have only formatted my device. You piece of sh*t!!1!11!
Have you downloaded the ROM and put the files on the Flash's folder? You can find it HERE.
3) When do you upload an update?
I'll do it as soon as possible. Don't hassle me with that unuseful quest please.
4) Thank man, your work is fantastic!
Please hit thank button, don't write a post for that.
5) I've read your work and the codes is fuc*ing ugly and long.
I know. If you have a suggestion please tell me and I'll see if i can do anything.
XDA:DevDB Information
AutoScripts, ROM for the Moto X Play
Contributors
ScardracS
ROM OS Version: 7.x Nougat
ROM Kernel: Linux 3.10.x
Based On: Stock
Version Information
Status: Stable
Stable Release Date: 2016-06-19
Created 2016-06-19
Last Updated 2019-03-05
Reserved
Is this rooted? And bloats removed.?
Sent from my XT1562 using Tapatalk
manan001 said:
Is this rooted? And bloats removed.?
Sent from my XT1562 using Tapatalk
Click to expand...
Click to collapse
It's just a helper script to install stock
manan001 said:
Is this rooted? And bloats removed.?
Sent from my XT1562 using Tapatalk
Click to expand...
Click to collapse
No, It isn't. I could ask to @GtrCraft if I can use his rooted version.
ScardracS said:
No, It isn't. I could ask to @GtrCraft if I can use his rooted version.
Click to expand...
Click to collapse
Yeah go ahead, also can you make a script without the userdata wipe and tell us which stock version is present in the zip (variant, build number etc.)?
Sent from my XT1562 using XDA Labs
Windows script
I made a Windows version of the script.
Copy the Firmware into the folder
Run flash file and follow the instructions.
Download: https://drive.google.com/file/d/0B4ryT_zqtaHWWFhldFpfNFBjVDA/view?usp=sharing
It's possible to add support to dual sim xt..63 br?
Thx! Nice idea.
GtrCraft said:
Yeah go ahead, also can you make a script without the userdata wipe and tell us which stock version is present in the zip (variant, build number etc.)?
Sent from my XT1562 using XDA Labs
Click to expand...
Click to collapse
Thanks. The build is based on MPD24.107-52 for the XT1562
axxx007xxxz said:
I made a Windows version of the script.
Copy the Firmware into the folder
Run flash file and follow the instructions.
Download: https://drive.google.com/file/d/0B4ryT_zqtaHWWFhldFpfNFBjVDA/view?usp=sharing
Click to expand...
Click to collapse
Thanks man! I'll add it to my main script (with proper credits )
I'm uploading the V2 with the script for Windows, thanks to @axxx007xxxz, (I haven't tested if it work 'cause I haven't Windows).
In the script for linux I've also added the possibility to delete (or not) userdata
P.S.
For XT1563 and rooted version expect tomorrow 'cause I'm too busy, sorry
i need unlock the bootloader?
Sorry for my loong absence but I was really busy on the real world. I'm working on a few bugs of my AutoScript (I was missing some codes). I hope @axxx007xxxz will update his Script for Windows soon.
Tried this yesterday, works like a charm, I used the windows script.
@ismatab this script is for people who have unlocked their phone and want to return to stock build. If you have your bootloader locked you can't flash it
Uploading new build. Now you don't need to put your device in bootloader mode before plug it to the PC 'cause the script do it automatically
[ROM][STOCK][SCRIPT] Stock Rom with AutoFlash Script
ScardracS said:
Uploading new build. Now you don't need to put your device in bootloader mode before plug it to the PC 'cause the script do it automatically
Click to expand...
Click to collapse
I'll upload Windows script soon, sorry for the delay.
So right now i have CM13 installed, but would like to go back to stock. I am rooted and have an european version (dual Sim) I am on windows.
If i use the windows script, i just have to follow the instruction ? do i need to download a stock rom first ? is (/XT1562_LUX_RETEU_6.0.1_MPD24.107-52_cid7) the good one ?
It doesnt matter if i loose my data. i would prefer to actually as i want a fresh install.
Will i keep my phone rooted ?
Thanks for the tool and your answers !
Cheers
QuentinPdeB said:
So right now i have CM13 installed, but would like to go back to stock. I am rooted and have an european version (dual Sim) I am on windows.
If i use the windows script, i just have to follow the instruction ? do i need to download a stock rom first ? is (/XT1562_LUX_RETEU_6.0.1_MPD24.107-52_cid7) the good one ?
It doesnt matter if i loose my data. i would prefer to actually as i want a fresh install.
Will i keep my phone rooted ?
Thanks for the tool and your answers !
Cheers
Click to expand...
Click to collapse
If you open Download's tab you'll se a file called Stock vX.zip. It contains the stock rom plus the file script.bat. You have simply to double click on it.
For the ROM 6 .0.1 it most be added the system.img_sparsechunk.9 line to the script, also the Stock vX.zip dont say if is compatible with XT1563, the Windows.zip in other comments said this, also, in Windows Zip the ADB is missing.
Anyway, thaks for the script
SplashInjectorsplash injector is a tool created by me based on the work done by @makers_mark . it is a basic command line interface but it gets the job done. it supports all oneplus devices so far except the oneplus x :crying: i can add support once someone gets me the logo.bin file from that device. The tool is pretty simple its based on the work here https://forum.xda-developers.com/oneplus-3/themes/mod-splash-screen-image-injector-t3441999 this is where i got this all from. i know it can be kinda hacky and only supports unix systems i think you can get it working by using git bash on windows. In its current state it can decode and encode all oneplus logo.bins (Including the OnePlus 5!) it can also pack flashable zips for you automatically. all you need to do is run the decode option edit the file you want in the output folder. Then you can run the encode command and it will pack it all back up. Then package it with the package command. Once again major credit to @makers_mark he did all the leg work. i just made it a little more friendly. lmk if there is any issues you find
Telegram: @ethanbanker if you need anything contact me here.
Now lets get to it
follow the instructions here located here
https://github.com/ethanbanker2428/SplashInjector
Updates:
1.52: Ok guys im not a windows expert...i barely use it so the tool does support windows now but it cant package files. it does give you all the tools and files you need to package one tho. you can use a tool such as this https://forum.xda-developers.com/android/software-hacking/tool-6-feb-android-flashable-zip-t3551772 this update also includes a completely revamped system. lmk about any bugs you find. for windows you need to install and use GIT bash. i also added a update function to easily update the tool. its simple but it works. heres my git again for you guys https://github.com/ethanbanker2428/SplashInjector
WARNING I AM NOT RESPONSIBLE FOR ANYTHING YOU DO. DO THIS AT YOUR OWN RISK
Excellent...... working great for OP5
Thanks
biohaz55 said:
Excellent...... working great for OP5
Thanks
Click to expand...
Click to collapse
Hi, I can't get it working on Windows. If I send you a PNG will you make me a zip?
Thanks! Here is the Windows binary and src for logoinjectorv1.52.
makers_mark said:
Thanks! Here is the Windows binary and src for logoinjectorv1.52.
Click to expand...
Click to collapse
thanks im gonna rebuild with the newest version and probably work on a windows version tonight :good:
Can you make a captain America one?
can u please make flashable zip i cannot get the method to flash . can u guide me please @bobglaus
freakzapster said:
can u please make flashable zip i cannot get the method to flash . can u guide me please @bobglaus
Click to expand...
Click to collapse
did u use option 3? package? that should make one after you edit the files
bobglaus said:
did u use option 3? package? that should make one after you edit the files
Click to expand...
Click to collapse
actually i dont know to edit files i am new to this thats why i am not understanding
freakzapster said:
actually i dont know to edit files i am new to this thats why i am not understanding
Click to expand...
Click to collapse
click the help option. i feel it explains it pretty well. to edit the png in the output folder use gimp or photoshop
Ok just an update windows support is finished and in the tool now. I'll push probably tomorrow it works and packs and unpacks fine just getting issues with packaging the zips. It corrupts them. Im gonna switch to 7zip and see if that works then I'll push
bobglaus said:
Ok just an update windows support is finished and in the tool now. I'll push probably tomorrow it works and packs and unpacks fine just getting issues with packaging the zips. It corrupts them. Im gonna switch to 7zip and see if that works then I'll push
Click to expand...
Click to collapse
Other option is to move the files to the output folder and ask the user to manually zip them, it's available on windows right click menu.
---------
I have a question, what's the BGR option for? I thought it was for op5 display but it only change the color of the pngs, so I switched it for RGB and now my logo looks good.
I share my mod, original was taken from CUSTOM BOOT LOGO PACK FOR OnePlus3.
badtzo said:
Other option is to move the files to the output folder and ask the user to manually zip them, it's available on windows right click menu.
---------
I have a question, what's the BGR option for? I thought it was for op5 display but it only change the color of the pngs, so I switched it for RGB and now my logo looks good.
I share my mod, original was taken from CUSTOM BOOT LOGO PACK FOR OnePlus3.
Click to expand...
Click to collapse
bgr does **** up the colors a bit or fixes it. its one of those things where you use it if you need it and you will know if you need it.
also update to anyone else that update will have to wait. im a perfectionist and im revamping the whole thing to alot cleaner code. windows should work tho and the oneplus x will be supported hopefully too
Update: Ok guys im not a windows expert...i barely use it so the tool does support windows now but it cant package files. it does give you all the tools and files you need to package one tho. you can use a tool such as this https://forum.xda-developers.com/android/software-hacking/tool-6-feb-android-flashable-zip-t3551772 this update also includes a completely revamped system. lmk about any bugs you find. for windows you need to install and use GIT bash. i also added a update function to easily update the tool. its simple but it works. heres my git again for you guys https://github.com/ethanbanker2428/SplashInjector
bobglaus said:
Update: Ok guys im not a windows expert...i barely use it so the tool does support windows now but it cant package files. it does give you all the tools and files you need to package one tho. you can use a tool such as this https://forum.xda-developers.com/android/software-hacking/tool-6-feb-android-flashable-zip-t3551772 this update also includes a completely revamped system. lmk about any bugs you find. for windows you need to install and use GIT bash. i also added a update function to easily update the tool. its simple but it works. heres my git again for you guys https://github.com/ethanbanker2428/SplashInjector
Click to expand...
Click to collapse
Hi, I created the zip but it won't flash in twrp. Is there a compression method to use? Using 7zip.
Bigs1985 said:
Hi, I created the zip but it won't flash in twrp. Is there a compression method to use? Using 7zip.
Click to expand...
Click to collapse
use the tool i linked in the post you qouted
bobglaus said:
use the tool i linked in the post you qouted
Click to expand...
Click to collapse
I thought it didn't package the zips correctly? Is that fixed?
Bigs1985 said:
I thought it didn't package the zips correctly? Is that fixed?
Click to expand...
Click to collapse
No this one https://forum.xda-developers.com/android/software-hacking/tool-6-feb-android-flashable-zip-t3551772
how can i pull LOGO.bin from my oneplus 5?
when i run:
adb shell dd if=/dev/block/sde17 of=/sdcard/partition/LOGO.bin
Click to expand...
Click to collapse
i get this error message:
dd: /dev/block/sde17: Permission denied
Click to expand...
Click to collapse
Please help
Thanks
spicemaster said:
how can i pull LOGO.bin from my oneplus 5?
when i run:
i get this error message:
Please help
Thanks
Click to expand...
Click to collapse
Of course you need root,The right command is
adb shell su -c dd if xxxx