yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] cyberaddict:
I noticed that the wallpapers in Rosie.apk take up 2.4mb and could probably be removed except for a default one (wallpaper2 only take 150kb). That would save some space and I know the Wallpaper Set and Save works fine with Rosie. Taking out the wallpapers and extra images knocked Rosie.apk to 965kb from 3.56mb (saves 2.6mb)

I bet there are a lot of graphic resources that can be stripped out of different apps to save more space.

I can't re-sign Rosie.apk on my current machine, anybody willing to sign and post it or PM me? I'll test it out and make sure it still works. (rename to .apk to sign, can only post .zip here)

edit: I just remembered that wallpaper1 is required for the landscape lockscreen. The xml will have to me modified to point to wallpaper2 for a stripped down version.
[G1 Android Development] kylebrodeur:
Do we really need WapBrowser.apk?
[G1 Android Development] kylebrodeur:
I can tests once signed...new pc and can't sign anything yet. :(
[G1 Android Development] BombaMyte:
I just got rid of it... *shrug*
[G1 Android Development] kylebrodeur:
Me too...works fine with out it.
[G1 Android Development] chunga:
offtopic* well I like android, because it's fast and stable. I installed rosie and I have force closes and a sluggish UI, even with tweaks, optimizes etc.. The Rosie UI (widgetery) is awesome, but not usable,I like some extra functions but...

come on, slow down people, rosie needs a bit more memory and processor to run fine, so not on our G1's or G2's
[G1 Android Development] afflaq:
just fyi don't remove /system/lib/zi -- even if you're not from HK or TW ..apparently those are used for other things. Caused Launcher.apk to go into an endless cycle (lol). as far as speeding things up..I've gone through the following steps:

* bump cpu scaling up to 528mhz

* dalvikvm and libdvm.so from ion

* removed Mail.apk and libHtcMail_jni.so

* removed PCSCII.apk

* HTC_IME.apk and Clicker.apk - removed HTC_CIME.apk

* removed Rosie.apk and all associated widgets. As much as I like it it's just not fast. Yanked Launcher.apk with autorotate from Cyanogen's builds

* removed footprints and associated libexif.

* added 32mb pagefile swap partition to my sdcard and enabled it.

* Moved Launcher.apk to /data/app/ from /system/sd/app_s

* removed WapBrowser.apk

* dexopt-wrapper'd everything

* Pushed back the Hero based Camera.apk

This has left me with what is essentially a cupcake-ish build with the new social networking support, wpa2-enterprise support natively through the UI, the brilliant new lockscreen that includes notifications (I'm in meetings most of my days lately, and having a Calendar with proper notifications is wonderful), new calendar, and twitter integration. I'm pleased, and things are running pretty lightning fast.

Most of my performance enhancing things couldn't have been done without cyanogen..i love him.
[G1 Android Development] doubleokneegro:
hey what did you do to import the ion dalvikm n lib? just pull it from the ion build and adb push to /system/lib and /system/data? ive used almost all of the combinations of performance enhancers for Hero... ive got it down packed to a good solid performance... was wondering if that would help... and not hurt.

and basically i can do everything else by rm -r whatever it may be, like the mail app, footprint.. etc? im guessing

EDIT: Occasionally i get the blackout screen when going home, which then leads me to the loading rosie... dont really mind it tho
[G1 Android Development] afflaq:
Yep, that should be all that you need to do. Honestly I'm not sure that it makes any huge difference, but whatever!
[G1 Android Development] Darkrift:
I want to do everything possible to make rosie work better, not remove it. It is the only reason I use the Hero build besides the black status bar which could be themed. I will check into having someone repack/sign rosie.apk for me real fast (haykuro if he answers me)
[G1 Android Development] duramas:
Here is a Rosie.apk with the wallpapers replaced with plain black versions to cut down on space. I had issues when I just removed some of them.

Its an apk file within a zip so unzip it.
[G1 Android Development] kvizz:
so... how do i remove this stuff from terminal?

no adb please, i don't know how to use it. YET!
[G1 Android Development] BUNZ1:
Does your launcher.apk auto rotate work? Mine is not autorotating.. at all.
[G1 Android Development] bestwebs:
Hi,

Is this signed?

Do you notice a notable speed increase?

Thanks

:)
[G1 Android Development] duramas:
Of course its signed =p

Don't know if the speed is increased because I was using the lazy system on sd method and now system is actually in the internal memory.
[G1 Android Development] hazeline:
Adb help.

Hi, if all of us are removing the Hero build Rosie UI. Why nt use the hero build beta 3 which does nt include the rosie ui. The rotating of landscape for Launcher is smooth. It has everything except Rosie UI and the lock screen. I tried installing Rosie UI and deleting the unwanted apps through adb.

