Hey guys I basically did everything that the Cricket how to said, but with the Metropcs logins and passwords. I have flashed several phones before, but not an Android OS. The phone works with internet and picture text coming in, but the apps. like Youtube and Google maps will only work on WIFI and not on the network and MMS out will also not work.
My assumption is that it has to do with this whole autostart file thing. I am so new to this programming stuff that I am not sure what to do when it comes to this.
So I used QPST and CDMAW to program the back end so that is probably why the Internet works. APN and Proxy settings are all correct, but here is the only place I have an error.
These are the directions:
Before starting the next step make sure you have the u2nl file and autostart.sh in this folder c:/android/tools
"Now go to the command prompt on your pc and type the following commands:
cd c:\android\tools
adb remount
adb push c:\android\tools\u2nl /system/bin/u2nl
adb push c:\ android\tools\autostart.sh /data/opt/autostart.sh
Now:
adb shell
chmod 0755 /system/bin/u2nl
chmod 0755 /data/opt/autostart.sh
reboot"
My error begins when I type the adb remount.... it states unable to find device or something like that.
I plugged phone to computer not in Diag mode or any mode, just turned it off then back on and plugged it in. Is there a setting on the phone I need to check?
Then I go ahead and do those push commands just for the hell of it, it just scrolls through this whole display of things.. not sure what its doing.
The adb shell part works and so do those other commands after....
When I am done with the last line that has the autostart.sh and hit enter...
The phone doesn't reboot, I just unplug and then turn off and then back on. I would have thought there would be a script to reboot phone or something...
So what am I missing or is it not even possible to get Google maps and youtube to work on Metroweb... has to be on wifi??? I have seen people say they have done it...
Any help would be appreciated..
Related
Guys, I just found this CIME at http://forum.xda-developers.com/showthread.php?t=512530&highlight=hero+cime
Was wondering if:
a. it will install onto a rooted Hero
b. if a rooted Hero will still be able to detect, download and install OTA updates
Advice is much appreciated, thanks!
I just rooted my Hero using this technique and confirm that it works:
http://theunlockr.com/2009/08/08/how-to-gain-root-access-on-your-htc-hero/
The new CIME is nicely installed, and that works well too. Now I'm just not sure if the phone will receive OTA updates. The only thing different is the fact that the phone is rooted.
Gulp.
Right. Thinking logically, since I rooted my phone by following these steps:
15. If the serial number and the word fastboot next to it popped up, then go back to the command prompt on the computer and type
fastboot boot cm-hero-recovery.img
16. Once the phone boots up into the recovery screen type the following in the command prompt on the computer:
adb shell mount /system
adb push su /system/bin/
adb shell chmod 4755 /system/bin/su
adb push Superuser.apk /system/app/
adb shell reboot
17. Once the phone reboots, click the Menu button and click Settings.
18. Goto Applications > Development and check the USB debugging on.
19. While the phone is still plugged in, goto the Command Prompt still up on your computer and type:
adb devices
You should see a serial number, which means the computer is seeing the device.
20. Then type:
adb shell
su
The phone should pop up an su request. Click Always Allow on the phone.
21. Type:
reboot
Logically, I haven't really changed anything else on the phone aside from:
a. copying in 2 APKs, one SU and one Superuser.
b. Setting permissions.
hmmm?
It does work, but with the IME I can only type simplified Chinese in Stroke input though (traditional Chinese is okay for Cangjie)
Now I'd be appreciated if I can get help of getting the attached "default.xml" into /system/customize/CID for displaying Chinese.
That is strange. Did you set TouchInput Chinese settings to use Pinyin?
I actually used the other method to did mine... but I think both ways works ^^
I installed the CIME on my rooted Hero with the method described in the linked thread, and it works like a charm.
I'd like to run adblock.sh and Nimbuzz after the phone has booted and connected to the internet. So far I've been able to write code that launches nimbuzz via a shell script like this:
Code:
am start -n com.nimbuzz/com.nimbuzz.InitScreen
but nothing happens when I save that to a file called autostart.sh in /data/opt/
However, issuing that command via adb or a terminal session does launch the app. I looked at other .sh files (userinit.sh etc) and saw that the PATH variable was defined so I added that but still nothing.
I figure running adblock.sh should be easy enough but have no idea how to make the script check for an internet connection. I figure I'd have to wait about 120 seconds for the phone to boot and acquire net connectivity (either 3g or wifi), so I could use something like sleep 120 to pause the script for two minutes before attempting to continue.
Could someone help me build an autostart.sh file? I'd really appreciate the help.
well... could someone please point me to a tutorial on shell scripts for android then? I've applied fu but have yet to come up with anything functional.
Hey bud,
Try saving the script in /system/sd, and naming it userinit.sh
If there already is a userinit.sh, just add the line to the very end of the file. You'll need to edit it in the computer
adb pull /system/sd/userinit.sh "C:/userinit.sh"
open the file in wordpad, make your addition,
adb push "C:/userinit.sh" /system/sd/userinit.sh
PM me if that doesn't work.
Ok so this all started 7 hours ago.
I did a factory reset and I couldn't get passed the gmail account login. I tried multiple times, and tried resetting. Didn't work.
So I looked online to see if I can use wifi, and I could.
http://modmygphone.com/forums/showth...1891#post51891
I updated my drivers, downloaded Android SDK.
I got up to the part where I type " adb shell "
It says no devices found. Please help. Thanks in advance :]
Currently I am in stock ROM RC29.
I am trying to do this on the site above:
"6. Now type this on your G1 keyboard..
<enter>setprop persist.service.adb.enable 1<enter>
7. Now.. Open the command prompt on your PC ( Start > Programs > Accessories > Command Prompt )
8. Type "adb shell" without the quotes.
(Just in case typing that doesn't do anything.. Navigate to the folder you've unzipped the ADB Files and type there instead)
9. Then when the '$' comes out .. type this:
am start -a android.intent.action.MAIN -n com.android.settings/.Settings
9. Take a look at your G1 and now it'll be in the WiFi settings section. Configure it.. Connect to your network.. And done!"
I find this guide:http://forum.xda-developers.com/showthread.php?t=532719 much easier to follow
the code
cd C:\android-sdk-windows\tools needs to be typed in the cmd before typing in adb shell.
thanks for the guide, but I followed what you said/the guide said, still the same result =/
TmobileDash12 said:
thanks for the guide, but I followed what you said/the guide said, still the same result =/
Click to expand...
Click to collapse
Do you have the android-sdk-windows file on the root of your C drive?
Debugging
Did you make sure to add a path for adb in the environmental variables tab on the pc, and also make sure that usb debugging is checked off in the settings>applications>development tab.
It is in my C drive or root folder.
I can't access settings because my phone's stuck on the login screen.
I have been trying to make this whole adb think work for about twenty hours strait and I still have not gotten very far. I own a mac and no pc and updated to froyo with my buddies pc. I have followed all the directions to a T over and over using terminal on the mac and I can get to the ADB commands and even to where I can see my phone by clicking devices but I must be missing something important. ANY HELP WOULD BE REALLY APPRECIATED I AM ABOUT TO PULL MY FREAKING HAIR OUT!!!
Ok, so if you can see your phone through adb, then you are definitely on the right track. Unfortunately, I'm not really familiar with OS X anymore so I'm not quite sure how to do it. Just sit tight for now until someone who does use a Mac, or has more of a clue then I do can help you out.
But seriously, don't pull your hair out. It won't stay on your head forever ya know...
Edit: oops, just saw this is JI6 (Froyo) not JF6, so I can't help you, but here is a general overview:
from terminal inside Android sdk main directory:
tools/adb devices -> list all devices connected that ADB can see
tools/adb shell -> gets a normal user shell on your phone
tools/adb reboot recovery -> reboots into recovery mode, suitable for update.zip root method
--------------------------------
Place the root update.zip on internal sdcard.
from terminal inside Android sdk directory:
tools/adb reboot recovery
Select the update software option, and you will be done.
laxwillsch said:
I have been trying to make this whole adb think work for about twenty hours strait and I still have not gotten very far. I own a mac and no pc and updated to froyo with my buddies pc. I have followed all the directions to a T over and over using terminal on the mac and I can get to the ADB commands and even to where I can see my phone by clicking devices but I must be missing something important. ANY HELP WOULD BE REALLY APPRECIATED I AM ABOUT TO PULL MY FREAKING HAIR OUT!!!
Click to expand...
Click to collapse
Start simple:
If you open a terminal on the mac, and go to your android SDK tools folder; what happens when you type ADB shell?
Or if you type any of the ADB push commands?
You need to give more detail around what you are seeing for us to help you.
Ok so if I am in terminal and i type in my /android-sdk-mac_x86/tools nothing happens and it just says /android-sdk-mac_x86/tools is a directory. But if I type the same but with /tools/abd it opens the abd command lines, like how to write code. Then when I try to "adb push rageagainstthecage-arm5.bin /data/local/tmp/rageagainstthecage-arm5.bin"
it says "-bash: adb: command not found"
however when I type laxwillsch$ /android-sdk-mac_x86/tools/adb shell
it does give me the drop down $
but when I then try to write the next line of code "chmod 0755 rageagainstthecage-arm5.bin"
it says "chmod: rageagainstthecage-arm5.bin: No such file or directory"
I am stumped I am beginning to think i need to buy a pc as I am very interested in android development and want to learn more, but it seems all the tutorials are run assuming you are on a PC
EDIT** I have downloaded the android SDK started pack, and the 2.2 root pack and they are all in my /android-sdk-mac_x86/tools folder that is directly on my Macintosh HD for simplicity
Do you know how to change directories (cd command)?
The problem is that you are trying to work in one directory, but all your tools are in another.
So change directories to the tools directory:
cd /android-sdk-mac_x86/tools/
now run your adb commands - you may have to type ./adb to tell your mac to look in the current directory for the adb command (that is what ./ means "start here")
Also, try to understand what is happening so you can more easily troubleshoot: chmod is a command to change permissions, and you are running it on the phone. If you can't push the file to the phone, then you can change it's permisssions. I guess you never got rageagainstthecage on the phone, so there is no way to chmod it.
If you can't do this on a mac, a PC is not easier. I use both, and like both, but you need to learn basic commands first - they apply to the mac terminal and the windows cmd prompt.
Getting root means moving in and out of the phone - adb shell - puts you in a terminal on the phone. So you really need to understand cd (change directory); pwd (present working directory - shows you where you are); cp (copy); and know your current path - what the ./ does.
I hope this helps, not trying to sound condescending - maybe practice a linux terminal tutorial would help
Thanks so much, I am at school right now and cant test out all that but you are really helping me understand all this! I will post tonight and let you know how it goes. again thank you
ok so i dont have my usb cable with me but I was playing around with the commands that you suggested and ureka! i finally got to a point where it says "h70-33-65-19:tools laxwillsch$" thats a first! and when i type pwd it shows "/android-sdk-mac_x86/tools" so that means I am working out of the right directory right? and from here I enable usb debugging connect my phone then just copy and paste the codes from the thread correct?
yes, it sounds like you are on the right track. But take it nice and slow when you follow the steps. It is very important that the commands are entered exactly as you see them.
Also, one step tells you to wait for something to run and kick you out of ADB - wait just like it says - takes about 45 seconds but feels like forever.
If you are in the tools directory - just by typing "adb" no quotes will give you whole page of adb commands - if you get a "command not found", then you need to add the ./ and make it ./adb
Hope this helps and again, read the commands step by step a couple times first so you understand what is happening.
In a nutsell, you push the rage file;
change its permissions, run it;
get kicked out of ADB and then open a new ADB shell;
you are now root;
remount the system partition to give you write access when it reboots;
reboot;
push over some files;
change permissions on files you pushed;
reboot;
Some things to know - SU is a command for gaining root access; when you use SU your prompt changes (in adb shell) from $ to #
If you are succesful you should see the SuperUser app listed in your apps.
Done and Done just rooted successfully couldnt have done it without you! thanks so much
Could anyone kindly share the adb code to change the permissions of an apk and push it to system/app/ ?
Using adb from a PC.
Please and thanks. :fingers-crossed:
Krsmqn said:
Could anyone kindly share the adb code to change the permissions of an apk and push it to system/app/ ?
Using adb from a PC.
Please and thanks. :fingers-crossed:
Click to expand...
Click to collapse
You know you can set the permissions before you push it to /system/app
Windows right?
http://www.cyberciti.biz/tips/windows-change-access-permissions-from-the-command-line.html
Or after you push it to /system/app
Code:
adb shell chmod <permissions> <filename>
Thank you for the reply.
To push to system/app, do I have the code right?
adb push xxxxxx.apk /system/app/
?
I try that and I get the error "device not found"
adb devices shows my device... wth?
Can anyone help?
How to Push Application to /system/app
Krsmqn said:
Could anyone kindly share the adb code to change the permissions of an apk and push it to system/app/ ?
Using adb from a PC.
Please and thanks. :fingers-crossed:
Click to expand...
Click to collapse
Krsmqn,
The code was missing a little information, I am sorry. First you need to make sure adb is enabled on the Kindle by
pulling down the upper status bar where you see the time. After you pull it down select More+ the go into
Security make sure Enable ADB is turned On. Next click the <- Arrow Back, then choose Device. Make sure
Allow Installation of Applications is turned On. If all this is OK, then let's test ADB. Make sure the Kindle is
plugged into USB, next go into Windows Device Manager by Right Hand Mouse Click on "Computer", select
"Properties", next select "Device Manager". Do you see Android Composite ADB Interface under Kindle Fire?
If no, go back to our tutorial and reinstall the ADB Driver as outlined in this tutorial:
http://forum.xda-developers.com/showthread.php?t=2069117
Once ADB is functioning properly, then let's PUSH files!
First let's make sure adb is running and make sure adb see's the Kindle. Please run these commands:
Code:
adb kill-server
adb start-server
adb devices
The output after devices will be a serial number, if this looks good, move on. First you need to make
sure the apk you want to push is in the same directory as adb.exe - if you have moved the apk to
the adb.exe directory, then run the following:
Code:
[FONT=Verdana]adb remount
adb push file_name_comes.apk_here /system/app/
adb shell chmod 644 /system/app/file_name_comes_here.apk
adb reboot[/FONT]
Does this help?
prokennexusa said:
Krsmqn,
The code was missing a little information, I am sorry. First you need to make sure adb is enabled on the Kindle by
pulling down the upper status bar where you see the time. After you pull it down select More+ the go into
Security make sure Enable ADB is turned On. Next click the <- Arrow Back, then choose Device. Make sure
Allow Installation of Applications is turned On. If all this is OK, then let's test ADB. Make sure the Kindle is
plugged into USB, next go into Windows Device Manager by Right Hand Mouse Click on "Computer", select
"Properties", next select "Device Manager". Do you see Android Composite ADB Interface under Kindle Fire?
If no, go back to our tutorial and reinstall the ADB Driver as outlined in this tutorial:
http://forum.xda-developers.com/showthread.php?t=2069117
Once ADB is functioning properly, then let's PUSH files!
First let's make sure adb is running and make sure adb see's the Kindle. Please run these commands:
Code:
adb kill-server
adb start-server
adb devices
The output after devices will be a serial number, if this looks good, move on. First you need to make
sure the apk you want to push is in the same directory as adb.exe - if you have moved the apk to
the adb.exe directory, then run the following:
Code:
[FONT=Verdana]adb remount
adb push file_name_comes.apk_here /system/app/
adb shell chmod 644 /system/app/file_name_comes_here.apk
adb reboot[/FONT]
Does this help?
Click to expand...
Click to collapse
Thank you for the help. I am thoroughly confused. This is going to be as detailed as I can make it.
Ok.... here's what happens:
The device shows up on my computer in device manager as "kindle fire > android adb interface" ... good right? But when plugged in, the usual "usb connected interface with the turn on usb storage button" doesn't show up on my kindle. The notification drop down only says "connected to a low power charger" .. blah blah. I will get to the CMD stuff in a sec.
On the kindle:
Besides the above mentioned stuff, when I press More :
Settings > My Account> the menu closes. The entire menu, so now I am looking at my home screen.
Settings> Applications>Notification settings> results in going back to the "more" or settings menu.
Settings>Applications>Installed Applications> seems to work . Shows both lists. All & Running.
Settings>Applications>Sync Amazon Content> results in nothing. Below that, Amazon App list is empty.So... figures.
Settings>Parental Controls are grayed out.
Settings>Sounds&Display> Everything here works except for >Notification Sounds> Back to Settings.
Settings>Wireless>Connects fine (didn't try bluetooth)
Settings>Device>About>All info is there (update kindle is grayed out)
Settings>Device>Storage>Back to Settings
Settings>Device>Date&Time> Time grayed out. Date grayed out. Select time zone works. Use 24h works.
Settings>Device>Allow Install of Apps> Works (is turned on)
Settings>Device>Reset to Factory Defaults> Menu pops up (are you sure blah blah) but I already did that and it's why I have these problems.
Settings>Location-based Services> Enable location works..
Settings>Language&Keyboard>Device language works.
Settings>Language&Keyboard>Keyboards>Default is Japanese? Keyboard Settings>All options work. But Japanese is the only language option.
Settings>Security>Everything here works, adb is on. No device admins.
Settings>Legal & Compliance>Notices>Everything here is fine.
Settings>Legal & Compliance>Terms of use> Back to Settings menu
Settings>Legal & Compliance>Safety stuff> Works
Settings>Legal & Compliance>Privacy>Opens Chrome (see chrome problems)
So that's what's up with the settings.
App issues:
Chrome> "Critical functionality required to run chrome is missing; either your chrome installation is incompatible, or not compatible with this version" Click ok and chrome closes. Chrome is the only browser installed that I can see.
Terminal Emulator> "Terminal Emulator has stopped" error msg.
Google search works untill it opens chrome.
Navigation> won't load (hangs at waiting for location with location on and wifi connected)
Maps> works including search. and wiki until you try to open chrome.
Latitude> works except when chrome in involved.
Google Drive> "Google Drive has stopped"
Youtube> Works fine until chrome is opened.
Camera/Video player/Music player/Gallery> Work
94/7fm (Streaming music app)> works except chrome is opened
Calendar> Won't open, asks you to register> registration attempt just closes without action.
Gmail>works untill chrome is opened.
Kindle Docs> Opens but is empty>cloud service fails at sign in.
News&weather> works until chrome is opened.
Amazon Video> closes instantly.
A few "go launcher apps (appcenter, gamezone, themes ,etc...) open but try to open chrome and fail.
That's about it for apps.
ADB:
adb devices: shows device
Try to push es file explorer renamed to ES.apk, located with adb.exe:
Code:
[FONT=Verdana]
c:\SDK\platform-tools>adb remount
remount failed: Operation not permited
c:\SDK\platform-tools>adb push ES.apk /system/app/
failed to copy 'ES.apk' to ' /system/app/ /ES.apk' : Read-only file system
c:\SDK\platform-tools>adb shell chmod 644 /system/app/ES.apk
Unable to chmod /system/app/ES.apk; No such file or directory
c:\SDK\platform-tools>adb reboot
[/FONT]
Rebooted to no avail. Am I still rooted? Do I need to change the permissions before I move it?
I hope I gave enough info. I'll be checking back frequently, as I really want to get this fixed.
*Edit*
On my other thread (usb not working) You're info helped me to install es file explorer. Thank you! I will try to figure it out and keep you posted.
No sound - biggest issue
Ok, I figured that until I can get all this google stuff worked out, I'd just side load apks. No problem. Installed Dolphin Browser HD and some other apps. After downloading winamp and putting a bunch of music on my device, I realized that there's no sound from the external speakers. Headphones work fine. Any ideas?
EDIT* sound all the sudden started working.. weird.
Kindle Fire HD - Odd Issues
Krsmqn said:
Ok, I figured that until I can get all this google stuff worked out, I'd just side load apks. No problem. Installed Dolphin Browser HD and some other apps. After downloading winamp and putting a bunch of music on my device, I realized that there's no sound from the external speakers. Headphones work fine. Any ideas?
EDIT* sound all the sudden started working.. weird.
Click to expand...
Click to collapse
Krsmqn,
If you continue to have these oddities, I would recommend you to order a USB Factory Cable so you
can flash a fresh copy of the software back to your Kindle. We do sell the Factory USB Cables for $15
shipped. Just PM us if you would like to order one. The Factory USB Cable allows the Kindle to be
booted in Fastboot mode.
app can not run when push /system/app
Hi all,
When i push app in /system/app when reboot and click on icon app but app hang and not run.Please help me ? I install my app on sd card run very well