adding apps to rom package - Droid Eris Android Development

If I wanted to add all of my apps to the Rom package to avoid reinstalling them one by one where would I add them before resigning it and flashing?

rom116 said:
If I wanted to add all of my apps to the Rom package to avoid reinstalling them one by one where would I add them before resigning it and flashing?
Click to expand...
Click to collapse
/data/app
if the folder isnt there then make it
10 char

data/app
Do you mean system/app?

He means /data/app/

What about adding system apps (Mobile Defense or PDFViewer)? Do you have to do anything different?

If you search my posts in replies, there is a script that I used to install all my apps when I reflash.
...
..
.
jcase

The phone looks for apps in /data/app as well as /system/app
Disk space on the system image is very limited though, so if you're sticking a bunch of apps in there you'll run out of space though, which is why you'll want them in /data/app instead.

I keep a backup of all of my programs in a folder on my sd card called apps. I can install all my apps after a flash in under a minute and its a lot easier to keep the folder up to date than to edit every rom package to put them in there.
Either from a terminal downloaded from the market or adb on your pc use:
su
cd sdcard/apps(or folder name if apps is not used)
busybox install *.apk /data/app

You will need to add the following to lines to the update script as well If you do not Set_Perm it will not allow you to install new apps on a clean format, Also if a app crashes on launch install it manually then go into the data/dalvik-cache folder and copy the corrosponding .odex file and have it install to the data/dalvik-cache Enjoy.
copy_dir PACKAGE:data DATA:
set_perm 1000 1000 0771 DATA:app

pjsockett said:
I keep a backup of all of my programs in a folder on my sd card called apps. I can install all my apps after a flash in under a minute and its a lot easier to keep the folder up to date than to edit every rom package to put them in there.
Either from a terminal downloaded from the market or adb on your pc use:
su
cd sdcard/apps(or folder name if apps is not used)
busybox install *.apk /data/app
Click to expand...
Click to collapse
Where do you download the apk files so that you can do this? I'm sorry, but Im new to this and your idea sounds very easy to do.

Make a folder called data. Put a folder called 'app' inside of it.
Add to update script:
copy_dir PACKAGE:data DATA:
Or, just do it (as i do) in a seperate update.zip. The update script is META-INF\com\google\android\update-script.
Thanks

xtremeskier97 said:
Where do you download the apk files so that you can do this? I'm sorry, but Im new to this and your idea sounds very easy to do.
Click to expand...
Click to collapse
Probably the most user friendly way to get your apps would be to download astro file manager and use the apps backup feature. It puts all of the apps into a backup folder on your sd card. Other wise you could do
cp data\app\* \sdcard\apps
from an adb shell which would be the faster option but trickier if your not familiar with it

FireSokar said:
You will need to add the following to lines to the update script as well If you do not Set_Perm it will not allow you to install new apps on a clean format, Also if a app crashes on launch install it manually then go into the data/dalvik-cache folder and copy the corrosponding .odex file and have it install to the data/dalvik-cache Enjoy.
copy_dir PACKAGE:data DATA:
set_perm 1000 1000 0771 DATA:app
set_perm 1000 1000 0771 DATA:data
set_perm 1000 1000 0771 DATA:dalvik-cache
**EDIT*** Also if your app Force Closes find /data/data folder and find the folder that matches your app and copy it to /data/data of your rom folder before packaging and add it.
Click to expand...
Click to collapse
Re-Read the entire quoted post its been corrected to help with any issue you will run into during this.

