Jump to the app store app details

Answer: Note: only applicable for the portrait screen devices with a version of 3.5 or above in App market

 special codes please refer to the chinese page

1.       Enable it in App via Internet:

public void startActivity(){

String packageName = "要打开的App的包名";

String uri = String.format("market://woyou.market/appDetail?packageName=%s",packageName);

        Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(uri));

        intent.addCategory(Intent.CATEGORY_DEFAULT);

        PackageManager packageManager = getPackageManager();

        List activities = packageManager.queryIntentActivities(intent,

                PackageManager.MATCH_DEFAULT_ONLY);

        boolean isIntentSafe = activities.size() > 0;

        if (isIntentSafe) {

            startActivity(intent);

        }

    }

2.       Enable it via webview:

在xml中使用进入应用市场详情页

如果mWebView.setWebViewClient();设置了此函数,则不能通过a链接自动打开,只能通过拦截链接再使用Intent跳转。

mWebView.setWebViewClient(new WebViewClient(){

            @Override

            public boolean shouldOverrideUrlLoading(WebView view, String url) {

                Log.d(TAG, "shouldOverrideUrlLoading: " + url);

                Intent intent = null;

                try {

                    intent = Intent.parseUri(url,Intent.URI_INTENT_SCHEME);

                } catch (URISyntaxException e) {

                    e.printStackTrace();

                    return false;

                }

                startActivity(intent);

                return true;

            }

        });

3.       Enable it in the browser:

Address: :market://woyou.market/appDetail?packageName=包名

Note: you can only enable it in the built-in browser of the terminal or in Chrome browser, you cannot enable it in all other browsers

App Release

Release App

About Sunmi App Market

Every Sunmi partner can register Sunmi partner account on Sunmi official website to have
his/her own operation background. In principle, every Sunmi device will be
bound to a partner account number when it is sold out. Sunmi will take the
partner as unit to provide the control service for partial functions &
permissions.

Sunmi has an internal App market, and the
partner can distribute his/her own Apps on a large scale onto Sunmi devices. Partial
partners can have an App market managed by themselves. If the partner has not
opened “Allow third party App installation” (as shown by the arrow in the
following figure), its own default users can only install App for the device
via Sunmi App market.

e1

App Market Rules

Sunmi has distributed App markets with
different permissions to partial partners, and the Apps uploaded by default partners
will appear in their own App markets without Sunmi’s review. Sunmi can review
this App, and after passing the review, this App will appear in the App markets
of other partners. Certainly, partial partners can not only choose that their
own Apps do not appear in other people’s App markets, but also choose that
other people’s Apps do not appear in their own App markets. As for the authorized
permissions, you may consult Sunmi customer service 400-902-1168 (everyday 9:00
~ 21:00, except holidays)

App Distribution Procedure

After completing App development, upload it
to the App market. The user can search & find App at App market of the
device. If it’s a channel partner, the automatic installation of App’s  own device can be set. Explain the procedure
of App’s first upload & distribution as follows.

1.Upload app

Enter “My App” option at the partner backstageand click to create App

e2

2.Fill in the relevant content

Click “Upload installation package”, and
choose the apk you want to upload from the folder. Wait until the upload is
completed, and Sunmi backstage will automatically analyze the installation
package. The part indicated by a green arrow in the following figure will be
automatically filled in. The developer will manually fill in the information
such as App introduction, App’s well-matched devices, App type, etc.

  • If package name repetition is prompted when
    uploading the APK installation package, it indicates that this APK has already gone
    on sale in Sunmi App market. If this APK is owned by your company, please
    contact Sunmi customer service 400-902-1168 (everyday 9:00 ~
    21:00, except holidays) to enter claim.

e3

3.Deliver App

After the partner has completed the content
of the remaining part, the “Deliver” button in the following figure will turn
from grey non-clickable state to green clickable state. Click “Deliver” and the
App upload will be completed.

e4

About Grey Scale Deployment

There is a “Whether to deploy grey scale or not”
option above “Deliver” button in the above figure. After checking this box, the
deliver button will turn to “Grey scale deployed” item, and you will enter the
grey scale deployment configuration item after clicking it.

Grey scale deployment is a function
provided by Sunmi against the partner’s actual demand. A geographic location
message will appear when each device is used, and the partner may deploy on
partial devices according to geographic location or SN number after he/she has
developed his/her own App to match Sunmi devices. This App will appear only in
the App market of the devices within the scope of grey scale deployment. After
completing grey scale deployment within a small scope, the developer can deploy
the App onto devices within full range.

