Adding data to preinstalled apps - Android Q&A, Help & Troubleshooting

I'm working on a custom ROM for my Toshiba Thrive and I'd like to install some apps with data already placed on installation, but I can't find out how. An example would be ADW as a launcher. Right now, it boots and immediately goes to the welcome screen for a fresh install of ADW. I'd like to make a default theme for ADW so that when someone installs the ROM, they can avoid that initial setup of ADW. Please help!

Anybody?

I have solved this as follows:
apps installed and configured. then searchin the folder /data/data to the folder of the app. this directory you can integrate directly into your rom.
look in the rom has it this way:
/ data
-data
-name of the folder
/ META-INF
/ system
/ boot.img
important is that in the updater script-line
package_extract_dir ("data", "/ data");
inside.
Sorry 4 google-translate

Thanks! I'll give this a shot.

Well this did not work. It created data directories, but not under the root folder. They fell under System.

Related

How to create "update.zip" for integrate apps?

Hello!
I'd like to create update.zip to integrate app wich can be flashed to any or almost any rom. I'd like to put some essential app in it. Anybody can tell me how can i do this, or is there any guide for this?
Download and install the latest android sdk .also Java jdk find and download autosign. Do this all by searching. I would download a custom rom as a template for your update.zip. extract the data folder and the Meta folder and put into a new folder, go into Meta folder keep clicking through the folders inside Meta one till you find update-script and open it in notepad.
Delete everything except the part saying something like copy package DIRATA and the show progress before it. Once that's all done put the Apps you want into the data folder zip up the data and Meta folders, when you open the zip folder you should only see those 2 no others! Resign it using autosign and flash
bonesy said:
Download and install the latest android sdk .also Java jdk find and download autosign. Do this all by searching. I would download a custom rom as a template for your update.zip. extract the data folder and the Meta folder and put into a new folder, go into Meta folder keep clicking through the folders inside Meta one till you find update-script and open it in notepad.
Delete everything except the part saying something like copy package DIRATA and the show progress before it. Once that's all done put the Apps you want into the data folder zip up the data and Meta folders, when you open the zip folder you should only see those 2 no others! Resign it using autosign and flash
Click to expand...
Click to collapse
+1. Niiice,... A few questions though if you dont mind.
1,... Can I use this command that I use to sign my bootscreens to sign the update.zip ... "java -jar C:\SignApk\SignApk.jar C:\SignApk\testkey.x509.pem C:\SignApk\testkey.pk8 C:\SignApk\bootscreen.zip C:\SignApk\bootscreen_signed.zip" ... and just change the file name as needed? ... Or do the .pem and .pk8 files need to be changed to something else?
2,... If Im using a base custom ROM with Apps2SD, all apps will be installed to the SD right?... Or do they install to the internal memory if you add the apps to the ROM itself?
3,... Is it also possible to add the app and game data (i.e.. game saves) to the ROM or is it best to use a backup programme?
Hope someone can help?
Thanks!
I tought it will harder, but it worked flawlessly
I'd be interested in this too:
ddotpatel said:
2,... If Im using a base custom ROM with Apps2SD, all apps will be installed to the SD right?... Or do they install to the internal memory if you add the apps to the ROM itself?
Click to expand...
Click to collapse
It all goes to the Data partition so... If your ROM is using apps2sd and its turned on (for instance im using androbin and i have done the command "apps2sd on" in terminal) the apps you install from then on will go to your sdcard partition.Quite a handy thing on this androbin rom is in sd card and storage it tells me my secondary partition!
Ddotpatell....
1.Yes you can use that command
2.answered above.
3.I would use a backup program personally
Thanks BONESY, much appreciated.

[Q] Installing Calendar.apk on devoid (and the rest of the gapps)

I like the minimal devoid ROM since I can install only the apps that I actually use, but I have one app that I can't figure out how to install: Calendar.apk, the stock Android calendar.
Things I've tried:
1) Installing the apk from /sdcard/void/resources/gapps/apk/ from my void installation. This fails in the App Manager with the completely unhelpful message: "Application not installed"
2) Installing the gapps-gb package from mik_os's CM 7 port. This can be flashed and some of the apps install just fine, but not the calendar.
3) Installing the gapps-mdpi package from CM 6. This seems to be a better fit with the Froyo in devoid but like above, it installs a great many of the gapps, but not Calendar.
Has anyone managed to install the stock Android Calendar program under devoid? How?
flash the file attached,
it contain some originals apps:
Calendar
SoundRecorder
MoviePlayer
MusicPlayer
It looks like this contains only the CalendarWidget.apk. I flashed it anyway and it indeed does install the CalendarWidget along with the other apps, but not the calendar application. Thanks, though.
Your zip did give me the idea that I could just try to copy the APK files into /system/app. This worked. Now I can get started adding the rest of the apps I need.
can you teach me how to add those gapps in more detail? i have copied them to system/apps, then what's the next?
Hello, you only have to follow the instructions from the http://forum.xda-developers.com/showthread.php?t=887281
Tutorial: How to flash only some sapps
1. Grab the sapps/gapps package
2. Extract it
3. Go to the extracted folder "/system/app/" and delete the applications you don't want to flash
4. Use the above program (zipsigner) to create a CROM.zip, put the extracted files there so you have 2 folders on the root of the zip: META-INF and SYSTEM. Then sign it and it should create a CROM-s.zip.
5. Rename the CROM-s.zip to MySapps.zip, put it in sdcard and flash.
Click to expand...
Click to collapse
I attached the file that I used to flash calendar, and other apps
Calendar
Thanks a lot. This solved my problem for devoid
thank you very much ! iam enjoying my phone with the calendar !
Sent from my LG-P500 using XDA App

