Multi-Threaded Parallel Processing for Physics Simulation in Cocos2d-x

by LINE Engineer on 2016.1.27

Hello. My name is ST and I develop mobile games here at LINE. In this post I would like to talk about the multi-threaded parallel processing method we are using with Cocos2d-x, the leading mobile game engine. I will go into more detail about how we improved upon the existing single-thread structure and enhanced performance using multi-threaded physics calculation.

Multi-Threaded physics calculation parallel processing architecture

Before we move on to the multi-threaded physics calculation parallel processing structure, we should take a look at the existing single-thread Cocos2d-x update loop.

[Figure 1] Original Cocos2d-x update loop

Read more

LINE Developer Week 2015

by LINE Engineer on 2015.12.29

My name is Augustin Wang. I work for LINE Taiwan as an application analyst and an API developer. In November 2015, I experienced LINE Developer Week and cannot wait to share my wonderful memories in this post.

Arrival in Korea

What an exciting day! To start off, I could barely sleep because of the early flight we booked and because of my excitement from visiting Korea for the first time. After approximately one hour bus time from Incheon International Airport, we arrived at the Korea office around Seohyun station. There were so many cute decorations with LINE Friends figures and related items in the Korea office.

I met lots of colleagues from Japan and China. We talked to each other in different languages: Chinese, English, Japanese and Korean. There is absolutely no language barrier between LINE engineers!

LINE Developer Day

The most memorable event during the week was LINE Developer Day in Seoul. Hundreds of developers assembled to hear about the latest LINE trends. Let’s review and take a look at the slides from the sessions.

Read more

Results From the LINE Bug Bounty

by LINE Engineer on 2015.12.17

Preparing the Bug Bounty Program

Hello. I am MJ, a LINE security engineer.

In this post I would like to share the results of the 2015 LINE Bug Bounty (August 24-September 23). As our first ever bug bounty program, we are very pleased with how well the program came together.

The core objective of the program was to discover and fix potential vulnerabilities in our services so that our users can enjoy them safely. Several departments lent us a hand in preparing the program and we could not have done it without them.

What we needed the most during preparation was support from management and enough members to prepare the program. From what I have heard, most companies have difficulty securing a budget to have their own bug bounty programs. Luckily, management gave us their blessing through a large budget expenditure. It was fortunate that they understood the value of long-term stability over the possible losses that could result in the event of a security incident. The prize money for each vulnerability was calculated by their severity, so that participants who found the more critical vulnerabilities would receive higher rewards. The maximum amount that could be received was $20,000 USD.

Also, the development and customer service departments worked closely together to successfully run the program. The development department helped create the LINE Bug Bounty website where participants would submit their entries and the customer service department was in charge of handling any questions regarding the program.

Without all the cooperation from the various departments, the program would not have been a success.
Read more

New generation of safe messaging: “Letter Sealing”

by LINE Engineer on 2015.10.13

Hello, my name is JI and I am working at LINE as a security engineer.

People might have wondered how safe mobile applications are. Message security is surely something most of you have thought about before. As we are centered around mobile messaging, all the engineers at LINE do take extra care to make our app even safer. But when companies are asked about how safe their message transfer process actually is, not many mobile messaging app companies are able to clearly explain about their security.

Today, I proudly present the newest security feature called “Letter Sealing.” A new feature added in version 5.3.0 of LINE.

Safe delivery of messages

Since time immemorial, methods to transfer secrets between one another have existed, and were an important part of human history. People would whisper secrets in dark alleyways or sometimes even devise a code to prevent any potential eavesdroppers from understanding what they were saying.

However, these methods would only work if the speaker and listener were in close proximity. Without the advanced internet technology that lets us easily communicate long-distance, people in the past had to put their messages into envelopes and deliver them by conventional means. Only, there was one problem: the envelope could be intercepted during delivery and resealed once read, unbeknownst to the actual intended recipient. Even when messages were altered or falsified, the recipient had no way of knowing. You can imagine how difficult it must have been for a message to be sent and received safe and sound.

Read more

True Delete

by LINE Engineer on 2015.8.13

Hello, I am H2spice. I work in security development here at LINE.

This post will cover how your data can be leaked if your mobile device is stolen, and what we at LINE are doing to prevent that: a new feature called “True Delete.”

There are many instances where people lose their mobile devices, or leave their devices unattended in places where anyone can access them. Many serious problems may arise if someone else obtains your mobile device and gains access to the information inside. Devices like your smartphone contain information such as call records, messages, contacts, schedules, browsing history, navigational data, photos, memos and so on. Information leaks like this can lead to an invasion of your privacy, or a breach of confidential company information in some cases. There have been reports where thieves would steal mobile devices for this exact purpose. While our mobile devices bring us great convenience, one mistake and they can be used against you.

LINE has various features that can protect your privacy such as a Passcode Lock, data encryption, and Hidden Chat to name a few. Even with these features however, there is still some room for improvement. One limitation is due to how deleted data can be restored due to how “deletion” works in programming.
Read more

Introducing the LINE Bug Bounty Program

by LINE Engineer on 2015.8.5

Hello. I am MJ from the LINE Security Department. In this post, I would like to announce the details of the LINE Bug Bounty.

What is a bug bounty?

Companies use bug bounty programs to strengthen their services and products by rewarding users that can find vulnerabilities in them. Many companies have used these programs to take a more active role in strengthening the security of their services.

LINE has grown as a global company that now provides services to more than 2 hundred million active users on a monthly basis. The number of products and services have increased, and so have the number of users that require protection. We at LINE aim to provide a more stable service as a result of this bug bounty.

Read more

Introducing the LINE Login Platform

by LINE Engineer on 2015.7.24

LINE publicly released its Login Platform on June 30, 2015, allowing other services to take advantage of its robust features. In this article, we look at the details of the newly released LINE Login Platform. We are also pleased to introduce the LINE developers site to the public. It’s packed with everything you’ve ever wanted to know about the technical side of LINE, so check it out to see all of the features the platform has to offer!

What is the LINE Login Platform?

The LINE Login Platform lets developers who create mobile apps and web applications offer a way for users to log into their apps using their LINE account. There are already many mobile and web apps out on the market that utilize the login features of the LINE Login Platform. In this article, we will take a closer look at Popcorn Buzz and LINE STORE to see exactly how they use this powerful platform.

Popcorn Buzz: LINE Login Platform for Mobile Apps

Popcorn Buzz is a free app for Android and iOS which provides a group calling service that lets users talk to up to 200 people at the same time. Developers usually use a screen like the one shown below when integrating the login feature into a mobile app like Popcorn Buzz. The login screen displays a “Log in with LINE” button that calls the login feature of the LINE Login Platform the moment the user taps it. If the user has the LINE app installed on their device, it automatically takes them to a second screen where they are asked to confirm that they want to log in with LINE. The login process is over before the user has a chance to blink. The superior login functionality offered by the LINE Login Platform leads to a better overall user experience on many apps the world over. 1 Read more