I need to create an update.zip please help - Desire General

i want to create an update.zip i can install via the recovery console.
i have the apk which is
com.lookout.apk
i have created folders system/app
zipped it and signed it but when i try to flash it needs an update .script how do i create an update script to tell the recover console to install the app to system/app

If you have the apk, why not just install it via a file manager (Astro), adb install (adb install <path:\package.apk>), or adb push (adb shell -> mount /system -> exit -> adb push <path:\package.apk> /system/app) in recovery?
Plenty of ways to install without needing a flashable zip if it's just for you.
If you really need a zip, I'd find somebody else's who is doing the same thing and just replace the APKs and resign it.
Just thoughts.

Hi,
I´m kind of in the same situation. I want to install Sim Checker Pro as a system App.
It is currently installed.
The author told me to copy the simchecker15.apk from /data/app/ to the sd card. Then delete the original. Then copy it over to /system/app/ and finally delete the apk on the sdcard.
Code:
adb remount
adb shell cp /data/app/org.ajeje.locservice15.apk /sdcard
adb shell rm /data/app/org.ajeje.locservice15.apk
adb shell cp /sdcard/org.ajeje.locservice15.apk /system/app
adb shell rm /sdcard/org.ajeje.locservice15.apk
Since I´m not able to write to /system unless I mount it in (pauls) recovery mode can anyone tell me how to do this on the Desire exactly.
I get adb working in recovery and can also mount /system but how do I push the files from /data/app/ to sd and from there to /system/app?
Edit: I got it sorted out
it was
Code:
adb shell mount /system
adb shell cp /data/app/org.ajeje.simchecker15.apk /sdcard
adb shell rm /data/app/org.ajeje.simchecker15.apk
adb shell cp /sdcard/org.ajeje.simchecker15.apk /system/app
adb shell rm /sdcard/org.ajeje.lsimchecker15.apk

Related

Helppp removing .apks with sdk method

i try this on the comment prompt while phone running.
cd\sdk
cd android-sdk-windows
cd tools
adb devices
adb shell
#mount /dev/block/mtdblock4 /system
cd /system/app
ls
i get all the apk. files
i try removing an apk.file
typing this syntax:
rm -f thenameoftheapp.apk
and it'll say:
rm failed for -f, read only file system
it wont let me write on the system im guessing.
Now i tried doing the same thing but phone mode is on recovery.
I have the nand protection unlocked so when i get to recovery mode
i have already the custom recovery setup showing, i don't run the recovery-windows.bat.
now when i type this on the comment prompt
cd\sdk
cd android-sdk-windows
cd tools
adb devices
adb shell
#mount /dev/block/mtdblock4 /system
cd /system/app
ls
i get all the apk. files
i try removing an apk.file
typing this syntax:
rm -f thenameoftheapp.apk
after i hit enter it shows me
#
so im assuming the apk. has been removed
after i exit the comment prompt and i wipe the dalvik-cache
i reboot the phone and all the apps i removed are still there and running still.
help please

[Q] ADB: permission denied

