Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
sk.teamsoft:autobundler
Advanced tools
Android AutoBundler library
AutoBundler is a library for Android applications, which removes boilerplate code from your
activities and fragments. The library handles typical actions with saving instance state.
So implementing your own onSaveInstanceState
and onRestoreInstanceState
with hundreds of LOC is a history now.
All you need to do to make AutoBundler work, is to add annotations to specified fields. Then you can call store/restore actions with one line for all your properties. That's all.
public class MainActivity extends Activity {
@KeepState int mId;
@KeepState String mName;
@KeepState double mValue;
@KeepState(mode = AutoBundler.MODE_ONRESTORE) EditText mEditText;
@Override protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.my_layout);
AutoBundler.restore(this, savedInstanceState, AutoBundler.MODE_ONCREATE);
...
}
@Override protected void onRestoreInstanceState(Bundle savedInstanceState) {
super.onRestoreInstanceState(savedInstanceState);
AutoBundler.restore(this, savedInstanceState, AutoBundler.MODE_ONRESTORE);
}
@Override protected void onSaveInstanceState(Bundle outState) {
AutoBundler.save(this, outState);
super.onSaveInstanceState(outState);
}
}
AutoBundler supports basic classes, but you can also define your own class, which can either
implement Parcelable
or IFieldHandler
interface. You can then specify the exact algorithm
used to save and restore object values.
@KeepState DataObject mParcel;
@KeepState CustomObject mCustom;
...
class DataObject implements Parcelable {...}
class CustomObject implements IFieldHandler {
...
@Override
public void storeValue(Field field, Object object, Bundle bundle) throws IllegalAccessException {
bundle.putString(field.getName(), data);
}
@Override
public void readValue(Field field, Object object, Bundle bundle) throws IllegalAccessException {
data = bundle.getString(field.getName());
}
}
Released under Apache v2 license
FAQs
Android AutoBundler library
We found that sk.teamsoft:autobundler demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.