yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] SGTDavePwnage:
Its basically telling you that it cant copy the file because of lack of space withing the system partition.

As koush advises, if you know how to clear space that will fix the problem.

If you dont know how to remove things and are a bit unsure of what to do, reinstalling the modified rc30 / rc8 will reset the system partition back to its defaults.

Once your back and set to default you can try to install again if you want
[G1 Android Development] Henchman:
I'm assuming this is for those who have root access only?

If so, it would be nice to state that when posting these mods.
[G1 Android Development] SGTDavePwnage:
Yes this requires root access,

I can see what you are saying about perhaps specifying in the post when something requires root access, but when you look at the instructions in this case its quite obvious that this one does require root.

PS.... Cheers for the upload Koush
[G1 Android Development] Henchman:
Obviouse to em...

But probably not to everyone.

And you know the old saying. When you Assume... :)
[G1 Android Development] kron2:
where do i put Browser.apk to install it on the sd card and if so how do i use adb to see it or do i push it from like c:\browser.apk \system\app\browser.apk
[G1 Android Development] saul972:
Finally got it!!! Thanks for your help
[G1 Android Development] joshoowa:
Place it in the tools folder of the SDK folder on your PC
[G1 Android Development] kron2:
thx joshoowa i installed it finally i did have it in the tool folder but would not install but after several tries it did i was starting to think i was installing it wrong
[G1 Android Development] mack:
I've deleted most of my .ogg audio related tones in the /media/audio folder but i still get no space left. what else can i delete?

btw i'm using adb shell rm /xxx/xxx/xxx/xx.ogg to delete. is that right?
[G1 Android Development] parrothd:
Hey Hey!!!...

Had to free up some room, but it works great..

Thanks..
[G1 Android Development] foltz61:
Should be mentioned that you will lose bookmarks and the homepage is set (not locked) to Koush's site. Small price to pay for the feature. Thanks Koush.
[G1 Android Development] Koush:
Wait, what? I didn't change the homepage.

Edit: Oops, I guess I did a long time ago. I'll remove that and update the APK.
[G1 Android Development] widto08:
Does this modified browser cache to the sdcard automatically?
[G1 Android Development] vr24:
i opened up terminal and when typing in adb remound I just get "adp permission denied" ... anyone?

Any actual walk-thru's on doing this type of stuff?
[G1 Android Development] tmrepp:
Do you have a rooted phone? How about remounting read-write
[G1 Android Development] mack:
blah....deleting ringtones does not work...at least for me...so i have to reinstall RC30 modded and it worked like a charm....we seriously need an easier way of doing little mods like these.
[G1 Android Development] LvDisturbed1:
I hate not having root. Do you think it is possible to modify the browser to allow any file type to be downloaded?
[G1 Android Development] vihil:
thanks for the info about deleted bookmarks! and thanks to koush for the build <3
[G1 Android Development] vr24:
Keep in mind, I'm a total linux n00bie and very cautious. I do have root - my phone is RC29 - I did the root access from the stickie and got up and running in terminal no problem using the terminal application from the Android market.
[G1 Android Development] jzerocsk:
GG, Koush!

