How to install Google Play using ADB?

Discussion in 'Coby Generation 3 Development' started by Tesardd, Nov 14, 2012.

  1. Tesardd

    Tesardd Member

    Joined:
    Nov 12, 2012
    Messages:
    14
    Likes Received:
    2
    Trophy Points:
    62
    Location:
    US
    Tablet / Device:
    Coby Kryos MID7048
    Hello again.

    I am looking for some guidance installing Google Play on my Coby MID7048.

    I have the USB drivers installed, and I believe I have root access to the device. When I start an ADB shell I can see the device, now I am trying to figure out the sequence of steps necessary to install Google Play.

    Some specific questions I have are:

    Do I need to install ADB on the Coby? Would I then "pull" the files instead of "pushing" them.

    I would like to copy the entire /system directory from the PC to the Coby. Do I need to adjust the file permissions once the files are copied so that it runs properly?

    I have the gapps-ics-20120429-signed.zip file on my PC, which I am assuming this contains the files I need.

    Once I have the files copied into the system directory, do I still need to install the apks?

    Is there such a thing as installing ADB, establishing root permissions in the shell, and then do an adb bootloader?

    Thanks in advance for any help.
     
  2. Astrix

    Astrix Super Moderator Staff Member

    Joined:
    May 7, 2012
    Messages:
    383
    Likes Received:
    96
    Trophy Points:
    210
    Location:
    Singapore
    Tablet / Device:
    Public Phone
    Use root explorer and install the Google Play.apk at system/app.
    Set permission to rw-r--r--

    Read Write Execute
    ✓ ✓ NA
    ✓ NA NA
    ✓ NA NA

    Hope it help...that's how it work, but not sure of Coby
     
  3. nicome100

    nicome100 Member

    Joined:
    Nov 14, 2012
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    60
    Tablet / Device:
    coby
    can u teach how to install usb driver?
     
  4. vampirefo.

    vampirefo. Senior Member Developer

    Joined:
    Nov 8, 2011
    Messages:
    3,828
    Likes Received:
    1,389
    Trophy Points:
    655
    Location:
    Huntington WV
    Tablet / Device:
    Leagoo Lead 1 ZTE OPEN C, Coby 7065, Coby 8042, Coby 9740
    you would need to push files to their correct place then set permissions.

    adb push /system/app /system/app
    adb shell chmod 644 /system/app/*

    adb push /system/etc/permissions /system/etc/permissions/
    adb shell chmod 644 /system/etc/permissions/*

    adb push /system/lib /system/lib/
    chmod 644 each file you push here

    adb push /system/framework /system/framework/
    chmod 644 each file you push here

    adb shell rm -r /cache/*
    adb shell rm -r /data/dalvik-cache/*

    reboot

    if everything goes well your tablet will bootup with playstore.

    your tablet could bootloop.

    if you had cw recovery you could just flash via recovery.

    anyway good luck make sure you have a backup before you try this.
     
    Last edited: Nov 14, 2012
    • Like Like x 6
  5. Tesardd

    Tesardd Member

    Joined:
    Nov 12, 2012
    Messages:
    14
    Likes Received:
    2
    Trophy Points:
    62
    Location:
    US
    Tablet / Device:
    Coby Kryos MID7048
    nicome100,

    Search on my other thread asking about rooting the 7048, There is a good link there from vampirefo that should work.
     
    Last edited: Nov 16, 2012
  6. Tesardd

    Tesardd Member

    Joined:
    Nov 12, 2012
    Messages:
    14
    Likes Received:
    2
    Trophy Points:
    62
    Location:
    US
    Tablet / Device:
    Coby Kryos MID7048
    Vampirefo,

    Thanks for the info, I will give it a try and see if it works.
    I did a backup, then tried to do the install. It didn't work so I did a recovery using the backup that I had.
    I will try again using the information from above as I am not sure I did it correctly.
    I will let you know how it works.
     
  7. Tesardd

    Tesardd Member

    Joined:
    Nov 12, 2012
    Messages:
    14
    Likes Received:
    2
    Trophy Points:
    62
    Location:
    US
    Tablet / Device:
    Coby Kryos MID7048
    OK, apparently I am still doing something wrong.
    ADB gives me an error trying to push the files - saying that it is a read-only file system
    If I invoke an adb shell I can get super user access by -su
    But once I have it I cannot do anything because there are no recognized devices when trying to invoke commands in the adb shell
    Did I do something wrong with adb? I imagine I need to do something to grant adb permanent root access?

    Thanks for all the help you guys are great.
     
  8. vampirefo.

    vampirefo. Senior Member Developer

    Joined:
    Nov 8, 2011
    Messages:
    3,828
    Likes Received:
    1,389
    Trophy Points:
    655
    Location:
    Huntington WV
    Tablet / Device:
    Leagoo Lead 1 ZTE OPEN C, Coby 7065, Coby 8042, Coby 9740
    OK type this first

    adb shell busybox mount -o remount,rw /system

    then type other commands.


    adb shell busybox mount -o remount,rw /system

    adb push /system/app /system/app
    adb shell chmod 644 /system/app/*

    adb push /system/etc/permissions /system/etc/permissions/
    adb shell chmod 644 /system/etc/permissions/*

    adb push /system/lib /system/lib/
    chmod 644 each file you push here

    adb push /system/framework /system/framework/
    chmod 644 each file you push here

    adb shell rm -r /cache/*
    adb shell rm -r /data/dalvik-cache/*

    reboot
     
  9. Tesardd

    Tesardd Member

    Joined:
    Nov 12, 2012
    Messages:
    14
    Likes Received:
    2
    Trophy Points:
    62
    Location:
    US
    Tablet / Device:
    Coby Kryos MID7048
    /system/bin/sh: busybox: not found
     
  10. vampirefo.

    vampirefo. Senior Member Developer

    Joined:
    Nov 8, 2011
    Messages:
    3,828
    Likes Received:
    1,389
    Trophy Points:
    655
    Location:
    Huntington WV
    Tablet / Device:
    Leagoo Lead 1 ZTE OPEN C, Coby 7065, Coby 8042, Coby 9740
    ok so you need busybox

    your tablet doesn't include busybox

    try

    adb shell

    su

    mount -o remount,rw /system

    then type

    exit

    exit

    now run other commands
     
    Last edited: Nov 16, 2012
  11. Tesardd

    Tesardd Member

    Joined:
    Nov 12, 2012
    Messages:
    14
    Likes Received:
    2
    Trophy Points:
    62
    Location:
    US
    Tablet / Device:
    Coby Kryos MID7048
    mount: Operation not permitted

    Where can I get busybox to install?
     
  12. vampirefo.

    vampirefo. Senior Member Developer

    Joined:
    Nov 8, 2011
    Messages:
    3,828
    Likes Received:
    1,389
    Trophy Points:
    655
    Location:
    Huntington WV
    Tablet / Device:
    Leagoo Lead 1 ZTE OPEN C, Coby 7065, Coby 8042, Coby 9740
    download busybox from here busybox

    adb push busybox /data/local/tmp/busybox

    adb shell

    su

    chmod 755 /data/local/tmp/busybox

    /data/local/tmp/busybox mount -o remount,rw /system


    exit
    exit

    run rest of commands

    note####

    if for some reason busybox needs higher permission

    chmod it to 6755 but only do that if chmod 755 doesn't work

    chmod 6755 /data/local/tmp/busybox
     
    Last edited: Nov 16, 2012
    • Like Like x 4
  13. Tesardd

    Tesardd Member

    Joined:
    Nov 12, 2012
    Messages:
    14
    Likes Received:
    2
    Trophy Points:
    62
    Location:
    US
    Tablet / Device:
    Coby Kryos MID7048
    OK going into the shell and doing the mount -o remount,rw /system seemed to work (no error messages and prompt changed from $ to #)

    exited out and then attempted a push => failed to copy *.apk to *.apk: Permission denied
    also .... unable to chmod system/app/*.apk: Operation not permitted
     
  14. Tesardd

    Tesardd Member

    Joined:
    Nov 12, 2012
    Messages:
    14
    Likes Received:
    2
    Trophy Points:
    62
    Location:
    US
    Tablet / Device:
    Coby Kryos MID7048
    Is this an apk file? there is no file extension on the downloaded file, just wanted to check before proceeding
     
  15. Tesardd

    Tesardd Member

    Joined:
    Nov 12, 2012
    Messages:
    14
    Likes Received:
    2
    Trophy Points:
    62
    Location:
    US
    Tablet / Device:
    Coby Kryos MID7048
    Still getting the errors listed above even after chmod 6755 (these appeared to work)
    Incidentally, when I do adb push /system/app /system/app it gives me an error and I have to do adb push system/app system/app
    So I am not sure if I am in the correct directories, but when I type it as indicated it will start the copy. It copies two files "VoiceSearch.apk" and "Talk.apk" but when it gets to "SetupWizard.apk" I get the error: Permission Denied

    I also tried to remount,rw system (without the /) which did not work either.

    Would it be an idea to remove any of the files from the system/app directory that are already there before trying to push the new ones? I see that some of the files are already in the app directory. If so, are there any that I shouldn't be rm?

    Thanks for all your help and sorry to be such a pain. I am hoping to get this rooted and then provide a post of what worked for other 7048 users.
     
    Last edited: Nov 16, 2012

Share This Page

Search tags for this page
adb push gapps
,

adb gapps install

,
adb install google play
,

adb push gapps zip

,
android adb install google play
,
flash gapps using adb
,
googleplay adb
,
how to flash gapps with adb
,

how to install gapps using adb

,
how to install gapps using shell
,
install gapps adb
,
install gapps adb sideload
,
install gapps using adb
,

install gapps via adb

,
install gapps via fastboot
,
install gapps zip adb
,
install gapps zip using adb
,
install google play using adb
,
push gapps
,
update adb gapps