Here is a quick way to uninstall through adb. Download the ADB USB Driver from here http://xdaforums.com/showthread.php?t=438574.

On your G1, go to Settings Applications Development [X] USB debugging

Download this file: android_usb_windows.zip

Unzip it to a folder

Connect your G1 with your PC

When it asks for driver location choose the unzipped folder

You'll see sth like "HTC Dream Composite ADB Interface" on success

Connect your phone with your USB Cable( DO NOT MOUNT YOUR PHONE). Then go run, type CMD, press Enter.

1. To kick start the ADB, type adb remount, then press enter.

2. To enter ADB SHELL, type adb shell, then press enter. You should see this sign appearing"#"

3. Press enter once.

4. To see app, if your are nt using app2sd. Type cd data,this will go into the data folder in the phone.

5. Type ls, this is to see what folders u have in the data folder. You will see a few folder comin out. You will see app_s.

6. Type cd app_s. This will go into the app folder.

7. Type ls, this will allow u to see the apps in the app folder.

8. Type rm -r /data/app_s/(name of the app you see in the app folder that u want to remove) For example rm -r /data/app_s/Launcher.apk. This command will remove the app u do not want.

9. Press Enter, then congrats you have remove the app.

10. After u finsihed uninstalling the programmes u nt needed, type reboot. This is for safety measures.
[G1 Android Development] theslam08:
Thank you for that quick little breakdown, I wanted to get rid of many things myself and was unsure of exactly how about to go do it. Now I know, thanks.

PS. This should be posted in the first topic, as its a real quick way to 'clean up'.
[G1 Android Development] namsir:
People got issues when adding Album widget and Photo widget to the Home screen? i keep getting force close......any fix on it yet? I've moved them from app_s to data/app....still getting force close...
[G1 Android Development] free-sidux:
cool, thank you! have memory problems, so solutions of this kind are much appreciated :D
[G1 Android Development] afflaq:
Because the hero beta3 build was buggy and slow as hell? Most people seem to be wanting the Rosie UI - which is fine. I'm of the opinion that as long as you clean up the system as much as possible, move Rosie to the internal memory, and don't run too many widgets, Rosie will probably be fine. For me, it wasn't necessary. I run a fairly simple home screen and I only wanted some other things - mainly calendar reminders/lock screen/music player, so it made more sense for me to use the default Launcher. I certainly wouldn't reccomend anyone use beta3 though..I don't think half of the things even worked.
[G1 Android Development] hazeline:
Beta 3 applications are working, however the gps is nt working. It is my mistake for saying beta 3, it should be beta 4 which has gps fixed. I feel that beta 4 has almost everything i neeeded, music app working, dailer working, contacts working, camera working, calander working,browser working,etc.

Correct me if i am wrong, the released hero build has everything in it, however beta 4 had been cut down only.

The adb help i given is for people who feels that Hero build has been eating up resources. Such as Rosie UI.:)
[G1 Android Development] Gameloft:
Please Drop Those Ion things that tend to increase performance

Hey, please someone provide the ion things with instruction on how to do coz i dont want to download the full build just to extract 2 things
[G1 Android Development] bestwebs:
Hi,

Thanks for the optimization tips.

1-I have just replaced Rosie with the 5 screen launcher if anyone needs it.

Rename the zip to apk and push it.

2-Ran Hero Speed up 2.0

Option 4 and 5.

3-Also I have found if safe to remove the following:

The 1st item is HTC Sync

Frees up about 10 megs in memory.

I start out with 64 megs free space before I install my apps.

adb remount

adb shell rm -r /system/sd/app_s/PCSCII.apk

adb shell rm -r /system/sd/app_s/HtcClockWidget.apk

adb shell rm -r /system/sd/app_s/HtcFootprints.apk

adb shell rm -r /system/sd/app_s/HtcFootprintsWidget.apk

adb shell rm -r /system/sd/app_s/HtcPhotoWidget.apK

adb shell rm -r /system/sd/app_s/Quickoffice_HTC_1.0.1.apk

adb shell rm -r /system/sd/app_s/WapBrowser.apk

adb shell rm -r /system/sd/app_s/Weather.apk

adb shell rm -r /system/sd/app_s/com.htc.MusicWidget.apk

adb shell rm -r /system/sd/app_s/com.htc.StockWidget.apk

adb shell rm -r /system/sd/app_s/com.htc.TwitterWidget.apk

adb shell rm -r /system/sd/app_s/com.htc.WeatherWidget.apk

