Adding Default Apps - Android

I just flashed a custom build of grouper onto the Nexus 7. Works fine. However I notice it comes with pretty well no apps, not even Google Play. I was hoping it would have the same apps the Nexus 7 is loaded with on its factory image.
Is there a place to download and inject all the apps into the build? How does one generate userdata.img or system.img with a custom set of apps built in?
I'm compiling from source in Ubuntu 12.04.

halsafar said:
I just flashed a custom build of grouper onto the Nexus 7. Works fine. However I notice it comes with pretty well no apps, not even Google Play. I was hoping it would have the same apps the Nexus 7 is loaded with on its factory image.
Is there a place to download and inject all the apps into the build? How does one generate userdata.img or system.img with a custom set of apps built in?
I'm compiling from source in Ubuntu 12.04.
Click to expand...
Click to collapse
You need the separate google apps, which are not built from source.

Like the ones cyanogen distributes? Where can I download these?

halsafar said:
Like the ones cyanogen distributes? Where can I download these?
Click to expand...
Click to collapse
http://goo.im/gapps

blazingwolf said:
http://goo.im/gapps
Click to expand...
Click to collapse
Thanks!
Is it possible to inject these apps into the custom image I'm flashing? Or do they have to be installed as an update.zip?
Is there a way to install any APK as part of the image?

halsafar said:
Thanks!
Is it possible to inject these apps into the custom image I'm flashing? Or do they have to be installed as an update.zip?
Is there a way to install any APK as part of the image?
Click to expand...
Click to collapse
Yes, they can be added to the ROM package. Just place them in the same folders they are in in the gapps zip. You can also add other programs as you wish though you should only do free ones and not anything that is a paid app.
There is another thread in this forum that talks about putting apps in the data folder so that they can be uninstalled by the user if they wish as well.

blazingwolf said:
Yes, they can be added to the ROM package. Just place them in the same folders they are in in the gapps zip. You can also add other programs as you wish though you should only do free ones and not anything that is a paid app.
There is another thread in this forum that talks about putting apps in the data folder so that they can be uninstalled by the user if they wish as well.
Click to expand...
Click to collapse
We are only injecting free apps. In this case we are building a custom nexus 7 for use in a store and wanting to flash our in-house apps on it. Along with the google apps.
So in androud_source/out/target/product/grouper/ I can start placing things. How do I generate a new system.img?
make snod seems to do the job without a full rebuild.

halsafar said:
We are only injecting free apps. In this case we are building a custom nexus 7 for use in a store and wanting to flash our in-house apps on it. Along with the google apps.
So in androud_source/out/target/product/grouper/ I can start placing things. How do I generate a new system.img?
make snod seems to do the job without a full rebuild.
Click to expand...
Click to collapse
No. If you are using a system.img then you need to unpack that and place the files in the correct locations. Then you pack it back up to a system.img. You said a Nexus 7 so I think you can use simg2img to accomplish this. I haven't built for the Nexus 7 before so you might want to check my facts.

Hi, i can't find the thread for putting apps in the userdata. Can someone point me to it?
Sent from my HTC Vision using xda app-developers app

frannois said:
Hi, i can't find the thread for putting apps in the userdata. Can someone point me to it?
Sent from my HTC Vision using xda app-developers app
Click to expand...
Click to collapse
Maybe You can try get from Your Phone folder Data - copy to Zip with your ROM and in update-script add
Code:
format("MTD", "userdata");
mount("MTD", "userdata", "/data");
delete("/data/local");

Related

[Q] Removing bloat from ROM before flashing

