Go Back   xda-developers > Dream > Dream android development

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 26th September 2009, 10:53 AM
maxisma's Avatar
maxisma maxisma is offline
Senior Member
 
Join Date: May 2009
Location: Dorsten, Germany
Posts: 818
Exclamation [CUSTOM RECOVERY] Integrate GoogleApps into ROM's w/o Google Experience/AOSP =)

Soo,
I want to start a project to make a script which includes the Market in a "bare bone" ROM.
The goal is to have cyanogen to make ROM's without Google Experience and let the user run a script to reinclude the Market.

I have an idea how:
The user has to download a file from the HTC Website: The ADP1 Systemimage.
He places it into a folder in which is a script which unyaffs the image, copys the necesarry files and makes an update.zip out of it which can be flashed over the "bare bone-rom".

I don't know if this legal or not, but Google won't attack the end-user, but the one who provides software illegal.
But HTC has a license, so there shouldn't be a problem.
The end-user does something illegal I think, but he won't get into any trouble with google.

The hardest part is to find the necesarry files.
I diffed the folders of a market and non-market ROM and filtered out some unneeded parts.
Here's the list of which files to copy.
Quote:
# Apps
cp system/app/BugReport.apk gfiles/app/BugReport.apk
cp system/app/checkin.apk gfiles/app/checkin.apk
cp system/app/Gmail.apk gfiles/app/Gmail.apk
cp system/app/GmailProvider.apk gfiles/app/GmailProvider.apk
cp system/app/GoogleApps.apk gfiles/app/GoogleApps.apk
cp system/app/GoogleContactsProvider.apk gfiles/app/GoogleContactsProvider.apk
cp system/app/GooglePartnerSetup.apk gfiles/app/GooglePartnerSetup.apk
cp system/app/GoogleSettingsProvider.apk gfiles/app/GoogleSettingsProvider.apk
cp system/app/GoogleSubscribedFeedsProvider.apk gfiles/app/xx.apk
cp system/app/GoogleSubscribedFeedsProvider.apk gfiles/app/GoogleSubscribedFeedsProvider.apk
cp system/app/gtalkservice.apk gfiles/app/gtalkservice.apk
cp system/app/ImProvider.apk gfiles/app/ImProvider.apk
cp system/app/MediaUploader.apk gfiles/app/MediaUploader.apk
cp system/app/NetworkLocation.apk gfiles/app/NetworkLocation.apk
cp system/app/SetupWizard.apk gfiles/app/SetupWizard.apk
cp system/app/Street.apk gfiles/app/Street.apk
cp system/app/Talk.apk gfiles/app/Talk.apk
cp system/app/Vending.apk gfiles/app/Vending.apk
cp system/app/VoiceDialer.apk gfiles/app/VoiceDialer.apk
cp system/app/VoiceSearch.apk gfiles/app/VoiceSearch.apk
cp system/app/YouTube.apk gfiles/app/YouTube.apk

# Framework
cp system/framework/com.google.android.gtalkservice.jar gfiles/framework/com.google.android.gtalkservice.jar
cp system/framework/com.google.android.maps.jar gfiles/framework/com.google.android.maps.jar


# Permissions
cp system/etc/permissions/com.google.android.gtalkservice.xml gfiles/etc/permissions/com.google.android.gtalkservice.xml
cp system/etc/permissions/com.google.android.maps.xml gfiles/etc/permissions/com.google.android.maps.xml

PLEASE ONLY DEV-TALK!

LINUX

The script for linuxusers is ready. It's attached.
Usage:
Go to the folder
chmod +x extract
./extract

You will need your device connected with a ROM without Google Apps, but root, and you'll need the drivers (usb rules) if it doesn't work from the start.
IT WILL TELL YOU TO DOWNLOAD A FILE, YOU HAVE TO GOOGLE FOR IT!


CUSTOM RECOVERY

Usage:
Place "signed-dream_devphone_userdebug-img-150275.zip" on your sdcard.
Boot into this recovery, adb into the device and run:
sh /sbin/gapps

It will do ALL automatically!
I hope I can later include it in the menu =)

Download: http://www.4shared.com/file/13553718...erynewimg.html

It's based on Amom_RA's great recovery!
Attached Files
File Type: zip extract.zip (151.0 KB, 104 views)
__________________
White HTC Magic (32B)
ROM: Sapphire Sense 2.X (by me)
SPL: 1.33.2005

Follow me on Twitter: www.twitter.com/maxisma



If you like my ROMs,
DONATE HERE =) Appreciated! :

http://tinyurl.com/donatetomaxisma

Last edited by maxisma; 26th September 2009 at 04:44 PM..
Reply With Quote
Sponsored Links

  #2  
Old 26th September 2009, 10:58 AM
farmatito farmatito is offline
Senior Member
 
Join Date: Apr 2009
Posts: 175
Default

Improved list for the backup and restore after flash or leave untouched strategies:

GOOGLE AND HTC STUFF (?)

/system/app/BugReport.apk
/system/app/checkin.apk
/system/app/Clicker.apk

/system/app/Gmail.apk
(easy to substitute with other mail client):
pop.gmail.com port 995 with SSL
smtp.gmail.com port 465 with SSL)

/system/app/GmailProvider.apk
/system/app/GoogleApps.apk

android/cupcake/packages/providers/GoogleContactsProvider is open source
/system/app/GoogleContactsProvider.apk

/system/app/GooglePartnerSetup.apk
/system/app/GoogleSettingsProvider.apk
android/cupcake/packages/providers/GoogleSubscribedFeedsProvider is open source
/system/app/GoogleSubscribedFeedsProvider.apk
/system/app/gtalkservice.apk

android/cupcake/packages/providers/ImProvider is open source
/system/app/ImProvider.apk

/system/app/MediaUploader.apk
/system/app/NetworkLocation.apk
/system/app/SetupWizard.apk

android/cupcake/packages/apps/Stk/src/com/android/stk is open source
/system/app/Stk.apk

/system/app/Street.apk
/system/app/Talk.apk
/system/app/TmoImPlugin.apk
/system/app/Vending.apk

android/cupcake/packages/apps/VoiceDialer is open source
/system/app/VoiceDialer.apk

/system/app/VoiceSearch.apk
/system/app/YouTube.apk
/system/etc/permissions/com.google.android.gtalkservice.xml
/system/etc/permissions/com.google.android.maps.xml
/system/framework/com.google.android.gtalkservice.jar
/system/framework/com.google.android.maps.jar
/system/framework/com.htc.framework.jar
/system/framework/com.htc.resources.apk
/system/lib/libcerttool_jni.so

Other closed source(?) files:

/system/bin/akmd
(/system/etc/AudioFilter.csv)
(/system/etc/AudioPara4.csv)
(/system/etc/AudioPreProcess.csv)
/system/etc/firmware/brf6300.bin
(/system/etc/gps.conf)
/system/etc/wifi/Fw1251r1c.bin
(/system/etc/wifi/tiwlan.ini)
/system/lib/libaudioeq.so
/system/lib/libgps.so
/system/lib/libhgl.so
/system/lib/libhtc_acoustic.so
/system/lib/libhtc_ril.so
/system/lib/libjni_pinyinime.so
/system/lib/libmm-adspsvc.so
/system/lib/libOmxCore.so
/system/lib/libOmxH264Dec.so
/system/lib/libOmxMpeg4Dec.so
/system/lib/libOmxVidEnc.so
/system/lib/libopencorehw.so
/system/lib/libpvasf.so
/system/lib/libpvasfreg.so
/system/lib/libqcamera.so
/system/lib/libspeech.so
/system/lib/hw/lights.goldfish.so
/system/lib/hw/lights.msm7k.so
/system/lib/hw/sensors.trout.so

WAREZ (?)
/system/app/HTC_IME.apk
/system/lib/libt9.so
/system/app/ PDFViewer.apk
/system/lib/libpdfreader.so
/data/app/Quickoffice_HTC_1.0.1.apk
/data/app/teeter.apk

also posted here http://forum.xda-developers.com/show...=564303&page=6
Reply With Quote

  #3  
Old 26th September 2009, 11:01 AM
Z҉A҉L҉G҉O̚̕̚'s Avatar
Z҉A҉L҉G҉O̚̕̚ Z҉A҉L҉G҉O̚̕̚ is offline
Senior Member
 
Join Date: Jul 2009
Posts: 369
Default

Were gonna need Stk.apk it's for the sim card without that it's impossible to make calls.

And vending.apk is for Market and without that it is impossible to download the majority of apps.
__________________
In the Criminal Justice System of Gotham City the people are represented by three separate, yet equally important groups. The police who investigate the crime, the District Attorneys who prosecute the offenders, and the Goddamn Batman.
These are their stories.
┌─┐
┴─┴
ಠ_ರೃ
Reply With Quote

  #4  
Old 26th September 2009, 11:03 AM
farmatito farmatito is offline
Senior Member
 
Join Date: Apr 2009
Posts: 175
Default