e5

Setting Automatic Installation

If you wish to automatically install the
uploaded App onto all its own devices, you can set this App to automatically
installed App in “My App market” item (as shown by the arrow in the following figure).
Its owned device will automatically download and install this App after
receiving the push notification. After setting automatic installation, you can
also set whether this App is to be App with default boot (as shown by the arrow
in the following figure). This App will be booted automatically after turning
on the device.

e6

Upgrad app

When the App has passed Sunmi’s review, “Update”
button will appear in the list items of My App. The developer may release the
upgraded package of this App. Enter Update App page after clicking. The update
procedure is similar to release procedure, please refer to the above release
procedure.

  •  If
    abnormal signature is prompted when uploading the update package, please check
    whether APK signature is inconsistent with the original installation package.
    If it is confirmed that it is necessary to change the signature, please create
    App after deleting it

  • If inconsistent package name is
    prompted when uploading the update package, please

    check whether APK package name has changed or
    there is upload error. If it is confirmed that it is necessary to change the
    package name, please create App after deleting it

e7

How does the APP call the score box

APP how to comment on the pop up by invoking scores

1.Open with Intent within the App:

public void startActivity(){ String packageName = "package name of the 
App to be opened"; 
String uri = String.format("market://woyou.market/appDetail?packageName=%s",packageName); 
Intent intent= new Intent(Intent.ACTION_VIEW,Uri.parse(uri)); 
intent.addCategory(Intent.CATEGORY_DEFAULT); 
PackageManager packageManager = getPackageManager(); 
List activities = packageManager.queryIntentActivities(intent, PackageManager.MATCH_DEFAULT_ONLY);
    boolean isIntentSafe = activities.size() > 0; 
if (isIntentSafe) { 
startActivity(intent); 
}
 } 

2.Open
by use of webview:apply < a href=" "> in xml to enter the detail page of
the App market If mWebView.setWebViewClient(); has set

this function, then it’s not OK to automatically open
with a link, it’s only

possible to intercept the link and then apply Intent
to jump.

mWebView.setWebViewClient(newWebViewClient() {
@Override public boolean shouldOverrideUrlLoading (WebView view, Stringurl){
Log.d(TAG, "shouldOverrideUrlLoading: " + url);
Intent intent = null;
try {
intent = Intent.parseUri(url, Intent.URI_INTENT_SCHEME);
} catch (URISyntaxException e) {
e.printStackTrace();return false;
}
startActivity(intent);
return true;
}
});

3.Open in the browser: address:market://woyou.market/appDetail?packageName=package
name Note:it’s OK to open only in the terminal’s own
carried browser or Chrome browser, it’s impossible all to open
it in other browsers.

4.Update appUpdate market://woyou.market/appUpdate

