[Q] confused when using adb.. - HD2 Android Q&A, Help & Troubleshooting and Genera

i am cleaning al up the mess on my hd2.. but..
i contnious get the rw error when i want to delete a app.
again and angain..
*rm /system/app/com.htc.FriendStreamWidget.apk
rm failed for /system/app/com.htc.FriendStreamWidget.apk, Read-only file system
# rm /system/app/com.htc.FriendStreamWidget.apk
rm /system/app/com.htc.FriendStreamWidget.apk
rm failed for /system/app/com.htc.FriendStreamWidget.apk, Read-only file system
i am running the latest mjd froyo revolution 2..3
i have mounted to rw.. with adb. and a lot of apps
who can help me=
(mods, if this the wrong trhead to ask this, please move )

Related

[Q] Problems deodexing Droid 2

Hi,
I have been trying to deodex my droid 2 in order to install custom themes via xUltimate using the manual method. I get to the point where you copy the /sdcard/done_app/* to /system/app and /sdcard/done_frame, etc via adb and I keep getting an error message stating that there is no directory named /sdcard/done_app/ although it is there. Any ideas? Is there a one click deodex for droid 2 yet?
Thanks in advance,
Andrew
Follow up, bump
Follow up - tried deodexing again, using directions and files from this thread:
I am running Android 2.2.20 VZ Droid 2
I put the deodexed folders on the root of the sdcard.
Here is where I get stuck (This is getting frustrating:
C:\android-sdk_r071-windows\android-sdk-windows\tools
# su
su
# stop
stop
# mount -o remount,rw /dev/block/system /systems
mount -o remount,rw /dev/block/system /system
# cp /sdcard/done_app/* /system/app/
cp /sdcard/done_app/* /system/app/
cp: /sdcard/done_app/*: No such file or directory
hophead75 said:
Follow up - tried deodexing again, using directions and files from this thread:
I am running Android 2.2.20 VZ Droid 2
I put the deodexed folders on the root of the sdcard.
Here is where I get stuck (This is getting frustrating:
C:\android-sdk_r071-windows\android-sdk-windows\tools
# su
su
# stop
stop
# mount -o remount,rw /dev/block/system /systems
mount -o remount,rw /dev/block/system /system
# cp /sdcard/done_app/* /system/app/
cp /sdcard/done_app/* /system/app/
cp: /sdcard/done_app/*: No such file or directory
Click to expand...
Click to collapse
i don't really want to state something obvious...but seems like /sdcard/done_app/ doesn't exists OR the sdcard is not mounted (connected in the wrong mode? wrong settings in winamp so that the sdcard is always mounted when usb is connected?)
Yeah, it needed to be in pc mode. I guess that should have been obvious, but i couldn't root my phone in pc mode, had to use usb mass storage so I used that for everything.

need write to /system or something EXEC path

I was the first person I know on the internet to compile nmap for android and this guy ( http://wjholden.com/nmap/ ) took it to the next level got a new phone ( CM6 with OC ) nbow it does not work
* can't write to /system even with rw remount
* if I boot recovery I can' write to /systm but its just a temp fs so failsause ...
* can't ADB shell (read below ) to find out where system is really mounted OR mount the real /system my self ..
* remouted / but anything I add gets wipped on reboot ...
* onlything that works is remount / , copy nmap and then add PATH hackery to EXEC nmap ... on EVERY reboot ...
NOTES BELOW:
Code:
http://forum.xda-developers.com/showthread.php?t=701589&page=4
I think its because /system is protected in CM5+ ? even with remount
command... ?
let me know what I need to copy where in recovery mode to /system to
get yours to run properly :/
you could also have your installer check for this and have notes etc ..
# uname -a
Linux localhost 2.6.29.6-cyanogenmod #1 PREEMPT Fri Sep 17 16:05:39
PDT 2010 arm v6l GNU/Linux
# ls
ls
NMAP FOR ANDROID CROSS COMPILE ARM.html
NMAP.zip
nmap
nmap-4.01-1.spec
nmap-mac-prefixes
nmap-os-fingerprints
nmap-protocols
nmap-rpc
nmap-service-probes
nmap-services
# cp * /system/bin
cp * /system/bin
cp: can't create '/system/bin/NMAP FOR ANDROID CROSS COMPILE ARM.html': Out of m
emory
cp: can't create '/system/bin/NMAP.zip': Out of memory
cp: can't create '/system/bin/nmap': Out of memory
cp: can't create '/system/bin/nmap-4.01-1.spec': Out of memory
cp: can't create '/system/bin/nmap-mac-prefixes': Out of memory
cp: can't create '/system/bin/nmap-os-fingerprints': Out of memory
cp: can't create '/system/bin/nmap-protocols': Out of memory
cp: can't create '/system/bin/nmap-rpc': Out of memory
cp: can't create '/system/bin/nmap-service-probes': Out of memory
cp: can't create '/system/bin/nmap-services': Out of memory
# df /system
df /system
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/block/mtdblock3 245760 240824 4936 98% /system
# mount
mount
...
/dev/block/mtdblock3 on /system type yaffs2 (rw)
Code:
mount -o rw,remount -t yaffs2 /
rm -Rf /nmap
mkdir /nmap
echo 'export PATH=$PATH:/nmap' > path
cd /nmap
wget http://rmccurdy.com/stuff/G1/BINS/NMAP/NMAP.zip
unzip NMAP.zip
chmod 777 /nmap/*
export PATH=$PATH:/nmap
echo run /nmap/path before you start nmap
nmap -vvv 127.0.0.1
rmccurdy.com/nmap.sh (tested on CM6 / mytouch slide )
in normal mode ..
Code:
bash
localhost / # mount -o rw,remount -t yaffs2 /system
mount -o rw,remount -t yaffs2 /system
localhost / # cd /system
cd /system
localhost system # for i in `ls` ;do mkdir $i\\nmap ;done
for i in `ls` ;do mkdir $i\\nmap ;done
mkdir: can't create directory 'app\nmap': Out of memory
mkdir: can't create directory 'bin\nmap': Out of memory
mkdir: can't create directory 'build.prop\nmap': Out of memory
mkdir: can't create directory 'etc\nmap': Out of memory
mkdir: can't create directory 'fonts\nmap': Out of memory
mkdir: can't create directory 'framework\nmap': Out of memory
mkdir: can't create directory 'lib\nmap': Out of memory
mkdir: can't create directory 'lost+found\nmap': Out of memory
mkdir: can't create directory 'media\nmap': Out of memory
mkdir: can't create directory 'usr\nmap': Out of memory
mkdir: can't create directory 'xbin\nmap': Out of memory
in "Android system recovery (2e)" :
( note: /system is also a vfs I think .. I adb push to it and reboot and the file is gone ... )
Code:
C:\Documents and Settings\Administrator\nmap>adb shell
- exec '/system/bin/sh' failed: No such file or directory (2) -
C:\Documents and Settings\Administrator\nmap>
You can't write in /system in normal boot mode as security is on (s-on), remounting rw does you no good.
In recovery you will need to mount /system from clockwork before you can do anything.
I do have Clockwork Recovery 2.5.0.1 but I am not sure how to get to a shell and or find /system mount path as I can't adb shell ( read above ) so I can't remount or mount /system
rmccurdy.com/nmap.sh * this is what I am using for nmap as of now ..
Usage:
bash -x /sdcard/nmap.sh localhost
etc ...
There's an option in clockwork under partitions to allow you to mount the system. I'm not sure why but a lot of people have an issue getting into su with adb when they are in recovery, the constant /system/bin/sh error is annoying. Also, if I remember right, yaffs2 is not what you use to mount the system when using that command. It's mtdblock3 or something like that if I'm thinking along the correct lines here.
Maybe you should try putting it in a zip file as a script and running it that way since you use a different command (and much easier) to mount the system and write to it. Then again, I'm not sure what you're trying to so so I could just be talking out of my a$$
I can't do anything usefull in recovery ... reboot and apply update.zip but I dont how how nor do I really want to make a .zip / script to mount system etc .. do you know a zip I can work from as an example
rmccurdy said:
I can't do anything usefull in recovery ... reboot and apply update.zip but I dont how how nor do I really want to make a .zip / script to mount system etc .. do you know a zip I can work from as an example
Click to expand...
Click to collapse
The slide doesn't have S-Off, most HTC phones have them now...So you have to wait for Alpharev 2.0 to be released.
Ace42 said:
The slide doesn't have S-Off, most HTC phones have them now...So you have to wait for Alpharev 2.0 to be released.
Click to expand...
Click to collapse
Yes, but in recovery we can mount the system and write to it. Phones with s-off can do that while booted normally because the NAND is unlocked and the system is no longer protected.
You can do it one of two ways. This one is easiest if you know linux commands but are unfamiliar with update-script format. Make an update script and put this in there:
Code:
show_progress 0.5 0
run_program PACKAGE:example.sh
show_progress 0.5 10
You don't have to use the show_progress line, it's just for aesthetics.
Make a .sh script, name it whatever you want and put the linux commands you want to execute in the script. For example:
Code:
#!/sbin/sh
#
##############################################
mount /system;
rm -rf /nmap
mkdir /nmap
echo 'export PATH=$PATH:/nmap' > path
cd /nmap
wget http://rmccurdy.com/stuff/G1/BINS/NMAP/NMAP.zip
unzip NMAP.zip
chmod 777 /nmap/*
export PATH=$PATH:/nmap
echo run /nmap/path before you start nmap
nmap -vvv 127.0.0.1
exit 0;
Or what ever you're trying to get done. I'll upload an example file of all this since hands on is always better. Looking at this though, you may want to have the files in the zip (in the directories they will be installed to) because wget probably wont work since the radio is off while in recovery.
interesting thanks ! ... do you have to resign it and all or can you just edit and rezip it ?
rmccurdy said:
interesting thanks ! ... do you have to resign it and all or can you just edit and rezip it ?
Click to expand...
Click to collapse
As long as you're using clockwork you just edit and zip. Might be easier to use an archive explorer to open (without uzipping it) then drag and drop, but do what's easiest for you.

LG GT540 with Ubuntu in chroot

Hi and THX to all Developers 4 their great Work!
Today I need your help:
i have: 2.1 Black Edition by Quarx with Kernel 0.3.1, 16GB SDCard class10 (14GB fat/1GB ext2) using Link2SD
i want: ubuntu in chroot
i used this guide: h**p://nexusonehacks.net/nexus-one-hacks/how-to-install-ubuntu-on-your-nexus-oneandroid , copy ubuntu to sdcard and execute ubuntu.sh
my problem:
# su
su
# cd /sdcard/ubuntu
cd /sdcard/ubuntu
# sh ./ubuntu.sh
sh ./ubuntu.sh
modprobe: not found
clear: not found
rm failed for -f, No such file or directory
rm failed for -f, No such file or directory
rm failed for -f, No such file or directory
rm failed for -f, No such file or directory
rm failed for -f, No such file or directory
mkdir failed for /data/local/mnt, File exists
clear: not found
rm failed for /system/bin/fsrw, No such file or directory
rm failed for /system/bin/bootubuntu, No such file or directory
rm failed for /system/bin/unionfs, No such file or directory
rm failed for -/system/bin/mountonly, No such file or directory
cp: not found
cp: not found
cp: not found
cp: not found
Unable to chmod bootubuntu: Operation not permitted
clear: not found
there seems to be a problem with modprobe and cp.
maybe i have to change paths in script-file, but i don't know the right.
Do you know what i have to do to get it up and running?
You probably don't have busybox. Btw, can you please post those scripts or PM me? I downloaded an image and a script(http://forum.xda-developers.com/showthread.php?t=962023) but it doesn't seem to work. Proceeds directly yo unmounting after mounting. It's hard to download another whole img just to get the scripts on my slow internet.
I've installed busybox with titanium-backup, maybe there is a problem?
I don't know and too busy to test it.
take a look to the attachment 4 the script you want
Thanks for the scripts. It's a bit late here. I will try em in the morning.
The script I tried proceeded to unmount after mount. :/
Btw, am not sure where Titanium Backup installs busybox. Some apps install busybox in their own folder. Just try Busybox installer from the market. Works fine.

[Q] Unable to install/copy files in Emulator ???

Hello,
I am a newbie on this site and android development. I want to installa nd run openvpn to my emulator. I am using these 2 sites for reference :
1)
chengdu110.wordpress com
2010/08/14
want-openvpn-work-on-android-device
2)
android.modaco
content
software
291919
openvpn-on-android/
I am facing couple of problems. From 1st site, I can't copy busybox to system/xbin folder. I get no access, permission failure, etc such messages. Am stuck at this point and thus can't proceed ahead. In Part 2 also need to access /system/lib/ where again problem comes.
In site 2, same cannot access /system/lib or /system/bin folder. Even I can't mount like this : ADB shell mount /system
Command mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system from site 1 was successful.
Even I face problems with cp cmd. Just cp libcrypto.so libcrypto-orig.so doesn't work. I got to give "/system/lib/libcrypto.so cp libcrypto.so libcrypto-orig.so" this format only it copies. Though in the above case "Permission denoed" occured for system/lib. But this foramt worked while copying busybox file.
Can anyone help me with the permission to system folders /xbin, /lib, /bin. Why is mounting required ? Why I am not able to mount directly as mount /system; I need to give full command mount -o rw, .... -t .... /system. I am not sure what all to give in the "..." place - had just copied it from site 1.
Any help, guidance is highly appreciated. I use Eclipse DDMS and Android emulator 2.3.3. Please try to help me.

Nubia Z17 Mini - System Read Only after a NANDroid Backup. It's driving me crazy

Hello every,
I would like to start by saything that I don't usually post on forums since I'll always search for hours on the internet.
I do find a solution after different atempts. But this time, absolutly nothing worked.
Nubia Z17 Mini NX569J (AArch64)
Marshmallow - Stock ROM (bought on Gearbest)
Rooted with lastest TWRP (3.2.1)
What happened : I tried to install the Xposed framework.
1/ Made a backup using TWRP containing every option I could check
2/ Installed the v86 framework from Xposed instead of the v89. It worked anyway.
3/ Back to my phone, I installed the Xposed App. Framework was detected successfully.
4/ I downloaded different framework from the App (Block Youtube Ads, Soundcloud Ads, Soundcloud downloader, Battery saving stuff...) and rebooted my phone.
5/ Long reboot time and stuck on a black screen.
6/ After many attemps, I went to TWRP and used my back-up. Everything was back to normal.
But ow, When I'm trying to install the v86 or v89 zip file from Xposed, I get this error :
Code:
Zip signature verification failed!
Error installing zip file '/sdcard/Download/xposed-v89-sd23-arm64.zip'
Without zip verification :
Code:
Installing zip file '/sdcard/Download/xposed-v89-sd23-arm64.zip'
Checking for MD5 file...
Skipping MD5 check : no MD5 file found
*******
Xposed framework installer zip
********
- Mounting /system and /vendor read-write
- Checking environment
Xposed version : 89
- Placing files
chown : /system/bin/dex2oat.orig.gz : Read-only file system
[FONT="Arial Black"][SIZE="4"]Updater process ended with ERROR: 1
Error installing zip '/sdcard/Download/xposed-v89-sd23-arm64.zip'[/SIZE][/FONT]
-> Full log from TWRP : goo.gl/3NP2Zw <-
What I tried so far :
-> TWRP is NOT on Read Only. The box in unchecked and I could use it to install SuperSU zip file.
-> Reinstalling TWRP
-> Reinstallling SuperSU
-> From ADB :
Code:
C:\Program Files (x86)\Minimal ADB and Fastboot>adb shell
[email protected]:/ $ su root
[email protected]:/ # mount -o rw,remount /system
mount: Read-only file system
-o rw,remount -t yaffs2 /dev/block/mtdblock3 /system <
mount: Read-only file system
255|[email protected]:/ # -writable-system
sush: -writable-system: not found
127|[email protected]:/ # mount -o rw,remount /dev/stl12 /system
mount: Read-only file system
255|[email protected]:/ # mount -o remount,rw /system /system
mount: Read-only file system
255|[email protected]:/ # mount -o remount,rw /system
mount: Read-only file system
255|[email protected]:/ #
With Xposed Installer :
Code:
chown: /system/bin/dex2oat.orig.gz: Read-only file system
Error 1 occured
Uninstall with Xposed Installer :
Code:
rm: can't remove '/system/xposed.prop : Read-Only file system
can't remove 'system/framework/XposedBridge.jar' : Read-only file system
rm: can't remove 'system/bin/app_process32' : Read-only file system
mv: can't rename '/system/bin/
app_process32_original': Read-only file system
Error 1 occured
Root Explorer : nothing happen when I click on "Mount as R/W".
Android Terminal app :
Code:
[B][email protected]:/# mount -o rw, remount /dev/block/system
mount: Read-only file system[/B]
I tried with Busybox too but it's the same problem : system is Read Only
Soooo here it is. I don't have any idea now. I backup up a few times but nothing change.
I was thinking about chaging for anothing ROM but I'm afraid about loosing battery life. And I don't want all of my applications again.
What do you think ?
I think you must reinstall your software from scratch. And you said you rooted your phone but not a word about if was with magisk or su.
I recommend you using magisk and systemless xposed.
Good luck

Categories

Resources