please help me edit bstid file (bluestack 0.8.5) - Android Q&A, Help & Troubleshooting

hi , im using rooted bluestack 0.8.5 .
and i need edit file /proc/bstid to change BS serial .
im tried to edit by using root explore ( i gave rw permission) but it say cant save .
then i try to use adb to write/copy file , but it still say :
Code:
adb push C:\bstid /proc/
failed to copy 'C:\bstid' to '/proc//bstid': Read-only file system
Code:
adb remount
* daemon not running. starting it now *
* daemon started successfully *
remount succeeded
adb push C:\bstid /proc/
failed to copy 'C:\bstid' to '/proc//bstid': I/O error
Code:
C:\Users\Judas\Downloads\Compressed\ADB>adb shell
[email protected]:/ # su
su
[email protected]:/ # mount -o rw,remount /proc/bstid /system
mount -o rw,remount /proc/bstid /system
[email protected]:/ # echo "xxxxxxxxxxxxxxxxxxxxxxxx" > /proc/bstid
echo "xxxxxxxxxxxxxxxxxxxxxxxx" > /proc/bstid
but nothing change .
could anyone please help me, how to edit bstid file ?
or please tell me a way to fake bluestack 0.8 serial

dechut said:
hi , im using rooted bluestack 0.8.5 .
and i need edit file /proc/bstid to change BS serial .
im tried to edit by using root explore ( i gave rw permission) but it say cant save .
then i try to use adb to write/copy file , but it still say :
Code:
adb push C:\bstid /proc/
failed to copy 'C:\bstid' to '/proc//bstid': Read-only file system
Code:
adb remount
* daemon not running. starting it now *
* daemon started successfully *
remount succeeded
adb push C:\bstid /proc/
failed to copy 'C:\bstid' to '/proc//bstid': I/O error
Code:
C:\Users\Judas\Downloads\Compressed\ADB>adb shell
[email protected]:/ # su
su
[email protected]:/ # mount -o rw,remount /proc/bstid /system
mount -o rw,remount /proc/bstid /system
[email protected]:/ # echo "xxxxxxxxxxxxxxxxxxxxxxxx" > /proc/bstid
echo "xxxxxxxxxxxxxxxxxxxxxxxx" > /proc/bstid
but nothing change .
could anyone please help me, how to edit bstid file ?
or please tell me a way to fake bluestack 0.8 serial
Click to expand...
Click to collapse
any one can help?>
I got the same problem

Please help me
amcetoi said:
any one can help?>
I got the same problem
Click to expand...
Click to collapse
Please help me

Related

rooting error - help please

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 to replace framewrok-res.apk?

