Integration of user app to rom? - HD2 Android Q&A, Help & Troubleshooting and Genera

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.

Related

adding apps to rom package

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!!

Fascinate/Vibrant Widgets on Captivate

Sorry if this has been mentioned before (I did search before posting), but there are a few widgets from the other Galaxy S phones that are rather nice, the weather clock in particular. I know there is a Fascinate dump out there, but can I just extract the apk and install it, or is there something else that I need to do. Any help is appreciated.
Sent from my SAMSUNG-SGH-I897 using XDA App
I would like to know this as well. Have subscribed to this thread.
Sent from my SAMSUNG-SGH-I897 using XDA App
Download the firmware that has those widgets and pull the apks and install them on your firmware of choice
If anyone does this post it please, if you link a how to ill do it.
Well, i pulled the APK's out of the ROM, but I'm not able to install them. I'm really new at this, so forgive me for the ignorance. there are ODEX files that accompany the apks...do i have to do something with those on order to install the widgets?
you'll need to use adb shell once you copy the files to a location on your internal sd card
you'll need to mount system as r/w first so do this, so:
adb shell
su (your device needs to be awake and unlocked so you can verify the SU request)
mount -o remount rw /system
cp /sdcard/xxxx.odex /system/app
cp /sdcard/xxxx.apk /system/app
reboot
the reboot is just for good measure. i've used this technique to get apps onto the phone, but as usual YMMV. If you post up the apk and odex files as a zip i'll give them a shot.
uiskibum said:
you'll need to use adb shell once you copy the files to a location on your internal sd card
you'll need to mount system as r/w first so do this, so:
adb shell
su (your device needs to be awake and unlocked so you can verify the SU request)
mount -o remount rw /system
cp /sdcard/xxxx.odex /system/app
cp /sdcard/xxxx.apk /system/app
reboot
the reboot is just for good measure. i've used this technique to get apps onto the phone, but as usual YMMV. If you post up the apk and odex files as a zip i'll give them a shot.
Click to expand...
Click to collapse
Do you have o remount /system as read only or will the reboot do that?
alphadog00 said:
Do you have o remount /system as read only or will the reboot do that?
Click to expand...
Click to collapse
the reboot will do that
What kind of cool stuff do they have?
Do tell!!
I had asked about putting the Samsung Touchwiz widgets on if using Launcher Pro. Was told no.
Would this method allow that for them?
Well, I've uploaded the files to Rapidshare, but thanks to the restrictions on my noob account, I can't link to the files.
rapidshare files 421816817 Samsung_Fascinate_Widgets zip
OK, major problem.
I copied the ODEX and APK's to the System/App folder and rebooted...now my phone will get stuck at the "Galaxy S" logo page and the display stops working. connecting via USB to the computer allows me to access the system via ADB, but I can't get the display running. What's the command in ADB to remove the files I just copied over?
adb shell
su
mount -o rw,remount /dev/block/st19 /system
rm /system/app/[name of widget file].*
Sgt_Bilbo said:
OK, major problem.
I copied the ODEX and APK's to the System/App folder and rebooted...now my phone will get stuck at the "Galaxy S" logo page and the display stops working. connecting via USB to the computer allows me to access the system via ADB, but I can't get the display running. What's the command in ADB to remove the files I just copied over?
Click to expand...
Click to collapse
Thanks for that info. Phone is back to normal. Now, back to the topic at hand. Anyone had success at getting these widgets working on the Captivate?
Sent from my SAMSUNG-SGH-I897 using XDA App

[Q] i want swype back please!!!!

Just did everything to my g2 at once today, and lost one of my fav features; swype...i have cyanogenmod-6.1.0-RC3-vision... i went and downloaded the stock rom and pulled the apk file from it and when i installed it, it kept force closing. i even tried pushing it via abd but kept getting errors.. can someone please help
You need to grab libSwypeCore.so from /system/lib and push it to same directory on new ROM.
Sent from my T-Mobile G2 using XDA App
Just download the apk provided by oldsk00lz to recover swype from your clockwork backup. It worked for me.
http://forum.xda-developers.com/showthread.php?t=841603
what are the commands? i have a stock rom downloaded and have the swpe file s sitting on my desktop ready to go..i have the swype.apk and libswypecore.so...i tried transferring them to the app file on the root of my phone and system/lib via astro manager but it wont let me
what page is it on?
Tman0604 said:
what are the commands? i have a stock rom downloaded and have the swpe file s sitting on my desktop ready to go..i have the swype.apk and libswypecore.so...i tried transferring them to the app file on the root of my phone and system/lib via astro manager but it wont let me
Click to expand...
Click to collapse
the first line of code changes your system to READ/WRITE I use root explorer to change it back to READ-ONLY or just reboot.
Code:
adb shell mount -o remount,rw /dev/block/mmcblk0p25 /system
adb push libSwypeCore.so /system/lib
adb install Swype.apk
for the code I wrote to work for you the files need to be in the same folder that the adb.exe runs out of. this is usually located in the tools folder in the android SDK otherwise you have to type the full path ie
this is on windows 7 on my computer so file path will be different for you
Code:
adb push C:\users\etnie\downloads\G2\libSwypeCore.so /system/lib
hope that helps

[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

Removing a file

So yesterday i ''adb push''ed a rom onto my device. I searched for the zip in my recovery, and found out that it was in /sdcard/rom.
This is strange, since i can not find it on my sdcard while booted into android.
However, i located the file and it is located in /mnt/shell/emulated/rom.
When i want to install a rom, and i placed it on my phone while booted into android (so the normal MTP mode) i have to go into my recovery, and navigate to /sdcard/0/rom.
Now i just got one problem, i can not delete the rom zip located in /mnt/shell/emulated/rom!
I'm using rootbrowser, and while it is saying that it deleted the file, it just doesnt.
I've already tried changing the permissions, with no succes.
Does any of you know what i should do next?
I take it your using cwm recovery.
This still mounts the sdcard using the old pre multi user ICS method.
Because of multiuser each user would have their own folder 0,1,2 etc. Which is mounted as /sdcard in android.
The true /sdcard is where you have seen at /mnt/shell/emulated/ the 0 folder which takes you to your files is just the folder for the default user.
Now into your problem.
The easiest way to remove the file would just be to boot back into cwm recovery and run;
adb shell rm /sdcard/rom.zip
Sent from my Nexus 4 using xda app-developers app
Worked like a charm!
Was messing arround before while booted into android, and it gave me errors that it did not have permission to delete the file.
While booted into recovery in deleted wonderfully. Thanks again!
Just got one more question, is it possible to delete the directory aswell?
When i try to use the same command it gives me an error and says that it's and directory.
Which command should i use to delete the directory itself?
-Update- Found the command, rmdir, worked like a charm aswell in recovery!
You can use rm -rf to delete the folder and all files inside.
Looks like you didn't need it as the directory was already empty.
Sent from my Nexus 4 using xda app-developers app

Categories

Resources