Rosie no boot Black screen only fix - G1 General

I am by no means good at this. I installed Hero v.4 and it was working ok. I wanted Haykuro's Rosie UI build, but could never get past the waving little android HTC screen. It would sit at black screen. I finally got it fixed and here, exactly, is how I did it and what the problem was:
1. The SD card was appropriately formated into Fat32 and Ext-2 formats per this thread-http://forum.xda-developers.com/showthread.php?t=512873
2.I knew Rosie should run since Hero v.4 ran. The only difference, really, was the app2sd requirement. Following Haykuro's directions in this thread, the developer clearly states
"for those of you that don't know how to place app_s into sd card do this:
Code:
adb push app_s /system/sd/app_s
3. well, I did that just fine but Rosie would never boot. I got to looking at the ADB for dummies page found here http://forum.xda-developers.com/showthread.php?t=502010 and found out I could view the contents of my Ext partition with ADB. I used ADB shell command>> adb shell then #ls.
4. It showed me that the ADB push command (adb push app_s /system/sd/app_s) did indeed put the files inside the sd directory, but within another app_s folder. my structure looked like this (using exactly Haykuro's instructions).
adb shell
system/sd/apps_s/app_s =>then all the .apk files.
For those of you having the black screen issue, you might want to take a look
at your directory structure as described above.
To fix it, I followed Haykuro's directions exactly, but omitted the last parameter (which was app_s). Typed this
adb push app_s /system/sd
It deposited all the .apk files directly inside a app_s folder in the sd directory. I didn't know how to get rid of the extra folder called app_s, so I left it there.
Rosie booted fine......

i had the same problem. i formatted my sd card tho, repartitioned and fixed the extra folder problem. wish i had your guide back then it woulda saved me so much time

I get this code whenever I try to adb push
Code:
Microsoft Windows [Version 6.0.6001]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.
C:\Users\Alex P>cd C:\android-sdk-windows-1.5_r2\tools
C:\android-sdk-windows-1.5_r2\tools>adb remount
remount succeeded
C:\android-sdk-windows-1.5_r2\tools>adb push app_s /system/sd
cannot stat 'app_s': No such file or directory
C:\android-sdk-windows-1.5_r2\tools>adb shell
# cp app_s /system/sd
cp app_s /system/sd
cp: cannot stat 'app_s': No such file or directory
# exit
exit
C:\android-sdk-windows-1.5_r2\tools>ls /system/sd
'ls' is not recognized as an internal or external command,
operable program or batch file.
C:\android-sdk-windows-1.5_r2\tools>adb push app_s /system/sd
cannot stat 'app_s': No such file or directory
C:\android-sdk-windows-1.5_r2\tools>
Keep getting that cannot stat.

it looks like you mounted your phone (remount command). I am by no means an expert at this stuff, but it was my understanding that your phone is supposed to be unmounted to use any adb commands. could be wrong though.

apfroggy0408 said:
I get this code whenever I try to adb push
Code:
Microsoft Windows [Version 6.0.6001]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.
C:\Users\Alex P>cd C:\android-sdk-windows-1.5_r2\tools
C:\android-sdk-windows-1.5_r2\tools>adb remount
remount succeeded
C:\android-sdk-windows-1.5_r2\tools>adb push app_s /system/sd
cannot stat 'app_s': No such file or directory
C:\android-sdk-windows-1.5_r2\tools>adb shell
# cp app_s /system/sd
cp app_s /system/sd
cp: cannot stat 'app_s': No such file or directory
# exit
exit
C:\android-sdk-windows-1.5_r2\tools>ls /system/sd
'ls' is not recognized as an internal or external command,
operable program or batch file.
C:\android-sdk-windows-1.5_r2\tools>adb push app_s /system/sd
cannot stat 'app_s': No such file or directory
C:\android-sdk-windows-1.5_r2\tools>
Keep getting that cannot stat.
Click to expand...
Click to collapse
Make sure you "cd" to the correct forlder that your "app_s" is in. So for example if you have the app_s folder in c:\android (thats where i always work from) type cd c:\android then adb push app_s.......

If I cd to c:\android won't it take me out of adb?

nope.
adb simply tells the computer you are commanding the phone.
so cd to where the folder is, then run adb push

I keep getting this message
Microsoft Windows [Version 6.0.6001]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.
C:\Users\Main> cd c:\android-sdk-windows-1.1_r1\tools
c:\android-sdk-windows-1.1_r1\tools>adb remount
remount succeeded
c:\android-sdk-windows-1.1_r1\tools>adb shell
# cd c:\arnold adb push app_s /system/sd
cd c:\arnold adb push app_s /system/sd
cd: bad substitution
# cp C:\arnold app_s /system/sd
cp C:\arnold app_s /system/sd
cp: cannot stat 'C:arnold': No such file or directory
cp: cannot stat 'app_s': No such file or directory
#
what im I doing wrong? plz help thanks. Im stuck at the boot loop screen.

pinetreehater said:
it looks like you mounted your phone (remount command). I am by no means an expert at this stuff, but it was my understanding that your phone is supposed to be unmounted to use any adb commands. could be wrong though.
Click to expand...
Click to collapse
Seems I couldn't run adb without mounting.
Edit: Finally got it working.
What I ended up just doing was using ubuntu and creating the app_s folder in the ex2 manually and to me seems like the easiest way to do it. Luckily I have my eee running crunchbang.

Related

Removing app_s from /system/sd

Hello all, I am trying to remove the app_s folder from /system/sd using terminal emulator. I typed in:
$su
#rm -r /system/sd/app_s
but I get a long list of everything in app_s saying:
rm: cannot stat '/system/sd/app_s/name of app/widget Stale NFS file handle
can someone help me with the commands I need to remove that folder? I unfortunately don't have adb
http://sysunconfig.net/unixtips/stale_nfs.txt

Helppp removing .apks with sdk method

i try this on the comment prompt while phone running.
cd\sdk
cd android-sdk-windows
cd tools
adb devices
adb shell
#mount /dev/block/mtdblock4 /system
cd /system/app
ls
i get all the apk. files
i try removing an apk.file
typing this syntax:
rm -f thenameoftheapp.apk
and it'll say:
rm failed for -f, read only file system
it wont let me write on the system im guessing.
Now i tried doing the same thing but phone mode is on recovery.
I have the nand protection unlocked so when i get to recovery mode
i have already the custom recovery setup showing, i don't run the recovery-windows.bat.
now when i type this on the comment prompt
cd\sdk
cd android-sdk-windows
cd tools
adb devices
adb shell
#mount /dev/block/mtdblock4 /system
cd /system/app
ls
i get all the apk. files
i try removing an apk.file
typing this syntax:
rm -f thenameoftheapp.apk
after i hit enter it shows me
#
so im assuming the apk. has been removed
after i exit the comment prompt and i wipe the dalvik-cache
i reboot the phone and all the apps i removed are still there and running still.
help please

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.

[Q] /system/bin 100% full?

Hi,
I unrooted and ran the 4.5.141 update. I'm now on Android OS 2.3.6. I am now trying to follow the directions to re-root from here: http://www.android-advice.com/2012/root-the-motorola-atrix-4g-running-4-5-141/
However, when I get to the step where I run the command:
Code:
cp /preinstall/su /system/bin/
I get the error "cp: write error: No space left on device" which I thought was very odd....so, I ran the command
Code:
df /system/bin
and the output I see is:
Code:
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/block/mmcblk0p12
326071 326068 3 100% /system
Is this possible? How do I get su back on to /system/bin?
How can it be that the /system partition is full? Is there a way to resize it, if that's the case?
Please help!!!
did you do step 6 before step 4
check this out THIS
Obviously, otherwise it won't work. My problem is that /system has no free space. How is that possible?
quordandis said:
Obviously, otherwise it won't work.
Click to expand...
Click to collapse
a simple 'yes', without 'tude, would have sufficed.
Ok, here's what I had to do to make this work. First, you have to check if you have Superuser.apk saved in /system/app. If you do, delete it (you'll reinstall this later).
Since I also wanted to install the latest version of Swype, first, rename /system/lib/libSwypeCore.so to /system/lib/libSwypeCore.so.bak
Then, cp /system/app/Swype.apk /sdcard/Swype.apk.bak
After you've copied the stock Swype to the sdcard, then rm /system/app/Swype.apk
This should provide you with enough room on /system to cp /preinstall/su /system/bin/su
The rest should follow accordingly.
-Q