adb shell rm -r /system/sd/app_s/htccalendarwidgets.apk

adb shell rm -r /system/sd/app_s/htccontactwidgets.apk

adb shell rm -r /system/sd/app_s/htcmailwidgets.apk

Or From Terminal:

su

rm -r /system/sd/app_s/PCSCII.apk

rm -r /system/sd/app_s/HtcClockWidget.apk

rm -r /system/sd/app_s/HtcFootprints.apk

rm -r /system/sd/app_s/HtcFootprintsWidget.apk

rm -r /system/sd/app_s/HtcPhotoWidget.apK

rm -r /system/sd/app_s/Quickoffice_HTC_1.0.1.apk

rm -r /system/sd/app_s/WapBrowser.apk

rm -r /system/sd/app_s/Weather.apk

rm -r /system/sd/app_s/com.htc.MusicWidget.apk

rm -r /system/sd/app_s/com.htc.StockWidget.apk

rm -r /system/sd/app_s/com.htc.TwitterWidget.apk

rm -r /system/sd/app_s/com.htc.WeatherWidget.apk

rm -r /system/sd/app_s/htccalendarwidgets.apk

rm -r /system/sd/app_s/htccontactwidgets.apk

rm -r /system/sd/app_s/htcmailwidgets.apk

4- Installed set cpu 128 min and 528 max

The phone is running like a Ferrari now.

I updated the Hero 2 Speedup script by Tehseano to do this if anyone wants it, let me know.

I will post it.

:)
[G1 Android Development] kvizz:
how do you remove apps through terminal?

i want to remove launcher and stuff, cause im using rosie.

thanks a lot! ^
[G1 Android Development] borodin1:
Is it possible to make cupcake-like build (i.e. no twitter/facebook/footprints and all that other social crap, no exchange) but with full Rosie (with widgets) and have it run smooth on G1? May be give it 3 screens instead of 7.... I don't know.... I like eye candy that Rosie provides but I know that I wouldn't use most of the futures... I just like the looks :D
[G1 Android Development] METHOD1911:
when i try the commands to remove im getting no such file or directory what am i doing wrong
[G1 Android Development] METHOD1911:
help

adb shell rm -r /system/sd/app_s/com.htc.StockWidget.apk when i try this im getting no such file or directory i even try it without the adb shelll i then get rm is not recognized as as a internal or external command operable program or batch file PLEASE HELP WHAT AM I DOING WRONG
[G1 Android Development] bestwebs:
Hi,

Using adb or terminal?

Is ADB working on your computer?

Do adb remount 1st. (forgot to mention this)

:)
[G1 Android Development] METHOD1911:
i did i keep getting no such file or directory found but i use the scripts to take off the launcher everything went perfect im using adb and yeah i have the it on my comouter
[G1 Android Development] METHOD1911:
ok i just tried removing the stock widget i dont know if it went throguh or not when i hut enter it just goes to the next line does give me any confirmation is that the way it goes
[G1 Android Development] bestwebs:
Hi,

Yes,

When it goes to the next line it means the operation has completed for that command.

If it doesn't you would get an error like no such file or folder.

:)
[G1 Android Development] METHOD1911:
okay how the hell do u remove the tutorail vides and the tetter game its safe to removee the wap browser i read somewhere do remove the stocks i never use that how do u remove that thanks for hittin me back to
[G1 Android Development] METHOD1911:
help

how do u remove the following the stocks application i removed the widget dont know how to remove that and the tutorial videos and teeter and wap browser
[G1 Android Development] Rafase282:
What is that launcher.zip you have there?

Anyone knows how to lower the number of screens on roise?
[G1 Android Development] METHOD1911:
can i ask u a question man what would be the worse thing to happen if i do the apps to sd card with a class 2 and could it be reverted
[G1 Android Development] DMaverick50:
what is the wap browser?

And if there were a way do decrease the amount of screens on rosie would this increase performance?

Also, does deleting applications affect performance or just create space?

And does the search widget decrease performance at all since it remains idle unless used?