Does anyone know what happens if you just try to run the .apk file on a non-rooted phone?
[G1 Android Development] momentarylapseofreason:
Will not work....sorry :(
[G1 Android Development] enritt:
I dont get it.

My browser has always auto-rotated?

after enabling auto rotate globally that is.
[G1 Android Development] Koush:
I can make a version of the Browser that DOES work on nonrooted phones. The problem will be that plugins (currently only Google Gears) will break.
[G1 Android Development] bhang:
pretty much you can just use this rule for the moment...

If it looks cool it requires root, that pretty much sums it up at the moment, I think the dev bootloader can change that , in theory at least, change bootloaders and flash a rootable or pre rooted image?

it seems that somebody at goog or android doesnt like the tmob lock it down attitude and released this dev phone which just so happens to have a wide open bootloader(couple days after the present BL was dumped) that can be flashed to any(at least rooted i think) G1

bhang
[G1 Android Development] Koush:
I just uploaded a version that doesn't default to my homepage. Sorry about that :) I was playing with the Browser code around 2-3 weeks ago and forgot I had that change in. The only change is now the one I mentioned in the first post.
[G1 Android Development] jashsu:
Is there already a Browser autorotate patch pending for google's source tree?
[G1 Android Development] Koush:
No, but I can submit a patch for a proper fix... it would be another menu item under "Flip Orientation".
[G1 Android Development] jashsu:
Yeah that would be pretty cool. Worst that can happen is your submission gets downmodded because they already have it implemented in their private internal branch. I think they said there's a code drop by year's end. Never know with Google.
[G1 Android Development] caleb12:
First off, thanks for this tweak... I like being able to change orientation without having to slide out the keyboard... that is just tits.

Secondly... I was also having the issue with "No space left on device"; I had attempted to remove ringtones - didnt work; re-installed the RC30mod and that didnt work... However, this worked:

adb install Browser.apk

I uninstalled the other one first...

Couple other notes, the home page is still your webpage - no biggie though, it's easily changeable... And "Gear Settings" doesn't seem to function any longer. I can't quite remember what it looked like previously, but I thought there was a popup with more options or something. Gears is enabled, but tapping the Gear Settings does nothing.

Just food for thought, browser works great... thanks again...
[G1 Android Development] mack:
just curious...how did you uninstall the original?

btw Google Gears still work for me. it still has the Gears Settings but it did take a while to show.
[G1 Android Development] Koush:
If you adb install the Browser.apk it will work. But Google Gears will not.

adb push Browser.apk gaurantees that Google Gears will work.
[G1 Android Development] Henchman:
I don't even know what Google gears does.

So, sure, can you post that?
[G1 Android Development] Koush:
Google Gears does a lot of cool things in your Browser: location awareness in web apps, offline browsing, and more. Check out http://gears.google.com/ on your desktop.

Yeah, I'll do that once I get home. I should note that I will have to change the package name on the Browser from com.android.browser to com.android.browserplus to make so it will install side by side with the existing Browser on non-rooted phones. However, I am not sure what other consequences this may have. Obviously, it will not affect your standard browser installation, but the new browser may do strange things at times.
[G1 Android Development] I7oobie:
C:\Documents and Settings\a786720\Desktop\Android Stuff\sdk\tools>adb remount

remount succeeded

C:\Documents and Settings\a786720\Desktop\Android Stuff\sdk\tools>adb pull /syst

em/app/Browser.apk BrowserBackup.apk

1094 KB/s (0 bytes in 967504.000s)

C:\Documents and Settings\a786720\Desktop\Android Stuff\sdk\tools>adb push Brows

erBackup.apk /sdcard

failed to copy 'BrowserBackup.apk' to '/sdcard/BrowserBackup.apk': Read-only fil

e system

C:\Documents and Settings\a786720\Desktop\Android Stuff\sdk\tools>

Hmm, what am i doing wrong?
[G1 Android Development] I7oobie:
Oh, yes I do have RC30 with Root access...
[G1 Android Development] Koush:
Your SD card is read only for some reason. Is it inserted?
[G1 Android Development] I7oobie:
Yeah, I had mounted upon putting it on the cord to my laptop. It's Monday, what can I say. Works now, thanks Koush!
[G1 Android Development] caleb12:
Yes you are correct, gears does work when I properly install it... per your instructions. ;)

Just had a bit of a hassle getting around that error, freeing up space did the trick though...
[G1 Android Development] xavier6303:
Worked like a charm....Thanks Koush!
[G1 Android Development] vr24:
Looking for a little help.

I installed the SDK on my computer.

In CMD went to C:\AndroidSDK\tools

then typed in "adb remount"

Says operation not permitted. Seems obvious I need root. Do I have to do the image recovery and all that in order to install this browser update?

I'm a little new and spending hours trying to learn how all this works. There is no real good tutorial on what to do.

Thanks.
[G1 Android Development] Koush:
It's probably too late in the game to get root at this point. You've probably updated past RC29. Check the stickies in this forum.
[G1 Android Development] vr24:
When I viewed About on the phone it said rc29 -- is there another way to know?

I was able to do the recovery image and just loaded the rc30 update as well.

Getting closer, installed the rc30 update and now it seems I have root. When going through the install browser commands, it's telling me the SD card is Read-only file system...

Ok, figured it out - don't mount the SD card when plugging it into the computer :)
[G1 Android Development] vr24:
I'll be damned, Koush, you ****ING ROCK man...

Works like a charm.
[G1 Android Development] kormanb1123:
Have same think. what is going on? why is that? Please help
[G1 Android Development] jashsu:
Don't mount the sdcard when you get the popup on the G1.
[G1 Android Development] bhang:
without adb

