Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,807,005 Members 38,031 Now Online
XDA Developers Android and Mobile Development Forum

Gapps with own apk

Tip us?
 
mitsucats
Old
(Last edited by mitsucats; 20th October 2013 at 03:18 PM.)
#1  
Senior Member - OP
Thanks Meter 36
Posts: 245
Join Date: Dec 2009
Default Gapps with own apk

Hallo

I have for the last days read and read and try to learn all about this custom rom. but i dont get any smartere at the moment.

I have download a custom rom 4.3 and Gapps for 4.3

1 wipe all
2 flash custom rom
3 Flash gapps
4 boot rom and wait long before all aps from market is install

Now i thouht you can download all the .apk you need and put them into the gapps or custom rom.

first i try this unzip the custom rom put all .apk into system\app but when rom is flash and boot i come to where
i must put my pincode in then break hell lose all program stop working system ui and so on.

Then i thought we try the same with the Gapps instead but same result.....

I Search more on google and found this tool "APK Swapper" where you can add .apk to the rom
and it then can i pack all as .zip and flash it

Now i hought i work fine but no way i get same error.

I try to search more on google but get more confuse because few says that works for me other say no and try to search more but now i am so confuse that i need little help here.

How do i make a Zip or put them into Gapps these .apk i like to have on my rom ?. and then falsh it and all is there....

P.S i have just try this

Unpack the Gapps signed 4.3 and then change in the update-script

Quote:
ui_print("**************************************** *******");
ui_print(" Google Apps for Android 4.3.0");
ui_print("**************************************** *******");

ui_print("Installing files...");
run_program("/sbin/busybox", "mount", "/system");
show_progress(1, 15);
delete("/system/app/Provision.apk","/system/app/textinput-tng.apk","/system/app/DBA.apk","/system/app/DBA.apk","/system/app/Ebay.apk","/system/app/Ebay-Kleinanzeigen.apk","/system/app/Ebay-Widget.apk","/system/app/Entertain-Remote-Control.apk","/system/app/Facebook.apk","/system/app/Firefox.apk","/system/app/Google-Maps.apk","/system/app/GPS-Status.apk","/system/app/HandcentSMS.apk","/system/app/HandcentSMS-Danish-Language.apk","/system/app/HandcentSMS-ink.apk","/system/app/Ingdiba.apk","/system/app/lieferando.apk","/system/app/MailListWidget-K-9.apk","/system/app/NovaLauncher.apk","/system/app/ROM-Manager.apk","/system/app/Paypal.apk","/system/app/Sense-V2.apk","/system/app/Solitar.apk","/system/app/Skype.apk","/system/app/Sparkasse.apk","/system/app/SpeechSynthesis-Data-Installer.apk","/system/app/TeamViewer.apk","/system/app/YouTube.apk","/system/app/XDA-Developers.apk","/system/app/QuickSearchBox.apk","/system/app/SetupWizard.apk","/system/app/Velvet.apk","/system/app/Vending.apk","/system/app/BrowserProviderProxy.apk","/system/app/PartnerBookmarksProvider.apk","/system/app/Gmail2.apk");
package_extract_dir("system", "/system");
set_perm(0, 0, 0755, "/system/addon.d/70-gapps.sh");
package_extract_dir("optional", "/tmp");
package_extract_file("install-optional.sh", "/tmp/install-optional.sh");
set_perm(0, 0, 0777, "/tmp/install-optional.sh");
run_program("/tmp/install-optional.sh", "");
show_progress(1, 15);
ui_print("Cleaning up...");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
run_program("/sbin/busybox", "umount", "/system");
ui_print("Installation complete!");
But all goes fine to flash the rom and gapps but then when it has boot and come to first time to Chose the lanuage
all program start to stop unfornataly has stop ....and i cant come to next step or chose the langugage because it
it just popup with stops and stops. and so on,
 
