一. VIP解锁

定位类: VipInfo

1. 修改 isVip 方法

# 将
const/4 v1, 0x0
# 修改为
const/4 v1, 0x1

2. 修改 getVipDaysLeft 方法

# 将
iget v0, p0, Lcom/smartisanos/notes/helper/VipInfo;->vipDaysLeft:I
# 修改为
const v0, 0x7fffffff

3. 修改 getVipEndTime 方法

# 将
iget-wide v0, p0, Lcom/smartisanos/notes/helper/VipInfo;->vipEndTime:J
# 修改为
const-wide v0, 0x7fffffff

二. 移除敏感词检测

定位类: SensitiveWordManager

  1. 清空 SensitiveWordManager 方法
  2. 清空 checkSensitiveWords 方法

三. 移除更新检测

定位类: UpdateServiceImpl

修改内容:

四. 优化启动

移除开屏广告

注意: 仅解锁VIP可能在某些机型上无法完全移除开屏广告

操作步骤:

  1. 定位搜索 disable_show
  2. 清空该关键词所在方法

五. 小白条沉浸

引入我提供的Dex

主页沉浸

加入方法调用 【NewNotesActivity】

invoke-super \{p0, p1\}, Lcom/smartisanos/notes/.*onCreate\(Landroid\/os\/Bundle\;\)V
invoke-static {p0}, Lc/n/t/e;->t(Landroid/app/Activity;)V

防止布局被笔记遮挡 【activity_notes.xml】

<path name="activity_notes">res/ho3.xml</path>

当然你也可以选择使用MT的反资源混淆

com.smartisanos.notes.widget.SmartisanosNotesTitleBar 
下方加入
android:fitsSystemWindows="true"

修复布局

到这一步你会发现导航栏已经沉浸了,但是布局的边距有点问题

修复主页搜索框偏上
<dimen name="search_padding_top">37.0dp</dimen>
修复主页弹出搜索框偏上
android:paddingTop="34.0dp"
修复笔记编写界面操作栏偏上
<dimen name="titlebar_height">80.0dp</dimen>
<item name="android:layout_height">48.0dp</item>