5.Comment on appComment
market://woyou.market/appComment?packageName=%s&type=true/false(true take
the initiative to click and pop up false automatically pops up) String uri =
String.format(“market://woyou.market/appComment?packageName=%s&type=%s”,packageName,true);

App Test Specifications

App Test Specifications

Introduction

To provide uniform, professional, high quality App to all the
partners in Sunmi ecological chain, including software developers, channel
partners, agents, end users, etc. We’ll carry out evaluation on all the Apps
employed in Sunmi App market according to certain principles &
specifications.

 

One.
Basic information standard for App

1.      
App name
should be consistent with the name displayed on desktop of the device

(installed
on it)

2.      
App
introduction & update instructions conform to the actual functions

3.      
App
introduction & update instructions cannot contain illegal content such as

endangering
national security, vulgar, erotic, etc.

4.  The App screenshot is clear and not fuzzy,
without watermark, with portrait format figures in vertical position and
horizontal format figures in horizontal position. And the directions of all
screenshots should be consistent

5.  As for the App, if it is required to log in
for usage, test account number should be filled in the remarks column. If there
is no log in function, it should be filled in the remarks: no log in function

Two. App function standard

1.      
No collapse phenomenon in App
starting & running

2.      
App can be normally installed
or unloaded

3.      
The layout of the App page is reasonable,
matched with horizontal & vertical version

shield, and has no phenomenon of stretch
ratio misalignment

4.      
Clear division of App function
modules, smooth business, complete functions.

Three. App safety standard

1.      
The permission applied by App
is inconsistent with its actual functions

2.      
App has consumed too much network
traffic

3.      
As for App, no virus code
feature exists

4.      
As for App, no ROOT code
feature exists

5.      
During the use process of App,
it is not allowed to frequently pop up floating window

advertisement, interrupt user operation,
influence user experience

Four. Financial safety standard

1.      
According to the application of
UnionPay regulatory requirements for the financial

device’s going on sale, it is not allowed
to apply for the following permissions

Permission

Type

Permission Content

Remarks

Financial Permission

android.permission.ACCESS_LOCATION_EXTRA_COMMANDS

allow App to access additional
position offer commands

Financial Permission

android.permission.ACCESS_SURFACE_FLINGER

The bottom layer figure on the
platform displays support, generally applied in game or camera preview
interface and screenshots in bottom layer mode

Financial Permission

android.permission.BRICK

Capable of disabling mobile phone,
very dangerous; as the name implies, to turn the mobile phone into a brick

Financial Permission

android.permission.CHANGE_COMPONENT_ENABLED_STATE

Change component enabled state

Financial Permission

android.permission.CHANGE_CONFIGURATION

Allow one program to modify current
setting, e.g., localization

Financial Permission

android.permission.CELL_PHONE_MASTER_EX

Extended permission for mobile phone
optimization master

Financial Permission

android.permission.DELETE_PACKAGES

Allow program
delete App

Financial Permission

android.permission.DISABLE_KEYGUARD

Allow the program to disable the
keylock

Financial Permission

android.permission.INJECT_EVENTS

Allow one program to intercept &
capture user event to a time flow, such as button, touch, trackball, etc.

Financial Permission

android.permission.MASTER_CLEAR

Allow the program to carry out soft
formatting, delete system configuration information

Financial Permission

android.permission.MODIFY_AUDIO_SETTINGS

Modify audio setting information

Financial Permission

android.permission.MOUNT_FORMAT_FILESYSTEMS

Format movable file system; e.g.,
format and clear SD card

Financial Permission

android.permission.PROCESS_OUTGOING_CALLS

Allow the program to monitor, modify
or give up outgoing calls

Financial Permission

android.permission.READ_FRAME_BUFFER

Read frame buffer to apply it in
screenshot

Financial Permission

android.permission.READ_LOGS

Allow the program to read the log file
of the underlying system 

Financial Permission

android.permission.READ_OWNER_DATA

Allow the program to read the owner
data

Financial Permission

android.permission.READ_SMS

Allow the program to read SMS

Financial Permission

android.permission.REBOOT

Allow the program to reboot the device

Financial Permission

android.permission.SET_PROCESS_FOREGROUND

Allow the program to currently run to
force into the foreground

Financial Permission

android.permission.SET_PROCESS_LIMIT

Allow the program to set the limit to
maximum number of processes

Financial Permission

android.permission.SET_TIME

Set system time

Financial Permission

android.permission.SET_TIME_ZONE

Set system time
zone

Financial Permission

android.permission.SET_WALLPAPER

Allow the program to set wallpaper

Financial Permission

android.permission.SET_WALLPAPER_HINTS

Allow the program to set wallpaper
hits

Financial Permission

android.permission.SIGNAL_PERSISTENT_PROCESSES

Allow the program to request sending
signals to all the displayed processes

Financial Permission

android.permission.WRITE_CALENDAR

Write to the calendar, but unreadable

Financial Permission

android.permission.WRITE_CALENDAR

Write to the contact person, but
unreadable

Financial Permission

android.permission.WRITE_SECURE_SETTINGS

Allow the program to read & write
settings sensitive to system security

Financial Permission

android.permission.WRITE_SETTINGS

Allow the program to read or write to
system setting

Financial Permission

android.permission.SHUTDOWN

Shutdown

Financial Permission

android.permission.ACCESS_FINE_LOCATION

Receive the location information from
the satellite via GPS chips, reaching a location precision within 10 meters

Financial Permission

android.permission.SYSTEM_ALERT_WINDOW

Display system
window

Financial Permission

android:allowBackup=”false”

Allow the backup & recovery of App
data, and this property needs to be configured as

Financial Permission

android:debuggable=”true”

Allow debug mode

Financial Permission

android:exported=”true”

Allow it to be booted by another
Application component

Financial Permission

android:sharedUserId=”android.uid.system”

Allow the program to run in the system
process (system permission running)