im on JF 1.1 cause i dont have adb on th pc and would just rather do all this stuff on the fone...anybody done it with just coping apk to your sd the use su to get a root shell?

bhang
[G1 Android Development] kormanb1123:
thanks for quick response, but still same message :(

edit:

ok went right way. thank you. working just perfect
[G1 Android Development] Miserlou!:
Have you considered submitting this as a patch to Google?
[G1 Android Development] vr24:
I'm sure Google didn't put this option in for a reason.
[G1 Android Development] I7oobie:
Does anyone know the link to the g1 tmobile webkit? I seem to have lost the bookmark since doing this upgrade. I want to download a holiday ringtone, but lost the link!
[G1 Android Development] bhang:
apk installer

I doubted it would work but I just tried to use the app "app instaler" it failed(it was fun and worked fine till it tried to do the overwrite, it new it would be replacing the old one)

But I just got a wacky idea, make the sys read write, then try app installer, worst case is that id either have to find the original browser.apk and install it or install the new one using one of the more complex methods, so far I have done everything I have wanted to to on the g1 I have the sdk & adb installed but I tried it once and couldnt find the phone so I gave up. GO NATIVE, why make it harder than it needs to be.

I think Ill just follow the instructions in this post but using the term and dropping the adb and the push pull for cp & mv I hope anyway

would I need to use the droid tweak thing to mount as RW?

probably only JF knows but:

is there more room in the sys in RC30 1.1 as opposed to 1.2? Is the "no space left" error any more or less likley on a 1.1 or a 1.2 rom?

bhang

edit:

of course backing up the old one and deleting the new one went fine but now when I try

mv /sdcard/Browser.apk /system/appBrowser.apk

I get "failed on 'sdcard/Browser.apk' - Cross-device link"

anybody have any thoughts besides try adb, im almost there to go through all that it doesn't have 'cp' WTF kinda *nix doesn't have cp for linus-sake! thats crazy grrr, didnt JF add that stuff in 1.2?
[G1 Android Development] bhang:
sorry but I didnt want to edit that same post

I also wanted to have some clarity to my instructions, use a filemanager to backup the old browser.apk

use term to 'rm /system/app/Browser.apk' 'rm /system/app/Browser.odex"

droidtweak to remount /system as RW you dont need this to do the backup but you will have to do this before the 'rm's and before you run "apps installer"

Im gonna hold off on any type of howto cause its 7megs and installed but errors out...

but ATM, im stuck with it closing as soon as I open browser "force close" so Im gonna have to reflash RC30 from JF and try agaain, most seem to be reporting my same probs unless installed on a fresh rc30 by JF maybe its a diff between 1.1 & 1.2 so maybe ill try 1.2 but I think that kills my easy root via su at my $ prompt on the native term.....

there is always that other browser (steel?) and opera in the meantime while i work out what I want to do

bhang

edit:

I got adb running, it was all set up I just didnt enable usb debugging, duh, I pushed Browser.apk and it overwrote my failed install of it and now it works after a reboot and auto rotataes...

who knows, I had all but 1 step done completely with the native apps on the g1, BTW this is the first time ive used adb all my other hacks (basicly every one out worth doing) have been done just with the g1 and its apps and a mini sd usb dongle...
[G1 Android Development] I7oobie:
Anyone, just need the link. Thanks!
[G1 Android Development] s0niqu3:
love it!

i too ran into the out of space error, but reflashing the 1.2 rc30 fixed everything.

any chance for a build of the youtube app that auto-rotates?

thanks again, truly a great mod!
[G1 Android Development] Miserlou!:
I'm not so sure about this! I think this is more likely something they overlooked, definitely worth a patch submission. Plus, you get your code into the main codebase, which rocks..
[G1 Android Development] 10.2.07:
Can you recompile

Can you recompile it and instead of the name browser .. you can just name it .. The Internet .. for the icon on the desktop that way its easier to tell between .. i tried to hex edit the android manifest file to change the name from Browser to the internet .. but i think Google encrypts it ..also by renaming will it not replace the old browser .. so that this can run on non rooted phones.. and can be put on the market for others to download
[G1 Android Development] fiveohhh:
Just tried, on a freshly flashed rc30 and it didn't have enough room, I reflashed it again, and still no room:(
[G1 Android Development] vr24:
You think leaving out a MAJOR iPhone-esque feature like flipping the phone sideways and auto-rotating was a mistake?

Me, personally. I like the Browser doing it automatically, but I have nothing but problems when I set my phone to generally auto-rotate. It rotates when I put it down, and sometimes calls come in and don't show up due to the rotation... got rid of the feature and it's all back and fine again.
[G1 Android Development] d0nkey:
i would agree.. a global always flip option didnt work well for me either.. but i do rather enjoy the browser flipping..
[G1 Android Development] BobbyHill:
Yeah I don't think a global flip would be too neat. There are a lot of applications that crash when rotated...wouldn't want them doing it automatically.

(A lot of people don't realize the ipohone isn't magical and doesn't make all apps rotate seamelssly either....only ones that are written for it do so)
[G1 Android Development] neoobs:
I just use the browsers rotate feature when I want it in landscape mode... it all depends on my mood... I wish the video player didn't autorotate.
[G1 Android Development] hbguy:
hey guys,

I was looking at koush's auto rotate browser.apk thing but as you probably have figured out i'm a newb...

i installed the browser.apk via my phone so i don't know what that did. the screen slid left then right again (using droidsan tweaklite)

so i get down to the step where i have to enter:

adb push BrowserBackup.apk /sdcard

I then get the message (on the cmd on computer):

cannot stat 'BrowserBackup.apk' : no such file or directory

did i mess up when i tried to open it on my phone before? do i need to reflash and if I do, will that affect the market, browser, and street view cache moved to sd card hacks i put in?

Appreciate any help :)

hbguy
[G1 Android Development] neerhaj:
Koush, can you give some hints on how to re-compile the Browser source into apk after editing ?
[G1 Android Development] Koush:
Follow the source setup directions exactly. After making changes, go to your "mydroid" directory and run make.
[G1 Android Development] vr24:
Are you sure you did adb pull and made the backup copy of the Browser?

Also, do NOT mount your SD card when you plug the phone into the computer.
[G1 Android Development] neerhaj:
thanks for the tips. When I import the source into Eclipse, I get error for several missing classes like android.net.WebAddress. Should I avoid Eclipse and use a plain editor ?
[G1 Android Development] Koush:
You can't actually build in Eclipse as far as I know. I do edit in Eclipse, but I build from the command line.
[G1 Android Development] foltz61:
Couldn't you just pull the apk from the emulator?
[G1 Android Development] Koush:
If you are modifying source code, you have to rebuild from source. APK's contain compiled source, not source code.
[G1 Android Development] foltz61:
I was refering to the build aspect of eclipse. It builds the source before it pushes it to the emulator when you hit run correct?
[G1 Android Development] Koush:
Oh, we're talking about separate things.

You CAN of course build regular APKs (like the ones you see on the Market) in Eclipse.

However, as far as I know, you can't build the Android source code in Eclipse. It must be built within their build environment using the make command.

When you get the Android source into Eclipse, you are importing it as a Java project for editing purposes only.
[G1 Android Development] I7oobie:
Anyone? I know it's simple, but would just like to pay to download ringtones, i think it was something like gwebkit.com or something.
[G1 Android Development] johnowa636:
It probably sounds easier than it is, I was wondering if we can borrow some of the browser Steel features. Build the perfect browser: auto rotate, on-screen keyboard both portrait and landscape mode, mutiple windows, full screen mode, gears, cache to sd card. Well that's my christmas wish list. Happy building.
[G1 Android Development] shaneaus:
Thanks Koush

Everything worked like a dream until I tried to push the file onto the phone. I had to enter the address of the file along with the file name to get the push to work. I wouldn't detect the file in the tools folder.

But, got it done! Works like a charm!!!
[G1 Android Development] xavier6303:
Anyone know if this will survive a hard reset?
[G1 Android Development] manup456:
Worked first shot great. :)
[G1 Android Development] Koush:
Yes, it will. Anything in the /system mount survives hard resets.
[G1 Android Development] [RiS]:
Just installed on an ADP1 following the instructions from the 1st post.