pascuals
Old
#2  
pascuals's Avatar
Member
Thanks Meter 29
Posts: 68
Join Date: Feb 2013
Quote:
Originally Posted by mitsucats View Post
Hallo

I have for the last days read and read and try to learn all about this custom rom. but i dont get any smartere at the moment.

I have download a custom rom 4.3 and Gapps for 4.3

1 wipe all
2 flash custom rom
3 Flash gapps
4 boot rom and wait long before all aps from market is install

Now i thouht you can download all the .apk you need and put them into the gapps or custom rom.

first i try this unzip the custom rom put all .apk into system\app but when rom is flash and boot i come to where
i must put my pincode in then break hell lose all program stop working system ui and so on.

Then i thought we try the same with the Gapps instead but same result.....

I Search more on google and found this tool "APK Swapper" where you can add .apk to the rom
and it then can i pack all as .zip and flash it

Now i hought i work fine but no way i get same error.

I try to search more on google but get more confuse because few says that works for me other say no and try to search more but now i am so confuse that i need little help here.

How do i make a Zip or put them into Gapps these .apk i like to have on my rom ?. and then falsh it and all is there....

P.S i have just try this

Unpack the Gapps signed 4.3 and then change in the update-script



But all goes fine to flash the rom and gapps but then when it has boot and come to first time to Chose the lanuage
all program start to stop unfornataly has stop ....and i cant come to next step or chose the langugage because it
it just popup with stops and stops. and so on,
Try in data/app instead system/app
Add this to the script
run_program("/sbin/busybox", "mount", "/data");
package_extract_dir("data","/data")
run_program("/sbin/busybox", "umount", "/data");
The Following User Says Thank You to pascuals For This Useful Post: [ Click to Expand ]
 
mitsucats
Old
#3  
Senior Member - OP
Thanks Meter 36
Posts: 245
Join Date: Dec 2009
Quote:
Originally Posted by pascuals View Post
Try in data/app instead system/app
Add this to the script
run_program("/sbin/busybox", "mount", "/data");
package_extract_dir("data","/data")
run_program("/sbin/busybox", "umount", "/data");


So something like this

Quote:
ui_print("**************************************** *******");
ui_print(" Google Apps for Android 4.3.0");
ui_print("**************************************** *******");

ui_print("Installing files...");
run_program("/sbin/busybox", "mount", "/system");
show_progress(1, 51);
package_extract_dir("data","/data")
run_program("/sbin/busybox", "umount", "/data");
delete("/system/app/Provision.apk","/system/app/textinput-tng.apk","/system/app/DBA.apk","/system/app/DBA.apk","/system/app/Ebay.apk","/system/app/Ebay-Kleinanzeigen.apk","/system/app/Ebay-Widget.apk","/system/app/Entertain-Remote-Control.apk","/system/app/Facebook.apk","/system/app/Firefox.apk","/system/app/Google-Maps.apk","/system/app/GPS-Status.apk","/system/app/HandcentSMS.apk","/system/app/HandcentSMS-Danish-Language.apk","/system/app/HandcentSMS-ink.apk","/system/app/Ingdiba.apk","/system/app/lieferando.apk","/system/app/MailListWidget-K-9.apk","/system/app/NovaLauncher.apk","/system/app/ROM-Manager.apk","/system/app/Paypal.apk","/system/app/Sense-V2.apk","/system/app/Solitar.apk","/system/app/Skype.apk","/system/app/Sparkasse.apk","/system/app/SpeechSynthesis-Data-Installer.apk","/system/app/TeamViewer.apk","/system/app/YouTube.apk","/system/app/XDA-Developers.apk","/system/app/QuickSearchBox.apk","/system/app/SetupWizard.apk","/system/app/Velvet.apk","/system/app/Vending.apk","/system/app/BrowserProviderProxy.apk","/system/app/PartnerBookmarksProvider.apk","/system/app/Gmail2.apk");
package_extract_dir("system", "/system");
set_perm(0, 0, 0755, "/system/addon.d/70-gapps.sh");
package_extract_dir("optional", "/tmp");
package_extract_file("install-optional.sh", "/tmp/install-optional.sh");
set_perm(0, 0, 0777, "/tmp/install-optional.sh");
run_program("/tmp/install-optional.sh", "");
show_progress(1, 15);
ui_print("Cleaning up...");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
run_program("/sbin/busybox", "umount", "/system");
ui_print("Installation complete!")
And then put all the app in forlder data\app
 