Copy Files programmatically from SDCard to /System help?

OK, So I'm developing this app Specifically for CyanogenMod that Copies a few apps and Sound Libraries to a few Different folders in /System. After the Files download into a folder in the Internal Storage of the Device (An LG L90 running CyanogenMod 13), /SDCard/CmSoundMod, it extracts all the zip files into /SDCard/CmSoundMod/unzipped/*Library Name Goes Here*/ with a separate folder for each Library. I'm trying to copy an example file from /SDCard/CmSoundMod/unzipped/SystemFiles/sample.txt to /System to test it out but All the Methods I know are not working! Ive tried using
Code:
Process p = Runtime.getRuntime().exec("su", "cp -r sdcard/CmSoundMod/unzipped/SystemFiles/sample text /System");
(I mounted System RW, and Remounted RO when finished this is just the main code used for copying)
Can some one point me to a piece of code that works for them? (Java)
Thanks!
try with this:
Code:
Process p = Runtime.getRuntime().exec("su", "cp -r sdcard/CmSoundMod/unzipped/SystemFiles/sample[color=red]\[/color] text /System");
the android terminal is based on the Unix terminal. and in a Unix terminal the space in the name of file or folders is not recognized, you need to replace it with "\ ".
sorry I made a mistake:
Java does not recognize the back Slash then you replace '\' by:
Code:
\\
I try on my device me it works!
Code:
Process p = Runtime.getRuntime().exec("su", "cp -r sdcard/CmSoundMod/unzipped/SystemFiles/sample[color=red][b]\\[/b][/color] text/System");

Resources