Works flawlessly. I don't know why this is not built by default.

Thanks for your work :)

BTW, no /system/app/Browser.odex file existed on my phone. Moreover, I've noticed that there are no *.odex files on /system/app. Is this expected?
[G1 Android Development] Razor1973:
I want to try this, but your download link seems to be down. :(
[G1 Android Development] Razor1973:
OK, I just tried again and it's back up. Installed and works like a charm.

One thing I noticed, though. Your site says, "The downside is that the flip orientation menu item no longer works." My experience is different. My Flip Orientation option worked as usual using the new browser, only once I used this option once, the auto-rotation went away for good, even if I used to option again to flip it back how it was before. Only way to get this back was rebooting the G1.

Thanks!
[G1 Android Development] Razor1973:
Something else I noticed (read my post just above this one)... If you slide the keyboard open before turning the phone sideways and then turn it, the screen orientation will not flip to landscape. At that point, you need to slide the keyboard closed and then open again to get the screen to flip. Minor issue/bug.

Update: False alarm, apparently. Someone pointed out this wasn't happening to him, so I wanted to show them, I grabbed my camera and proceeded to record this happening and couldn't replicate it, even though I had reproduced it several times before while testing the browser. Odd. Sorry about this.
[G1 Android Development] dwang:
this is the reason why I don't like auto-rotate personally, surfing in bed.

http://iphone.macworld.com/2008/02/make_safari_stop_rotating_for.php
[G1 Android Development] Mi|enko:
That's a good point man. What we need is a way to disable/enable auto rotate on the fly.
[G1 Android Development] andonnguyen:
works for me =]
[G1 Android Development] andonnguyen:
browserbackup.apk usually ends up in the same folder as ADB, thats why I skipped it. and then it installed perfectly.
[G1 Android Development] dwang:
i also dont like using landscape mode with the keyboard closed because its hard to press the menu key.