I have used ADB in the past on my G1 and am now running into a problem on my G2. When I try to push a file to the SD card I get "permission denied". Any ideas?
example:
C:\android-sdk-windows\tools>adb shell
$ adb push su /sdcard/su
adb push su /sdcard/su
adb: permission denied
You need to go to the VISIONary when it show "permission deniedArrow", it will pop up something, choose "allow"
Are you sure I need root to push a file? In this guide to perm root (http://forum.xda-developers.com/showthread.php?t=834228) the first step is to disable or uninstall visionary.
I figured it out. You don't need to "adb shell" first
When I try to adb remount , I get a return of "remount failed: operation not permitted" does anyone no how to get adb to remount, I firtst run adb devices , and my phone serial number comes up but cant remount, can someone please help me get past this.
Lol u need to Su first after adb shell I see that u don't have a #
Sent from my HTC Vision using XDA App
The solution is to start ADB in root mode in command prompt...
Steps I did with my Galaxy S to add an App:
1. Connect phone to computer via USB in Debug Mode
2. Load command prompt and type: adb root
3. set read/write for system folder:
adb shell
su
Then type mount and find the location of system folder, in this case for me it's /dev/block/stl9
mount -o remount,rw /dev/block/stl9 /system
exit
exit
4. set your cmd prompt to folder where you have files to push/move onto phone i.e. f:\app or etc using f: and cd app for example
5. then to copy files to system/app folder by typing type: adb push <appfilename>.apk /system/app
Voila!
To remove an app do the following: adb shell rm /system/app/YourApplicationHere.apk
Simples
As a noob it took some time to figure this out with some help here and reading the help info after typing adb in prompt and the Eureka! moment came...
Hope this helps
Peter
ADB or term emu on device
HTC Vision 1.8 OC, CM7 RC1==HAPPY!!

ADB Remount not working on AT&T ICS Port

I can't get an adb remount to work so I can push trebuchet launcher as a system app.
I'm able to perform a adb shell
and then # to get su and my phone shows SU granting root permissions
what am I missing?
and please don't say install it as a regular app, because you'll be ignored
martialbob said:
I can't get an adb remount to work so I can push trebuchet launcher as a system app.
I'm able to perform a adb shell
and then # to get su and my phone shows SU granting root permissions
what am I missing?
and please don't say install it as a regular app, because you'll be ignored
Click to expand...
Click to collapse
i had the same problem. you can put the apk on your sd card, then use adb to copy it, but you'll have to mount the filesystem rw still.
to do this:
Code:
adb shell
su
cd sdcard #or wherever the apk is
busybox mount -o rw,remount /dev/block/mmcblk0p24 /system
busybox cp Trebuchet.apk /system/app
reboot
that gets the Trebuchet.apk in the right folder. however, it's still not letting me use it...
i've also ran chmod on the apk and still no go.
I'm pretty sure it's a kernel issue.. Working on it..
funeralthirst said:
i had the same problem. you can put the apk on your sd card, then use adb to copy it, but you'll have to mount the filesystem rw still.
to do this:
Code:
adb shell
su
cd sdcard #or wherever the apk is
busybox mount -o rw,remount /dev/block/mmcblk0p24 /system
busybox cp Trebuchet.apk /system/app
reboot
that gets the Trebuchet.apk in the right folder. however, it's still not letting me use it...
i've also ran chmod on the apk and still no go.
Click to expand...
Click to collapse
adb shell
su
cd sdcard
cd external_sd
busybox mount -o rw,remount /dev/block/mmcblk0p24 /system
busybox cp Trebuchet.apk /system/app
reboot (this still doesn't work on my phone even from shell or app, have to battery pull to restart... bloody annoying)
YOUR AWESOME!!
Used the above commands and it worked perfectly!!
Was able to change to trebuchet launcher after reboot, and was able to add widgets to home screen without it crashing (which when you install trebuchet as a regular app it freezes on adding a widget to home screen)

[GUIDE] Installing a Launcher Correctly when adb remount doesn't work

These instructions are for installing a launcher (Trebuchet, Apex, etc)
when your adb remount command gives you remount failed: Operation not permitted
The usual commands are:
adb remount
adb push *launchername*.apk /system/app
but the adb remount obviously fails....
Must have Root/Busybox installed
1. Move your *launchername*.apk file to your internal or external sd card
2. Run these commands
Code:
adb shell
su
cd to location of *launchername*.apk
busybox mount -o rw,remount /dev/block/mmcblk0p24 /system
busybox cp Trebuchet.apk /system/app
reboot
This will allow full use of launcher and it allowing the use of widgets without it crashing.
Thanks to funeralthirst for helping me with this problem
Please click thanks button if this helped you
Thank you very much, was wondering how to fix this

[Q] lost etc/hosts file

hello everyone
I have a t-mobile note 2 rooted and i was having problems with my play store and deleted my hosts file by mistake i tried making a new one with root explorer but it fails is there anything els that i can do to get it back when i reset my phone the play store is gone and i don't know what to do any help would be great.
Bdvs said:
hello everyone
I have a t-mobile note 2 rooted and i was having problems with my play store and deleted my hosts file by mistake i tried making a new one with root explorer but it fails is there anything els that i can do to get it back when i reset my phone the play store is gone and i don't know what to do any help would be great.
Click to expand...
Click to collapse
Do you have access to a system with adb or heimdall ?
If not
You can create a new file(text) named hosts under /etc/system/ with the following line
127.0.0.0 localhost
You can set the permissions of this file to 0644 via root explorer or using Terminal Emulator:
----
cd /system/etc
chmod 644 hosts
---
Never used root explorer but there has to be a GUI option somewhere in it.
You will have to mount the /system to read-write mode in root explorer in order to make any changes.
Once you have created the file, reboot the phone and see if it works, if not then manually delete all files under /system/data/dalvick-cache.
Be careful before deleting any file, make sure you browse to /system/data/-dalvick-cache directory and select all files and then delete them.
ciphercodes said:
Do you have access to a system with adb or heimdall ?
If not
You can create a new file(text) named hosts under /etc/system/ with the following line
127.0.0.0 localhost
You can set the permissions of this file to 0644 via root explorer or using Terminal Emulator:
----
cd /system/etc
chmod 644 hosts
---
Never used root explorer but there has to be a GUI option somewhere in it.
You will have to mount the /system to read-write mode in root explorer in order to make any changes.
Once you have created the file, reboot the phone and see if it works, if not then manually delete all files under /system/data/dalvick-cache.
Be careful before deleting any file, make sure you browse to /system/data/-dalvick-cache directory and select all files and then delete them.
Click to expand...
Click to collapse
I have adb access how would i do it with adb
root explorer wont let me make a text file
Bdvs said:
I have adb access how would i do it with adb
root explorer wont let me make a text file
Click to expand...
Click to collapse
1) Using text editor create a text file named "hosts" with the following contents:
---
127.0.0.1 localhost
---
If you are on windows make sure you remove the file extension.
2) Connect phone via USB and open command prompt or shell. Make sure USB Debugging is checked under developers options.
3) Check if adb detects your device by typing: adb devices , you should see your device listed, if not please check if your phone has correct USB drivers.
4) Now push the file you created to your phone with this command : adb push /path/to/file/hosts /sdcard/hosts
example: adb push C:\tmp\hosts /sdcard/hosts
5) Now log in to your phone by typing adb shell
6) Switch to super user by typing: su , grant permissions when asked by SuperSU.
7) Mount system in read-write mode by typing: mount -o remount,rw -t yaffsw /dev/block/mtdblk3 /system
8) Move the hosts file to /system/etc by typing: mv /sdcard/hosts /system/etc
9) Browse to /system/etc by typing: cd /system/etc
10) Change file owner and group by typing: chown root:root hosts
11) Change file permissions by typing: chmod 644 hosts
12) Mount system back to read only by typing: mount -o remount,ro -t yaffsw /dev/block/mtdblk3 /system
13) Delete dalvik cache by browsing to cd /data/dalvik-cache and then type rm -f *.dex
14) type exit two times to exit.
15) Reboot phone and it should work.
I believe there might be an easy way or an apk which does this but I haven't tried it.
play store
ciphercodes said:
1) Using text editor create a text file named "hosts" with the following contents:
---
127.0.0.1 localhost
---
If you are on windows make sure you remove the file extension.
2) Connect phone via USB and open command prompt or shell. Make sure USB Debugging is checked under developers options.
3) Check if adb detects your device by typing: adb devices , you should see your device listed, if not please check if your phone has correct USB drivers.
4) Now push the file you created to your phone with this command : adb push /path/to/file/hosts /sdcard/hosts
example: adb push C:\tmp\hosts /sdcard/hosts
5) Now log in to your phone by typing adb shell
6) Switch to super user by typing: su , grant permissions when asked by SuperSU.
7) Mount system in read-write mode by typing: mount -o remount,rw -t yaffsw /dev/block/mtdblk3 /system
8) Move the hosts file to /system/etc by typing: mv /sdcard/hosts /system/etc
9) Browse to /system/etc by typing: cd /system/etc
10) Change file owner and group by typing: chown root:root hosts
11) Change file permissions by typing: chmod 644 hosts
12) Mount system back to read only by typing: mount -o remount,ro -t yaffsw /dev/block/mtdblk3 /system
13) Delete dalvik cache by browsing to cd /data/dalvik-cache and then type rm -f *.dex
14) type exit two times to exit.
15) Reboot phone and it should work.
I believe there might be an easy way or an apk which does this but I haven't tried it.
Click to expand...
Click to collapse
Thanks for all your help i got the hosts file in to system/etc folder but my play store is still not working i get a pop up that play store has stop working so i cleared cache for play store, play services and google framework and its still not working
any ideas thanks again
Did you delete dalvik cache ?
Sent from my SGH-T889 using xda app-developers app

Categories

Resources