Hi,
I start this thread for all mac user.
Purpose it's to list existing tools for our OS to root, flash, deodex, deblur and so on Defy phone.
Some shell scripts may be used by linux users.
Multi functions tools
1) MWB_Deodexer shell scripts (compatible macos and linux) I've been writing.
At beginning I wrote scripts to deodex rom, and step by step I added more functions.
Some bug could be present and I'm not a professional dev !!! so be indulgent with me.
#########################################
# MWB_Deodexer by MisterWB #
# Scripts to manage Motorola Defy phone #
# Version 0.1 - may 2011 #
#########################################
OS detected is 'Darwin'
0. Exit
1. Get apk from phone with adb (/system/app)
2. Get jar from phone with adb (/system/framework)
3. Get apk and jar from a nandroid (unyaffs system.img)
4. Deoxed apk
5. Deoxed jar
6. Deoxed all
7. Create 'signed-update.zip' file
8. Push 'signed-update.zip' file to phone
9. Flash sbf rom
10. Get Root
11. Install bootmenu+clockworkmod
12. Deblur Motorola phone
Choice [0..12] ?
Click to expand...
Click to collapse
Item 11. and 12. are still in developpment.
How to use it ?
1. Extract zip file on your computer (ie on Desktop)
2. Go to MWB_Deodexer directory (ie 'cd ~/Desktop/MWB_Deodexer').
3. If it's first time you install MWB_Deodexer, then type 'sh install.sh' (don't take care if you have some warning message)
4. Next type './menu' or 'sh menu' to launch main menu
2) QtADB is window app based on adb.it lets you to copy,remove etc your files and apps from PC and Android Phone
This app is under developing so be tolerant for any bug...
visit QtADB website: http://qtadb.wordpress.com/
xda Post: http://forum.xda-developers.com/showthread.php?t=683223
How to flash SBF rom
1) Use sbf_flash (last version is compatible linux and macos)
Home Page: http://blog.opticaldelusion.org/search/label/sbf_flash
Last version: http://dl.opticaldelusion.org/sbf_flash
sbf_flash support has been added for the Defy, Charm and possibly the Atrix.
sbf_flash [options] [sbf file]
-f - force; attempt to continue on error
-v - verbose output (of CDT)
-r - read CDT information from the phone
-x - extract sbf file
-d - download cg from phone
--cgname [file] - upload/download cgname
matches any cgname shown with -r
optional file arg for contents
Click to expand...
Click to collapse
On my mac I faced issue with sbf_flash, scripts freeze on " >> waiting for phone " message.
It seems USB driver behavior varie with Mac model
I'm looking for any help about.
2) Use RSD Lite 4.9, but it's an win32 exe !!! Fortunaly virtualization is here
I sucessfuly launched Windows on my Mac with Virtualbox and flash rom with RSD Lite.
How to depack/repack an SBF rom
To depack we can use sbf_flash:
Code:
sbf_flash -x <rom_name.sbf> (thanks to dedraks)
To repack I don't know tools to do that. Maybe sbf_flash could help.
Purpose it's to create Fixed SBF.
As previous §, we can use win32 depacker into Virtualbox as sbfrecalc (split and repack sbf file) or motoandroidDepacker! (thanks iaio72)
SBF-Recalc Win32: http://www.motorolafans.com/forums/...81-sbf-recalc-v1-2-8-sbf-recalc-1.2.8.exe.zip
SBF-Recalc Linux: http://www.motorolafans.com/forums/...f-recalc-v1-2-8-sbf-recalc-1.2.8.-lin.bin.zip
MotoAndroidDepacker: http://www.filecrop.com/37983754/index.html
How to Root Defy
Use MWB_Deodexer.
How extract a nandroid backup
With unyaffs
Usage: unyaffs <filename.img> , ie unyaffs system.img
How to Deodex a rom and create a signed-update.zip file
Use MWB_Deodexer.
Hope this post 'll help a lot of xda members. Thanks to be indulgent with me, I don't consider me like a professional dev !
PS: Thanks to iaio72, dedraks for helping
How to depack an SBF rom
I don't know tools to do that. Maybe sbf_flash could help.
Purpose it's to create Fixed SBF.
for sbf file (rom...)
in vindows virtualization you can use sbfrecalc (split and repack sbf file) or motoandroidDepacker!
Thanks iaio72,
I update first post.
To depack just make the command bellow:
Code:
sbf_flash -x ROM.sbf
This guide had been on the Thunderbolt forum for quite some time and I decided it was time to share with the rest of the community
Having reviewed almost every other option I can safely and honestly say this is the most simplified, thorough, and customizable install available since its original launch. I will gladly retract this statement when it becomes false, but until then...
Installing Ubuntu onto Thunderbolt/Droid/Droid2/Etc:
Create a folder on the sdcard named ext2ubuntu, which is /sdcard/ext2ubuntu when listed in terminal or adb
Required files for Ubuntu install:
Ubuntu.sh http://db.tt/KgDNlMtb
Custom Packages for AutoConfig:
Coming soon
You will also want to download either an ubuntu image or archive. The major difference is that the image must be the same size as your ubuntu installation, so they are larger downloads, or need to be resized before you use them.
Ubuntu Prebuilt tar and img downloads:
(img: Extract only ubuntu.img and place in /sdcard/ext2ubuntu)
(tar: Rename, if desired, and put archive in /sdcard/ext2ubuntu)
10.04: http://android-cruft.googlecode.com/files/lucid-on-android-0.1.tar
(This image DOES need to be resized, see next post)
10.10 img: http://www.megaupload.com/?d=56AT71WD
(This image file does NOT need to be resized)
11.04 tar: http://db.tt/fuzoy8Te
Backtrack img: http://bit.ly/kJweA9
Borrowed from http://forum.xda-developers.com/showthread.php?t=1146255
(This image file does NOT need to be resized)
How to build your own Ubuntu Image:
http://androlinux.com/android-ubuntu-development/how-to-build-chroot-arm-ubuntu-images-for-android/
Notice:
The ubuntu mount folder is symlinked to /system/sd-ext allowing access to it there also.
First off you should have a running ubuntu install on your computer or at least a live cd running to create the ext2 partition.
Use gparted to add a 4gb (or whatever size you want) ext2 partition to your sdcard. I did this while the phone was mounted in disk drive mode, so you dont need to take the card out.
Ubuntu: Get gparted in synaptics or in terminal enter:
Code:
sudo apt-get install gparted
Widows: *Paragon Partition Manager*
If you do not need to partition, skip this step.
Use adb to run /sdcard/ext2ubuntu/ubuntu.sh
Code:
adb shell
su
sh /sdcard/ext2ubuntu/ubuntu.sh
Or from terminal (only supported on some ROMs)
Code:
su
bash /sdcard/ext2ubuntu/ubuntu.sh
All required scripts will download and install themselves automatically. Currently only ubuntu.sh and the chosen ubuntu image need to be placed in /sdcard/ext2ubuntu for proper install. Scripts include an autoupdate feature that will also keep them current.
Follow the instructions and select the appropriate options for your system configuration and download choices.
You can now open terminal and type "bootubuntu" to test install
A new Sdcard Direct option was added allowing user to replace the installed scripts with a unified "ubuntu" command that runs the scripts directly from the sdcard. This option was offered due to the frequency of updates to allow the user to simply replace the files in /sdcard/ext2ubuntu with newer versions that would run without any further steps.
If you get a localhost prompt, you are in but still need a couple things to move past command line.
Here is where we part from borrowed and modified instructions that recommend lxde and ice and all the dinky handheld ubuntu shells, and move to the Thunderbolt method.
Update vs Restore scripts: Update will base what scripts are put in system on the ones currently there, while restore determines what scripts are currently available on the sdcard.
For automatic installation of ubuntu applications, you will want to enter these commands next:
Code:
su
backubuntu
4
Choose your options
To view your ubuntu desktop, you will want a vnc viewer for android. I use real vnc, but android-vnc-viewer is free and has all the same features (i just liked the layout of realvnc)
The address for ubuntu is 127.0.0.1
The port is 5901
The password is the tightvncserver one you set.
i recommend making a folder named android in "your mounted ubuntu folder"/home/ for your personal files since /root is your local folder, but causes permission issues.
From your new ubuntu you can use synaptics and download eclipse there, but it can also be downloaded from the localhost prompt using "apt-get install eclipse" I also recommend downloading the android-sdk. To run the sdk from the localhost prompt, simply cd to the android-sdk directory and issue the command:
Code:
tools/android update sdk -u -s
and if you want to specify the downloads performed add
Code:
-t [specific items such as platform, platform-tool]
If you need help with any commands you can add
Code:
-h
to your existing command
The htc kitchen can be downloaded from ubuntu using the same instructions found: http://forum.xda-developers.com/showthread.php?t=633246
After it is installed, you have the option to launch this kitchen either from inside your ubuntu install, or from the localhost prompt, which avoids having to run vnc to use it.
A compiler toolchain is available http://www.codesourcery.com/sgpp/lite/arm by choosing download the latest release. I use gnu/linux even though it seems to be eabi included in the android source, but I have never used it to be sure. I have been told this one is a lot easier to use anyway.
I recommend backing up the ext2 once everything is done. This can be done by (entering "exit" at the localhost prompt and then) entering "backubuntu" in terminal.
backubuntu can also update newly downloaded scripts without having to use root explorer or worry about permissions. Just put any new versions in your sdcard/ubuntu folder and select the update option.
This replaces the ubuntu2.img with your backup so you dont have to "apt-get" everything over again. This will also save your tightvnc password so make sure you remember it.
Sent from my ADR6400L using Tapatalk
Screenshots:
https://picasaweb.google.com/110545...authkey=Gv1sRgCLDd48n2oMWzpAE&feat=directlink
References:
Personal insanity and the inability to accept whats already available
http://code.google.com/p/android-cruft/wiki/LucidWithAndroid
http://androlinux.com/android-ubuntu-development/how-to-install-ubuntu-on-android/
http://nexusonehacks.net/nexus-one-hacks/how-to-install-ubuntu-on-your-android/
http://forum.cyanogenmod.com/topic/15702-ubuntu-on-your-g2-anyone/
http://forum.xda-developers.com/showthread.php?t=633246
http://www.codesourcery.com/sgpp/lite/arm
http://forum.xda-developers.com/showthread.php?t=987740
http://androidclone.com/forums/showthread.php?tid=23
Sent from my ADR6400L using Tapatalk
[Linux/Mac] ADB & Fastboot Install Script
I have created a script to be used to install ADB and Fastboot on a Mac or a Linux computer. Simply run the script in Terminal or a similar application and it will copy ADB and Fastboot to /usr/local/bin/
Also, as of Version 3.1 this also installs the JDK for Linux-based systems.
While advanced users probably won't need this, it would be good for new users who need help using the ADB and Fastboot commands.
You can see the source at GitHub.
Download
If you have any problems or errors, let me know.
Changelog:
20171202
Moved entirely to GitHub
On Debian-based Linux, installs the adb and fastboot packages
Other systems, the binaries are pulled from Google's website
Executables are given +x permissions
Version 5.0
Hosted on GitHub and Google Code
Uses latest adb and fastboot (as of April 3, 2014)
Install to /usr/local/bin/
Version 4.1
Uses cp rather than mv
Hosted on GitHub again
Team BlueRidge project
Version 4.0
Now installs adb and fastboot to /usr/bin/ which is a more appropriate directory for the files.
Includes Readme now!
Version 3.1
Added JDK Install for Linux
Version 3
Created separate scripts for Linux & Mac
Updated uninstall script
Version 2.1.1
Fixed errors in installer
Version 2.1
More code efficient.
Better comments in script.
Version 2
Combined installer scripts into one Universal
Updated Uninstall.sh to remove udev rules
Version 1.1
Added udev rules for Linux
Version 1
Initial release
Linux
Didn't work on linux, I suggest making a seperate script for linux, I believe the problem is where it detects linux. It gets sudo but nothing more. I ran each command by itself under linux and it worked. Thanks.
shootind5nukes said:
Didn't work on linux, I suggest making a seperate script for linux, I believe the problem is where it detects linux. It gets sudo but nothing more. I ran each command by itself under linux and it worked. Thanks.
Click to expand...
Click to collapse
Thanks! I'll fix that and post an update soon!
JDK is now installed on Linux systems!
Now hosted on Google Code rather than GitHub.
Now installs to /usr/bin/, which is a more appropriate directory as these files are not required for normal system booting or are required for the general functions of your operating system.
i know this thread is old but i need some help.
my devices are not showing up after running the script.
i used adb devices and ./adb devices
boneskid1 said:
i know this thread is old but i need some help.
my devices are not showing up after running the script.
i used adb devices and ./adb devices
Click to expand...
Click to collapse
Does it say that ADB is not found or your devices?
Try enabling ADB (USB Debugging) on your device if it says no devices were found.
Gingerbread: Settings>Applications>Development>USB Debugging
Ice Cream Sandwich: Settings>Developer options>Android debugging
Thanks!!!! This worked perfectly. Using Ubuntu 11.10.
romuloxiii said:
Thanks!!!! This worked perfectly. Using Ubuntu 11.10.
Click to expand...
Click to collapse
I'm happy I could help! Don't forget to click "Thanks" if you liked it!
If you have any issues in the future with it, please feel free to let me know!
Good news!!! This is now a Team BlueRidge project and is on Team BlueRidge's GitHub
since tar.gz files are linux that means I download the zip file on my mac right? sorry if the question is obvious
prflash3 said:
since tar.gz files are linux that means I download the zip file on my mac right? sorry if the question is obvious
Click to expand...
Click to collapse
Download whichever for whichever platform. It's the script inside that you use that matters.
Trying to run the script on OSX, but when I am prompted to enter my password I can't type anything. Please help.
Ditto ul49, being prompted for a password, please advise
Simply type your account password. It won't look like anything is being typed but it is. This is how the "sudo" command works. It is for security.
really glad i found this.
i run "sh "sh script name" and i get this error
ADB-Install-Linux.sh: 5: ADB-Install-Linux.sh: Syntax error: newline unexpected
not sure if it's installed or what
thanks for making this set of scripts and if u could advise me on that error id be grateful.
---------- Post added at 05:46 PM ---------- Previous post was at 05:44 PM ----------
crazy
apt-get install android-tools-fastboot
and
apt-get install android-tools-adb
worked
Just released the first update in two years. Sorry to leave this project unmaintained. The files are now hosted by Team BlueRidge as Google Code no longer supports downloads.
First, thank you very much for putting this together for fellow users. While I'm not the most savy of guys I thought I might just share my experience while installing this ADB + Fastboot package on my MacBook Pro (mid 2012) running OS X Mavericks 10.9.3 in the hopes that somebody might benefit from it as well.
So here it goes:
I tried running the installation script found in "Androidv5.zip" which up until now is the latest version (I think). The script failed to install:
"This will install ADB and Fastboot on your computer.
Root Permissions required. Please type your password.
Password:
Changed directory to /Users/User/Downloads/Androidv5
Moving ADB
cp: /usr/local/bin/adb: No such file or directory
ADB Moved to /usr/local/bin/adb
moving Fastboot
cp: /usr/local/bin/fastboot: No such file or directory
Fastboot moved to /usr/local/bin/fastboot
You may now run Android Debug Bridge and Fastboot commands
Have a nice day."
So I figured I'd open the script file and run each command manually but they would still not work. I then decided to open the target directory
from terminal and it couldn't find it either, so I openned the /usr/ directory to find where the /bin/ directory was... and I found it at | /usr/bin | instead of | /usr/local/bin |.
I ran the commands in the script again manually one by one with the target directory set to | /usr/bin | and then closed terminal and reopened. After that I tried running "adb devices" and the output was "permission denied".
I then applied a "chmod 775 /usr/bin/adb" "chmod 775 /usr/bin/fastboot", closed & reopened terminal and voilà it worked!
Again I'm not a savy guy... there might probably be a better way to do this or perhaps I didn't run the install script as it was supposed to but anyway I decided to let you guys know how it went just in case it proves useful to somebody else....
Then again thanks a lot for sharing this! I finally have ADB + Fastboot on my Mac without having to nag about downloading the Android SDK. :laugh: :good:
Can anyone suggest anything for this problem please? I get the error 'command not found' when I try to execute the toolkit.sh script on Lubuntu 13.10
I can't post this in the proper thread as it's a developer thread.
The original thread is here:
http://forum.xda-developers.com/showthread.php?t=2240029
I followed the instructions on this post:
http://forum.xda-developers.com/showpost.php?p=46155577&postcount=1843
Here are the exact steps I did:
1. Installed Lubuntu 13.10 fresh install to a NEC Versa ONE laptop
2. In LXTerminal:
sudo su
sudo apt-get install android-tools-fastboot android-tools-adb
3. Restarted laptop
4. Extracted Acer Iconia Toolkit v0.8.0 zip file to 'iconia' folder on desktop
5. In LXTerminal:
sudo su
cd Desktop/iconia
chmod 777 toolkit.sh
toolkit.sh
Then I get the error 'toolkit.sh: command not found'
I've tried the following:
1. Checked that Python is installed. In Synaptic Package Manager it looks like there are loads of Python packages installed as default
2. Copied the 'iconia' folder into /bin using the PCManFM file manager and tried to execute the script but get the same error
3. Copied the toolkit.sh file to toolkit2.sh, edited it and put in the word 'guff' then executed it in terminal. The error stayed the same so it's not the script file?
I'm not really a Linux user so at this point I'm a bit stuck.
Cheers.
[A] Found a solution
I used this solution in another distro (Ubuntu 12.04.3) but it should work in Lubuntu
1. Extracted the acer_iconia_toolkit_v0.8.0.zip to the desktop
2. Run Terminal and type 'gksudo nautilus' to get a GUI file manager with root rights
3. Copy the extracted folder from the Desktop to the 'bin' folder (navigate backwards in the file manager)
4. Open the /bin/folder_you_copied, right click on the toolkit.sh file and choose Open
5. At the prompt 'Do you want to run 'toolkit.sh', or display its contents?' choose 'Run in Terminal'
6. Follow the on screen prompts
The tablet is now rooted
MIUI_Boatware_Remover_NO_ROOT
I am not responsible for any damage or malfunction of your device.
REQUIREMENTS
Windows 10 or Linux
Python 3.x
CMD(Windows), PowerShell(Windows) or Terminal(Linux)
INFO
This app removes some apps of your choice from the MIUI rom
SUPPORTED DEVICES
All MIUI devices also not rooted
INSTRUCTIONS
FOR WINDOWS
Enable ADB Debug on your smartphone (Developer Settings)
Install Python3 from the official website: https://www.python.org/
Open the cmd and start the program by typing <dir python.exe> <dir MIUI_Boatware_Remover_NO_ROOT.py>. remember to also write python.exe and MIUI_Boatware_Remover_NO_ROOT.py. ES. C:\python\python.exe C:\Users\<name of your user>\Download\MIUI_Boatware_Remover_NO_ROOT.py
Follow the instructions displayed in the program
OR LINUX
Enabl OEM Unlock and ADB Debug on your smartphone (Developer Settings)
Open the terminal and type sudo apt install python3 to install Python3
Now type python3 <dir file MIUI_Boatware_Remover_NO_ROOT.py> remember to also write MIUI_Boatware_Remover_NO_ROOT.py
Follow the instructions displayed in the program
GitHub: FabioFabRob7/MIUI_Boatware_Remover_NO_ROOT (github.com)
Thank you @FabioFabRob7
I appreciate your effort.
Can I simply run the python script from linux as I don't have windows?
Are all those dll and exe files really necessary or can I simply delete those? I'm only interested in the debloater script itself.
You can download all the zip via github web or git clone in terminal, then delete all the exe file with file manager or command rm (remove) via terminal
you can also copy the code when view the file .py on github and use gedit and save a new file .py on your desktop