I've been looking into how to remove some apks from /system/app/ in CWM-flashable zips to save myself some time when going back and forth between ROMs. I understand (I think..) that after the removal process, I will need to resign the zip using JesusFreke's testsign.jar, but I still have some questions that I couldn't find much information on.
1) What exactly does the signing process do, and why would a flash of an unsigned zip fail?
2) This may be related to Q1, and may be a silly question, but why does a zip not retain the original signing if you alter the contents of the package?
3) Would using JF's testsign.jar affect the integrity of the ROM in any way? (In other words, are there any differences between testsign.jar and the signing process used by the ROM dev?)
4) Besides resigning, is there anything I should be aware of or anything else I need to do before flashing the updated ROM?
I am entirely new to this so I apologize for my entirely noob-ish questions, but really would appreciate any help! Thanks in advance.
Just open up the zip and delete the apps you don't want, add the apps you do want, and flash.
No need to do anything else.
harlenm said:
Just open up the zip and delete the apps you don't want, add the apps you do want, and flash.
No need to do anything else.
Click to expand...
Click to collapse
Don't u need to delete the permissions and everything from updater-script. I'm new to this so do u have to?
Sent from my SGH-I777 using XDA App
Usually the updater-script just sets permissions for the whole /system/app folder with one command.
Entropy512 said:
Usually the updater-script just sets permissions for the whole /system/app folder with one command.
Click to expand...
Click to collapse
How would u do that. Sry I'm a total noob to this. I only know how to set it per app.
Sent from my SGH-I777 using XDA App
The first reply already told you how to do it. I just delete the apks using winRAR and close the file, done.

[Q] How to make gapps

