[Q] .apk file install not working? - EVO Shift 4G Q&A, Help & Troubleshooting

So I flashed the MikShift ROM onto my phone a few days ago, but I noticed that sprint tv, and also sprint navigator are missing. I found the .apk files in the mikshift folder, but when I try to install them, it says application not installed. I also tried installing it using the android sdk with no luck.
My next thought, which I am afraid to try (unless its right) is to unzip the rom on my comp, copy the sprint tv and navigator .apks into the system folder, re-compress is, then try flashing that rom. (I can't copy the files with it compressed)
What is the correct way to do this? I know it can be done, or the .apk wouldn't still be in the file, right?
Please help a noob out.

7zip will allow you to move files into the archive without extracting. Not 100%, but on my moment files needed to be zipped in a special way. If you absolutely have to extract it then I'm pretty sure you have to change compression settings to no compression. I'm also fairly sure that if you mess up CWM won't let you flash it.

Mount your /system as rw
Download terminal emulator and type
Su
Mount -o rw,remount -t ext3 /dev/block/mmcblk3p26 /system
Then install
Sent from my PG06100 using XDA App

i believe i did everything as instructed, but the file still didn't install.

I can't get the files moved with 7zip either. I'm pretty sure thats not the correct way of doing it anyway.

Follow the remount command above, then copy it to system, don't install
cp /sdcard/whateverFolder/blah.apk /system/app/
Sent from my PG06100 using XDA App

IT LIVES!!! Thank you very much.
I understand the the copy command that I did through terminal emulator, but what is the first command? I can at least figure out that i'm telling the emulator to mount the phone as r/w, then remounting it for edit i think, but i'm not sure what the "ext3 /dev/block/mmcblk3p26 /system" part means. Could someone explain that? I really want to get more involved in my phone, so i'm trying to learn all I can.

I'll walk you through it.
mount = the base command
-o = with options
rw, remount = add the read/write option, and remount
-t = using file system type
ext3 = the file system type
/dev/block/mmcblk0p26 = the absolute path to the special device file that points to that partition
/system = when you mount that partition call it /system (which it already was, hence the remount option earlier)
Sent from my PG06100 using XDA App

Awesome, thank you very much.

Where did you find the mikshift folder you are talking about on here? I would like to install Sprint TV as well. Thanks.

J_Mod45 said:
So I flashed the MikShift ROM onto my phone a few days ago, but I noticed that sprint tv, and also sprint navigator are missing. I found the .apk files in the mikshift folder, but when I try to install them, it says application not installed. I also tried installing it using the android sdk with no luck.
My next thought, which I am afraid to try (unless its right) is to unzip the rom on my comp, copy the sprint tv and navigator .apks into the system folder, re-compress is, then try flashing that rom. (I can't copy the files with it compressed)
What is the correct way to do this? I know it can be done, or the .apk wouldn't still be in the file, right?
Please help a noob out.
Click to expand...
Click to collapse
Sorry about that wished I'd seen this post earlier. Was busy most of the morning . But if your on MikShifted and want the Stock Sprint apps, go HERE. The thread should have the ones your looking for .

Related

File explorer via DDMS doesn't work

When I try and use the file explorer in DDMS for my device it just comes up as blank. I am am running JF ADP1.5 on the device and the 1.5SDK on Mac OS X.
Can someone please confirm that DDMS file explorer works for JF ADP1.5 (preferably on Mac).
Anyone have any other suggestions?
it never worked on 1.5 for me...
This is because you are using a modified firmware.
You have to replace the busybox ls file with the toolbox ls file.
but my ls is linked to toolbox ?
just had another go, it appears you have to close the file explorer and open it again
Ah ok thanks. I didn't know that. What is the easiest way for me to get a file out of an application directory then. I want to get the sqlite database from an app I am writing off the phone.
I'm using apps2sd so I thought the application data should reside in /system/sd/app but if I navigate there in linda or astro it is blank. /data/app is also blank.
BGH80 said:
I'm using apps2sd so I thought the application data should reside in /system/sd/app but if I navigate there in linda or astro it is blank. /data/app is also blank.
Click to expand...
Click to collapse
/data/data
jashsu said:
/data/data
Click to expand...
Click to collapse
/data is also empty
Have you tried opening it with Term Emu or adb instead of a file manager?
Well I'm a bit stuck now.
I got thinking my apps 2 sd wasn't working so I just decided to switch to the unionfs method.
Now my phone is looping. I don't want to do a wipe and I don't have access to ADB here at work so I can't copy a new update.zip ROM to my phone.
So I can't check anything until I get home and can reflash my phone which will hopefully fix the problem.
Ah what a nightmare. The unionfs apps2sd didn't work on the first attempt so I ended up having to reformat, wipe, reinstall etc. I'm back up and running now and was able to get the file I wanted via adb pull.
How come file managers don't show the contents of folders such as /data/data/ ?
BGH80 said:
Ah what a nightmare.
Click to expand...
Click to collapse
Welcome to A2SD.

Editing system.img/YAFFS2 (custom ROM creation)

Basically I just want a stock ROM base with the sprint crap taken out and unrevoked added in with some other app mods.
I've grabbed all the sources for YAFFS2/yaffs2Utils and compiled them using cygwin.
Now when I go to extract the system.img all I get is a fonts folder.
I'm setting up a virtual linux machine to try to mount the image instead, but in the meantime anyone care to assist me?
Do a search for android basic kitchen .53. Made myself a custom rom off the .6 release
Sent from my Evo 4g using Tapatalk
stroths said:
Do a search for android basic kitchen .53. Made myself a custom rom off the .6 release
Sent from my Evo 4g using Tapatalk
Click to expand...
Click to collapse
Awesome!!!
Since you claim it works, I'll take your word for it and say I can't thank you enough!
(even if it doesn't do what I need, it should one step forward nonetheless)
Neotelos_com said:
Awesome!!!
Since you claim it works, I'll take your word for it and say I can't thank you enough!
(even if it doesn't do what I need, it should one step forward nonetheless)
Click to expand...
Click to collapse
It seems to be worthless for EVO, only generates update files...I can't even use it to extract the filesystem from system.img
my experience has been working with rfs and not yaffs2 so far.
i think you'll be needing yaffs2 tools, like unyaffs2, etc.
i googled, android system.img mount. seems like a great place to start:
http://wiki.xda-developers.com/index.php?pagename=Android system.img Customization
let us know what works or doesnt work?
If you are rooted with toast, you can flash the custom roms made with that kitchen. you can add or remove apk files before recompiling to the update zip format. I am typing this from my customized rom I made with that kitchen. The kitchen can root the rom for you, add apps2sd (havent tested that) and add wifi tether. I mainly went this routw as io wanted a rooted .6 rom to use after rooting with the Toast method. I am an Android newbie but managed to do this
Sent from my Evo 4g using Tapatalk
joeykrim said:
i googled, android system.img mount. seems like a great place to start:
http://wiki.xda-developers.com/index.php?pagename=Android system.img Customization
let us know what works or doesnt work?
Click to expand...
Click to collapse
Awesome, I figured I would need linux (why I installed it)
stroths said:
If you are rooted with toast, you can flash the custom roms made with that kitchen. you can add or remove apk files before recompiling to the update zip format.
Click to expand...
Click to collapse
I already said it's useless and I said why, it generates update files...
I need to actually extract/mount the original system, that is precisely what the thread title is about.
From the command line you can create a system dump using the following command
tar -cvf /sdcard/system.tgz /system
assuming both /sdcard and /system are mounted. you may have to use "busybox tar" instead.
You can run it from recovery mode.
To mount the filesystems while in adb shell use
"mount /dev/block/mtdblock4 /system" to mount system
and
"mount /dev/block/mmcblk0p1 /sdcard" to mount sdcard
if needed
As for making an update.zip you can take an existing one and replace the system directory inside it with your own custom one. Rezip it, no need to resign it for the EVO recovery, and flash away. Oh, and you'll have to delete any symlinks from the /system/bin directory inside the zip before flashing.

Battery manager fix!

This is not my doing or work, I just found it and am sharing it so please don't blame me for stealing or using anyone elses work
This is the script I found in squidlys rom and it is saved in system/xbin, if I can figure out how to post a file on here through the xda app on my phone I can give you guys the files used to run the fix. You can run the command in terminal emulator but im guessing first you may want to create a folder on the sd card named stock and then move the file battery manager to it and then run the script and restart the phone, that's what I did and it worked.
#!/system/bin/sh
if busybox [ -e /sdcard/stock/BatteryReport.apk ];
then
mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
busybox cp /sdcard/stock/BatteryReport.apk /system/app
sync
mount -o remount,ro -t yaffs2 /dev/block/mtdblock4 /system
echo 'battery manager fix'
else
echo 'battery manager not fixed'
echo '1) Place battery report App On The SDCard'
echo '2) Turn Off USB Storage'
echo '3) Rerun Script To Try Again'
fi
Sent from my DROID2 using XDA App
Well I can't figure out how to attach a file through the xda app on my phone and I loaded the actual page on my phone and it wont pull up my phones sd card directory so if you want the file I can post them when I get off work but the txt that I posted above is the actual file, I opened it within txt editor and copied it so if you can save it as the same kind of file that is in system/xbin (I don't know the extentions or what kind of files they are) then you could probably do it without my help, the original file name is battmanfix. Thanks for reading
hmm, just looking at the script i'd say it shouldn't work
not sure what squidlys changed in his rom (if it is for droid 2) but the default d2 mount point for /system is /dev/block/mmcblk1p21 and also file system is ext3...
did you test it?
Well I already had the folder on my sd card from the squidly rom and pretty much coppied the file to my xbin in the system folder and ran the command through the terminal emulator and it seemd to work afterwards...there were no errors in the terminal or anything and when I typed in battmanfix it responded with the whole name battery manager fix and I checked my battery manager and it worked... that's exactly what it did with squidlys so idk...
Sent from my DROID2 using XDA App
ok... so here's something funny... Looking at the script, basically all this is doing is replacing (and reactivating) the batteryreport.apk. So... me thinks to myself - "self; what happens if I just try to click on the apk as if I was gonna install it?" obviosly it didn't install, but after doing that, my battery stats were back. Something is obviously happening to where the batteryreport.apk stops syncing with the system, and anything that "reactivates" it allows it to display again...
Just my observations, yours may vary
Well like I said at the begining I just thought it was interesting and I figured id share what I found..and I don't know a whole lot about linux and codes and scripts so thanks for the info and also I didn't write it, just found it..
Sent from my DROID2 using XDA App

Root Explorer not copying

Hi,
I tried to copy an API to /system/app, but when I did that, the screen just blinks, and the file is not pasted into the directory.
I had temp root, and had remounted R/W.
I eventually was able to do the copy by using ES Explorer, but not with RE itself.
Does anyone have any idea what might be wrong?
Thanks,
Jim
Don't know if this helps but... I recently tried to do some copying of files using AndRootFile, and RootExplorer. And like you they did not "take". I finally figured out that after I selected a file to copy, I would use the back arrow button to move to the target folder. This was the problem. When I used the Parent folder icon instead to move back out of the folder, and move to the destination folder without using the back arrow button. the file copied just fine. Hope this helps.
Reggie,
Thanks for the suggestion, but, no, I wasn't using the "back" to get to the /system/app directory. I was clicking on the parent dir, etc.
Jim
I also am having that problem. I tried both the back buttons and the parent directory. Ive tried factor data reset as well. I wander if it has anything to do with the update yesterday?
Until we/someone figures why, you can use root explorer to mount, then the built in es explorer to do the copy...
Jim
I've been doing some stuff w/command line, and I noticed that my stock Gtab doesn't have a native 'cp' command, so you have to use 'busybox cp' instead. I wonder if that's why the RE copy/paste doesn't work?
Jim
SOLVED - it was no native 'cp'
jimcpl said:
I've been doing some stuff w/command line, and I noticed that my stock Gtab doesn't have a native Cp command, so you have to use 'busybox cop's instead. I wonder if that's why the RE copynpasre doesn't work?
Jim
Click to expand...
Click to collapse
Hi,
I just tried a test, where I created a softlink for 'busybox cp':
ln -s /system/bin/busybox /sbin/cp
I then was able to use RE to copy/paste into /system/app !
CAVEAT: I don't know if busybox is on Gtab by default...
Jim
At the command line us cp vs Cp. If you want to copy an entire directory, use cp -R /indirectory /outdirectory .
NMCBR600 said:
At the command line us cp vs Cp. If you want to copy an entire directory, use cp -R /indirectory /outdirectory .
Click to expand...
Click to collapse
Hi,
That was a typo on my part. The 'cp' command (lowercase c) was really missing in my Gtab .
I've been experimenting w/alternate keyboards, and keep making typos ...
Jim
P.S. I fixed the typos ...
jimcpl,
I was just working on putting Market onto my stock machine and I am having the exact same problem. So far as I can see I have set it up right and followed procedure -- but files just won't move.
Now that I have read y'all's comments, I will try again a time or two.
Rev
butchconner said:
jimcpl,
I was just working on putting Market onto my stock machine and I am having the exact same problem. So far as I can see I have set it up right and followed procedure -- but files just won't move.
Now that I have read y'all's comments, I will try again a time or two.
Rev
Click to expand...
Click to collapse
Hi,
BTW, to create the softlink (using ln), you'll need to use adb shell. Or, you could use a terminal, if one's installed (kind of catch 22, since you'd need market to get a terminal).
Otherwise, what might work is:
- z4root to get root
- root explorer to make /system R/W
- kill then restart es file explorer and use that to copy the apks to /system/app
Jim
SIGH ... softlink doesn't survive a reboot
It looks like the softlink that I created disappears after a reboot... then RE can't copy again.
Sorry...
Jim

Problem Changing System Background Image

Hi all.. Having a problem changing the system background on my daughters x10.. (The background you get behind all the system menus and apps like calculator and calendar etc..)
I did this on my Arc recently and it was a doddle - once I'd got the images cropped to the right size..
So here's what I did on the X10.
Copied the framework-res.apk to the SD card
Opened it using 7zip
navigated to res\drawable-hdpi
replaced the semc_bg and semc_general_bg images with the new ones I'd created.
then navigated to res\drawable-land-hdpi and replaced the semc_bg image in there.
copied the file back into the system folder.
changed the permissions to rw-r--r--
copied it to framework folder...
phone reboots and then gets stuck at sony ericsson white logo screen...
reflashed using SEUS twice now!..
On the Arc I also had to amend the image files in another place.. SemcGenericUxpRes\res
but I don't seem to have that folder on the x10...
Thanks.
** BUMP ** Anyone?
What rom/firmware are you on?
How are you moving the framework-res?
Sent from my X10a using XDA App
stock 2.1 unbranded.. moving it using root explorer.. which is what I did on my arc..
Sent from The Arc!
Try moving it using adb push. Or use adb mask controller or x10 mod tool if you like/need a gui. You could also make a zip for xrecovery if you have it installed. Root explorer method never worked for me on x10 either...
Sent from my X10a using XDA App
Thanks Might try ADB pushing it.. although if I knacker her phone up again she'll not be happy.. so I might just let her decide if she wants me to take the risk... haven't bought titanium for her phone cos I don't want to register MY card on HER phone... recipe for disaster!
im_iceman said:
Thanks Might try ADB pushing it.. although if I knacker her phone up again she'll not be happy.. so I might just let her decide if she wants me to take the risk... haven't bought titanium for her phone cos I don't want to register MY card on HER phone... recipe for disaster!
Click to expand...
Click to collapse
adb should work just fine. Also have you installed recovery ? If no do it and take nandroid before doing it. It would go back to just like it was before.
Yea, xrecovery is super-easy to install & well worth it. Plus you (or one of us) could add the framework-res into a flashable zip we know will work.
BTW, there is a free version of titanium... &/or xrecovery will back up your entire phone as realunited said.
Thanks - Yeah - realised there was a free version after I posted - got it mixed up in my head with Root Explorer!.. yes - have xrecovery on there too.. is nandroid on the market? or is it part of xrecovery - not used it for a few months..
Cheers.
It just means using the backup option in xrecovery. There is a tut for making xrec zips in the dev section or post the framework-res here & I can look at it later when I get home.
Sent from my X10a using XDA App
Hi Aydee - Thanks for your help with this so far!!.. I've done a nandroid backup on the x10 and trying to ADB push the file - it won't let me - says "permission denied".. I tried ADB Remount and shell commands...
$ adb shell
$ su
$ mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
both not giving me r/w access...
X10 is rooted and busybox installed....
What am I doing wrong?!
[edit - got the su working in shell.. and tried mtdblock2 also.. still won't let me push!]
[edit2 - unsecured the shell and mounted as rw... still won't let me push!!.. saying permission denied!]
To be honest I havent used just straight up adb in a while other than zipaligning, I usually use x10 mod tool or xrecovery zips lately. They have been a reliable and quick. So my manual commands are rusty at best.. Would you want to try one of the other ways maybe? Or I'm sure someone else will know why push isnt working...
Sent from my X10a using XDA App
Thanks Aydee tried x10 mod tool last night - was getting the same error - seems the phone isn't properly unsecured... will try a few different things later.. if anyone else has other ideas.. I'd appreciate it!
Could you post a copy of the apk? You are on .435 right?
Sent from my X10a using XDA App
im_iceman said:
Hi Aydee - Thanks for your help with this so far!!.. I've done a nandroid backup on the x10 and trying to ADB push the file - it won't let me - says "permission denied".. I tried ADB Remount and shell commands...
$ adb shell
$ su
$ mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
both not giving me r/w access...
X10 is rooted and busybox installed....
What am I doing wrong?!
[edit - got the su working in shell.. and tried mtdblock2 also.. still won't let me push!]
[edit2 - unsecured the shell and mounted as rw... still won't let me push!!.. saying permission denied!]
Click to expand...
Click to collapse
It looks like it didn't get the su permission. Check your phone after typing su. If you want i can make a zip to flash.
Hi - Yeah it got the SU ok.. don't really know why it wasn't working - Think it may be to do with the way I was using ADB push - I was trying to push the file directly into the system or framework folders.. x10 mod tool pushed it to a "SD" folder first then ran another shell command to replace it in the framework folder.. don't really know enough about it !!.. anyway.. got it working via x10modtool.. just need to figure out how to do the same now for the phone and phonebook.. presume it's a PNG within those individual apps?
When making a ZIP.. does it need to be a complete system image or can you just zip the framework-res file on it's own and zip that via xrecovery?
Cheers!
im_iceman said:
Hi - Yeah it got the SU ok.. don't really know why it wasn't working - Think it may be to do with the way I was using ADB push - I was trying to push the file directly into the system or framework folders.. x10 mod tool pushed it to a "SD" folder first then ran another shell command to replace it in the framework folder.. don't really know enough about it !!.. anyway.. got it working via x10modtool.. just need to figure out how to do the same now for the phone and phonebook.. presume it's a PNG within those individual apps?
When making a ZIP.. does it need to be a complete system image or can you just zip the framework-res file on it's own and zip that via xrecovery?
Cheers!
Click to expand...
Click to collapse
Just drag the framework-res.apk into the framework folder without extracting it. After that just flash it.
so presumably I would need to either ADB pull the whole FRAMEWORK folder first? or take a copy using a file manager (AKA root explorer etc)..?
im_iceman said:
so presumably I would need to either ADB pull the whole FRAMEWORK folder first? or take a copy using a file manager (AKA root explorer etc)..?
Click to expand...
Click to collapse
Just the modified apk into the framework folder of the zip.
Sent from my X10project using XDA App
Nah m8 he said he got the framework-res working he needs to do the same for phone & phonebook. They are both in system/app.
Sent from my X10a using XDA App

Categories

Resources