And u also can't use the phone w one hand in landscape mode
[G1 Android Development] bbbblack:
Hey guys, i tried this method step by step to get the auto rotate browser. i must have effed up along the way because, now when i click browser it says "application not installed on phone. im assuming the back made wit adb push to sdcard can reverse this, but im not sure how. i tried doing adb pull /sdcard/Browser.apk (after renaming BrowserBackup.apk to Browser.apk) then i did adb push /system/app/

got nothing. did a hard rest from options, browser icon and prog gone now. time 2 reflash?
[G1 Android Development] JLine05:
When I type adb remount, the message under says adb: not found

:confused:

Anyone know what Im doing wrong?

Edit: Ok, I guess you have to use Windows command to get it. Ive gotten this far. Here is a picture of what I am seeing.

Im probably sounding pretty stupid right now, but I dont have much experience with linux, trying to learn. Thanks.
[G1 Android Development] jashsu:
You don't have adb or the Android SDK installed perhaps?
[G1 Android Development] JLine05:
I just installed it...are you supposed to type the commands in the phone or the pc? Please see my image above.
[G1 Android Development] jashsu:
Last line needs to be adb push Browser.apk /system/app/Browser.apk
[G1 Android Development] JLine05:
Im still getting cannot start Browser.apk No such file or directory.

I have the file in the tools folder of the sdk and I made sure that it is named Browser.apk.
[G1 Android Development] jashsu:
Well that's probably it. You can run adb from any folder because /tools is in your PATH, but you can't count on PATH for arguments. You'd have to type adb push /pathtotools/Browser.apk /system/app/Browser.apk

Edit: If you're on Windows, that should be adb push C:\pathtotools\Browser.apk /system/app/Browser.apk
[G1 Android Development] bbbblack:
Ok peep this...

What i did was close the cmd window, unhook the g1 from the usb.

Rehooked up the g1, fired up command prompt.

Im assuming you already know how to get to sdk and then the tools folder in cmd window.

then i typed adb devices to make sure the g1 was hooked up.

adb remount

adb pull /system/app/Browser.apk BrowserBackup.apk

adb push BrowserBackup.apk /sdcard (i skipped this)

adb pull /system/app/Browser.odex BrowserBackup.odex (skipped this 2)

adb push BrowserBackup.odex /sdcard (skipped)

adb push Browser.apk /system/app

And it went through perfect. If you begin 2 get "files not found" you may be lost. I had to do the dreaimg.nbh and jf 1.3 all over again
[G1 Android Development] JLine05:
It worked!

I was under the impression that since I set the path in windows under my computer-properties-advanced-Environment Variables that it would automatically seek out the tools folder that I specified.

Thank you so much! :D
[G1 Android Development] JLine05:
It was actually something as simple as I had to specify the path to the tools folder. Thanks for trying to help though.
[G1 Android Development] bbbblack:
LOL ! Your welcome.. i was fussing with it for about 4 hours this morning