Does anyone know how to make gapps?
???
Gapps are already made, just flash it.
If you want to declude apps, unzip it, delete files from /system/app and data/app and re-zip
Greets!
I'm not a fake.
I prefer people to reply to me and give feedback instead of thanking me!
But thanking me does show if you apreciate my works.
I understand the question I think... as I have a similar one. How can one make their own gapps package? Or is that even necessary?
I am tempting to build an AOSP rom and would need gapps to be flashed with it. Do I just include the latest from cm, or, can I package my own in order to be the owner of them?
Sent from my Evo using xda premium
When i build a aosp rom, the zip file doesn't contains with google apps so i want to make a own google apps. How do i get the apk and how to re-package the apk to zip (using dsixda?)
echo_rc said:
When i build a aosp rom, the zip file doesn't contains with google apps so i want to make a own google apps. How do i get the apk and how to re-package the apk to zip (using dsixda?)
Click to expand...
Click to collapse
To include in your zip, just paste inside the WORKING_FOLDER.
You can grab the GAPPS from Android development and hacking > Themes and Apps, from CM web-page, and lots of more.
Just google it!
Greets!
I'm not a fake.
I prefer people to reply to me and give feedback instead of thanking me!
But thanking me does show if you apreciate my works.
I am pretty sure this thread is pertaining to the question, How did someone create gapps before you could just download them. That is easy.
There are applications that are google proprietary software that is bundled with roms. Rather it be sense, blur, touchwiz or AOSP. These google prop bits are there.
The easiest way to "create your own gapps" is to:
1) Look inside an existing gapps package and see what they used. Then use those same packages.
2) Grab all the google related jars, apks that are not available on the market, and are not included after compiling your own aosp rom. The extra apps for the most part are used for googles prop bits.
If there is a need for more detail. Please let me know.
To my understanding, you cannot include gapps in the rom for various general public license rules, hence you have to flash with cm
Sent from my Evo using xda premium
Ok thanks guys i will try grab from Android development and hacking > Themes and Apps, from CM web-page, and lots of more
Sorry guys but this is the only forum that is talking about this and i would really like to be able to do this. Does anyone know how to make gapps from an official rom update. And is there a program that will allow to make my own gapps to flash.
serranom said:
Sorry guys but this is the only forum that is talking about this and i would really like to be able to do this. Does anyone know how to make gapps from an official rom update. And is there a program that will allow to make my own gapps to flash.
Click to expand...
Click to collapse
I already explained it, and no.
mDroidd said:
???
Gapps are already made, just flash it.
If you want to declude apps, unzip it, delete files from /system/app and data/app and re-zip
Greets!
I'm not a fake.
I prefer people to reply to me and give feedback instead of thanking me!
But thanking me does show if you apreciate my works.
Click to expand...
Click to collapse
Very informative and much appreciated.
mDroidd said:
???
Gapps are already made, just flash it.
If you want to declude apps, unzip it, delete files from /system/app and data/app and re-zip
Click to expand...
Click to collapse
So I took Micro Modular Package, purged all .apk from \system\app and \system\priv-app, except GoogleLoginService.apk, GoogleServiceFramework, Phonesky.apk (which are, AFAIK, required minimum for GooglePlay) - but got en error during flashing: "file_getprop: failed to stat "/tmp/gapps.prop": No such file or directory"
The unaltered package is installing fine through, but that is not what I need
Samsung YP-G70EB, CM11 ROM.
XAN_ said:
So I took Micro Modular Package, purged all .apk from \system\app and \system\priv-app, except GoogleLoginService.apk, GoogleServiceFramework, Phonesky.apk (which are, AFAIK, required minimum for GooglePlay) - but got en error during flashing: "file_getprop: failed to stat "/tmp/gapps.prop": No such file or directory"
The unaltered package is installing fine through, but that is not what I need
Samsung YP-G70EB, CM11 ROM.
Click to expand...
Click to collapse
Silly me. While repacking, I failed to add delete-list.txt, gapps-list.txt, install-prep.sh files to resulting archive :laugh:
So I only added 2 folders, which apparently, isn't enough for correct installation
I was curious about this also.
I was looking to just update an existing gapps. My goal was to add a few extra apks not included in the standard gapps I'm using and delete a few to replace with black versions. Like youtube, google+ calender ect. Can I just add extra apps or do I need to update a file somewhere.
I noticed one file updater-script. But thats about it.
chopt51 said:
I was curious about this also.
I was looking to just update an existing gapps. My goal was to add a few extra apks not included in the standard gapps I'm using and delete a few to replace with black versions. Like youtube, google+ calender ect. Can I just add extra apps or do I need to update a file somewhere.
I noticed one file updater-script. But thats about it.
Click to expand...
Click to collapse
Yes you add it like you can see below it just extract the system directory in the gapps zip file and set it to the right permissions.
package_extract_dir("system", "/system");
set_perm(0, 0, 0755,
XAN_ said:
So I took Micro Modular Package, purged all .apk from \system\app and \system\priv-app, except GoogleLoginService.apk, GoogleServiceFramework, Phonesky.apk (which are, AFAIK, required minimum for GooglePlay) - but got en error during flashing: "file_getprop: failed to stat "/tmp/gapps.prop": No such file or directory"
The unaltered package is installing fine through, but that is not what I need
Samsung YP-G70EB, CM11 ROM.
Click to expand...
Click to collapse
I want to do this also. I want to install needed files (apk and needed libs maybe) so i can add my google account and log in to the account (so i can use Blogger official app). Simple apk extraction and installation didnt work (i did extract and install GoogleLoginService.apk but still couldn't add any google account). So should i modify gapps zip and delete all apks but GoogleLoginService.apk?
salmanfarisy said:
I want to do this also. I want to install needed files (apk and needed libs maybe) so i can add my google account and log in to the account (so i can use Blogger official app). Simple apk extraction and installation didnt work (i did extract and install GoogleLoginService.apk but still couldn't add any google account). So should i modify gapps zip and delete all apks but GoogleLoginService.apk?
Click to expand...
Click to collapse
Nope, GoogleLoginService.apk isn't enough you also need GoogleServiceFramework.apk, Phonesky.apk and some other .apk, but I forgot which one. The entire Micropackage isn't needed, though, it contains some extra .apk, which isn't needed for goggle login.
And yes, you need to flash gapps, just installing them won't do.
XAN_ said:
Nope, GoogleLoginService.apk isn't enough you also need GoogleServiceFramework.apk, Phonesky.apk and some other .apk, but I forgot which one. The entire Micropackage isn't needed, though, it contains some extra .apk, which isn't needed for goggle login.
And yes, you need to flash gapps, just installing them won't do.
Click to expand...
Click to collapse
you are right.
other apk needed is GmcCore.apk
Help with building gapps?
With TKruzzle shutting down his PA gapps packages and thread.
Just wondering how to get/build/use updated gapps as no one else is building them that I can see?
How can we get new gapps packages from google and compile them or whatever is needed.
Just wondering what would have to be done, and if I can do it.
Also liked the idea of flashing google login info into the gapps package as that would be pretty handy but not sure how to do it. Thanks.
L0X0R said:
With TKruzzle shutting down his PA gapps packages and thread.
Just wondering how to get/build/use updated gapps as no one else is building them that I can see?
How can we get new gapps packages from google and compile them or whatever is needed.
Just wondering what would have to be done, and if I can do it.
Click to expand...
Click to collapse
Almost everybody has a flashable gapps package somewhere. Download an official Nexus image for your Android architecture and version, and just replace the appropriate files in the zip.
There are sites that explain how to extract a system.img.

Flash all your apps at one time (makes life so much easier)

Here is a .zip where you can flash all your apps in one fell swoop.
This is not my work but something Silesh made for me. I don't think he will mind me sharing it.
I use it all the time and it saves me tons of time not having to install my apps manually.
All you need is WinZip
Just put all your apk files into the data/app folder
and flash away.
What I do is flash the rom and fully boot it first,
then I go back into recovery and flash this .zip.
Boom, all my apps installed. Very nice!
I put just one apk in there. Clean Brower, just so it will work and I can post it here.
Another trick is, using Root Explorer on you phone, just copy your data/app folder from your rom
Then replace that app folder in this .zip and all your apps will be in there.
The advantage to doing this is even when you update or add new apps your apps from the playstore or other, the updated apks will end up in this flashable .zip.
Just make sure when using WinZip when you "add files" and add the app folder you drag it into the data folder. (first delete the app folder that is already in there.)
Again all credit goes to Silesh
Just thought I'd share this.
..
Thanks :good:
Nice to have. Thanks for sharing.
Very good!
Thanks for you. It really works.
Please, can you show, how I can use your zip for another devices? May be for I9000?
faorekh said:
Thanks for you. It really works.
Please, can you show, how I can use your zip for another devices? May be for I9000?
Click to expand...
Click to collapse
It should work on other devices the same.
It flashes all your apps to data/app folder which is used on any Android device.
Obviously not for windows or apple.
Sent from my GT-I9205 using Tapatalk 2
Hi,
zcink said:
It should work on other devices the same.
It flashes all your apps to data/app folder which is used on any Android device.
Obviously not for windows or apple.
Sent from my GT-I9205 using Tapatalk 2
Click to expand...
Click to collapse
zicnk, maybe you are interested in this app too:
https://play.google.com/store/apps/details?id=zip.me&hl=en
treare said:
Hi,
zicnk, maybe you are interested in this app too:
https://play.google.com/store/apps/details?id=zip.me&hl=en
Click to expand...
Click to collapse
Yes thanks.
I have a couple other apps that create flashable zips
But none work as good as the script Silesh has made.
One has an aroma installer but it also has alot of bugs.
Copying my data/app folder into Silesh's .zip works flawless for me.
Sent from Smoke Signals
Aroma Installer
Here is an apk that basically does the same thing.
You can use it to backup and reflash all your apks in recovery at the same time.
This one uses an aroma installer which is nice because you can check or uncheck only the apps you want to install.
It will also do system apps.
Not my work. Had this kicking around from a older phone.
Seems to work fine on the Mega.
Just sharing.
Sent from Smoke Signals

[Mod] AutoSmoothScrolling [Windows only]

Hey everyone I decided to take the smooth scrolling mod to the next level. I was reading @zephiK didn't have the time to update the mod for every update that comes out. So I decided to get back in the game a little and completely automate the process so now you guys as users can do the "heavy" lifting (heavy in quotes since it's really an automated process for the most part lol). It basically pulls your framework.jar from your currently running ROM, modifies it, and pushes it back to your device. It should work on any ROM that doesn't have a different AbsListView.smali from the one I use (aside from the smooth scrolling parts, that's fine). If there's more demand for this (or I get locked out of my dropbox because of too many downloads) then I'll throw it up on my site instead. Until then, enjoy! Only supported on Windows. If anyone wants to make a linux/mac version, feel free to.
BE SURE TO ALWAYS BACKUP JUST IN CASE!
If you try this on another ROM and it doesn't work because the AbsListView is different somehow, let me know and I will make other versions to support other ROMs
DOWNLOAD
adb pull's your framework.jar from the currently running ROM.
Sets up a couple of folders for use later when putting the files back into a .jar.
Uses a jar command to extract all of the contents of the jar file.
Runs the baksmali code (with a small edit to remove the pause).
Copies the AbsListView.smali to the baksmali'd area.
Copies the android folder in "decompiled" into "smali-me".
Runs the smali code (again, with a small edit).
Deletes classes.dex and framework.jar in the root folder.
Renames modded-classes.dex to classes.dex.
Moves classes.dex, META-INF, and preloaded classes into the Temp folder.
Creates a new framework.jar file from what's provided in the Temp folder.
Moves that file back into the root directory.
Cleans up most of the folders/files.
Pushes the new framework.jar to your device, sets permissions, and reboots.
Finally it removes the framework.jar in the root directory to finish the clean up process.
Changelog:
10-5-14
Initial release
10-6-14
Added option to work with a zip file.
Reworked the initial batch file to allow for more automation (took out some pauses) and now has a menu to select your option.
Added a changelog.
Updated the Cleanup.bat to account for the new folder created when using the zip method.
Confirmed working ROMs:
SlimSaber by fusionjack
Sabermod cm11 by Robbie
Good work man! And 1st ?
Added to OnePlus One index thread:
[INDEX] OnePlus One Resources Compilation Roll-Up
Transmitted via Bacon
Wouldn't install at all for me. I'm on Paranoid Android (SaberMod Edition)..10-02-2014 build..
Oh well... Always good to see users putting in work?
OmegaBlaze said:
Wouldn't install at all for me. I'm on Paranoid Android (SaberMod Edition)..10-02-2014 build..
Oh well... Always good to see users putting in work?
Click to expand...
Click to collapse
Install as in you tried to flash it? It's a windows based mod.
prsterero said:
Install as in you tried to flash it? It's a windows based mod.
Click to expand...
Click to collapse
Yikes?
Forgot all about that?
OmegaBlaze said:
Yikes?
Forgot all about that?
Click to expand...
Click to collapse
Haha right in the title and op
When I install this onto my device w/ CM11 nightlies (10/05) it stops everything from working/launching/FC.
dylanraga said:
When I install this onto my device w/ CM11 nightlies (10/05) it stops everything from working/launching/FC.
Click to expand...
Click to collapse
So you ran the batch file and after it rebooted things stopped working? If so if you send me the framework.jar file in system/framework/ then I'll make a version for cm11
prsterero said:
So you ran the batch file and after it rebooted things stopped working? If so if you send me the framework.jar file in system/framework/ then I'll make a version for cm11
Click to expand...
Click to collapse
can this also work by simply placing the proper jar file in a folder on your pc and doing it that way. I ask because I sometimes download remotely and would like to have all this done and placed back into the rom prior to flashing. I have manually edited this file before but interested in your method as well
thx
playya said:
can this also work by simply placing the proper jar file in a folder on your pc and doing it that way. I ask because I sometimes download remotely and would like to have all this done and placed back into the rom prior to flashing. I have manually edited this file before but interested in your method as well
thx
Click to expand...
Click to collapse
It should if you modify the script. If you don't know batch, then I could try and write a version for that as well if you would like.
prsterero said:
It should if you modify the script. If you don't know batch, then I could try and write a version for that as well if you would like.
Click to expand...
Click to collapse
That would be nice Thx. I would prefer to do it all on my PC and push file over or put in a zip if I do it for others
Sent from my A0001 using Tapatalk
playya said:
That would be nice Thx. I would prefer to do it all on my PC and push file over or put in a zip if I do it for others
Sent from my A0001 using Tapatalk
Click to expand...
Click to collapse
I'll get to work on it. Got a midterm today, so may not get it done
@prsterero It works. However:
It has to be placed on desktop.
I had to change JDK folder name in the script to jdk1.8.0_20 as I have a never version installed.
Oh nevermind, the readme...
Irseq said:
@prsterero It works. However:
It has to be placed on desktop.
I had to change JDK folder name in the script to jdk1.8.0_20 as I have a never version installed.
Oh nevermind, the readme...
Click to expand...
Click to collapse
The power of readme files haha
playya said:
That would be nice Thx. I would prefer to do it all on my PC and push file over or put in a zip if I do it for others
Sent from my A0001 using Tapatalk
Click to expand...
Click to collapse
Give it a shot now. The link is in the OP. I ran through it and it seems to work correctly, but I can't flash the zip to test it out. Let me know if you have any issues
prsterero said:
Give it a shot now. The link is in the OP. I ran through it and it seems to work correctly, but I can't flash the zip to test it out. Let me know if you have any issues
Click to expand...
Click to collapse
Will do
Sent from my A0001 using Tapatalk
Now confirmed working with Robbie's sabermod cm11
Confirmed not working for me on cm-11-20141216-NIGHTLY-bacon :/
The modified ROM is able to boot, but every app that uses the new AbsListView immediately crashes (this even include the power menu, I had to hard reboot my phone !). I have Xposed installed and running with modules such as ForceFastScroll that might interfer with the mod... This needs further testing!
Anyway, great job mate!
I need this and the link is down what's up with it

[Q] How to take a Backup of all AndroidManifest.xml's?

Hello, everyone.
Is there any way to take a backup of all AndroidManifests.xml on an Android Device?
ALL Free Apps
ALL Paid Apps
ALL System Apps
And where can you find them on the ES-File Explorer or any other File Explorer?
The app „Android System Information" can actually view all AndroidManifests.xml - System/Paid and Free apps. Every single one.
If an app is able to Display them, there must be a way to backup them or copy them to another folder.
Thanks in Advance.
It most likely workes like an archive veiwer. All those files are stored into the apks. You will have to decompile each apk
Android Installation Packages
zelendel said:
It most likely workes like an archive veiwer. All those files are stored into the apks. You will have to decompile each apk
Click to expand...
Click to collapse
INSIDE of the APK's?
Don't think so...
AndoridManifest includes things like
API Version
App Version
Installation Date and Time (also with seconds)
Some Metadata
Package Name
etc.
Hannah Stern said:
INSIDE of the APK's?
Don't think so...
AndoridManifest includes things like
API Version
App Version
Installation Date and Time (also with seconds)
Some Metadata
Package Name
etc.
Click to expand...
Click to collapse
I am aware of just what it is. They are stored inside the apk. Just unzip one and you will see it, might need to decompile it to read it though.
zelendel said:
I am aware of just what it is. They are stored inside the apk. Just unzip one and you will see it, might need to decompile it to read it though.
Click to expand...
Click to collapse
Are the AndroidManifests also included in an ADB-Backup of one or multiple apps?
Hannah Stern said:
Are the AndroidManifests also included in an ADB-Backup of one or multiple apps?
Click to expand...
Click to collapse
In a way as they back up the whole apk. If you are just wanting those files you will have to rip each one apart. No way around it.

Categories

Resources