Instead of
cd sdcard/(folder)
busybox install *.apk /data/app
is there a command such as
install sdcard/(folder)/*.apk /data/app
Or should I just try and find out and hope my phone won't blow up. Not home at the moment to test it.

When i add a folder named data/app to a rom and try flashing it it says no digest for the apps i tried to add anyone help?

pjsockett said:
Probably the most user friendly way to get your apps would be to download astro file manager and use the apps backup feature. It puts all of the apps into a backup folder on your sd card. Other wise you could do
cp data\app\* \sdcard\apps
from an adb shell which would be the faster option but trickier if your not familiar with it
Click to expand...
Click to collapse
I just tried that and and it was giving me some errors.
what i found to work was to do:
1. make sure there is a folder called "apps"
2. adb shell
3. cp data/app/* /sdcard/apps
(notice the difference in the slashes (forward vs backwards)

pjsockett said:
I keep a backup of all of my programs in a folder on my sd card called apps. I can install all my apps after a flash in under a minute and its a lot easier to keep the folder up to date than to edit every rom package to put them in there.
Either from a terminal downloaded from the market or adb on your pc use:
su
cd sdcard/apps(or folder name if apps is not used)
busybox install *.apk /data/app
Click to expand...
Click to collapse
+1
Thank you this has come in handy, and you still get Market Update Notifications!!

Related

back up apps???????

ok, so i searched and i searched... forums, googling, and video sites (for tutorials and not just one search each, several times each one.) and i haven't been able to find out how to back up apps... i have root access and i'm running a jacheroski rom. i think i can back up free apps only. is it possible to back up my paid apps that i've bought off the market through the phone?? can i do it through a computer??? any insight will help. thank you ahead of time.
thanx to the site for all the roms and tutorials and all the people who contributed to them. ^_^
valefore said:
ok, so i searched and i searched... forums, googling, and video sites (for tutorials and not just one search each, several times each one.) and i haven't been able to find out how to back up apps... i have root access and i'm running a jacheroski rom. i think i can back up free apps only. is it possible to back up my paid apps that i've bought off the market through the phone?? can i do it through a computer??? any insight will help. thank you ahead of time.
thanx to the site for all the roms and tutorials and all the people who contributed to them. ^_^
Click to expand...
Click to collapse
You can try My Backup for Root users
http://www.cyrket.com/package/com.bg.smsbk
Or My Backup
http://www.cyrket.com/package/com.rerware.android.MyBackup
or apps manager
http://www.cyrket.com/package/de.android_telefonie.appmanager
EDIT:
As long as you use the same google account signin, no matter what phone you use, you will always have access to your paid apps again without having to pay for them again, so there is really no need to backup paid apps. If you switch phone (as I have done because I have two) just go to my downloads and all the paid apps (as well as unpaid apps) will be there ready to download again. Or you can use the programs suggested above.
DirectMatrix said:
You can try My Backup for Root users
http://www.cyrket.com/package/com.bg.smsbk
Or My Backup
http://www.cyrket.com/package/com.rerware.android.MyBackup
or apps manager
http://www.cyrket.com/package/de.android_telefonie.appmanager
EDIT:
As long as you use the same google account signin, no matter what phone you use, you will always have access to your paid apps again without having to pay for them again, so there is really no need to backup paid apps. If you switch phone (as I have done because I have two) just go to my downloads and all the paid apps (as well as unpaid apps) will be there ready to download again. Or you can use the programs suggested above.
Click to expand...
Click to collapse
well, when i rooted my phone, i went to "my downloads" in the market and the apps were there, but i needed to redownload but the thing was that if i didn't DL all at once, when i go back to "my downloads" it just shows the recent ones i downloaded and the ones already installed.
but thanx, i'm gonna try those apps right now.
You can also type in the terminal:
$su
#mkdir /sdcard/AppBackup/
#cp -r /system/sd/* /sdcard/AppBackup/
this will put all of your apps, including paid apps, in the directory you created.
Diceman4 said:
You can also type in the terminal:
$su
#mkdir /sdcard/AppBackup/
#cp -r /system/sd/* /sdcard/AppBackup/
this will put all of your apps, including paid apps, in the directory you created.
Click to expand...
Click to collapse
wow... sweet. gonna try that now... the apps didn't work backing up my paid apps. =/
valefore said:
wow... sweet. gonna try that now... the apps didn't work backing up my paid apps. =/
Click to expand...
Click to collapse
I assumed you were using apps 2 sd, if not let me know.
valefore said:
wow... sweet. gonna try that now... the apps didn't work backing up my paid apps. =/
Click to expand...
Click to collapse
The one downside to backing up and reinstalling paid apps from SD is the maret no longer checks for updates on those apps...you have to update manually from the market (But once you do it once through the market then it will keep checking until you wipe again of delete the app)
#cp -r /system/sd/* /sdcard/AppBackup/
is the "*" where i add my folder name or is it after "/appbackup"??? capitalization necessary for the A and B in "appbackup"??
it said optional or options but didn't store anything in my new folder labeled "yoe" in the SD's root...
valefore said:
#cp -r /system/sd/* /sdcard/AppBackup/
is the "*" where i add my folder name or is it after "/appbackup"??? capitalization necessary for the A and B in "appbackup"??
it said optional or options but didn't store anything in my new folder labeled "yoe" in the SD's root...
Click to expand...
Click to collapse
Code:
# mkdir /sdcard/test
mkdir /sdcard/test
# cp -r /system/sd/* /sdcard/test
cp -r /system/sd/* /sdcard/test
# ls /sdcard/test/
ls /sdcard/test/
app
app-private
app_s
This is what should happen when you type in the commands (This is the output when I actually do it)
The mkdir is creating a folder on your SD so when you 'cp' or copy all of the files in /system/sd/ the '*' is a shell wildcard for all files you need to reference the exact folder you created in sdcard.
so if you did:
$su
#mkdir /sdcard/yoe
you should do:
#cp -r /system/sd/* /sdcard/yoe
Then if there are no errors check your sdcard to make sure they got copied
Edit: The 'ls' command is like a 'dir' command in the windows shell
uh.. tried exactly what you wrote down with "test" instead of "yoe", didn't work. and no, i'm not using the app2sd, i don't believe. i'm running the "slow" rom due to me not having a memory card that can be partitioned. (sorry, forgot to mention it.)
i made the yoe folder with astro.
there's just one file under the "test" folder and it's labeled "placeholder"...???
valefore said:
uh.. tried exactly what you wrote down with "test" instead of "yoe", didn't work. and no, i'm not using the app2sd, i don't believe. i'm running the "slow" rom due to me not having a memory card that can be partitioned. (sorry, forgot to mention it.)
i made the yoe folder with astro.
there's just one file under the "test" folder and it's labeled "placeholder"...???
Click to expand...
Click to collapse
OK then type:
#cp -R /system/app-private/* /sdcard/test/
#cp -R /system/app/* /sdcard/test/
The app-private apps are your paid apps the rest are free.
Diceman4 said:
OK then type:
#cp -R /system/app-private/* /sdcard/test/
#cp -R /system/app/* /sdcard/test/
The app-private apps are your paid apps the rest are free.
Click to expand...
Click to collapse
i did this and it said
cp: cannot stat '/system/app-private/*': No such file or direntory
#
valefore said:
i did this and it said
cp: cannot stat '/system/app-private/*': No such file or direntory
#
Click to expand...
Click to collapse
type
$su
#ls /system/
and let me know what it outputs
Diceman4 said:
type
$su
#ls /system/
and let me know what it outputs
Click to expand...
Click to collapse
lib
usr
fonts
sd
xbin
etc
app
customize
build.prop
media
framework
bin
lost+found
#
valefore said:
lib
usr
fonts
sd
xbin
etc
app
customize
build.prop
media
framework
bin
lost+found
#
Click to expand...
Click to collapse
Hmmm... how about:
#ls /system/sd/
and
#ls /system/app
Thanks!
Diceman4 said:
Hmmm... how about:
#ls /system/sd/
and
#ls /system/app
Thanks!
Click to expand...
Click to collapse
the first one gave me
placeholder
the other one gave me a list of .apk and .odex but i checked and double checked but i didn't see the hello im i paid for... ???
valefore said:
the first one gave me
placeholder
the other one gave me a list of .apk and .odex but i checked and double checked but i didn't see the hello im i paid for... ???
Click to expand...
Click to collapse
I should have asked, did you try to set up apps 2 sd? If so it may have been configured wrong.
WHat exactly are you running:
Partitions: order & size
ROM version:
SD Class:
Also could you go to Settings->SDCard and let me know how much Internal storage space you have left.
Thanks!
Diceman4 said:
I should have asked, did you try to set up apps 2 sd? If so it may have been configured wrong.
WHat exactly are you running:
Partitions: order & size
ROM version:
SD Class:
Also could you go to Settings->SDCard and let me know how much Internal storage space you have left.
Thanks!
Click to expand...
Click to collapse
i stated that i didn't believe i have apps2sd because i don't have an sd that can be partitioned.
i have JACHero2.7.3_SuperLite installed i believe.
ota-radio-2_22_19_26I
haykuro latest spl
i don't know the sd class. it's the one gb that came with the phone.
sd total 974 available 623. internal 9mb (lol)
valefore said:
i stated that i didn't believe i have apps2sd because i don't have an sd that can be partitioned.
i have JACHero2.7.3_SuperLite installed i believe.
ota-radio-2_22_19_26I
haykuro latest spl
i don't know the sd class. it's the one gb that came with the phone.
sd total 974 available 623. internal 9mb (lol)
Click to expand...
Click to collapse
You said you don't know if you got apps2sd set up. Did you ever create a second partition (ext2/ext3/ext4)
supremeteam256 said:
You said you don't know if you got apps2sd set up. Did you ever create a second partition (ext2/ext3/ext4)
Click to expand...
Click to collapse
Well, i tried, but it didn't let me. so continued to flash the JACHero roms as the came out and didn't worry bout the apps2sd because i'm happy with just aim and a browser. it has terminal and tether and a twitter client so the only app i really need/want that i have to install from market is the hello aim, i had a few other apps i just wanted to try out but i uninstalled them already.

How to UNINSTALL unwanted stock/preinstalled apps from G1

How to remove unwanted stock/preinstalled apps
This is not a question. This is howto
I DID search through the forum and found nothing but
Q: how to remove/uninstall preinstalled apps ?
A: no way !!!
WHAT ??? WRONG ANSWER !!!
Here is how:
First of all I’ll describe my rooted, of course, phone configuration, so if you are on the same boat you can do same trick 99% if not you’ll know where to go
- CyanogenMod 4.1.2.1 (this is latest experimental as of sept-05-09) –works very stable for me
- 4GB SD card partitioned: FAT32, ext3 (512mb), linux_swap (32mb)
(great guide how to part your sd here: http://androidcommunity.com/forums/f56/compcache-userinit-22465/index4.html#post232988 (page 4)
- CompCache with Backing Swap (here: http://androidcommunity.com/forums/f56/compcache-userinit-22465/index4.html#post232988 (page 1)
Requirements:
1) G1 rooted phone
2) Explorer with ability to explore /system folders – I use Astro (market)
3) PC/MAC
4) SDK installed on it (http://developer.android.com/sdk/download.html?v=android-sdk-windows-1.5_r3.zip)
Steps:
1) first and very important: full backup of your system.
- DO NANDROID (it’s preinstalled in Cyano, search forum for “nandroid” if you don’t have it)
- DO ext3.tar (if you use ext3)
- Make full SD copy to your PC
As described here: (yes, same tread, thanks to bdb4269) http://androidcommunity.com/forums/f56/compcache-userinit-22465/index4.html (page 4)
Now we are safe..well, almost
2) find full name for the application you want to uninstall, say for Amazon MP3 it will be com.amazon.mp3.apk
I did it like this
- open Astro explorer
- go to the very top (/)
- search “amazon”
- when search done, write down full app name
- long press trackball – chose – open containing folder – remember the path (ie /system/app)
3) Assume SDK and USB drivers are installed ( http://developer.android.com/guide/developing/device.html )
And phone is connected to pc/mac
= below guide is from http://oneclickandroid.blogspot.com/ with my comments =
- Start emulator (don’t think it is necessary, but lets follow – emulator located in SDK folder\tools\emulator.exe in my case C:\SDK_15\tools\
CMD window pops up for a second and disappeared
- open CMD prompt (in Windows: Start > run > print: cmd , hit OK/enter)
- execute "adb shell" in on terminal from SDK_ROOT/tool folder
(if you did not register SDK folder in windows variables you need to cd to this folder first:
print: cd c:\sdk_15\tools hit enter
print: adb shell hit enter, you’ll see new prompt appeared: #
- print: mount -o remount,rw /dev/block/mtdblock3 /system
This will mount your system folder with read/write permission
- go to system/apps folder of your phone
(print: cd /system/apps hit enter)
*** guide says “/system/apps” but in my case it is “/system/app” ??? (remember I asked you to write down full path and name from Astro ? check your path first ***
- print: rm yourunwantedapplication.apk
i.e. rm com.amazon.mp3.apk hit enter
now, check installed apps in your phone (no reload req.) – is amazon disappeared ?
I wish to try this with app for that has a replacement from the market, like
Dialer – aTakePhone or Music – Meridian etc
Hope someone brave will do it before I do
Deleting may be unsafe if other preinstalled apps or process have links to uninstalled app
What happens in this case? wish someone knows the answer.
I dont think this trick will speedup your phone if you've moved your apps to ext2/3/4 already I just dont want to see useless apps in my phone/pc
Please reply here if you have experience of deleting preinstalled apps
sorry, english is my second languague
Good luck !
Hahahaha... all that trouble just to install a few unnecessary apps off of a ROOTED phone?! If you had searched, you'd have seen the numerous posts where we've posted instructions on uninstalling apps through Terminal. Literally 4 lines of code at most! Note that you can do this with any app you don't want. I have xROM, and one of the first things I do whenever I clean install to the latest version is replace ringtones and remove apps, including HTC Mail, Email, Amazon mp3, and Android Music. It takes me about 2 minutes to remove these apps.
Example for removing Amazon MP3:
su
mount -o rw,remount /system
rm -r /system/app/com.amazon-mp3.apk
mount -o rw,remount /data
rm -r /data/data/com.amazon.mp3
exit
exit
uansari1 said:
mount -o rw,remount /data
Click to expand...
Click to collapse
/data is never mounted read-only.
zelipukin said:
...
- Start emulator (don’t think it is necessary, but lets follow – emulator located in SDK folder\tools\emulator.exe in my case C:\SDK_15\tools\
CMD window pops up for a second and disappeared
...
Click to expand...
Click to collapse
That's not how you start the emulator, in the window that disappears is a message telling you to start with the proper parameters, which you'd see if starting from a command line. If the emulator actually was running, then all your adb commands would then fail because it wouldn't know what device you wanted to address, you'd have to use "adb -d" to tell it to use the real device rather than the emulator.
jashsu said:
/data is never mounted read-only.
Click to expand...
Click to collapse
Thanks for the info.. guess I've been doing an extra step, but this means I can do I through terminal even faster.
Easy way to remove unwanted preinstalled apps
Use Root Explorer to browse to /data/app_s and find the applications you don't want. Delete the APK and ODEX files and you are done.
Always remember to make a backup of your phone, before you start deleting.
ewaldtx said:
Use Root Explorer to browse to /data/app_s and find the applications you don't want. Delete the APK and ODEX files and you are done.
Always remember to make a backup of your phone, before you start deleting.
Click to expand...
Click to collapse
The app_s folder is only used for Hero ROMs because there isn't enough space in /system, so it's placed in /system/sd (the mount point of the ext partition) if you have an ext partition for A2SD.
For regular google source builds just go to /system/app.
there is an app called rootexplorer it has a button to remove syatem apps. real easy to use. http://www.cyrket.com/package/com.sp...e.rootexplorer
saprano614 said:
there is an app called rootexplorer it has a button to remove syatem apps. real easy to use. http://www.cyrket.com/package/com.sp...e.rootexplorer
Click to expand...
Click to collapse
and it works great
Sorry to kind of hijack this but cyrket.com always shows as a blank page.
anyone know why or how to fix that?
i think simply deleting the apk files and data folder will keep an entry in some kind of registry in android. if i just delete the apk files and data folder and run fix_permissions, it shows the same number of processes.
SUFBS
is a rooted file browser and it is, by far, the easiest way of uninstalling any stock apps.
Click one button to make the system folder re-writable (same thing with data folder, just a button), navigate to the apps directory and just delete. or you can search for the app and just delete it from the search window. Voila!
Ssantos6981 said:
is a rooted file browser and it is, by far, the easiest way of uninstalling any stock apps.
Click one button to make the system folder re-writable (same thing with data folder, just a button), navigate to the apps directory and just delete. or you can search for the app and just delete it from the search window. Voila!
Click to expand...
Click to collapse
are you talking about rootexplorer or what? elaborate a little..
i just bought and downloaded/installed rootexplorer simply to delete stock apps. upon opening it ask me to allow it. i say yes and it says my phone isn't rooted.
weird.. i just upgraded from cyanogen v4.1.999( or something around that) to the newest 4.2whatever. so how if my phone not rooted?!
blackinches said:
are you talking about rootexplorer or what? elaborate a little..
i just bought and downloaded/installed rootexplorer simply to delete stock apps. upon opening it ask me to allow it. i say yes and it says my phone isn't rooted.
weird.. i just upgraded from cyanogen v4.1.999( or something around that) to the newest 4.2whatever. so how if my phone not rooted?!
Click to expand...
Click to collapse
try it again lol. it should work
make sure your not on the stock adp recovery
Root explorer!!!
Hi,
i'm trying ro remove stock apps for quite a few days, and i'm getting desperate!
I have everything... titatium, terminal, root explorer, etc etc
with terminal I also receive "directory not empty", but with root explorer I can delete the apk's from /system/app ... I confirm after that they are not there, bus as soon as I reboot the phone they come back.
what can I do ?
I have HTC desire with stock android, rooted .. and also a couple of programs I instaled I don't really knwo what they do.. like rom manager, clockword recovery, etc
plz help!
Sleeepy2 said:
Sorry to kind of hijack this but cyrket.com always shows as a blank page.
anyone know why or how to fix that?
Click to expand...
Click to collapse
It is because the full url path is not correct. Hover cursor over link and look at lower left corner to view the url path...it has those .... in it and will not work. We need the full exact url path.
just use titanum backup,rt click on application it will show (remove),be sure u didn't updated any stock app e.g gmail update
Regarding using Root Explorer on stock G Tab updated to 1.2-4349...
Trying to remove some of the apps preloaded and using Root Explorer get a statement - my phone not rooted.
I want to get the apps off. What to do now? Thanks http://media.xda-developers.com/images/smilies/smile.gif
Thanks for this clear procedure !

Get Apk file from Market

When i download and install an App from the Android Market where the Apk installation file is temporary placed? Which path?
tnx in advance
the apk's are stored at /data/app and /data/app-private after you installed the app and will be removed if you uninstall it.
Tnx for the answer mopodo, but if i hard reset the device, can i will use theese files to reinstall them?
i'm sorry for my bad english...
sidvizioso said:
Tnx for the answer mopodo, but if i hard reset the device, can i will use theese files to reinstall them?
i'm sorry for my bad english...
Click to expand...
Click to collapse
No, you can make a backup to your SD card with apps like MyBackup or Backup For Root Users.
So which is the temp path of the downloaded apk from market?
i want to grab them...
Pinesal said:
No, you can make a backup to your SD card with apps like MyBackup or Backup For Root Users.
Click to expand...
Click to collapse
of course you can.
you just have to copy them to your sdcard or pc an install them again, with «adb install something.apk» or «Astro File Manager» (or a similar file managerapp)
a hard reset will delete everything on «/data»
If you have root copy the contents of both folders to your SD card.
mkdir /sdcard/apps
cp /data/app/* /sdcard/apps
cp /data/app-private/* /sdcard/apps
Then after you wipe (I've never heard anyone call it a 'hard reset' before) you can use an app like Astore or ApkInstaller to reinstall them.
If you don't have root then not only will you not be able to read app-private, but your ROM wont have busybox so you wont be able to bash in those commands. In that case use an app like Astro or AppManager to copy non-private apks to the sdcard, but for private apps you'll have to redownload them (without being charged of course.)
Pinesal said:
No, you can make a backup to your SD card with apps like MyBackup or Backup For Root Users.
Click to expand...
Click to collapse
Only if they're non-private (reside in /app, private being /app-private).
He's probably coming from WinMo. We called a factory reset/wipe a hard reset.
mopodo said:
the apk's are stored at /data/app and /data/app-private after you installed the app and will be removed if you uninstall it.
Click to expand...
Click to collapse
Slightly off topic lol But i see you said Private does that mean you could manually back up Private apps you buy off market by just copying them /w root access?
When I run the following from an adb shell, with or without SU root:
cp /data/app/* <my location on sd>
I always get:
cp: permission denied
In fact, no matter how or where I cp from or to, and no matter what I am trying to copy, even if I leave all arguments blank, I still get "cp: permission denied" -- I have busybox installed in /system/xbin from /data/local and as far as I can tell it installed ok. Phone is a rooted Sprint hero 1.56.651.2 running stock ROM.
I have also tried to 'adb pull /data/app' and it always find 0 files. None of this is a big deal for me, however, as I am just trying to backup a bunch of apks for free apps in case versions change too much. Mostly just curious...
Any ideas?
EDIT: Both Astro and AppManager handled the (non-private) apk backups fine -- so I have no real need for the cp method to work, but I am still wondering why it will not -- is it the adb shell? must I use a terminal emulator from on the phone instead? something else? Anyways, if I really want to pursue it, perhaps I should take it to a busybox thread at this point...
EDIT2: It appears as if the 'cp' command as I was running it wasn't getting passed through busybox (not sure why). From what I can piece together reading other threads, it seems that if you have installed busybox on top of a ROM that doesn't already have it (like stock, after rooting and recovery setup) than you must prefix commands with 'busybox' when entered, as in 'busybox cp /data/app/* <my location>' and it does work for me that way. Still cannot seem to copy /data/app-private which I thought having root access would allow -- I guess I just don't understand nearly enough about busybox implementation, linux permissions, and, well, linux in general.
You could try an app manager and back 'em up from there.
Just try the following command.
busybox cp /data/app/* /sdcard/<your backup loc>
askwhy said:
When I run the following from an adb shell, with or without SU root:
cp /data/app/* <my location on sd>
I always get:
cp: permission denied
In fact, no matter how or where I cp from or to, and no matter what I am trying to copy, even if I leave all arguments blank, I still get "cp: permission denied" -- I have busybox installed in /system/xbin from /data/local and as far as I can tell it installed ok. Phone is a rooted Sprint hero 1.56.651.2 running stock ROM.
I have also tried to 'adb pull /data/app' and it always find 0 files. None of this is a big deal for me, however, as I am just trying to backup a bunch of apks for free apps in case versions change too much. Mostly just curious...
Any ideas?
EDIT: Both Astro and AppManager handled the (non-private) apk backups fine -- so I have no real need for the cp method to work, but I am still wondering why it will not -- is it the adb shell? must I use a terminal emulator from on the phone instead? something else? Anyways, if I really want to pursue it, perhaps I should take it to a busybox thread at this point...
EDIT2: It appears as if the 'cp' command as I was running it wasn't getting passed through busybox (not sure why). From what I can piece together reading other threads, it seems that if you have installed busybox on top of a ROM that doesn't already have it (like stock, after rooting and recovery setup) than you must prefix commands with 'busybox' when entered, as in 'busybox cp /data/app/* <my location>' and it does work for me that way. Still cannot seem to copy /data/app-private which I thought having root access would allow -- I guess I just don't understand nearly enough about busybox implementation, linux permissions, and, well, linux in general.
Click to expand...
Click to collapse
Well in windows
'adb pull' is used if that helps

Integration of user app to rom?

Hey guys does anybody know how to do it? After installation of rom? Can it be done via adb or from phone itself?
I know I can do it before flashing, but what about after flashing?
TB can do it with some app( newer version of system apks) but what about others?
Sent from my HTC HD2 using xda premium
to install system apps:
From computer:
adb push yourapp.apk /system/app/
From your phone:
su
cp /sdcard/yourapp.apk /system/app/
Marvlesz said:
to install system apps:
From computer:
adb push yourapp.apk /system/app/
From your phone:
su
cp /sdcard/yourapp.apk /system/app/
Click to expand...
Click to collapse
But its tough, I got more than 20 app to do it. So is there any app that can do it?
Also Cp means copy right? So is it copy or move?
Sent from my HTC HD2 using xda premium
If you want to do it before flashing,
If you want to integrate it with system (uninstallable unless using a root explorer or titanium backup):
Open your rom's .zip file put it in the:
Code:
/system/app/
Note: be careful when putting large applications because this will be installed to your 'system' partition and if it is low, you might end up in a bootloop.
If you want to install it like a normal app:
Code:
Create new folder named 'data' if it's not present. Create a new folder in it named 'app'. Then, put your .apks.
Note: This folder will go to your 'userdata' partition.
P.S: Please refrain from putting large .apks files because they make your partition's space low or cause a bootloop.
showlyshah said:
But its tough, I got more than 20 app to do it. So is there any app that can do it?
Also Cp means copy right? So is it copy or move?
Sent from my HTC HD2 using xda premium
Click to expand...
Click to collapse
More than one app? no problem, simply do what geek had said.
Create a folder on your sdcard (for example /sdcard/apps-to-install/)
Put all your apks there and then to copy them using the terminal like this:
su
cp /sdcard/apps-to-install/* /system/app/
If you don't want to do this, you can also create a directory with the name /app/ and merge it with the one on your device.
And yes, cp stands for copy, I'd rather copy files and then delete them manually than moving them.
But DO NOT MOVE SO MANY APPS, as this will be taking from your internal memory, make sure you only move important/systematic apps. Otherwise, copy them to your sd-ext.

[Q] Deleting a folder with a ridiculously large amount of subfolders

For some reason the app Text+ has made a folder in sdcard/android/data with a massive amount of subfolders.
After entering com.gogii.textplus, there are two initial subfolders. The subfolders contained within them both repeat their own 5 or so folder sequence (For example: storage/emulated/0/data/com.gogii.texplus/storage/emulated/0/data/com.gogii.textplus....etc etc
I just want to delete the damn thing, but every app I use crashes when I try to delete it. I have no idea how deep the rabbit hole goes, but ES file manager did mange to over 10k before crashing.
Any advice?
silverwater25 said:
For some reason the app Text+ has made a folder in sdcard/android/data with a massive amount of subfolders.
After entering com.gogii.textplus, there are two initial subfolders. The subfolders contained within them both repeat their own 5 or so folder sequence (For example: storage/emulated/0/data/com.gogii.texplus/storage/emulated/0/data/com.gogii.textplus....etc etc
I just want to delete the damn thing, but every app I use crashes when I try to delete it. I have no idea how deep the rabbit hole goes, but ES file manager did mange to over 10k before crashing.
Any advice?
Click to expand...
Click to collapse
Did you open /Setup/Apps and delete the app itself rather than just trying to delete the folders?
yes
lewmur said:
Did you open /Setup/Apps and delete the app itself rather than just trying to delete the folders?
Click to expand...
Click to collapse
Yep, haven't had it installed for awhile actually
Perhaps via adb shell
or via a terminal emulator
$ su
# rm -rf /data/media/0/data/com.gogii.textplus/
Worth a try, anyway.
Any reason you are using /storage/emulated as the root instead of /data/media/ ?
nothing doing
bftb0 said:
Perhaps via adb shell
or via a terminal emulator
$ su
# rm -rf /data/media/0/data/com.gogii.textplus/
Worth a try, anyway.
Any reason you are using /storage/emulated as the root instead of /data/media/ ?
Click to expand...
Click to collapse
It was in sdcard/android/data/, but I tried to cut and paste it somewhere else to she if that would help. Now its in another folder in the /sdcard
silverwater25 said:
It was in sdcard/android/data/, but I tried to cut and paste it somewhere else to she if that would help. Now its in another folder in the /sdcard
Click to expand...
Click to collapse
Have you tried using RootExplorer to delete the parent folder?
Yes. I've also tried ES file manager and Rom Toolbox.
Twrp has a built in file manager... I don't know if cwm has one too (if you use cwm)
Sent from my Nexus 7 using xda premium

Categories

Resources