[Q] Move keyboard apk to /system/app - Desire Q&A, Help & Troubleshooting

Finally I managed to get S-OFF and move the rest of my apps from /data/apps to /system/apps (instead of SD) (with simply Root Explorer and reboot) but there is this huge HTC_IME.apk which is my favourite keyboard but I can't activate it when it's moved to /system/apps, it force closes.
Is there a way to make it work from the /system partition?
I'm also working on to understand how to move the /dalvik-cache to /system or /cache but despite the symlink /data/dalvik-cache recreates after reboot. Should I really apply that script to /system/etc/init.d or is there any other way?
Thank you in advance.

I'm not S-OFF, so I can't really say about moving the dalvik cache to /system, but I do know there are scripts to move it to /cache (make sure your cache partition if big enough!) or to the sd card. Do a google search and you should find everything you need
About the HTC IME, I don't use this keyboard, but this is what I found while moving some of my apps to /system: some apps (such as Adobe Flash or SoundHound) install libraries which they require to work. This libraries are found in /data/data/package_name/lib, where package_name is the name of your app. For most apps, you can just copy the libs to /system/lib (not in any folder in lib), but I haven't managed to get Flash to work from there, although everything else works fine. I suppose there is another option to make a symlink from the lib folder in /data/data/some_apps_folder to /system/lib if the app won't find the lib after you moved it to the folder in /system, as I've read in some thread, but I haven't tested this, so I can't say if it works or not.
Good luck!

Thank you, I moved dalvik-cache and applied the script - it works, with Adobe Flash and some basic apps installed (a few of them moved to /system/apps including the 5MB HTC_IME.apk with its lib file) I have now 60MB free space (compared to the 15MB I had before. wow/lol). I think it's quite enough to get the feeling of freedom when it comes to trying out just a little more apps without getting a full storage warning.
I was also thinking about repartitioning the internal storage but I'm afraid it's better to leave it as it is because of warranty - just in case.

Related

[Q] how to install adobe flash to system partition?

Hi all,
I'm trying to install adobe flash to the system partition to save space. I've done it by adding the flash apk and libs to the gapps addon (required for CM6 anyway).
I can see in root explorer that in /system/apps I've got com.adobe.flashplayer.apk, and in /system/lib i've got libflashplayer.so and libysshared.so.
Under settings->applications I can see that Adobe Flash Player 10.1 is present.
In browser settings, Enable plugins is set to "on demand".
But when I try a flash site that used to work, it no longer does. What am I missing?
Thanks for any help,
Phil
It seems if you leave the .so files where they were in /data/data/com.adobe.flashplayer/lib, eveything works. So it looks like the app doesn't bother to check /system/lib, but goes straight to its own data folder.
Any way to remedy this? I've saved 4-5 MB on /data by moving the apk to /system, but the .so files are 8MB between them, i'd like to get them on /system as well.
Before flashing a ROM, move the APK file into the /system/app folder in the ZIP file and then re-zip it
EddyOS said:
Before flashing a ROM, move the APK file into the /system/app folder in the ZIP file and then re-zip it
Click to expand...
Click to collapse
Hi Eddy, that's exactly what I did as I said in my first post. It didn't work initially, but I now have it working by restoring the /data/data/com.adobe.flashplayer/lib folder with the two libs in it.
So the apk is in /system/app, but there are still these two big libs on /data taking up about 8MB. I was wondering if there is any way to get the system to pick them up from /system/lib like with all the other libs.
Cheers for any help,
Phil
I just have the APK in /system/app and it's fine - got over 100MB of storage (but I only use 5 apps and have them all moved to /system/app)
really? can you do me a favour and check in /data/data/com.adobe.flashplayer/lib and see what you have in there? Should be one huge (~7mb) .so file and a smaller one.
you definitely have the latest flash 10.1 final? version 10.1.92.8? (check in settings->applications).
I'm thinking of creating symlinks in /data/data/com.adobe.flashplayer/lib to the two files in /system/lib and see if that works.
Yes I do have the latest it's there by default in Paul's MCR r8 ROM (first thing I did once it was out) - he normally has it set to go to /data/app but I move it (and the other 5 apps) to the /system/app folder and it's fine...I'll have to install Root Explorer again to check the folder, though...
EDIT: Checked that folder, there's nothing in there at all...
Oh. Huh. Can you check and see if they're in /system/lib? I wonder how paul's got this set up. Should probably just ask him
What file(s) am I looking for?
libflashplayer.so and libysshared.so. Cheers
libflashplayer.so is, libysshared.so isn't
ok thanks for your help i tried the symlinks and it works for now although i guess its a bit hacky. Don't know why yours picks it up from /system/lib and mine won't. I'll see if I can get one of the elder gods to give up their wisdom
wingphil said:
ok thanks for your help i tried the symlinks and it works for now although i guess its a bit hacky. Don't know why yours picks it up from /system/lib and mine won't. I'll see if I can get one of the elder gods to give up their wisdom
Click to expand...
Click to collapse
any progress on this? I also would like to push those shared objects into the /system/lib/ folder to save on space
You need to have the matching apk and libraries in /system for it to work.
teppic74 said:
You need to have the matching apk and libraries in /system for it to work.
Click to expand...
Click to collapse
Had the libs in /system whith fresh MCR r8 ROM .. once i upgraded via Market to latest version they were also in /data/data.
So is there a way to get them to /system again (so that they will really be taken from there by the apk) ?
I am S-Off so the moving itself is easy ;-)
Marcus
soory if i dug an ol thread but i cant make it work...
copy the apk file to /system/app via root explorer and reboot...
in settings/application/manage application/all/
Adobe flash player is in it but it is only 56kb..
set browser for enable plugin to be 'on-demand' and 'always on' but no go (tried surfing on adobe flash mobile showcase site).....
to think i am thinking to move adobe air using this method too..
what else is needed?
Running Nexus One, CM6.0
Hi everyone!
I see this thread is a a bit old, but I've been trying to do the exact same thing with installing Flash Player in /system. My device also won't find the libs in /system/lib, so I'm thinking about doing the symlink stuff as well, but I'm not quite sure how to do this, since I don't have a lot of linux experience. Could you please help out a little?
Will this work?
Code:
ln -s /data/data/com.adobe.flashplayer /system/lib/com.adobe.flashplayer
Also, just to check: is there anything else I should do besides copying the libs Adobe Flash installs in its /data/data folder to /system/lib and creating the link?
Thanks a lot!
Not needed to make symlinks.
Just create folder /system/lib/plugins/com.adobe.flashplayer and move libs to it.
..

