hey!
im developing an app but its a secret what it is about so i cant tell u to mouch
anyways, im needing help with the code.
Q2?
its very similar to the xRecovery installer for the x10, like when u press 'install' button it copys some files to the system folder, how can i do so?
ex: i want to copy derp.sh to /sdcard/derp.sh and the run the 'derp.sh' file all this from the installer.
Q2?
is it possible to send adb commands from the installer to the phone like "adb shell" or run sh files from the installer?
Q3?
is it possile to add a line of text to 'hw_config' file in 'modules' folder?
BTW im not a expert developer so yeah.....
Ch33rs
Moved to proper forum
benji.berg said:
hey!
im developing an app but its a secret what it is about so i cant tell u to mouch
anyways, im needing help with the code.
Q2?
its very similar to the xRecovery installer for the x10, like when u press 'install' button it copys some files to the system folder, how can i do so?
ex: i want to copy derp.sh to /sdcard/derp.sh and the run the 'derp.sh' file all this from the installer.
Q2?
is it possible to send adb commands from the installer to the phone like "adb shell" or run sh files from the installer?
Q3?
is it possile to add a line of text to 'hw_config' file in 'modules' folder?
BTW im not a expert developer so yeah.....
Ch33rs
Click to expand...
Click to collapse
A1]
#mount system in RW
cp <filelocation>/derp.sh /sdcard/derp.sh
chmod 777 /sdcard/derp.sh
su -c /sdcard/derp.sh
A2]
#mount system in RW
chmod 777 <filelocation>/programname.sh
su -c <filelocation>/programname.sh
A3]
#mount system in RW
echo "#code to add" >> /system/etc/hw_config.sh
DooMLoRD said:
A1]
#mount system in RW
cp <filelocation>/derp.sh /sdcard/derp.sh
chmod 777 /sdcard/derp.sh
su -c /sdcard/derp.sh
A2]
#mount system in RW
chmod 777 <filelocation>/programname.sh
su -c <filelocation>/programname.sh
A3]
#mount system in RW
echo "#code to add" >> /system/etc/hw_config.sh
Click to expand...
Click to collapse
And all this should i paste in an .sh file ?
Related
i'm totally new to this so please bare with me.
have a HTC HERO
model: T-mobile G2 Touch
Firmware 1.5
Baseband
63.18.55.06u_6.35.04.25
Kernal 2.6.27-a5504199
Buil 1.76.110.6 146733 cl#47214 release-keys
Software 1.0.0.A6288
i downloaded android-sdk_r04-windows.zip
& followed the SDK vid setup: http://theunlockr.com/2009/10/06/how-to-set-up-adb-usb-drivers-for-android-devices/
i've got my device attached & the serial No has come up
now after entering this command > adb push asroot2 /data/local/ > i get an error as listed below ? help please what have i done wrong .
C:\AndroidSDK\tools>adb push asroot2 /data/local/
cannot start 'asroot2' : No such file or directory
C:\AndroidSDK\tools>
C:\AndroidSDK\tools>adb push asroot2 /data/local/
cannot start 'asroot2' : No such file or directory
C:\AndroidSDK\tools>adb shell chmod 0755 /data/local/asroot2
Unable to chmod /data/local/asroot2: No such file or directory
C:\AndroidSDK\tools>adb shell
$ /data/local/asroot2 /system/bin/sh
/data/local/asroot2 /system/bin/sh
/data/local/asroot2: not found
$ mount -o remount,rw -t yaffs2 /dev/block/mtbblock3 /system
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
mount: Operation not permitted
$ cat sh > su
cat sh > su
cannot create su: read-only file system
$chmod 4775 su
chmod 4775 su
Unable to chmod su: No such file or directory
$
anyone with some help it 11:30PM here i'm hoping to get this done before i go to work @ 5AM
what your computer is trying to tell you is that it can not find the file "asroot2". make sure it is in the same directory where you try to execute the command, or give it an absolute path like this:
C:\AndroidSDK\tools>adb push c:\whatever\asroot2 /data/local/
kendong2 said:
what your computer is trying to tell you is that it can not find the file "asroot2". make sure it is in the same directory where you try to execute the command, or give it an absolute path like this:
C:\AndroidSDK\tools>adb push c:\whatever\asroot2 /data/local/
Click to expand...
Click to collapse
ok thanks
i'll have another go
mind telling us the result?
all done
after chmod 4775 su (then hit enter)
do i do anything else to save ? or just unplug the USB all done ?
kendong2 said:
mind telling us the result?
Click to expand...
Click to collapse
it helps if i do this
1. Download the following file and then unzip
it.
AsRoot2
2. Take the unzipped file and save it into the Tools folder of your AndroidSDK.
after chmod 4775 su (then hit enter)
do i do anything else to save ? or just unplug the USB all done ?
how to obtain asroot2
hi i was wondering how to get a hold to the asroot2 file so i can contiue the steps to root properly
lilfizz said:
hi i was wondering how to get a hold to the asroot2 file so i can contiue the steps to root properly
Click to expand...
Click to collapse
it amazes me every time: in two weeks it is 2010, and yet there are so many people out there not being able to use a search engine...
How can I do this in terminal emulator
iloveandroid said:
How can I do this in terminal emulator
Click to expand...
Click to collapse
adb remount
http://www.pocketmagic.net/?p=757
^tells you how
you pretty much just type "mount -o rw,remount -t yaffs2 /dev/block/mtdblock3", then "chmod 777 /system".
iloveandroid said:
How can I do this in terminal emulator
Click to expand...
Click to collapse
I attached a file called sys. push this file to the bin directory and give it permissions then you can just mount the system by typing "sys -rw" to mount read and write and to mount read only you type "sys -ro"
to push the file and give it permissions :
Code:
adb push sys /system/xbin
adb shell chmod 775 /system/xbin/sys
I like the script because its easier to remember than the long command.
If you want to edit the script just open it in notepad and change what you like.
I got that script from Bugless Beast By Pete and modified it to display my rom info.
Remove the ".txt" from the script I had to put that to be able to upload it.
hello,
I'm new to android and i could re-brand my phone just using the tutorial
i have used adb to get in to the root of e10i (x10 mini)"the su"
i want to understand
first is default.prop this is the file i need to edit becous' i didn't/couldn't find and build.prop in the system dir ?
assume yes i did pull it by using \adb.exe pull default.prop is this right but when I'm trying to push it back after edit
\android-sdk-windows\tools\adb.exe push / default.prop
it stuck
this file cloud not be deleted using rm under the su
$ ls
ls
sqlite_stmt_journals
cache
sdcard
etc
system
sys
sbin
proc
init.rc
init.qcom.sh
init.qcom.rc
init.qcom.post_boot.sh
init.goldfish.rc
init.delta.sh
init.delta.rc
init
default.prop
data
root
dev
$ rm default.prop
rm default.prop
rm failed for default.prop, Read-only file system
nether of cp over wiret it
i did try to change the permission
$ chmod 777 default.prop
chmod 777 default.prop
Unable to chmod default.prop: Read-only file system
can anyone could help me to re-brand this phone ????
Push back to /sdcard instead, and from there copy to /system.
Sorry, might have answered to wrong question
skogholm said:
Push back to /sdcard instead, and from there copy to /system.
Sorry, might have answered to wrong question
Click to expand...
Click to collapse
i could push it to the phone but i could not relapse it
I would do like this:
adb shell
su
pull /system/build.prop
cat /system/build.prop > /sdcard/build.prop.original (make a copy...)
.. modify the file in whatevertool
adb push build.prop /sdcard
adb shell
su
cat /sdcard/build.prop > /system/build.prop
But be careful...
Froyo can show arabic letters but they are not connected ,any APK to support Arabic letters and connect the letters together ?
thanx in advance
I second this...
Patch your system with Streakdroid 1.7
Copy framework.jar from system\framework
patch it using arabic scripter from ce4arab Add the new framework.jar on Streakdroid 1.7 zip file then do master reset and patch it again
copy libwebcore.so to lib ( you will get it from the same page)
you will get connected letters
Jattal, Have you got a link to the arabic scripter?
how do u patch?
jattal said:
Patch your system with Streakdroid 1.7
Copy framework.jar from system\framework
patch it using arabic scripter from ce4arab Add the new framework.jar on Streakdroid 1.7 zip file then do master reset and patch it again
copy libwebcore.so to lib ( you will get it from the same page)
you will get connected letters
Click to expand...
Click to collapse
a step by step guide will be helpful
thanks.
here you go
http://arstreak.com/2011/03/20/dell-streak-froyo-2-2-2-build-345-with-arabic-how-to-for-all/
http://arstreak.com/
I would just like to add that most people are getting "cp not found error"
use the following commands after rooting and installing busybox
NOTE: what you download from the market is busybox installer... you will have to run it and then install busybox
adb shell
su
stop
mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
busybox cp /sdcard/done_app/* /system/app/
busybox cp /sdcard/done_frame/* /system/framework/
busybox rm /system/app/*.odex
busybox rm /system/framework/*.odex
mount -o ro,remount -t ext3 /dev/block/mmcblk1p21 /system
sync
reboot
Hope this helps.
amcolian said:
I would just like to add that most people are getting "cp not found error"
use the following commands after rooting and installing busybox
NOTE: what you download from the market is busybox installer... you will have to run it and then install busybox
adb shell
su
stop
mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
busybox cp /sdcard/done_app/* /system/app/
busybox cp /sdcard/done_frame/* /system/framework/
busybox rm /system/app/*.odex
busybox rm /system/framework/*.odex
mount -o ro,remount -t ext3 /dev/block/mmcblk1p21 /system
sync
reboot
Hope this helps.
Click to expand...
Click to collapse
Can this be done via root explorer thanks.
Unfortunately it cannot because your device will shutdown on changing the files and it won't be able to boot. The reason why the above commands work is that they freeze your phone in current state while the files are copied and deleted.
However as some adb commands do not run on android 2.2, you need busybox.
Sorry for the late reply, but I wasn't available for a while.
amcolian said:
I would just like to add that most people are getting "cp not found error"
use the following commands after rooting and installing busybox
NOTE: what you download from the market is busybox installer... you will have to run it and then install busybox
adb shell
su
stop
mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
busybox cp /sdcard/done_app/* /system/app/
busybox cp /sdcard/done_frame/* /system/framework/
busybox rm /system/app/*.odex
busybox rm /system/framework/*.odex
mount -o ro,remount -t ext3 /dev/block/mmcblk1p21 /system
sync
reboot
Hope this helps.
Click to expand...
Click to collapse
Hello
thanks for the reply, i would like to ask you if this method could work for all android devices OR only Dell Streak?
as i have Xperia X10 and i just installed Miui ROM and the letters are not connected... what should i do?
thanks in advanced
LOOK HERE
maan1976 said:
Froyo can show arabic letters but they are not connected ,any APK to support Arabic letters and connect the letters together ?
thanx in advance
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=834683
does work for non rooted devices
jattal said:
Patch your system with Streakdroid 1.7
Copy framework.jar from system\framework
patch it using arabic scripter from ce4arab Add the new framework.jar on Streakdroid 1.7 zip file then do master reset and patch it again
copy libwebcore.so to lib ( you will get it from the same page)
you will get connected letters
Click to expand...
Click to collapse
hello man
does this method work for non rooted device
my device is still new
is there any other way for non rooted?
and please tell me what is the easiest way to root the device
thaaaaaank u sooooo much
regards
Hey everyone,
I am a new member and I haven't ever developed anything for Android, even though I am a CS major, thus I am not very familiar with kernels , bootloaders and recoveries.
Anyway, I decided that I wanted BlueStacks on my computer. I have been going through a variety of Android emulators and this is the one interface I like the most.
I have downloaded the pre-rooted version of BlueStacks 2.0.0 (from here: http://forum.xda-developers.com/wiki/BlueStacks_App_Player) and I have downloaded some apps to check if it was rooted, in fact. And yes, it is, but it doesn't have SuperSU installed.
I have then tried to install SuperSU. But once I click on SuperSU icon I get an error message "There is no binary SU installed and SuperSU cannot install it .... " and it suggests to install SuperSU manually.
Since then I have been reading a little about how Android boots and I have tried some apps like RecoveryReboot, QuickBoot, etc. None of them work. I have tried to find ways to see if the BootLoader is locked or to discover if the system has or doesn't have a recovery but no luck. I believe there's no recovery mode available.
Instead of going through the kernel and bootloader (which I am not familiar with and would take me ages to figure out) I decided to look for alternative ways.
I have found this apk: http://forum.xda-developers.com/showthread.php?t=2250555 which looked promising because it would allow me to install SuperSU without going through recovery mode. But, unfortunately, after selecting the zip file with SuperSU, I receive an error saying that this package is not a flashable zip.
Anyway, instead of keep looking, I was wondering if anyone has an idea of a way to install SuperSU in this version of BlueStacks.
I know that some previous versions have SuperSU installed by default, but I like BlueStacks 2 interface and some functionalities better.
Thank you!
How to install SuperSU and root BlueStacks 2.0.x.x manually
I'm a total noob when it comes to android but somehow I've managed to root latest 2.0.8.5638 with trial and error method Here is what I've done. I'm not sure if its the right way tho
1. Download SuperSU 2.46 from their site or download this: https://dl.dropboxusercontent.com/s/v5kje7gsb9q3pp8/tmp.7z?dl=1 I've only added necessary files in the zip.
Open cmd and push this files to BlueStacks. If you've downloaded complete supersu package then you'll need "libsupol.so, su, supolicy" from "x86" folder and "Superuser.apk" from "common" folder. You'll also need adb installed and added to your environment variable path or you can use "C:\Program Files (x86)\BlueStacks\HD-Adb.exe" instead of adb...
Code:
adb push xbin\su /data/local/tmp
adb push xbin\supolicy /data/local/tmp
adb push lib\libsupol.so /data/local/tmp
adb push app\Superuser.apk /data/local/tmp
2. Run adb shell in cmd
Code:
adb shell
And type this in shell, it will grant you root permission. They left this and also busybox in latest versions.
Code:
/system/xbin/bstk/su
3. Remount with rw rights. Not sure about first and last though, /dev/sda1 /system is necessary.
Code:
mount -o rw,remount /dev/block/sdb1 /data
mount -o rw,remount /dev/sda1 /system
mount -o rw,remount / /
4. cd to /data/local/tmp and give these permissions below to files.
Code:
cd /data/local/tmp
chmod 0775 su
chmod 0775 supolicy
chmod 0664 libsupol.so
chmod 0664 Superuser.apk
5. Move/copy this files.
Code:
cp su /system/xbin/su
cp su /system/xbin/daemonsu
cp supolicy /system/xbin/supolicy
cp libsupol.so /system/lib/libsupol.so
cp Superuser.apk /system/app/Superuser.apk
6. You have to edit init.sh file. You can do it with vi
Code:
busybox vi /system/etc/init.sh
Scroll down to end of script.
You'll see something like this.
Code:
init|"")
do_init
;;
esac
change it to
Code:
init|"")
do_init
/system/xbin/daemonsu --auto-daemon &
;;
esac
then exit with ":wq!"
or alternatively you can copy that file to bluestacks shared folder and edit it with your text editor then copy it back. Its easier this way.
Code:
cp /system/etc/init.sh /storage/sdcard/windows/BstSharedFolder/init.sh
edit init.sh file in "C:\ProgramData\BlueStacks\UserData\SharedFolder" then copy it back to BlueStacks.
Code:
rm /system/etc/init.sh
cp /storage/sdcard/windows/BstSharedFolder/init.sh /system/etc/init.sh
P.S. if you use "cp -f" you may not need to write "rm" command, haven't tried it myself. Like I said, noob here
Ok, now you should have root access.
You may want to install apps like apex launcher, root explorer etc. Then you can uninstall BlueStacks' bloatware if you want.
::bluestacks things
Code:
rm /mnt/prebundledapps/com.google.android.apps.photos-1.apk
rm /mnt/prebundledapps/downloads/BstFakeGps.apk
rm /mnt/prebundledapps/downloads/MyBluestacks.apk
rm /mnt/prebundledapps/downloads/bluestacksHome.apk
rm /mnt/prebundledapps/downloads/bluestacksServices.apk
rm /mnt/prebundledapps/downloads/newAppFinder.apk
rm /mnt/prebundledapps/downloads/setupWizard.apk
rm /data/downloads/AppGuidance.apk
rm /data/downloads/AppSettings.apk
rm /data/downloads/BstFakeGps.apk
rm /data/downloads/MyBluestacks.apk
rm /data/downloads/S2P.apk
rm /data/downloads/bluestacksHome.apk
rm /data/downloads/bluestacksServices.apk
rm /data/downloads/newAppFinder.apk
rm /data/downloads/setupWizard.apk
7. Remount with readonly again.
Code:
mount -o ro,remount /dev/sda1 /system
mount -o ro,remount / /
8. Don't know what it does but I've seen it on some instructions
Code:
sync
9. Open a cmd with admin rights and kill BS2 completely then open it again.
Code:
taskkill /f /t /im "BlueStacks.exe" /im "HD-Agent.exe" /im "HD-Adb.exe" /im "HD-BlockDevice.exe" /im "HD-FrontEnd.exe" /im "HD-Network.exe" /im "HD-Service.exe" /im "HD-SharedFolder.exe" /im "HD-UpdaterService.exe" /im "HD-LogRotatorService.exe"
10. Open SuperSu app in BS2, it may want you to update su binaries. Update it with normal option and restart it. Use taskkill way to completely kill it again.
11. Run adb shell again. You may need to run "adb kill-server" command first.
12. Run "adb shell" command then type "su". SuperSu will want grant permission approval for shell. Give it and now you should have a rooted BS2