[DEV][LINUX] CM9 Build Script - Android Software/Hacking General [Developers Only]

Hey all,
First I would like to say this is not my work this is based off Nicandris's CM from scratch script (forum here).
This bash/sh script builds CM9 from source and is only to be used once the build environment and sources have been downloaded correctly. So far I have only tested this with my Galaxy Nexus on Mint 12 but it should work with other devices and on other distros.
Instructions:
1. Download the provided zip and extract it, then place "build.sh" in the "~/bin" directory (/home/user/bin).
2. Then open up "build.sh" using a text editor like gedit and edit the variables to suit your environment, EXAMPLE :
Code:
#Variables Start
#Enter Device Vendor Here eg "moto" or "samsung"
vendor="samsung"
#Enter Device Name Here eg "maguro" or "toro"
device="maguro"
#Enter Build Source Here (Usually "/home/user/android)"
source="/home/kstarz/android"
#Enter Folder Where You Want Builds To Be Stored eg "/home/user/Desktop/Builds"
build_location="/home/kstarz/Desktop/Builds"
#Enter Source For AndroidSDK eg "/home/user/androidsdk"
sdk_source="/home/kstarz/Programs/androidsdk"
#Enter Location Where The Build Will Be Sent To On Your Device
push_to_phone="/sdcard/Download"
#Enter Your Name/Nickname (For Modversion)
nick="kstars"
#Variables End
3. Then open up a terminal and give the file permission to be executed as a program:
Code:
chmod a+x ~/bin/build.sh
4. Close that terminal and open up a new one then enter the code below to start the script.
Code:
build.sh
The rest is up to you
Screenshot:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I have tried to make this as simple as possible for users out there but if you have any issues I will try and respond.[/SIZE]
Full credits go to:
*Cyanogenmod* & *teamdouche* - For creating CM
*Nicandris* For creating the base for this script.
Remember if I helped you in anyway please press the thanks button!

Changelog
14.05.2012 - v1.0
- Initial Release
17.05.2012 - v1.1
- Minor Bugfix

Related

[SCRIPT] Services.jar De/Compiler/Signer

This is a script I created for personal use which will work on a Mac using the Terminal.
Services.jar is responsible for theming your phone, for example how the battery status and notification bar works, and general things such as those.
This script allows you to easily:
1. Create a working directory with all required files included.
2. Allow you to drag and drop the services.jar file you want to modify into the terminal for ease of use.
3. Automatically decompile services.jar into your working directory
4. Open your working directory from the Terminal to allow you to make modifications/changes.
5. Automatically re-compile services.jar after edits have been made.
6. Option to sign services.jar so that it is flash ready for your Desire.
Setting up is no problem,
1. Download the attachment and extract it to your desktop.
2. Open up terminal and cd (change directory) to the folder, eg: cd ~/desktop/services-jar
3. Then simply type: ./menu
This will display the easy-to-use menu for navigation around the script shown below
Screenshot:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
NOTE: only for mac users.
CURRENTLY WORKING ON:
1. Automatic ripping of services.jar from a signed ROM. COMPLETE
2. De-compiling, editing, re-compiling and automatic signing of .apk files.
All requests are welcome
great hope we get an update for linux users soon.
inkredi said:
great hope we get an update for linux users soon.
Click to expand...
Click to collapse
I'm sure it can be done.
Updated: ability to extract file directly from a zipped ROM.

[MOD/PATCH] ZERG INIT - Universal init.d Patcher.

ZERG INIT​ZERG INIT - Universal init.d Patcher.​
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Basically init.d is folder contains some scripts those can automatically executed at boot time.
This system is a Linux Kernel’s feature.
But there are many stock ROMs are comes without init.d feature. These ROM's kernel hasn't init.d support. I also face this problem.
We could found many tweaks, Mods in XDA or outside that requires init.d.
So I was decided to write a program that could patch init.d. with some alternative methods.​
Features due to version 0.1:
1. You can execute scripts with any name.
2. You do not need to keep “00” like numbers before scripts name.
3. You can keep extension like “.sh” after scripts name.
4. Faster execution.
5. More powerful patch.
6. init.d related scripts file/folders auto permission fixing.
7. Full compatible with SuperSU flashable zip update (after or before).
How to:​
1. Download all the files in attachments
2. Install Terminal Emulator
3. Install BusyBox
4. Unpack "zerginit_v0.1_ansaryx.zip"
5. Keep the binary file to your sdcard
6. Open Terminal Emulator
7. Type​
8. See the on screen statuses
9. Now Reboot your device
10. Check log file in "/data/AlienoidMod/logs/init.d_status.log" if init.d working or not.​
Comment and let me know how you feel about this... Please give me a thanks ​