thank you
[G1 Android Development] METHOD1911:
i have no idea but i removed it
[G1 Android Development] ChefCree:
I could be wrong, but I believe you can just pull the apps and widgets from the build before you flash your rom. If someone could explain this process in greater detail that would be great. Also, is it exreamly hard to save all your tweaks and such, (your own custom buil, to an update.zip file?
[G1 Android Development] DMaverick50:
what is it that your updated script does? Also, someone said yesterday that "-r" doesnt remove only tells computer its not there so it wont look for it, dont know if thats true or whether it matters thanks
[G1 Android Development] blakestimac:
so i thought i had read in a post that its possible to push rosie and widgets to internal memory and leave all other apps in the sd. i must have been dreaming, because i tried to find that post, and now all i can find are posts that contradict that. so is it true that if you remove an app from the SD, and try to install it like a 3rd party app, it will just reinstall into the SD? Rosie, and the widgets, in the internal memory would make it faster, correct?

I really dont know what i'm talking about, i just happen to be really lucky when attempting to hack this phone.
[G1 Android Development] Rickster08:
I read that post also but cant find it,,,worked though..did it through terminal
[G1 Android Development] METHOD1911:
tutorial videos

how to u remove the tutorial videos and the the stocks application i removed the widget just dont know how to remove the application itself PLEASE HELP I READ SOMEWHERE DO NOT REMOVE THE STOCKS
[G1 Android Development] bestwebs:
Hi,

My script is the Hero 2 Speedup script by Tehseano modified , but it removes more than just the htc sync.

As shown in the post,

:)
[G1 Android Development] 281:
.

How do i delete apps in the justanothercrowds rom... not haykuros because theree is no apps_s file?
[G1 Android Development] bestwebs:
Hi,

I went back to the hakuro rom and ran the speed up hero 2 script.

Ended up with 64 megs space before any apps got installed.

It's not a good idea to install a rom that gives you 15 megs of space when installed.

It puts it all in the phone memory.

I don't know the location.

I removed it after 20 minutes.

:)
[G1 Android Development] 281:
oh... man the only reason i use this one is because of the speed and its a normal installation. not only do i not want to partition my sd card but i dont want to go through all those steps and use a slower rom, if there is any difference.

well i hope someone finds a way to delete apps off the other rom
[G1 Android Development] blakestimac:
thank you for making me sure i wasn't dreaming about it! the way these threads keep growing, i dunno if i'll ever find it.. all i know (or think i know) is that it was page 40 something.. fedammt. if anyone else knows where to find this, it would be greatly appreciated!!
[G1 Android Development] bestwebs:
Hi,

You do have a sd card with ext2 partition?

Use partition manager 9, google it.

The only option would be to do apps to sd and cache to sd to get some space.

I used this and it worked for me.

http://xdaforums.com/showthread.php?t=521143

:)
[G1 Android Development] METHOD1911:
ok

oh ok my bad
[G1 Android Development] hazeline:
Reply

I did not use google maps, thus i used this command rm -r /data/app_s/GoogleMap.apk.

However i decided to get the map apk back and i reinstalled, i noticed that rm -r does not really delete the data belonging to the apk itself, it only removes itself from the register of the apks.

Htc Tutorial Videos, belongs to this apk: HtcSetupWizard.apk

If u want to know where to see which apks u have in your phone. Go to adb

Type adb remount, then adb shell, then cd system, then cd sd,then app_s, then ls. This will show all the applications u have. I think stock is either Stock.apk or HtcStock.apk.

Hope this help, but i am nt sure how to access for app2sd because i am using beta 4.
[G1 Android Development] h.nocturna:
Oh please, if you guys find the post let me know, I've been searching all over for something like that. *crosses fingers*
[G1 Android Development] armoredraven:
Hello.

I've removed all of my unused apps from this Hero build, and now I can run Rosie, like a normal OS!

One problem I experienced though, is that now, I can't download apps from the market, the bar never fills. I figure this might be from something I removed, but I'm not too sure, any ideas?
[G1 Android Development] free-sidux:
su

chmod 777 /data/data

....
[G1 Android Development] hazeline:
Could you feedback whether free-sidux method works? I heard it is the google talk app which is the problem. I am nt sure, thus i didnt remove my google talk app and i only removed google maps and mail apk. Thank You.
[G1 Android Development] at314:
the dialer is a bit slow when i run from sdcard is there anyway to keep it in the internal memory. i removed Phone.apk and install it through adb it was a complete faliure gave me an error process.acore.
[G1 Android Development] bestwebs:
Hi,

Do this:

To move Dialer ADB

adb remount

adb shell

cp /system/sd/app_s/Phone.apk /data/app

rm -r /system/sd/app_s/Phone.apk

reboot

:)
[G1 Android Development] DMaverick50:
im sorry to keep asking this but i havent been able to get an answer (the "general" forum is great but just a little bit less helpful)

I ran sdsplit

i flashed haykuro's rom

i ran rosie speedup

i ran superuser...thread optimizer

my question pertains to this last step, while i ran it from adb some of the steps failed because of a dalvik cache issue---"...no such file directory..."

