зеркало из https://github.com/mozilla/gecko-dev.git
Bug 688930 - Fix detection of installation location when in /system, r=cjones
This commit is contained in:
Родитель
75712ea3de
Коммит
8b5c8e5ecf
|
@ -278,7 +278,8 @@ public class GeckoAppShell
|
||||||
GeckoApp geckoApp = GeckoApp.mAppContext;
|
GeckoApp geckoApp = GeckoApp.mAppContext;
|
||||||
String homeDir;
|
String homeDir;
|
||||||
if (Build.VERSION.SDK_INT < 8 ||
|
if (Build.VERSION.SDK_INT < 8 ||
|
||||||
geckoApp.getApplication().getPackageResourcePath().startsWith("/data")) {
|
geckoApp.getApplication().getPackageResourcePath().startsWith("/data") ||
|
||||||
|
geckoApp.getApplication().getPackageResourcePath().startsWith("/system")) {
|
||||||
File home = geckoApp.getFilesDir();
|
File home = geckoApp.getFilesDir();
|
||||||
homeDir = home.getPath();
|
homeDir = home.getPath();
|
||||||
// handle the application being moved to phone from sdcard
|
// handle the application being moved to phone from sdcard
|
||||||
|
|
Загрузка…
Ссылка в новой задаче