pascuals
Old
#4  
pascuals's Avatar
Member
Thanks Meter 29
Posts: 68
Join Date: Feb 2013
Noo
Add the 3 lines at the end before run_program("/sbin/busybox","unmount","/system") ;

Enviado desde mi Nexus 7 usando Tapatalk now Free
The Following User Says Thank You to pascuals For This Useful Post: [ Click to Expand ]
 
mitsucats
Old
#5  
Senior Member - OP
Thanks Meter 36
Posts: 245
Join Date: Dec 2009
Quote:
Originally Posted by pascuals View Post
Noo
Add the 3 lines at the end before run_program("/sbin/busybox","unmount","/system") ;

Enviado desde mi Nexus 7 usando Tapatalk now Free
I have yesterday try that and the rom goes fine and the Gapps goes also fine
but when i comes into the phone and login by Google store then start to download all
the programs so they where not install.

what is wrong now ?

The root folder looks like this

Data
App
META-INF
com
optional
face
addon.d
app
lib
vendor
system
addon.d
app
etc
framework
lib
tts
usr

The updater-script looks like this

Quote:
ui_print("**************************************** *******");
ui_print(" Google Apps for Android 4.3.0");
ui_print("**************************************** *******");

ui_print("Installing files...");
run_program("/sbin/busybox", "mount", "/system");
show_progress(1, 15);
delete("/system/app/Provision.apk","/system/app/QuickSearchBox.apk","/system/app/SetupWizard.apk","/system/app/Velvet.apk","/system/app/Vending.apk","/system/app/BrowserProviderProxy.apk","/system/app/PartnerBookmarksProvider.apk","/system/app/Gmail2.apk");
package_extract_dir("system", "/system");
set_perm(0, 0, 0755, "/system/addon.d/70-gapps.sh");
package_extract_dir("optional", "/tmp");
package_extract_file("install-optional.sh", "/tmp/install-optional.sh");
set_perm(0, 0, 0777, "/tmp/install-optional.sh");
run_program("/tmp/install-optional.sh", "");
show_progress(1, 15);
ui_print("Cleaning up...");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
run_program("/sbin/busybox","mount","/data");
package_extract_dir("data/", "/data/local");
set_perm(0, 0, 0755, 0644, "/system/app/textinput-chn.apk");
set_perm(0, 0, 0755, 0644, "/system/app/textinput-tng.apk");
set_perm(0, 0, 0755, 0644, "/system/lib/libXT9Engine.so");
set_perm(0, 0, 0755, 0644, "/data/app/CameraMX.apk");
set_perm(0, 0, 0755, 0644, "/data/app/DBA.apk");
set_perm(0, 0, 0755, 0644, "/data/app/Ebay.apk");
set_perm(0, 0, 0755, 0644, "/data/app/Ebay-Kleinanzeigen.apk");
set_perm(0, 0, 0755, 0644, "/data/app/Ebay-Widget.apk");
set_perm(0, 0, 0755, 0644, "/data/app/Entertain-Remote-Control.apk");
set_perm(0, 0, 0755, 0644, "/data/app/ES-Datei-Explorer.apk");
set_perm(0, 0, 0755, 0644, "/data/app/Facebook.apk");
set_perm(0, 0, 0755, 0644, "/data/app/Firefox.apk");
set_perm(0, 0, 0755, 0644, "/data/app/Google-Maps.apk");
set_perm(0, 0, 0755, 0644, "/data/app/GPS-Status.apk");
set_perm(0, 0, 0755, 0644, "/data/app/HandcentSMS.apk");
set_perm(0, 0, 0755, 0644, "/data/app/HandcentSMS-DL.apk");
set_perm(0, 0, 0755, 0644, "/data/app/HandcentSMS-ink.apk");
set_perm(0, 0, 0755, 0644, "/data/app/Ingdiba.apk");
set_perm(0, 0, 0755, 0644, "/data/app/lieferando.apk");
set_perm(0, 0, 0755, 0644, "/data/app/MailListWidget-K-9.apk");
set_perm(0, 0, 0755, 0644, "/data/app/Paypal.apk");
set_perm(0, 0, 0755, 0644, "/data/app/ROM-Manager.apk");
set_perm(0, 0, 0755, 0644, "/data/app/Sense-V2.apk");
set_perm(0, 0, 0755, 0644, "/data/app/Skype.apk");
set_perm(0, 0, 0755, 0644, "/data/app/Solitar.apk");
set_perm(0, 0, 0755, 0644, "/data/app/Sparkasse.apk");
set_perm(0, 0, 0755, 0644, "/data/app/SpSynthesis-Data.apk");
set_perm(0, 0, 0755, 0644, "/data/app/TeamViewer.apk");
set_perm(0, 0, 0755, 0644, "/data/app/XDA-Developers.apk");
set_perm(0, 0, 0755, 0644, "/data/app/YouTube.apk");
run_program("/sbin/umount", "/data");
run_program("/sbin/busybox", "umount", "/system");
ui_print("Installation complete!");
 
