Related
I rooted my cool with one click method and tried to flashed the latest tiamat kernel for SD card capabilities got as far as the and remount step and got to the step where you adb push the kernels system files and it didn't work it said file location doesn't exist now my WiFi doesn't work I'm sorry this is just one big sentence but I need help.
Sent from my PC36100 using XDA Premium App
Do you mean it can't find the files on your computer? Easiest fix is to copy all files in every subdirectory of the ZIP archive into one folder and run the adb commands from there.
My cmd is c:/users/(nam
Sent from my PC36100 using XDA Premium App
E)/ and I put the kernels system files there and adb pushed the file name and location and it still didn't work
Sent from my PC36100 using XDA Premium App
does your cmd window look anything like the attached file?
put single qoutes around your C:\ path like this 'C:\path\to\kernel\file'
When starting to type out a file name in the command prompt, pressing the TAB key will try to fill in the title. It ensures that you've got quotes around everything too if needed.
Like if I wanted to list the C:\Program Files folder, I'd type "dir C:\progr" and hit tab after going that far. It'll fill in what it can. Just keep typing to help it along as you press tab.
I copied and pasted what the instructions said about the kernel my CMD directory isn't c temp its c users (computer name)
Sent from my PC36100 using XDA Premium App
blackroseimmortal09 said:
I copied and pasted what the instructions said about the kernel my CMD directory isn't c temp its c users (computer name)
Sent from my PC36100 using XDA Premium App
Click to expand...
Click to collapse
OK, let's try it this way. I packed you all the files of the Tiamat 1.3.1 into an archive that does not create subdirectories. Please follow the steps below:
connect the Xoom
create a directory on C: called "temp"
extract all files from the archive found here to c:\temp\
Start cmd (command prompt)
Simply copy and paste the next steps, line by line:
Code:
cd C:\temp\
adb shell
mkdir /data/media/sdcard2
exit
adb reboot bootloader
(wait until Motorola logo shows)
Code:
fastboot flash boot boot.img
fastboot reboot
(wait for reboot)
Code:
adb remount
adb push bcm4329.ko /system/lib/modules/bcm4329.ko
adb push tun.ko /system/lib/modules/tun.ko
adb push scsi_wait_scan.ko /system/lib/modules/scsi_wait_scan.ko
adb push cifs.ko /system/lib/modules/cifs.ko
adb push vold.fstab /system/etc/vold.fstab
adb reboot
Please let me know if that works for ya!
Never mind root my xoom got updated with the latest tiamat kernel with SD card support thanks anyways
Sent from my PC36100 using XDA Premium App
First off, all credit goes to nubecoder. Original post:
[Bash] android_bash: Bash, cross-compiled and modified for the android platform.
Introduction...
Most (All) modern Linux distributions utilize bash (Bourne Again SHell) rather than sh (Bourne SHell). Android, by default uses sh. Bash has numerous advantages over sh, sush as tab completion and history support.
Some ROM developers include bash in their ROMs by default. It makes adb, terminal, and scripted commands much easier and more powerful/flexible. I noticed that Sidekick 4G ROMs don't come with bash, hence this thread.
How to Install BASH...
Simpy flash this zip through Clockworkmod recovery: (if ORANGE, check mounts. Not sure if neccessary, but it doesn't hurt)
android_bash-4.1.11(2)_installer-SK4G.zip
Then load your preffered terminal emulator application, type bash, press enter, and there you go.
What's the difference between the SK4G version, and the original Epic 4G version?
- Modified device/product check in updater-script to "SGH-T839"
- Modified $PATH variable in /data/local/.profile to "/sbin:/system/bin:/system/xbin:/data/local/tmp:/bin"
- Modified $PATH variable in /system/etc/bash.bashrc to "/sbin:/system/bin:/system/xbin:/data/local/tmp:/bin"
- [Personal preference] Add alias su='su -c bash' to /data/local/.bash_aliases
- [Personal preference] Modified $PS1 to PS1="\[$txtgrn\]\w $ \[\e[m\]"
- [Personal preference] Modified root $PS1 to PS1="\[$txtred\]\w # \[\e[m\]"
- [Personal preference] Modified location of .bash_history from /sdcard/.bash_history to /data/local/.bash_history
Click to expand...
Click to collapse
As any experienced bash user should know, if you want to revert/modify my personal preferences, just modify "/data/local/.bashrc", "/data/local/.bash_aliases", or "/system/etc/bash.bashrc" to your liking.
Extras...
mntsystem Make /system partition read-only or read-write. Usage:
# mntsystem [ro|rw|status]
Unzip mntsystem.zip, copy mntsystem to /system/bin, chmod 744 /system/bin/mntsystem
Click to expand...
Click to collapse
defaultshell Replace sh with bash, or revert. Usage:
# defaultshell [bash|sh|current]
Unzip defaultshell.zip, copy defaultshell to /system/bin, chmod 744 /system/bin/defaultshell
Click to expand...
Click to collapse
More extras (bash scripts) to come! Please post you own as well!!
PS: I was confused on where I should post this (General vs. Development), figured it isn't "technically" ROM related, so I posted in General. Please move if necessary. Thanks.
mntsystem extra added!
Awesome
Oh man, I have been missing BASH so much, thank you! Now I will finally have a fully-functioning terminal on my phone. I can't wait to tab-complete (seriously).
One question about installation, though. I'm supposed to "install zip from sdcard" in CWM, correct? Will this replace anything I already have, or just copy over the files for BASH? Does it leave sh as the default shell?
nteleky said:
I'm supposed to "install zip from sdcard" in CWM, correct? Will this replace anything I already have, or just copy over the files for BASH? Does it leave sh as the default shell?
Click to expand...
Click to collapse
Yes, flash through Clockworkmod. And, no it will not replace any files already on your phone (unless you already have bash, or some bash configuration files on your phone). Yes, it will leave sh as the default shell.
I can make a bash script to "replace" sh with bash, and post in the Extras if you want. When I say "replace", I mean backup /system/bin/sh, then symlink bash to /system/bin/sh. Therefore any time you try to execute a script through sh, it actually is executed by bash.
Although, for your information bash is/should-be fully backwards compatible with any sh script. I say should be, because:
Bash (Unix shell) - Wikipedia said:
The vast majority of Bourne shell scripts can be executed by Bash without modification, with the exception of Bourne shell scripts stumbling into fringe syntax behavior interpreted differently in Bash or attempting to run a system command matching a newer Bash builtin, etc.
Click to expand...
Click to collapse
Very rare chance though.
I personally keep sh as the default though, android system level scripts are designed for sh (its works), I just use bash for any script that I decide run (through a shell, or adb). So, I start connectbot with a profile that runs "/system/bin/bash" automatically at start.
New extra!
defaultshell Replace sh with bash, or revert. Usage:
# defaultshell [bash|sh|current]
Unzip defaultshell.zip, copy defaultshell to /system/bin, chmod 744 /system/bin/defaultshell
Click to expand...
Click to collapse
Hey
I'm a noob and I'm curious if this could run on my galaxy s 2 running stock?
The bash binary (with supporting files) should work on any rooted android device, however the flashable zip file I posted WILL ONLY WORK on the sidekick 4g.
If you want to install bash, you can download the flashable zip, extract it and copy the the files to their correct location (Quick, easy solution), or you can modify the update-script to work with your phone. Be sure the mounts are the same! Then alter the device check. (More difficult at first, but results in easily reuseable and distributable, flashable zip)
Sent from my SGH-T839 using XDA App
hey after I go to the emulator and type bash.. what should it read?
Sent from my SGH-T839 using XDA App
Should be a green prompt that reads:
/ #
If you cd to, for example, to /sdcard, then the prompt will read:
/sdcard #
If you enter su, then the prompt will become red and use a $ instead of #.
If your prompt says sh-4.1 # then you invoked bash as sh, ie you symlinked (or renamed) bash to sh (usually /system/bin/sh).
Sent from my SGH-T839 using XDA App
well when i enter bash this comes up... 0localhost:// $
and the last two are green ..
What terminal emulator are you using?
Sent from my SGH-T839 using XDA App
The free one.. lol. Idle I just typed emulator and that's the first one in the list ..
Sent from my SGH-T839 using XDA App
I'm not sure why its doing that. Although, all it means is that bash is being accessed from localhost, aka from the phone itself (not an outside source). It doesn't mean anything is wrong.
If it bothers you, you can use connectbot (free on the market, also includes an ssh client) instead. Just create a profile and make sure its local. Then it will work as expected.
Sent from my SGH-T839 using XDA App
Ok. Thanks .. ill let u know if it works
Sent from my SGH-T839 using XDA App
Well it work. Lol.. thank you
Sent from my SGH-T839 using XDA App
bc54 said:
The bash binary (with supporting files) should work on any rooted android device, however the flashable zip file I posted WILL ONLY WORK on the sidekick 4g.
If you want to install bash, you can download the flashable zip, extract it and copy the the files to their correct location (Quick, easy solution), or you can modify the update-script to work with your phone. Be sure the mounts are the same! Then alter the device check. (More difficult at first, but results in easily reuseable and distributable, flashable zip)
Sent from my SGH-T839 using XDA App
Click to expand...
Click to collapse
I tried doing this for my Droid 3, by changing updater-script file to the values I get from my terminal emulator, like so:
Code:
assert(getprop("ro.product.device") == "cdma_solana" || getprop("ro.build.product") == "solana_vzw");
But CWM tells me it fails because "(bad)". Do you have to somehow change the update-binary file as well?
no i didnt change the update-binary file.
however i think the source of you problem is the "/dev/" names the sidekick uses for its partitions.
for example the sidekick "/dev/" name for the partition mounted to "/system" is "/dev/block/stl9"
the droid 3 most likely uses a different "/dev" naming scheme.
find out the "/dev/" name for "/system" on the droid 3.
in the update-script file, replace "/dev/blocl/stl9" with the corresponding name for the droid 3.
find out the "/dev/" name for the "/data" partition on the droid 3.
in the update-script file, replace "/dev/blocl/stl10" with the corresponding name for the droid 3.
then rezip it, and flash. if that fails, then you could just manually copy the files to their respective location using adb, a terminal emulator app, or even a file manager.
This Guide is for NEWBIES so that they should have atleast some knowledge about creating Flashable ZIPs
Before starting with the procedure Download these :
1. WinRar or 7zip
2. AndroidSigner or SignApk [LOOK IN ATTACHMENTS]
3. Edify Files [LOOK IN ATTACHMENTS]
Click to expand...
Click to collapse
OK , Now I assume you have downloaded all the required files. So, Lets Start
Making Zip:
1. Make a folder structure like this
-META-INF
--com
--google
--android
-system
--app(Or the directory/folder where you want to replace files)
2. After making the structure put your files in the system -> app(or Your Required Directory)
3. Place the EdifyFiles in META-INF -> com -> google -> android
4. Open WinRAR or 7Zip and make a zip of the directories META-INF and system
5. Now all you need is to sign your zip and then you are good to go
Click to expand...
Click to collapse
SIGNING ZIPS (Procedure 1)
1. Download and Install AndroidSigner
2. Drag and drop your zip file into it
3. Hit the Sign Button
4. Now a signed Zip will be created with following name
yourzip-signed.zip
5. Put it in sdcard and flash it from Recovery
Click to expand...
Click to collapse
SIGNING ZIPS (Procedure 2)[Make Sure You Have Java Run Time Environment installed (jre)]
1. Download SignAPK and extract it to C:\
2. If you have Java Run Time then OK , else download from FileHippo.com
3. Open Command Prompt
4. Type
cd c:\[Directory where you extracted SignApk]\SignApk
java -jar signapk.jar certificate.pem key.pk8 YourZIP.zip YorZIP-signed.zip
5. Now Look into the directory C:\[Directory where you extracted SignApk]\SignApk
6. There will be a ZIP named as YourZIP-signed.zip
7. Put it on sdcard and flash from recovery
Click to expand...
Click to collapse
If you are not clear about structure made above download DemoStructure.zip from attachments
I hope this will give you a little Knowledge. If any problem Please POST your prob.
Have FUN, Enjoy ; )
Here is a collection of some FlashableZIPs by me (blindndumb)
Resrved 4 future
Nice guide, but adb pushing, then chmod'ing the files to have the correct permissions is a billion times quicker and easier ;-).
zeekiz said:
Nice guide, but adb pushing, then chmod'ing the files to have the correct permissions is a billion times quicker and easier ;-).
Click to expand...
Click to collapse
If only we all found it that simple
Sent from my HTC Desire S using xda premium
dan-fish said:
If only we all found it that simple
Sent from my HTC Desire S using xda premium
Click to expand...
Click to collapse
adb push file.apk /system/app/
adb shell
cd /system/app/
chmod 644 file.apk
It really isn't that hard.
oh,thanks ,help me so much !
Thanks for the guide.
Do we need to zipalign such files or it is valid only for rom zips?
Sent from my HTC Desire S using XDA App
zeekiz said:
adb push file.apk /system/app/
adb shell
cd /system/app/
chmod 644 file.apk
It really isn't that hard.
Click to expand...
Click to collapse
You can set the permission with any root file explorer (r-x r-- r-- or like the permissions on some other file in the same folder)
Sent from my HTC Desire S using XDA App
i want to make a theme for my stock 2.3.6 DDKT3 thru UOT kitchen
will i be able to flash it thru stock recovery or i have to have CWM?
you will have to manually replace the apks in the output zip file you get from uot kitchen
I don't think stock recovery will work
Sent from my GT-S5670 using xda premium
i had once tried replacing framework-res.apk thru root explorer but then my mobile rebooted and wudnt start
i tried reflashing stock firmware but due to some prob in my comp it wudnt work
i had to give it for repairs then
any idea how to replace the apks safely??
abizerl123 said:
i had once tried replacing framework-res.apk thru root explorer but then my mobile rebooted and wudnt start
i tried reflashing stock firmware but due to some prob in my comp it wudnt work
i had to give it for repairs then
any idea how to replace the apks safely??
Click to expand...
Click to collapse
go to recovery connect your phone to computer mount /system and with adb push command, push previous framework-res.apk in /system/framwork/ and using adb shell set permissions to 0644
yep adb best way
adb rocks :thumbup::
Sent from my GT-S5670 using xda premium
haha i dont understand adb really well
any other method?
abizerl123 said:
haha i dont understand adb really well
any other method?
Click to expand...
Click to collapse
as you don't have CWM i think it's the only way! so here is step by step instruction:
1- copy your old (And healthy) framework-res.apk and adb files(two files that i attached to this post extract zip file ) in root of your C drive.
2- open command prompt program on your windows.
3- power on your phone and connect it to PC(make sure you already installed Gfit Drivers)
4- in command prompt type this commands:
Code:
cd c:
cd /
adb shell
wait to see # in command Prompt and type this:
Code:
mount -o rw,remount -t rfs /dev/stl12 /system
exit
adb push framework-res.apk /system/framework/
adb shell
chmod 0644 /system/framework/framework-res.apk
reboot
if you have disabled USB Debuging all of this things are useless
by old framework-res.apk do u mean the modified one?
if no where shall i keep the modified one?
and do u know any similar method to enable crt off animation?
thnx a lot man
abizerl123 said:
by old framework-res.apk do u mean the modified one?
if no where shall i keep the modified one?
and do u know any similar method to enable crt off animation?
thnx a lot man
Click to expand...
Click to collapse
i mean stock framework of your rom.
if you want modified framework you can try this:
1- copy adb files(two files that i attached to this post extract zip file ) in root of your C drive.
2- open command prompt program on your windows.
3- power on your phone and connect it to PC(make sure you already installed Gfit Drivers)
4- in command prompt type this commands:
Code:
cd c:
cd /
adb shell
wait to see # in command Prompt and type this:
Code:
mount -o rw,remount -t rfs /dev/stl12 /system
chmod 0644 /system/framework/framework-res.apk
reboot
see if it works or not.
i didnt get u
where shall i place the modified framework?
and can i use rajrocks' ics theme on my stock DDKT3 rom?
abizerl123 said:
i didnt get u
where shall i place the modified framework?
and can i use rajrocks' ics theme on my stock DDKT3 rom?
Click to expand...
Click to collapse
i don't know about rajrocks' ics theme .
but if you allready installed your modified framework just do what i said in second post. and if you don't know you have installed it or not , place modified framework on root of C: Hard drive in your PC and do what i said in my first post
and what about the systemUI.apk?
When i try opening adb through cmd i get an error saying AdbWinApi.dll is missing
oh sorry i foget about that
i attached that file to this post.
about systemUI.apk just replace it like framework... just change adresses...
and always keep orginal file just in case! maybe you did something wrong and end in bootloop
yeah thnx
and u have any idea of how to enable crt off animation?
thnx man
Hi guys,
I had some free time and decided to write this script specially for Terminal Emulator's users like me.
It's a simple script allows you to:
Backup
Restore backup
Flash
Reboot in any mode
Copy the script to /system/bin
recovery and /or kernel IMG files without the need to input so long codes again and again.
This script will make a new folder named Recovery-Kernel-Tools in your internal storage, including 3 more folders inside it:
Backups (max one backup for each partition, names are "case-sensitive")
Flash (but any recovery.img / boot.img to flash them, names are "case-sensitive")
Input (for future use)
Everything is self explanatory, when you execute this script for the first time, it will ask you to set your partitions, you can change them later at any time.
If it's useful for you and you need more options, feel free to suggest me.
Download link: ReKeTv1
After downloading, cd to installation folder and input:
Code:
su
sh ReKeTv1
If you're using Script Manager, just execute it as root.
Latest busybox is required.
Bassel Bakr said:
Hi guys,
I had some free time and decided to write this script specially for Terminal Emulator's users like me.
It's a simple script allows you to:
Backup
Restore backup
Flash
Reboot in any mode
Copy the script to /system/bin
recovery and /or kernel IMG files without the need to input so long codes again and again.
This script will make a new folder named Recovery-Kernel-Tools in your internal storage, including 3 more folders inside it:
Backups (max one backup for each partition, names are "case-sensitive")
Flash (but any recovery.img / boot.img to flash them, names are "case-sensitive")
Input (for future use)
Everything is self explanatory, when you execute this script for the first time, it will ask you to set your partitions, you can change them later at any time.
If it's useful for you and you need more options, feel free to suggest me.
Download link: ReKeTv1
After downloading, cd to installation folder and input:
Code:
su
sh ReKeTv1
If you're using Script Manager, just execute it as root.
Latest busybox is required.
Click to expand...
Click to collapse
There are three files in it...which 1 to download?
Sent from my GT-S7500 using Tapatalk 2
tandon.ayush said:
There are three files in it...which 1 to download?
Sent from my GT-S7500 using Tapatalk 2
Click to expand...
Click to collapse
ReKeTv1
Don't forget to leave some suggestions.
Bassel Bakr said:
ReKeTv1
Don't forget to leave some suggestions.
Click to expand...
Click to collapse
Tried with both terminal emulator and script manager
Got this error
" exec /system/bin/sh '/mnt/sdcard/download/ReKeTv1.txt'
# bin/sh '/mnt/sdcard/download/ReKeTv1.txt'
head: /mnt/sdcard/Recovery-Kernel-Tools/partitions: No such file or directory
tail: can't open '/mnt/sdcard/Recovery-Kernel-Tools/partitions': No such file or directory
tail: no files
Root access denied!
Please issue su command first"
Any solution?
Sent from my GT-S7500 using Tapatalk 2
tandon.ayush said:
Tried with both terminal emulator and script manager
Got this error
" exec /system/bin/sh '/mnt/sdcard/download/ReKeTv1.txt'
# bin/sh '/mnt/sdcard/download/ReKeTv1.txt'
head: /mnt/sdcard/Recovery-Kernel-Tools/partitions: No such file or directory
tail: can't open '/mnt/sdcard/Recovery-Kernel-Tools/partitions': No such file or directory
tail: no files
Root access denied!
Please issue su command first"
Any solution?
Sent from my GT-S7500 using Tapatalk 2
Click to expand...
Click to collapse
Run as root
Or in terminal emulator type
su
First
Bassel Bakr said:
Run as root
Or in terminal emulator type
su
First
Click to expand...
Click to collapse
Did both...still the same error
Any solution??
Sent from my GT-S7500 using Tapatalk 2
tandon.ayush said:
Did both...still the same error
Any solution??
Sent from my GT-S7500 using Tapatalk 2
Click to expand...
Click to collapse
In terminal emulator:
su
set -x
sh ReKeTv1 2> /sdcard/log1.txt
sh -n ReKeTv1 2> /sdcard/log2.txt
Then upload log1.txt & log2.txt files here.
Bassel Bakr said:
In terminal emulator:
su
set -x
sh ReKeTv1 2> /sdcard/log1.txt
sh -n ReKeTv1 2> /sdcard/log2.txt
Then upload log1.txt & log2.txt files here.
Click to expand...
Click to collapse
"No such file or directory"in both logs
Sent from my GT-S7500 using Tapatalk 2
tandon.ayush said:
"No such file or directory"in both logs
Sent from my GT-S7500 using Tapatalk 2
Click to expand...
Click to collapse
After set -x cd to installation directory then complete the code.