[Q] Safe to remove APKs?

My Desire's ROM is full. I have rooted the phone and using root explorer to remove garbage from the ROM. There are many apps in /system/app. Each app has a .apk file and an .odex file. Is it safe to move the *.apk files to my sd card to save up space? Or are they needed to run the application?
Thanx
norad73 said:
My Desire's ROM is full. I have rooted the phone and using root explorer to remove garbage from the ROM. There are many apps in /system/app. Each app has a .apk file and an .odex file. Is it safe to move the *.apk files to my sd card to save up space? Or are they needed to run the application?
Thanx
Click to expand...
Click to collapse
Think you may need to read a fair few of the posts in the forum if you are asking is it safe to remove apk's.
A fair answer is yes and no.
Some you can some you can't.
Removing the wrong ones will cause havoc with your phone.
Why not try flashing one of the custom Roms on here.
Thanx Raze.
I believe that the operating system either *needs* or *doesent need* an apk file in the system/app folder for the app to function correctly.
My question is: Does android 2.2 *need* or *not need* the .apk file of an app to exist in the /system/app folder in order for the app to function correctly? Isnt the odex file enough?
Since apk's are package files, my impression was that maybe they are not needed after the app is installed.
deleted .apk file = uninstalled app
deleted important.apk file = havoc on your phone
norad73 said:
My Desire's ROM is full. I have rooted the phone and using root explorer to remove garbage from the ROM. There are many apps in /system/app. Each app has a .apk file and an .odex file. Is it safe to move the *.apk files to my sd card to save up space? Or are they needed to run the application?
Thanx
Click to expand...
Click to collapse
You won't get any advantage from that; freeing space on the system storage partition won't lead you to have more room for your apps on the internal storage of your device: those are two different partitions. If you want more space on the internal storage partition you should flash a custom, resized partition table (you need s-off, look on the related topic for the howto) and (if you didn't do that yet) partition your sd, so that you can use a2sd scripts to move your stuff there. That's the best you can do if you wanna have more room for your apps, everything else won't help much imo
norad73 said:
Thanx Raze.
I believe that the operating system either *needs* or *doesent need* an apk file in the system/app folder for the app to function correctly.
My question is: Does android 2.2 *need* or *not need* the .apk file of an app to exist in the /system/app folder in order for the app to function correctly? Isnt the odex file enough?
Since apk's are package files, my impression was that maybe they are not needed after the app is installed.
Click to expand...
Click to collapse
My understanding (please correct me if i am wrong as i am so used to windows phone) is that the odex file is simply the integrity of the apk. lots of roms now are de-odexed so you can push or zip-flash a file into its place and it will still function. if the rom still has the odex files this is not possible as the phone will check the apk against the odex file and bootloop. The apk is the install package and the woking part of the file itself. Your best bet would be to flash a rom with A2SD installed in it. This accesses a fat3 partition on your sd card which the android os sees as extra internal space. I'm running LeeDroid 2.2d A2SD version. I have more apps installed now than when i was on a stock rom (motonav, psx4droid, angry birds, snesoid etc) and my phone still says i have 85mb or 52% of my space left
Thank you guys, now it is clear.
I keep getting a storage space low warning on my Desire, and I am trying to find out how to free up some space. My phone is rooted, my sd is partitioned, and most of my apps are installed on the SD with apps2sd.
Any apps still installed on the phone do not support installing on the SD. I have removed almost all apps and left only a very few that cannot be moved.
EDIT: Just realized that HTC Mail data was taking up 65mb of the phone memory.... deleted it and now my phone can breathe again
you are rooted? well if you use a2Ext you dont have to move your Apps to SD.
Moved to Q&A as not development.
Please do not post such questions in development.
Check those articles:
Safe to remove apks:
http://androidforums.com/droid-x-al...t-apps-apks-removable-non-removable-root.html
http://wiki.cyanogenmod.com/index.php?title=Barebones
Custom MTD Partitions (resize data, system, and cache):
http://forum.xda-developers.com/showthread.php?t=806321

[Q] Android /System/app question

Guys,
I want to understand Android a bit better.
I'm running LeeDroid 2.2d A2SD, so all my apps are running on the SD
1) Now what is the difference between \System\app & \Data\app ?
2) Which of those two is redirected to the SD card?
3) Is there some good reasons to put an application in \system\app instead of \data\app, performance maybe ?
Thanks for the gurus that can answer these questions
/system/ is the system partition, under normal conditions, users do not have write access to this partion. Obviously rooting and s-off will allow write access to this partition, /data/ is the user partiton, it holds all downloaded apps in /data/app and all user data and settings in /data/data. When you use app2sd+ /data/app/ and the dalvik cache is moved to /system/sd/app and /system/sd/dalvik-cache. (the ext partition). Now although you can manually move apps to /system/app, these apps will not be updatable by normal methods, the only way to update apps on the /system/ partition is to manually replace the old .apk with the updated version. One great way ive found to increase space is to change the partition tables of the mtd partitions on your device. Basically reducing the size of the /system/ partition and adding that reclaimed space to data, there is a tut in the development section on this!
Sent from my HTC Desire using Tapatalk
QuestiOn
Ok so it is best to put launcher pro and beautifull widgets on the /system/app directory so that it can be loaded from memory instead of SD card.
So I tried to copy the launcherpro apk from /data/app to /system/app after putting the system directory in RW mount with root explorer.
But it doesnt seem to happen and after one minute the phone reboots and nothing has been done ...
Probably because launcher pro is running..
Question 1: How can I write the launcher pro and beautifull widgets apk to the /system/app directory
Question 2: What happens to the settings/data from launcher pro?