I would suggest a different strategy that is even easier. Every user has this
files already on his rom, most (all?) of them are 1.5 based. So before
updating the phone with a cooked rom you have only to backup (tar)
the not redistributable files to the sdcard. After having flashed the coocked rom
you just need to untar them to the flash memory.
Reply With Quote

  #5  
Old 26th September 2009, 11:05 AM
farmatito farmatito is offline
Senior Member
 
Join Date: Apr 2009
Posts: 175
Default

Quote:
Originally Posted by Z҉A҉L҉G҉O̚̕̚ View Post
Were gonna need Stk.apk it's for the sim card without that it's impossible to make calls.

And vending.apk is for Market and without that it is impossible to download the majority of apps.
Stk.apk is for the Sim menu. You can make calls even if you delete it from your rom
Reply With Quote

  #6  
Old 26th September 2009, 11:08 AM
Z҉A҉L҉G҉O̚̕̚'s Avatar
Z҉A҉L҉G҉O̚̕̚ Z҉A҉L҉G҉O̚̕̚ is offline
Senior Member
 
Join Date: Jul 2009
Posts: 369
Default

Quote:
Originally Posted by farmatito View Post
I would suggest a different strategy that is even easier. Every user has this
files already on his rom, most (all?) of them are 1.5 based. So before
updating the phone with a cooked rom you have only to backup (tar)
the not redistributable files to the sdcard. After having flashed the coocked rom
you just need to untar them to the flash memory.
The problem with that is that the apk's have odexes and resource id's that must match the build number to actually work even Cyanogen said that.

__________________
In the Criminal Justice System of Gotham City the people are represented by three separate, yet equally important groups. The police who investigate the crime, the District Attorneys who prosecute the offenders, and the Goddamn Batman.
These are their stories.
┌─┐
┴─┴
ಠ_ರೃ
Reply With Quote

  #7  
Old 26th September 2009, 11:15 AM
maxisma's Avatar
maxisma maxisma is offline
Senior Member
 
Join Date: May 2009
Location: Dorsten, Germany
Posts: 818
Default

I'm building the AOSP android-1.5_r3 now and will load it onto my device and will try to push the files to it.
Please wait for the results.
If I have success, I'll start making a script which automates the process.
__________________
White HTC Magic (32B)
ROM: Sapphire Sense 2.X (by me)
SPL: 1.33.2005

Follow me on Twitter: www.twitter.com/maxisma



If you like my ROMs,
DONATE HERE =) Appreciated! :

http://tinyurl.com/donatetomaxisma
Reply With Quote

  #8  
Old 26th September 2009, 11:18 AM
Z҉A҉L҉G҉O̚̕̚'s Avatar
Z҉A҉L҉G҉O̚̕̚ Z҉A҉L҉G҉O̚̕̚ is offline
Senior Member
 
Join Date: Jul 2009
Posts: 369
Default

Quote:
Originally Posted by maxisma View Post
I'm building the AOSP android-1.5_r3 now and will load it onto my device and will try to push the files to it.
Please wait for the results.
If I have success, I'll start making a script which automates the process.
Good luck and good speed.
__________________
In the Criminal Justice System of Gotham City the people are represented by three separate, yet equally important groups. The police who investigate the crime, the District Attorneys who prosecute the offenders, and the Goddamn Batman.
These are their stories.
┌─┐
┴─┴
ಠ_ರೃ
Reply With Quote

  #9  
Old 26th September 2009, 12:04 PM
farmatito farmatito is offline
Senior Member
 
Join Date: Apr 2009
Posts: 175
Default

Quote:
Originally Posted by Z҉A҉L҉G҉O̚̕̚ View Post
The problem with that is that the apk's have odexes and resource id's that must match the build number to actually work even Cyanogen said that.
If i recall correctly JF made a tool to convert odex files to dex files which could then be repacked in the apk. Don't know if this could be run on the phone tough.
Reply With Quote

  #10  
Old 26th September 2009, 12:08 PM
maxisma's Avatar
maxisma maxisma is offline
Senior Member
 
Join Date: May 2009
Location: Dorsten, Germany
Posts: 818
Default

SUCCESS! I found the needed files, got market working on AOSP!
It's the list above (first post).
I'm writing a script now ;-)

Edit:
Script for Linux users is done, testing it now and looking for bugs, will then make a windows-one.
__________________
White HTC Magic (32B)
ROM: Sapphire Sense 2.X (by me)
SPL: 1.33.2005

Follow me on Twitter: www.twitter.com/maxisma



If you like my ROMs,
DONATE HERE =) Appreciated! :

http://tinyurl.com/donatetomaxisma

Last edited by maxisma; 26th September 2009 at 12:37 PM..
Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:33 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.