I dont even know what the dalvik cache is or whether not having it negatively affects the effect of the optimizer in question. So what is the dalvik cache and what should i do about it (some threads talk about moving it for performance but it doesnt even seem like i have it), will that last optimization script run afoul if run sans dalvik? much thanks
[G1 Android Development] midnite23:
What is the Gmail apk dependent on? I removed a few things listed in this thread, and now I can't open the Gmail app, and it won't sync my mail or contacts.
[G1 Android Development] at314:
it didnt work, same error i guess there are some other files, i pushed the files again to get signal. the idea is that the internal memory is faster executing the apks than sd card, so if i moved the necessary files that are used everyday in the internal memory and kept other things in sdcard i will have fast hero rom. it worked for few apks like Rosie.apk i removed it from ext2 partition and install it normally using adb the speed was much faster.

edit .. i just found out the reason behind slow dialer, because it has to run HtcContacts.apk every time i press dial button, i moved it to the internal memory now its much much faster.
[G1 Android Development] shafty023:
Did you notice adb to quit working after removing pcscii.apk ?

I had issues and reinstalled it to /system/sd/app_s and adb is functional again. Not sure if I'm the only one who had that issue
[G1 Android Development] shafty023:
Stk.apk vs Stock.apk

What are the differences between these two files? Anyone know?
[G1 Android Development] at314:
a question to all of you guys, when you remove unnecessary files are you trying to speed up hero rom or just free up space for installing apps????????
[G1 Android Development] shafty023:
Speed up. Rosie.apk will scan each and every widget on the system, then render the ones that you need. If you don't have those widgets on the system then it skips them and moves on thru the list. So removing widgets help speed up Rosie. "Moving" files from sdcard to internal memory will help speed up those apps. Keeping/moving some that are seldomly used to the sdcard will help with space
[G1 Android Development] h.nocturna:
Hi, I was wondering if it was possible to move things from /system/sd/app_s to /system/app using Haykuro's Official, Unwatermarked build?
[G1 Android Development] DMaverick50:
Having much trouble

My terminal is saying the files dont exist when i try to delete widgets.

Is it possible that one of the optimization scripts i ran put the widgets elsewhere and i need to be typing different commands? ive got all widgets and dont want half of them, thanks

EDIT: I am an idiot, one of the scripts put the widgets in internal memory so i uninstalled them through settings>applications>manage applications. I am an idiot
[G1 Android Development] armoredraven:
I tried this already, as well as: chown system.system /data/app

But both times, nothing happens at all, and the downloads never start.

I still don't get an error message or anything.

I down know if the problem is that I installed JAC's 1.1 optimized Rom (1.2 was released the same day, but I don't think the download link was up).

Do I need to push the fix to the phone before I use it?

Thanks for your reply

Edit: I forgot to say that I was able to download apps before I took out some files, because I remember getting Open Overclocker, Advanced Task Manager, Linda, and Wallpaper S/S...
[G1 Android Development] hazeline:
Reply

We remove app for both, space and speeding up the Hero build.

Stk.apk is for reading sim card app, Stock.apk is for showing market shares.
[G1 Android Development] xyrcncp:
I want to remove some applications from Justanothercrowd's Hero build, should I remove the .odex files as well?

ie:

adb remount

adb shell rm -r /data/app/HtcFootprints.apk

adb shell rm -r /data/app/HtcFootprints.odex

adb shell rm -r /data/app/Quickoffice_HTC_1.0.1.apk

adb shell rm -r /data/app/Quickoffice_HTC_1.0.1.odex

adb shell rm -r /data/app/WapBrowser.apk

adb shell rm -r /data/app/WapBrowser.odex

adb shell rm -r /data/app/com.HtcTwitter.apk

adb shell rm -r /data/app/com.HtcTwitter.odex

adb shell rm -r /data/app/com.Stock.apk

adb shell rm -r /data/app/com.Stock.odex

adb shell rm -r /system/app/HTCSetupWizard.apk

adb shell rm -r /system/app/HTCSetupWizard.odex

This will remove these apps right? Or would it just remove the link (the -r)?

edit: I guess I had written down the commands wrong, the /sd/ part is for apps2sd locations.
[G1 Android Development] DVS_Sokar:
If you remove the apks for the application you can remove teh odex files for them.
[G1 Android Development] xyrcncp:
Thanks. So those commands completely remove the applications right? I thought I read earlier that the "-r" simply removes the 'link' to the application.
[G1 Android Development] shafty023:
If you're referring to symlinks then no as there is no symlink for these files. They ARE stored in the directory you're removing them from. If you're talking about inodes, well that's all a delete does anyway in Linux. It just removes the link to the inode which is why the data is still physically on the drive and could technically be recovered by a 3rd party.