[Q] where are market downloads stored?

gents,
I wonder in which folder the downloaded market apps go before the get installed.
Additionally the question rises if one can delete those files or do they get deleted automatically after installation??
HorNet505 said:
gents,
I wonder in which folder the downloaded market apps go before the get installed.
Additionally the question rises if one can delete those files or do they get deleted automatically after installation??
Click to expand...
Click to collapse
They are run from the location they are downloaded to on the phone. So when you download a file from the App Market it will be stored in the folder, installed and run from said APK. If you move it to SD it moves the file from internal to external. If you uninstall the file if it sits on the phones memory it will automatically delete the file.
Not quite. They are stored on the cache partition. They are not always deleted, but they do not take up app space as the partition size is fixed. And when the space is needed on the cache partition, eventually they are deleted.
Is the cache folder visible to me? What's it called.
I got the problem that, despite all my apps are moved to my SD card, the updates fill up my internal memory. I understood that the updated apps are as well moved to the SD card. This is my default setting as well i
Downloaded apks are gets stored in /data/app. You need ROOT access to locate them. Root Explorer will let you access these files.
ip2op01 said:
Downloaded apks are gets stored in /data/app. You need ROOT access to locate them. Root Explorer will let you access these files.
Click to expand...
Click to collapse
Let me make a correction here: installed apps are stored in /data/app (requiring root for write permissions). System apps are stored in /system/app (requiring S-OFF or Recovery mode for write permissions). Downloaded apks are stored in /cache/download, which is why in partition tables, where the cache partition is >5 MB, you should symlink the download folder to a folder in the sdcard, to be able to download apps larger than 5 MB. Otherwise the market will return the error "Insufficient storage available." or something like that.
Not that all of that really matters, seeing as this is a year old thread...
Please use the Q&A Forum for questions Thanks
Moving to Q&A

preload/.../app OR system/app

For stock based roms, some of the custom ones out there have installed all apps in preload/symlink/system/app and symlinked those to system/app EXCEPT for superuser.
But is there a point to that?
Like is it better to have apps installed in system/app?
Or does it usually not matter, but is superuser the lone app that can't run if symlinked to?
I'm asking this because i've trimmed down my rom to a size where everything (including the apps) wil fit on /system with about 25MB space left, but i'm wondering if there's any point to doing that. And if I do, what else will the preload partition be used for?
There should be no difference. In my custom roms all system *.apk are moved to /preload (actually /system/app is symlinked to /preload/symlink/system/app...
But in "standard" method - maybe superuser is left on /system to avoid issues with updating that app...

Categories

Resources