how to replace? by using metamorph? i did with root explorer and ended up with bricked x10 mini.
It's probably best to do it via ADB.
yes adb / shell is my favourite method
I use Root expl. only to rw mount /system partition.
How to do via adb?
Sent from my E10i using XDA App
from: http://forum.xda-developers.com/showthread.php?t=759320
0. Root !
1. adb push framework-res.apk /sdcard/fr-black.apk
2. adb shell
3. su
4. mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
5. mv /system/framework/framework-res.apk /sdcard/framework-resORIG.apk
6. cat /sdcard/fr-black.apk > /system/framework/framework-res.apk
7. chmod 755 /system/framework/framework-res.apk
8. sync
9. reboot
why cat and not mv/cp ? Because the file is created with "root" user and group and not "sdcard" group.
Means the framework file is first placed on sd card which i want to replace? Asking noob questions cause dnt want to install whole software again
Sent from my E10i using XDA App
abhi98228 said:
Means the framework file is first placed on sd card which i want to replace? Asking noob questions cause dnt want to install whole software again
Click to expand...
Click to collapse
Here, I'll try to explain what happens
1. adb push framework-res.apk /sdcard/fr-black.apk
-copies "frarework-res.apk" from ADB's folder and moves it to the phone's SD card, names it "fr-black.apk"
2. adb shell
-opens the linux shell on the phone
3. su
-goes into superuser mode, i.e. runs apps as admin if you're familiar with windows terms
4. mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
-remounts the /system folder on the phone so that it is read-write, allowing you to mess with the system files
5. mv /system/framework/framework-res.apk /sdcard/framework-resORIG.apk
-backs up the default framework-res.apk from the phone by moving it to the SD card
6. cat /sdcard/fr-black.apk > /system/framework/framework-res.apk
-copies the fr-black.apk from the SD card and puts it in the old framework-res' place
7. chmod 755 /system/framework/framework-res.apk
-changes the user permissions for the new file
Eseb0 said:
Here, I'll try to explain what happens
1. adb push framework-res.apk /sdcard/fr-black.apk
-copies "frarework-res.apk" from ADB's folder and moves it to the phone's SD card, names it "fr-black.apk"
2. adb shell
-opens the linux shell on the phone
3. su
-goes into superuser mode, i.e. runs apps as admin if you're familiar with windows terms
4. mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
-remounts the /system folder on the phone so that it is read-write, allowing you to mess with the system files
5. mv /system/framework/framework-res.apk /sdcard/framework-resORIG.apk
-backs up the default framework-res.apk from the phone by moving it to the SD card
6. cat /sdcard/fr-black.apk > /system/framework/framework-res.apk
-copies the fr-black.apk from the SD card and puts it in the old framework-res' place
7. chmod 755 /system/framework/framework-res.apk
-changes the user permissions for the new file
Click to expand...
Click to collapse
hehe ty bro
Hi
I need some help pls, when i wanna replace the framework-res.apk i get this:
C:\exploid_x10mini>adb push framework-res.apk /sdcard/fr-black.apk
* daemon not running. starting it now *
* daemon started successfully *
1523 KB/s (7108054 bytes in 4.557s)
C:\exploid_x10mini>adb shell
$ su
su
# mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
# mv /system/framework/framework-res.apk /sdcard/framework-resORIG.apk
mv /system/framework/framework-res.apk /sdcard/framework-resORIG.apk
failed on '/system/framework/framework-res.apk' - Cross-device link
Please help
try
mount -o rw,remount /dev/block/mtdblock0 /system
and check first-after with mount bash command the mountpoint
oversim said:
try
mount -o rw,remount /dev/block/mtdblock0 /system
and check first-after with mount bash command the mountpoint
Click to expand...
Click to collapse
I still get the same:
C:\exploid_x10mini>adb shell
$ su
su
# mount -o rw,remount /dev/block/mtdblock0 /system
mount -o rw,remount /dev/block/mtdblock0 /system
# mv /system/framework/framework-res.apk /sdcard/framework-resORIG.apk
mv /system/framework/framework-res.apk /sdcard/framework-resORIG.apk
failed on '/system/framework/framework-res.apk' - Cross-device link
#
Can you explain .. " and check first-after with mount bash command the mountpoint" .. please
Skip mv step instade backup by root expkorer.
Sent from my E10i using XDA App
Thank you my mini is now black
kimb0 said:
Hi
I need some help pls, when i wanna replace the framework-res.apk i get this:
C:\exploid_x10mini>adb push framework-res.apk /sdcard/fr-black.apk
* daemon not running. starting it now *
* daemon started successfully *
1523 KB/s (7108054 bytes in 4.557s)
C:\exploid_x10mini>adb shell
$ su
su
# mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
# mv /system/framework/framework-res.apk /sdcard/framework-resORIG.apk
mv /system/framework/framework-res.apk /sdcard/framework-resORIG.apk
failed on '/system/framework/framework-res.apk' - Cross-device link
Please help
Click to expand...
Click to collapse
you can use cat /system/framework/framework-res.apk > /sdcard/framework-resORIG.a
as a work around
It help me

Unable to browse /data/app-private with adb

I'm using the adb.exe command directly from the Android SDK to connect to my Xperia X10's file system. Here are the commands I issued:
D:\android_sdk\tools>adb shell
$ cd data/app-private
cd data/app-private
$ ls
ls
opendir failed, Permission denied
$ su
su
pwd
pwd
ls -l
ls -l
Permission denied
$ /data/app-private
$ opendir failed, Permission denied
$ exit
exit
D:\android_sdk\tools>
Two questions: 1) Why is it commands entered after typing "su" are echoed? 2) How come I can't browse the app-private directory even after entering su?
Thanks.
Have you rooted your X10 ? (think not)
A # prompt indicates superuser privileges, you did not get to be a superuser.
Why you get an echo I don't know.
mattiL said:
Have you rooted your X10 ? (think not)
A # prompt indicates superuser privileges, you did not get to be a superuser.
Why you get an echo I don't know.
Click to expand...
Click to collapse
Yes the phone is rooted. I have the AT&T branding, but used the one-click exploid to root the phone, and it works as Titanium Backup when running tells me it gained Superuser priviledges. I don't know what I'm doing wrong. This is from an MS-DOS prompt in Windows.
When you use SU for the first time, you need to have the phone screen on and unlocked. It will ask for superuser permissions. Then it will work.
naplesbill said:
When you use SU for the first time, you need to have the phone screen on and unlocked. It will ask for superuser permissions. Then it will work.
Click to expand...
Click to collapse
Ha, thanks, it worked. The key was typing SU just before I unlock the phone, then it asks me on the phone that "Unknown" wants superuser access. Thanks again.
I was finally able to apply the 'Enable Non-Market apps' fix via adb thanks to this little tip
I'm learning- slowly...
How exactly do I run scripts on this phone when connected to a PC?
Code:
C:\android_sdk\tools>adb shell
$ su
su
# mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
# cd sdcard
cd sdcard
# ls -l testscript.sh
ls -l testscript.sh
----rwxr-x system sdcard_rw 54 2010-10-06 10:52 testscript.sh
# sh testscript.sh
sh testscript.sh
: not foundsh: ■#!/bin/sh
: not foundsh: /sh
: not found
mkdir <target>
#
Any ideas?
If anyone told me "You should save your files in UNIX format where each text line ends in 0x0A, and not 0x0D 0x0A as in Windows, it will work" ... you'd be right. UNIX doesn't like carriage return & line feed pairs when trying to run a shell script.