mitsucats
Old
#6  
Senior Member - OP
Thanks Meter 36
Posts: 245
Join Date: Dec 2009
Hallo

i have plaz the whole day and now get all to work. so cool

Thank you very much for all the help......

The code looks like this

Quote:
ui_print("**************************************** *******");
ui_print(" Google Apps for Android 4.3.0");
ui_print("**************************************** *******");

ui_print("Installing files...");
run_program("/sbin/busybox", "mount", "/system");
run_program("/sbin/busybox", "mount", "/data");
show_progress(1, 51);
delete("/system/app/Provision.apk","/system/app/QuickSearchBox.apk","/system/app/SetupWizard.apk","/system/app/Velvet.apk","/system/app/Vending.apk","/system/app/BrowserProviderProxy.apk","/system/app/PartnerBookmarksProvider.apk","/system/app/Gmail2.apk");
package_extract_dir("system", "/system");
package_extract_dir("data", "/data");
package_extract_dir("data", "/data/local");
set_perm(0, 0, 0755, 0644, "/system/app/textinput-chn.apk");
set_perm(0, 0, 0755, 0644, "/system/app/textinput-tng.apk");
set_perm(0, 0, 0755, 0644, "/system/lib/libXT9Engine.so");
set_perm(1000, 1000, 0771, "/data");
set_perm_recursive(0, 0, 0755, 0644, "/data/app");
set_perm(0, 0, 0755, "/system/addon.d/70-gapps.sh");
package_extract_dir("optional", "/tmp");
package_extract_file("install-optional.sh", "/tmp/install-optional.sh");
set_perm(0, 0, 0777, "/tmp/install-optional.sh");
run_program("/tmp/install-optional.sh", "");
show_progress(1, 15);
ui_print("Cleaning up...");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
ui_print("Cleaning up...");
run_program("/sbin/busybox", "umount", "/data");
run_program("/sbin/busybox", "umount", "/system");
ui_print("Installation complete!");
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Schedule is up for xda:devcon ’14

With xda:devcon ’14 just around the corner, and the venue close to selling out, there is a lot … more

aLogcat Returns Thanks to XDA Love

The developers of Android, that is Google, gave users several great debugging tools that can be used in … more

And the Winners in the XDA Pebble Development Challenge Are…

Almost two months ago, we set out with Pebble to findthree amazing … more

MediaTek Releases Full Kernel Source for First Android One Devices

Those who might have thought that MediaTek wouldnever release working … more