Closed Bug 923040 Opened 11 years ago Closed 11 years ago

[Flatfish][Gaia] Can not remove default of Cost Control app

Categories

(Firefox OS Graveyard :: Gaia::Cost Control, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:koi+)

RESOLVED INVALID
blocking-b2g koi+

People

(Reporter: orson.hsueh, Unassigned)

References

Details

(Whiteboard: [Flatfish only])

ENVIRONMENT:
userdebug build [ VARIANT=userdebug ]
commit 90e78f2744412abf3a57d4d4fe981d662203d93a
Date:   Tue Oct 1 21:00:40 2013 -0700

STEP:
In gaia directory,enter the following command:
make clean
mv apps/costcontrol/ /tmp
make

EXPECTED:
Can remove costcontrol App.
Want to update the default App for Tablet.


ACTUAL:
make error log:
Invalid JSON file : /home/orson/Project/F1/New/a31-b2g/gaia/apps/costcontrol/update.webapp
Exception: Error:  -*- build/utils.js: [Exception... "Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIFileInputStream.init]"  nsresult: "0x80520012 (NS_ERROR_FILE_NOT_FOUND)"  location: "JS frame :: resource://gre/modules/commonjs/toolkit/loader.js -> file:///home/orson/Project/F1/New/a31-b2g/gaia/build/utils.js :: getFileContent :: line 43"  data: no]
file not found: /home/orson/Project/F1/New/a31-b2g/gaia/apps/costcontrol/update.webapp

getFileContent@resource://gre/modules/commonjs/toolkit/loader.js -> file:///home/orson/Project/F1/New/a31-b2g/gaia/build/utils.js:59
getJSON@resource://gre/modules/commonjs/toolkit/loader.js -> file:///home/orson/Project/F1/New/a31-b2g/gaia/build/utils.js:110
getIconInfo@resource://gre/modules/commonjs/toolkit/loader.js -> file:///home/orson/Project/F1/New/a31-b2g/gaia/build/applications-data.js:101
iconDescriptor@resource://gre/modules/commonjs/toolkit/loader.js -> file:///home/orson/Project/F1/New/a31-b2g/gaia/build/applications-data.js:119
Summary: [Flatfish] → [Flatfish][Gaia] Can not remove default of Cost Control app
Blocks: flatfish
Group: core-security
This does not sound like a security issue.
it should not have costcontrol app on tablet

please use build script described in bug 903304 Comment 7 (note the command will be changed soon, please refer back to find the latest command) to run with tablet customization 

`GAIA_DISTRIBUTION_DIR=distribution_tablet MOZILLA_OFFICIAL=1 GAIA_DEV_PIXELS_PER_PX=1.5 make production`
Hi Fred Lin,

one question,
Gaia default app only cover, but can not delete it?
Right ?

Thanks.
OrsonHsueh, 

We can't delete default app if you use `make production` command, which will flash build-in apps into un-rewritable section.

Once you long touch on app icon in homescreen, the red cross icon(means deletable) in top left should not be shown
It's a must for flatfish. Marked as koi+ according to triage result.
flatfish only supports wifi and there's no modern in the flatfish. its not reasonable to build-in cost control app.
blocking-b2g: --- → koi+
Whiteboard: [Flatfish only]
Hi Fred Lin,

OK. I see.
Thanks for prompt response.

I tested the following command:
`GAIA_DISTRIBUTION_DIR=distribution_tablet MOZILLA_OFFICIAL=1 GAIA_DEV_PIXELS_PER_PX=1.5 make production`

Did not find CostControl app, thanks!

I think this bug should have been corrected, do you think?
Yes, mark as resolved
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.