[Q] Where does launcher looks to find user's apps?

Hi all. I was removing stock apps from my /system/app folder, and deleted Launcher2.apk by mistake. The phone couldn't boot properly, so I managed to get the apk from the emulator and install it using adb booting the phone on recovery mode.
Now, my problem is, that Launcher only shows shorcuts to the apps from my /system/app folder. Every apk I put or install on /data/app doesn't apear on the apps view. So there is no way to launch any app unles I manualy move it to system.
I think launcher must read a config file to get the installed apps, and it's failing for some reason. What do you think?
thanks in advance
d
Well just in case someone is interested in this. I'm creating symlinks from my /data/app and sdcard mounts to /system/app to workaround my problem.

where to place apps in custom rom

Hello Guys,
I am trying to make/edit my first custom rom (forgive my noob mistakes). As base i am using the Oxygen rom. This rom has all his apps stored in system/app. I inserted an launcher(hololauncher), keyboard(custom htcime) and gallery(quickpick) apk in this folder, but after the rom is flashed these apps are causing fc's and the gallery app isnt even flashed.
I know that not every apk can be placed in the system/app folder, but how can i ensure that these apps will install correctly during flashing.
Depends on apps.
The most common mistake is forgetting to set the permissions to rw-r-r.
Also some apps need their lib files (usually end in .so) in a specific location, like quickpic that can't be turned into a system app just by putting it in system/app address.
Edit: you can ensure these apps are installed correctly by testing.
1 install them normally and convert them to system apps.
2 write down where each of their parts end up (some will always need stuff in data/app or something similar.
4 use a root explorer or adb to copy those files to your pc.
5 modify the flashable zip. Add the files you just copied and modify the updater-script to make sure those files get flashed to the correct location (you might need to include mount data commands if any of the files flash to data/)
6 test!
Some apps might require actual edition by decompiling them, but the above should work for most.
dxppxd said:
Depends on apps.
The most common mistake is forgetting to set the permissions to rw-r-r.
Also some apps need their lib files (usually end in .so) in a specific location, like quickpic that can't be turned into a system app just by putting it in system/app address.
Edit: you can ensure these apps are installed correctly by testing.
1 install them normally and convert them to system apps.
2 write down where each of their parts end up (some will always need stuff in data/app or something similar.
4 use a root explorer or adb to copy those files to your pc.
5 modify the flashable zip. Add the files you just copied and modify the updater-script to make sure those files get flashed to the correct location (you might need to include mount data commands if any of the files flash to data/)
6 test!
Some apps might require actual edition by decompiling them, but the above should work for most.
Click to expand...
Click to collapse
How can I convert it to a system app when it already is installed normally ?
I also saw the option to make a data/app folder, isn't that easier ?
(Take in consideration that I don't use kitchen or adb tools, just winrar and notepadcc )
Sent from my HTC Desire using xda app-developers app
Not talking about adb and kitchen.
there are many app managing apps out there (titanium backup, link2sd) that can convert apps to system apps.
The updater script is in META-INF of the flashable zip (can be edited with notepad).
You only need a rooted device to see where the apps keep their data and copy those files.
dxppxd said:
Not talking about adb and kitchen.
there are many app managing apps out there (titanium backup, link2sd) that can convert apps to system apps.
The updater script is in META-INF of the flashable zip (can be edited with notepad).
You only need a rooted device to see where the apps keep their data and copy those files.
Click to expand...
Click to collapse
Ok that is clear, thanks. What do you think about data/app. Will this work ?
Sent from my HTC Desire using xda app-developers app
winesh said:
Ok that is clear, thanks. What do you think about data/app. Will this work ?
Sent from my HTC Desire using xda app-developers app
Click to expand...
Click to collapse
Yeah, flashing to data app is an option, but if a data wipe or factory reset is applied after flashing the rom (to correct a bootloop for example), those apps are gone.

[GUIDE] Integrating apps to system manually

Since PA Gapps doesn't have any more support I've been trying my self to integrate the Gapps updates into system partition, and with Android 5.x i found it's easy because in previous versions the libraries had to be integrated but they were in separate directories, now the apk and the libraries are in the same directory, so it's just question of moving the whole directory to the system partition, reboot and voiala! In my case I use Root Explorer, just use the one you want, hope this helps out the ones with the same problem and sadness of no more PA Gapps.
Here the steps:
1. Locate your user app/update at data/app
2. It should appear as com.example.app folder
3. Highlight it and select "Move"
4. Now put in system/app
5. Reboot
Note 1: At step 3 you must move the whole folder and not just the apk
Note 2: I found that some AOSP Apps are in system/priv-app, like the Keyboard, so, for avoiding troubles, if you replace an AOSP app move it to his corresponding AOSP directory
Note 3: Also, you can de-bloat your ROM by deleting Apps (whole directory) with a root explorer, if you want to find an app PM me or ask what a apk is for before deleting it
This is my first post, if I made a mistake please tell me and sorry if I have bad english.

Categories

Resources