[TOOL] [LINUX/MAC] Nexus Tools 2.8 (Featured by XDA)

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Nexus Tools is an installer for the Android debug/development command-line tools ADB (Android Device Bridge) and Fastboot for Mac OS X and Linux. The script does not need to be downloaded, simply copy and paste this command into the terminal and run it to install ADB/Fastboot:
Code:
bash <(curl -s https://raw.githubusercontent.com/corbindavenport/nexus-tools/master/install.sh)
and this command to un-install Nexus Tools:
Code:
bash <(curl -s https://raw.githubusercontent.com/corbindavenport/nexus-tools/master/uninstall.sh)
Nexus Tools requires sudo privileges to install/uninstall the adb and fastboot tools to /usr/local/bin, so they can be run without typing the full directory. Nexus Tools is licensed under the GPLv3 license, and the source code is at the GitHub project below.
If you have a problem with Nexus Tools, leave a reply below or as an issue on the GitHub project!
GitHub Project
XDA News Article
Umm can we get a link so we can look at it first. Not just gonna blindly run your script.
edit: nevermind, found it. https://github.com/corbindavenport/nexus-tools/blob/master/install.sh
New in Nexus Tools 2.7 [9-11-15]:
Updated ADB binary for Mac and x86 Linux to 1.0.32 platform-tools 23rc_2 (should work with Android M preview)
New in Nexus Tools 2.8:
(Hopefully) fixed all problems on Mac OS X 10.11 El Capitan
Changed installation directory to /usr/local/bin/
Removed Mac OS X 10.11 warnings
Now downloads binaries over HTTPS

[TOOL] mktool unpack repack boot & recovery images

This is a tool I made for unpacking, repacking, and loki patching the android boot and recovery images.
mktool is very simple to use with an interactive menu. No commands needed. You simply place all your images in the input folder and choose from the menu options.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
To use mktool you simply run the following command in a terminal from the mktool root directory:
Code:
java -jar mktool.jar
You can download mktool from the project's page:
https://techstop.github.io/mktool/
Note:
mktool has been tested on ubuntu & xubuntu
Must have java 8 or higher installed
New update to version 3.0
Hello everyone. Sorry it took so long to update this tool. I took a break from android development for a couple years.
This is a major update to mktool. It is now more universal with the exception of a few obscure devices. It's also more simplified now. You simply place all you're images in the input folder then choose from the menu options. Unpacked images will be in the "extracted" folder and repacked images in the "output" folder.
You can also now check for updates to mktool right from within the menu. I also added a desktop shortcut option for quick access which you can place anywhere, like a folder or a launcher or on your desktop.
I considered removing the loki patch option since that exploit was long patched in android, but I decided to leave it for the folks still having some dev fun with those older devices.
Hope you guys like the update. Happy modding.
New Update! v4.0
Added ramdisk lzma compression detection.
Re-written from bash to java for a proper GUI
Currently this is for linux only. If you'd like to also make it available for Mac and Windows, I've made this open source.

Build Prop Tweaker [Huge UPDATE][Toolkit]

Hey guys I am back with another Program, this one is very little and quite good enough to use I though, Its our faithful build prop tweaker. Which can actually edits build prop + add all over above 15 useful tweaks. Check that out.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Have a Look at HERE
How to Use it?
Very simple, download this little tool and place it any where on your pc and Open it. Connect your Phone to Pc and make sure ADB drivers are installed so that "adb device" will list your device. Once done, go to Edit> Pull file from Device,, this will pull your phone's build prop to the textbox and then you can start tweaking. For placing it again back to system go to Edit > Push to Device or you can create a recovery flashable zip too...!!!!
Features
*Small in size (1.7mb)
*Gui Interface
*Automatically detects if your device is connected
*Automatically detects su i.e if your phone is rooted
*Pull your Phone's build prop as current project
*Export your build prop or copy it to /system
*Make a Recovery flashable build prop (no signing zip)
*Over 20 delicious tweaks (check that out)
*All others, check that out
Requriements
*Adb drivers
*Net Framework greater than 4.5.1
*A little 2 mb space on PC
Credits
Android Lib .Net Library (here)
Tweak Post here
All Views Downloads And Source HERE :
Want Updates, Request a Feature Or Any Support Contact Me HERE
download link is dead
I found new URL by google.
sorry.

Categories

Resources