[Q] System changes are cancelled when I restart

Hello
I try to use Link2SD on my HTC Desire 610 (rooted and with unlocked bootloader), but the app is not able to mount the SD card partition because the init.d is not present on the stock ROM.
So, I have installed busy-box and tried the term-init script of Ryuinferno. The script seems to works well (no error), but I noticed it had no effect on the system files.
So I tried some manipulations with adb, and I managed to create the init.d file with these commands:
Code:
>adb kill-server
>adb shell
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
[email protected]_a3qhdul:/ $ su
su
[email protected]_a3qhdul:/ # mount -o remount,rw -t auto /system
mount -o remount,rw -t auto /system
[email protected]_a3qhdul:/ # mkdir /system/etc/init.d
mkdir /system/etc/init.d
[email protected]_a3qhdul:/ # cd /system/etc/init.d
cd /system/etc/init.d
[email protected]_a3qhdul:/system/etc/init.d # cd /
cd /
[email protected]_a3qhdul:/ # mount -o remount,ro -t auto /system
mount -o remount,ro -t auto /system
[email protected]_a3qhdul:/ # reboot
reboot
>
After the phone restarts, I tested these commands:
Code:
>adb kill-server
>adb shell
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
[email protected]_a3qhdul:/ $ su
su
[email protected]_a3qhdul:/ # cd /system/etc/init.d
cd /system/etc/init.d
tmp-mksh: cd: /system/etc/init.d: No such file or directory
2|[email protected]_a3qhdul:/ #
I tried to create files in the system folder, but they are deleted after every reboot.
Have you ever encountered this problem?
I am a novice regarding the linux operating systems, so I have no idea what could cause this.
Hoping you will find a solution, and sorry for my bad english..
EDIT :
After long search on the forum, I found what I needed for solve my problem
The problem was due to the HTC's system write protection (see here).
For the HTC Desire 610, it seems that the protection allow you to add files in the /system directory but cancels all modifications after a reboot.
To disable this protection, I installed the Jmz's A3UL Kernel V1 and it works fine !
Now the Term-init script works, and I was able to install Link2SD and configure it for mount the ext2 partition on my sd card at boot.
Thank you to the community of xda-developers !

urgent help required please help

Please help guys stuck here....
I've tried to delete malwarebytes apk from the /system folder (why it was in there is beyond me but.. it was) successfully un-mounted /system folder and deleted the .apk but i am unable to remount the /system folder again.
I checked it was not running before deleting although it would not working crash back to home screen run hence reason for deleting it in the first place and because of location I was unable to just uninstall or update it normally. now trying to remount the system folder It keeps saying mount: Device or resource busy
output from putty:-
login as: root
SSHD Server
[email protected]'s password:
[email protected]:/storage/emulated/legacy # mount -o remount,rw /system
[email protected]:/storage/emulated/legacy # mount -o remount,ro /system
mount: Device or resource busy
255|[email protected]:/storage/emulated/legacy # su
[email protected]:/storage/emulated/legacy # mount -o remount,ro /system
mount: Device or resource busy
tried:
login as: root
SSHD Server
[email protected]'s password:
[email protected]:/storage/emulated/legacy # adb remount
* daemon not running. starting it now on port 5038 *
* daemon started successfully *
remount failed: Permission denied
[email protected]:/storage/emulated/legacy #
also tried from pc command line adb root and adb mount get same error/permission denied
any command I can run to force it or any command to find out whats stopping it, don't mind reflashing it after just don't want to brick the dam thing
I know that as soon as I reboot the box it will brick it, so I am desperate to try and force mount it if possible or anything at this stage
hopefully you guys can help me as I am not really an expert with androids and about run out of ideas how to fix this problem
thanks
Sorted now thanks anyway..

Categories

Resources