Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,781,898 Members 48,169 Now Online
XDA Developers Android and Mobile Development Forum

Workaround for the annoying "Parse error" apk

Tip us?
 
dubidu
Old
(Last edited by dubidu; 9th December 2013 at 11:38 AM.)
#1  
Senior Member - OP
Thanks Meter 126
Posts: 210
Join Date: Apr 2006
Location: UK
Smile Workaround for the annoying "Parse error" apk

Hi guys,

Just got one of this cheap phones and after unlocking and rooting it (txs to PaulOBrien for that) I got the annoying:
Code:
  Parse error
  There was a problem while parsing the package
Tried a couple of things, reboots, settings, factory reset but nothing helped but found some easy workaround (Google Drive is not an option for me, not when I'm with no network)
Looks like all these problems are due some fancy security crap in new 4.2/.3 versions (never got it before in any of my previous devices)

Just move the APK to some other directory, adjust the permissions (need group read but just do 777) and install it from there.
"/mnt/obb" is a tmp dir, so anything there will disappear on the next book.
"/data/local/tmp" is what "adb install" uses so it is a good choice.

old post below
 

So for whoever still has the problem, go and try these steps:

1. Create a directory inside /mnt/obb/ (e.g: /mnt/obb/Apks)

Code:
d:\ADB>adb shell
shell@falcon_umts:/ $ su
su

root@falcon_umts:/ # mount -o rw,remount /system
mount -o rw,remount /system

root@falcon_umts:/ # mkdir /mnt/obb/Apks
mkdir /mnt/obb/Apks

root@falcon_umts:/ # chmod 777 /mnt/obb/Apks
chmod 777 /mnt/obb/Apks

root@falcon_umts:/ # ls -la /mnt/obb
ls -la /mnt/obb
drwxrwxrwx root     root              2023-12-09 18:46 Apks

root@falcon_umts:/ #
root@falcon_umts:/ # exit
exit
127|shell@falcon_umts:/ $ exit
exit

d:\ADB>
2. Now, from whatever file browser you already have on your phone (I'm using Total Commander)
just copy the apk from your "sdcard" to the /mnt/obb/Apks directory

3. Adjust the permissions for the apk file (744 or rwxr--r--)

(I could added some pictures but I'm too lazy

Now it should allow you to install without the bloody error.


So to summarize the trick is to create a directory somewhere else and install the apk from there. It is not good as before, but at least I don't need an internet connection, just move the file, change permissions and install.

Will try to find out why the normal method fails (whenever I have some free time). Tthe way that is mounting the 'external' storage is causing this issue.
I guess in a couple of weeks we will get new builds or a original Motorola fix, but in the meantime this is good enough for me.

Note: /mnt/obb may go after a reboot so try to find a "permanent" one
You don't need adb to create the directory, you can do all these from the phone, just remember to adjust the permissons for the directory.

The Following 4 Users Say Thank You to dubidu For This Useful Post: [ Click to Expand ]
 
vampy2k5
Old
#2  
Junior Member
Thanks Meter 2
Posts: 22
Join Date: Nov 2009
Another workaround is also to copy the apks to a usb stick and mount the usb stick with a otg cable.

Install then as usual the apks with a file explorer.

I tried that and it works fine!
 
DaRkToU
Old
#3  
Junior Member
Thanks Meter 14
Posts: 5
Join Date: Mar 2008
Or you can just use Astro explorer. Works for me...

Enviado desde mi XT1032 mediante Tapatalk
 
dubidu
Old
#4  
Senior Member - OP
Thanks Meter 126
Posts: 210
Join Date: Apr 2006
Location: UK
Quote:
Originally Posted by DaRkToU View Post
Or you can just use Astro explorer. Works for me...

Enviado desde mi XT1032 mediante Tapatalk
If you can install with Astro you can install with any other file manager, so unfortunately this does not apply to you
 
DaRkToU
Old
#5  
Junior Member
Thanks Meter 14
Posts: 5
Join Date: Mar 2008
I does. I have the same problem, I was using Google drive but I tried with Astro and it works.

Sent from my Moto G

---------- Post added at 09:52 PM ---------- Previous post was at 09:37 PM ----------

Quick update, I've just tried on another phone and it didn't work...

Sent from my Moto G
The Following User Says Thank You to DaRkToU For This Useful Post: [ Click to Expand ]
 
dubidu
Old
#6  
Senior Member - OP
Thanks Meter 126
Posts: 210
Join Date: Apr 2006
Location: UK
Quote:
Originally Posted by DaRkToU View Post
I does. I have the same problem, I was using Google drive but I tried with Astro and it works.

Sent from my Moto G

---------- Post added at 09:52 PM ---------- Previous post was at 09:37 PM ----------

Quick update, I've just tried on another phone and it didn't work...

Sent from my Moto G
The problem is with the permissions of the apk so the file manager should make no difference.
I did also tried with Astro before and got the same "Parse error", to me the only way to avoid it is use a external as vampy2k5 said, or a different directory in the file system.
The Following User Says Thank You to dubidu For This Useful Post: [ Click to Expand ]
 
tampitzel
Old
#7  
tampitzel's Avatar
Member
Thanks Meter 8
Posts: 82
Join Date: Jul 2009
Location: Bucharest
Default solution

just upload the apk file to google drive and intall from there. works every time, no permissions mod no nothing
I may be a newb, but they can never take our freedom !!!
 
dubidu
Old
#8  
Senior Member - OP
Thanks Meter 126
Posts: 210
Join Date: Apr 2006
Location: UK
Quote:
Originally Posted by tampitzel View Post
just upload the apk file to google drive and intall from there. works every time, no permissions mod no nothing
Good, can I apply your "solution" if I have no internet connection?
 
tampitzel
Old
#9  
tampitzel's Avatar
Member
Thanks Meter 8
Posts: 82
Join Date: Jul 2009
Location: Bucharest
Quote:
Originally Posted by dubidu View Post
Good, can I apply your "solution" if I have no internet connection?
i totally see how this could be a problem. i guess you're better off with moving the app in a folder with permissions set?
I may be a newb, but they can never take our freedom !!!
 
Powerhouse
Old
#10  
Powerhouse's Avatar
Senior Member
Thanks Meter 1,970
Posts: 795
Join Date: Mar 2013
I dont think this belongs to "ANDROID DEVELOPEMENT" SECTION.. It would do good in General section..
Thread Reported !!

thank you,
Mr.Gm

Tags
parse error install apk
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes